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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 // Emits optimized code for %_IsObject(x). Preserves input register. | 223 // Emits optimized code for %_IsObject(x). Preserves input register. |
224 // Returns the condition on which a final split to | 224 // Returns the condition on which a final split to |
225 // true and false label should be made, to optimize fallthrough. | 225 // true and false label should be made, to optimize fallthrough. |
226 Condition EmitIsObject(Register input, | 226 Condition EmitIsObject(Register input, |
227 Register temp1, | 227 Register temp1, |
228 Register temp2, | 228 Register temp2, |
229 Label* is_not_object, | 229 Label* is_not_object, |
230 Label* is_object); | 230 Label* is_object); |
231 | 231 |
| 232 // Emits optimized code for %_IsConstructCall(). |
| 233 // Caller should branch on equal condition. |
| 234 void EmitIsConstructCall(Register temp); |
| 235 |
| 236 |
232 LChunk* const chunk_; | 237 LChunk* const chunk_; |
233 MacroAssembler* const masm_; | 238 MacroAssembler* const masm_; |
234 CompilationInfo* const info_; | 239 CompilationInfo* const info_; |
235 | 240 |
236 int current_block_; | 241 int current_block_; |
237 int current_instruction_; | 242 int current_instruction_; |
238 const ZoneList<LInstruction*>* instructions_; | 243 const ZoneList<LInstruction*>* instructions_; |
239 ZoneList<LEnvironment*> deoptimizations_; | 244 ZoneList<LEnvironment*> deoptimizations_; |
240 ZoneList<Handle<Object> > deoptimization_literals_; | 245 ZoneList<Handle<Object> > deoptimization_literals_; |
241 int inlined_function_count_; | 246 int inlined_function_count_; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 private: | 285 private: |
281 LCodeGen* codegen_; | 286 LCodeGen* codegen_; |
282 Label entry_; | 287 Label entry_; |
283 Label exit_; | 288 Label exit_; |
284 Label* external_exit_; | 289 Label* external_exit_; |
285 }; | 290 }; |
286 | 291 |
287 } } // namespace v8::internal | 292 } } // namespace v8::internal |
288 | 293 |
289 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 294 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |