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