OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/mips/lithium-gap-resolver-mips.h" | 9 #include "src/mips/lithium-gap-resolver-mips.h" |
10 #include "src/mips/lithium-mips.h" | 10 #include "src/mips/lithium-mips.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 // Emits optimized code for typeof x == "y". Modifies input register. | 310 // Emits optimized code for typeof x == "y". Modifies input register. |
311 // Returns the condition on which a final split to | 311 // Returns the condition on which a final split to |
312 // true and false label should be made, to optimize fallthrough. | 312 // true and false label should be made, to optimize fallthrough. |
313 // Returns two registers in cmp1 and cmp2 that can be used in the | 313 // Returns two registers in cmp1 and cmp2 that can be used in the |
314 // Branch instruction after EmitTypeofIs. | 314 // Branch instruction after EmitTypeofIs. |
315 Condition EmitTypeofIs(Label* true_label, | 315 Condition EmitTypeofIs(Label* true_label, |
316 Label* false_label, | 316 Label* false_label, |
317 Register input, | 317 Register input, |
318 Handle<String> type_name, | 318 Handle<String> type_name, |
319 Register& cmp1, | 319 Register* cmp1, |
320 Operand& cmp2); | 320 Operand* cmp2); |
321 | 321 |
322 // Emits optimized code for %_IsObject(x). Preserves input register. | 322 // Emits optimized code for %_IsObject(x). Preserves input register. |
323 // Returns the condition on which a final split to | 323 // Returns the condition on which a final split to |
324 // true and false label should be made, to optimize fallthrough. | 324 // true and false label should be made, to optimize fallthrough. |
325 Condition EmitIsObject(Register input, | 325 Condition EmitIsObject(Register input, |
326 Register temp1, | 326 Register temp1, |
327 Register temp2, | 327 Register temp2, |
328 Label* is_not_object, | 328 Label* is_not_object, |
329 Label* is_object); | 329 Label* is_object); |
330 | 330 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 LCodeGen* codegen_; | 476 LCodeGen* codegen_; |
477 Label entry_; | 477 Label entry_; |
478 Label exit_; | 478 Label exit_; |
479 Label* external_exit_; | 479 Label* external_exit_; |
480 int instruction_index_; | 480 int instruction_index_; |
481 }; | 481 }; |
482 | 482 |
483 } } // namespace v8::internal | 483 } } // namespace v8::internal |
484 | 484 |
485 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 485 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |