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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 Condition EmitIsObject(Register input, | 349 Condition EmitIsObject(Register input, |
350 Register temp1, | 350 Register temp1, |
351 Label* is_not_object, | 351 Label* is_not_object, |
352 Label* is_object); | 352 Label* is_object); |
353 | 353 |
354 // Emits optimized code for %_IsString(x). Preserves input register. | 354 // Emits optimized code for %_IsString(x). Preserves input register. |
355 // Returns the condition on which a final split to | 355 // Returns the condition on which a final split to |
356 // true and false label should be made, to optimize fallthrough. | 356 // true and false label should be made, to optimize fallthrough. |
357 Condition EmitIsString(Register input, | 357 Condition EmitIsString(Register input, |
358 Register temp1, | 358 Register temp1, |
359 Label* is_not_string); | 359 Label* is_not_string, |
| 360 SmiCheck check_needed); |
360 | 361 |
361 // Emits optimized code for %_IsConstructCall(). | 362 // Emits optimized code for %_IsConstructCall(). |
362 // Caller should branch on equal condition. | 363 // Caller should branch on equal condition. |
363 void EmitIsConstructCall(Register temp); | 364 void EmitIsConstructCall(Register temp); |
364 | 365 |
365 void EmitLoadFieldOrConstantFunction(Register result, | 366 void EmitLoadFieldOrConstantFunction(Register result, |
366 Register object, | 367 Register object, |
367 Handle<Map> type, | 368 Handle<Map> type, |
368 Handle<String> name, | 369 Handle<String> name, |
369 LEnvironment* env); | 370 LEnvironment* env); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 LCodeGen* codegen_; | 476 LCodeGen* codegen_; |
476 Label entry_; | 477 Label entry_; |
477 Label exit_; | 478 Label exit_; |
478 Label* external_exit_; | 479 Label* external_exit_; |
479 int instruction_index_; | 480 int instruction_index_; |
480 }; | 481 }; |
481 | 482 |
482 } } // namespace v8::internal | 483 } } // namespace v8::internal |
483 | 484 |
484 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 485 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |