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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 bool is_aborted() const { return status_ == ABORTED; } | 194 bool is_aborted() const { return status_ == ABORTED; } |
195 | 195 |
196 StrictModeFlag strict_mode_flag() const { | 196 StrictModeFlag strict_mode_flag() const { |
197 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; | 197 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; |
198 } | 198 } |
199 | 199 |
200 LPlatformChunk* chunk() const { return chunk_; } | 200 LPlatformChunk* chunk() const { return chunk_; } |
201 Scope* scope() const { return scope_; } | 201 Scope* scope() const { return scope_; } |
202 HGraph* graph() const { return chunk()->graph(); } | 202 HGraph* graph() const { return chunk()->graph(); } |
203 | 203 |
| 204 void DeoptimizeIf(Condition cc, |
| 205 LEnvironment* environment, |
| 206 Deoptimizer::BailoutType bailout_type); |
| 207 |
204 int GetNextEmittedBlock() const; | 208 int GetNextEmittedBlock() const; |
205 | 209 |
206 void EmitClassOfTest(Label* if_true, | 210 void EmitClassOfTest(Label* if_true, |
207 Label* if_false, | 211 Label* if_false, |
208 Handle<String> class_name, | 212 Handle<String> class_name, |
209 Register input, | 213 Register input, |
210 Register temporary, | 214 Register temporary, |
211 Register temporary2); | 215 Register temporary2); |
212 | 216 |
213 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 217 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 LInstruction* instr, | 274 LInstruction* instr, |
271 CallKind call_kind, | 275 CallKind call_kind, |
272 EDIState edi_state); | 276 EDIState edi_state); |
273 | 277 |
274 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 278 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
275 SafepointMode safepoint_mode); | 279 SafepointMode safepoint_mode); |
276 | 280 |
277 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 281 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
278 Safepoint::DeoptMode mode); | 282 Safepoint::DeoptMode mode); |
279 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 283 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
| 284 void SoftDeoptimizeIf(Condition cc, LEnvironment* environment); |
280 | 285 |
281 void AddToTranslation(Translation* translation, | 286 void AddToTranslation(Translation* translation, |
282 LOperand* op, | 287 LOperand* op, |
283 bool is_tagged, | 288 bool is_tagged, |
284 bool is_uint32, | 289 bool is_uint32, |
285 bool arguments_known, | 290 bool arguments_known, |
286 int arguments_index, | 291 int arguments_index, |
287 int arguments_count); | 292 int arguments_count); |
288 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 293 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
289 void PopulateDeoptimizationData(Handle<Code> code); | 294 void PopulateDeoptimizationData(Handle<Code> code); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 395 |
391 // Emits code for pushing either a tagged constant, a (non-double) | 396 // Emits code for pushing either a tagged constant, a (non-double) |
392 // register, or a stack slot operand. | 397 // register, or a stack slot operand. |
393 void EmitPushTaggedOperand(LOperand* operand); | 398 void EmitPushTaggedOperand(LOperand* operand); |
394 | 399 |
395 Zone* zone_; | 400 Zone* zone_; |
396 LPlatformChunk* const chunk_; | 401 LPlatformChunk* const chunk_; |
397 MacroAssembler* const masm_; | 402 MacroAssembler* const masm_; |
398 CompilationInfo* const info_; | 403 CompilationInfo* const info_; |
399 | 404 |
400 struct JumpTableEntry { | |
401 inline JumpTableEntry(Address entry, bool frame, bool is_lazy) | |
402 : label(), | |
403 address(entry), | |
404 needs_frame(frame), | |
405 is_lazy_deopt(is_lazy) { } | |
406 Label label; | |
407 Address address; | |
408 bool needs_frame; | |
409 bool is_lazy_deopt; | |
410 }; | |
411 | |
412 int current_block_; | 405 int current_block_; |
413 int current_instruction_; | 406 int current_instruction_; |
414 const ZoneList<LInstruction*>* instructions_; | 407 const ZoneList<LInstruction*>* instructions_; |
415 ZoneList<LEnvironment*> deoptimizations_; | 408 ZoneList<LEnvironment*> deoptimizations_; |
416 ZoneList<JumpTableEntry> jump_table_; | 409 ZoneList<Deoptimizer::JumpTableEntry> jump_table_; |
417 ZoneList<Handle<Object> > deoptimization_literals_; | 410 ZoneList<Handle<Object> > deoptimization_literals_; |
418 ZoneList<Handle<Map> > prototype_maps_; | 411 ZoneList<Handle<Map> > prototype_maps_; |
419 ZoneList<Handle<Map> > transition_maps_; | 412 ZoneList<Handle<Map> > transition_maps_; |
420 int inlined_function_count_; | 413 int inlined_function_count_; |
421 Scope* const scope_; | 414 Scope* const scope_; |
422 Status status_; | 415 Status status_; |
423 TranslationBuffer translations_; | 416 TranslationBuffer translations_; |
424 ZoneList<LDeferredCode*> deferred_; | 417 ZoneList<LDeferredCode*> deferred_; |
425 bool dynamic_frame_alignment_; | 418 bool dynamic_frame_alignment_; |
426 bool support_aligned_spilled_doubles_; | 419 bool support_aligned_spilled_doubles_; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 LCodeGen* codegen_; | 484 LCodeGen* codegen_; |
492 Label entry_; | 485 Label entry_; |
493 Label exit_; | 486 Label exit_; |
494 Label* external_exit_; | 487 Label* external_exit_; |
495 int instruction_index_; | 488 int instruction_index_; |
496 }; | 489 }; |
497 | 490 |
498 } } // namespace v8::internal | 491 } } // namespace v8::internal |
499 | 492 |
500 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 493 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |