| 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/lithium-codegen.h" | 9 #include "src/lithium-codegen.h" |
| 10 #include "src/mips/lithium-gap-resolver-mips.h" | 10 #include "src/mips/lithium-gap-resolver-mips.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // true and false label should be made, to optimize fallthrough. | 295 // true and false label should be made, to optimize fallthrough. |
| 296 // Returns two registers in cmp1 and cmp2 that can be used in the | 296 // Returns two registers in cmp1 and cmp2 that can be used in the |
| 297 // Branch instruction after EmitTypeofIs. | 297 // Branch instruction after EmitTypeofIs. |
| 298 Condition EmitTypeofIs(Label* true_label, | 298 Condition EmitTypeofIs(Label* true_label, |
| 299 Label* false_label, | 299 Label* false_label, |
| 300 Register input, | 300 Register input, |
| 301 Handle<String> type_name, | 301 Handle<String> type_name, |
| 302 Register* cmp1, | 302 Register* cmp1, |
| 303 Operand* cmp2); | 303 Operand* cmp2); |
| 304 | 304 |
| 305 // Emits optimized code for %_IsObject(x). Preserves input register. | |
| 306 // Returns the condition on which a final split to | |
| 307 // true and false label should be made, to optimize fallthrough. | |
| 308 Condition EmitIsObject(Register input, | |
| 309 Register temp1, | |
| 310 Register temp2, | |
| 311 Label* is_not_object, | |
| 312 Label* is_object); | |
| 313 | |
| 314 // Emits optimized code for %_IsString(x). Preserves input register. | 305 // Emits optimized code for %_IsString(x). Preserves input register. |
| 315 // Returns the condition on which a final split to | 306 // Returns the condition on which a final split to |
| 316 // true and false label should be made, to optimize fallthrough. | 307 // true and false label should be made, to optimize fallthrough. |
| 317 Condition EmitIsString(Register input, | 308 Condition EmitIsString(Register input, |
| 318 Register temp1, | 309 Register temp1, |
| 319 Label* is_not_string, | 310 Label* is_not_string, |
| 320 SmiCheck check_needed); | 311 SmiCheck check_needed); |
| 321 | 312 |
| 322 // Emits optimized code for %_IsConstructCall(). | 313 // Emits optimized code for %_IsConstructCall(). |
| 323 // Caller should branch on equal condition. | 314 // Caller should branch on equal condition. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 LCodeGen* codegen_; | 422 LCodeGen* codegen_; |
| 432 Label entry_; | 423 Label entry_; |
| 433 Label exit_; | 424 Label exit_; |
| 434 Label* external_exit_; | 425 Label* external_exit_; |
| 435 int instruction_index_; | 426 int instruction_index_; |
| 436 }; | 427 }; |
| 437 | 428 |
| 438 } } // namespace v8::internal | 429 } } // namespace v8::internal |
| 439 | 430 |
| 440 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 431 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |