OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // Returns the condition on which a final split to | 270 // Returns the condition on which a final split to |
271 // true and false label should be made, to optimize fallthrough. | 271 // true and false label should be made, to optimize fallthrough. |
272 Condition EmitTypeofIs(Label* true_label, Label* false_label, | 272 Condition EmitTypeofIs(Label* true_label, Label* false_label, |
273 Register input, Handle<String> type_name); | 273 Register input, Handle<String> type_name); |
274 | 274 |
275 // Emits optimized code for %_IsObject(x). Preserves input register. | 275 // Emits optimized code for %_IsObject(x). Preserves input register. |
276 // Returns the condition on which a final split to | 276 // Returns the condition on which a final split to |
277 // true and false label should be made, to optimize fallthrough. | 277 // true and false label should be made, to optimize fallthrough. |
278 Condition EmitIsObject(Register input, | 278 Condition EmitIsObject(Register input, |
279 Register temp1, | 279 Register temp1, |
280 Register temp2, | |
281 Label* is_not_object, | 280 Label* is_not_object, |
282 Label* is_object); | 281 Label* is_object); |
283 | 282 |
284 // Emits optimized code for %_IsConstructCall(). | 283 // Emits optimized code for %_IsConstructCall(). |
285 // Caller should branch on equal condition. | 284 // Caller should branch on equal condition. |
286 void EmitIsConstructCall(Register temp); | 285 void EmitIsConstructCall(Register temp); |
287 | 286 |
288 void EmitLoadFieldOrConstantFunction(Register result, | 287 void EmitLoadFieldOrConstantFunction(Register result, |
289 Register object, | 288 Register object, |
290 Handle<Map> type, | 289 Handle<Map> type, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 private: | 368 private: |
370 LCodeGen* codegen_; | 369 LCodeGen* codegen_; |
371 Label entry_; | 370 Label entry_; |
372 Label exit_; | 371 Label exit_; |
373 Label* external_exit_; | 372 Label* external_exit_; |
374 }; | 373 }; |
375 | 374 |
376 } } // namespace v8::internal | 375 } } // namespace v8::internal |
377 | 376 |
378 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 377 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |