OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 Register temp1, | 358 Register temp1, |
359 Register temp2, | 359 Register temp2, |
360 Label* is_not_object, | 360 Label* is_not_object, |
361 Label* is_object); | 361 Label* is_object); |
362 | 362 |
363 // Emits optimized code for %_IsString(x). Preserves input register. | 363 // Emits optimized code for %_IsString(x). Preserves input register. |
364 // Returns the condition on which a final split to | 364 // Returns the condition on which a final split to |
365 // true and false label should be made, to optimize fallthrough. | 365 // true and false label should be made, to optimize fallthrough. |
366 Condition EmitIsString(Register input, | 366 Condition EmitIsString(Register input, |
367 Register temp1, | 367 Register temp1, |
368 Label* is_not_string); | 368 Label* is_not_string, |
| 369 SmiCheck check_needed); |
369 | 370 |
370 // Emits optimized code for %_IsConstructCall(). | 371 // Emits optimized code for %_IsConstructCall(). |
371 // Caller should branch on equal condition. | 372 // Caller should branch on equal condition. |
372 void EmitIsConstructCall(Register temp1, Register temp2); | 373 void EmitIsConstructCall(Register temp1, Register temp2); |
373 | 374 |
374 void EmitLoadFieldOrConstantFunction(Register result, | 375 void EmitLoadFieldOrConstantFunction(Register result, |
375 Register object, | 376 Register object, |
376 Handle<Map> type, | 377 Handle<Map> type, |
377 Handle<String> name, | 378 Handle<String> name, |
378 LEnvironment* env); | 379 LEnvironment* env); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 LCodeGen* codegen_; | 508 LCodeGen* codegen_; |
508 Label entry_; | 509 Label entry_; |
509 Label exit_; | 510 Label exit_; |
510 Label* external_exit_; | 511 Label* external_exit_; |
511 int instruction_index_; | 512 int instruction_index_; |
512 }; | 513 }; |
513 | 514 |
514 } } // namespace v8::internal | 515 } } // namespace v8::internal |
515 | 516 |
516 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 517 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |