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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 Condition EmitTypeofIs(Label* true_label, Label* false_label, | 214 Condition EmitTypeofIs(Label* true_label, Label* false_label, |
215 Register input, Handle<String> type_name); | 215 Register input, Handle<String> type_name); |
216 | 216 |
217 // Emits optimized code for %_IsObject(x). Preserves input register. | 217 // Emits optimized code for %_IsObject(x). Preserves input register. |
218 // Returns the condition on which a final split to | 218 // Returns the condition on which a final split to |
219 // true and false label should be made, to optimize fallthrough. | 219 // true and false label should be made, to optimize fallthrough. |
220 Condition EmitIsObject(Register input, | 220 Condition EmitIsObject(Register input, |
221 Label* is_not_object, | 221 Label* is_not_object, |
222 Label* is_object); | 222 Label* is_object); |
223 | 223 |
| 224 // Emits optimized code for %_IsConstructCall(). |
| 225 // Caller should branch on equal condition. |
| 226 void EmitIsConstructCall(Register temp); |
| 227 |
224 LChunk* const chunk_; | 228 LChunk* const chunk_; |
225 MacroAssembler* const masm_; | 229 MacroAssembler* const masm_; |
226 CompilationInfo* const info_; | 230 CompilationInfo* const info_; |
227 | 231 |
228 int current_block_; | 232 int current_block_; |
229 int current_instruction_; | 233 int current_instruction_; |
230 const ZoneList<LInstruction*>* instructions_; | 234 const ZoneList<LInstruction*>* instructions_; |
231 ZoneList<LEnvironment*> deoptimizations_; | 235 ZoneList<LEnvironment*> deoptimizations_; |
232 ZoneList<Handle<Object> > deoptimization_literals_; | 236 ZoneList<Handle<Object> > deoptimization_literals_; |
233 int inlined_function_count_; | 237 int inlined_function_count_; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 private: | 276 private: |
273 LCodeGen* codegen_; | 277 LCodeGen* codegen_; |
274 Label entry_; | 278 Label entry_; |
275 Label exit_; | 279 Label exit_; |
276 Label* external_exit_; | 280 Label* external_exit_; |
277 }; | 281 }; |
278 | 282 |
279 } } // namespace v8::internal | 283 } } // namespace v8::internal |
280 | 284 |
281 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 285 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |