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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // true and false label should be made, to optimize fallthrough. | 305 // true and false label should be made, to optimize fallthrough. |
306 Condition EmitIsObject(Register input, | 306 Condition EmitIsObject(Register input, |
307 Label* is_not_object, | 307 Label* is_not_object, |
308 Label* is_object); | 308 Label* is_object); |
309 | 309 |
310 // Emits optimized code for %_IsString(x). Preserves input register. | 310 // Emits optimized code for %_IsString(x). Preserves 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 Condition EmitIsString(Register input, | 313 Condition EmitIsString(Register input, |
314 Register temp1, | 314 Register temp1, |
315 Label* is_not_string); | 315 Label* is_not_string, |
| 316 SmiCheck check_needed); |
316 | 317 |
317 // Emits optimized code for %_IsConstructCall(). | 318 // Emits optimized code for %_IsConstructCall(). |
318 // Caller should branch on equal condition. | 319 // Caller should branch on equal condition. |
319 void EmitIsConstructCall(Register temp); | 320 void EmitIsConstructCall(Register temp); |
320 | 321 |
321 void EmitLoadFieldOrConstantFunction(Register result, | 322 void EmitLoadFieldOrConstantFunction(Register result, |
322 Register object, | 323 Register object, |
323 Handle<Map> type, | 324 Handle<Map> type, |
324 Handle<String> name, | 325 Handle<String> name, |
325 LEnvironment* env); | 326 LEnvironment* env); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 LCodeGen* codegen_; | 427 LCodeGen* codegen_; |
427 Label entry_; | 428 Label entry_; |
428 Label exit_; | 429 Label exit_; |
429 Label* external_exit_; | 430 Label* external_exit_; |
430 int instruction_index_; | 431 int instruction_index_; |
431 }; | 432 }; |
432 | 433 |
433 } } // namespace v8::internal | 434 } } // namespace v8::internal |
434 | 435 |
435 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 436 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |