| Index: src/ia32/lithium-codegen-ia32.h
|
| ===================================================================
|
| --- src/ia32/lithium-codegen-ia32.h (revision 7180)
|
| +++ src/ia32/lithium-codegen-ia32.h (working copy)
|
| @@ -56,16 +56,18 @@
|
| deoptimizations_(4),
|
| deoptimization_literals_(8),
|
| inlined_function_count_(0),
|
| - scope_(chunk->graph()->info()->scope()),
|
| + scope_(info->scope()),
|
| status_(UNUSED),
|
| deferred_(8),
|
| osr_pc_offset_(-1),
|
| + deoptimization_reloc_size(),
|
| resolver_(this) {
|
| PopulateDeoptimizationLiteralsWithInlinedFunctions();
|
| }
|
|
|
| // Simple accessors.
|
| MacroAssembler* masm() const { return masm_; }
|
| + CompilationInfo* info() const { return info_; }
|
|
|
| // Support for converting LOperands to assembler types.
|
| Operand ToOperand(LOperand* op) const;
|
| @@ -93,6 +95,7 @@
|
| void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
|
| void DoDeferredStackCheck(LGoto* instr);
|
| void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
|
| + void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
|
| void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
|
| Label* map_check);
|
|
|
| @@ -102,6 +105,8 @@
|
| // Emit frame translation commands for an environment.
|
| void WriteTranslation(LEnvironment* environment, Translation* translation);
|
|
|
| + void EnsureRelocSpaceForDeoptimization();
|
| +
|
| // Declare methods that deal with the individual node types.
|
| #define DECLARE_DO(type) void Do##type(L##type* node);
|
| LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
|
| @@ -121,7 +126,7 @@
|
| bool is_aborted() const { return status_ == ABORTED; }
|
|
|
| int strict_mode_flag() const {
|
| - return info_->is_strict() ? kStrictMode : kNonStrictMode;
|
| + return info()->is_strict() ? kStrictMode : kNonStrictMode;
|
| }
|
|
|
| LChunk* chunk() const { return chunk_; }
|
| @@ -151,6 +156,9 @@
|
| bool GeneratePrologue();
|
| bool GenerateBody();
|
| bool GenerateDeferredCode();
|
| + // Pad the reloc info to ensure that we have enough space to patch during
|
| + // deoptimization.
|
| + bool GenerateRelocPadding();
|
| bool GenerateSafepointTable();
|
|
|
| void CallCode(Handle<Code> code, RelocInfo::Mode mode, LInstruction* instr,
|
| @@ -204,6 +212,7 @@
|
| int arguments,
|
| int deoptimization_index);
|
| void RecordSafepoint(LPointerMap* pointers, int deoptimization_index);
|
| + void RecordSafepoint(int deoptimization_index);
|
| void RecordSafepointWithRegisters(LPointerMap* pointers,
|
| int arguments,
|
| int deoptimization_index);
|
| @@ -251,6 +260,13 @@
|
| ZoneList<LDeferredCode*> deferred_;
|
| int osr_pc_offset_;
|
|
|
| + struct DeoptimizationRelocSize {
|
| + int min_size;
|
| + int last_pc_offset;
|
| + };
|
| +
|
| + DeoptimizationRelocSize deoptimization_reloc_size;
|
| +
|
| // Builder that keeps track of safepoints in the code. The table
|
| // itself is emitted at the end of the generated code.
|
| SafepointTableBuilder safepoints_;
|
|
|