| Index: src/ia32/lithium-codegen-ia32.h
|
| ===================================================================
|
| --- src/ia32/lithium-codegen-ia32.h (revision 6955)
|
| +++ src/ia32/lithium-codegen-ia32.h (working copy)
|
| @@ -34,12 +34,14 @@
|
| #include "deoptimizer.h"
|
| #include "safepoint-table.h"
|
| #include "scopes.h"
|
| +#include "ia32/lithium-gap-resolver-ia32.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| // Forward declarations.
|
| class LDeferredCode;
|
| +class LGapNode;
|
| class SafepointGenerator;
|
|
|
| class LCodeGen BASE_EMBEDDED {
|
| @@ -57,10 +59,24 @@
|
| scope_(chunk->graph()->info()->scope()),
|
| status_(UNUSED),
|
| deferred_(8),
|
| - osr_pc_offset_(-1) {
|
| + osr_pc_offset_(-1),
|
| + resolver_(this) {
|
| PopulateDeoptimizationLiteralsWithInlinedFunctions();
|
| }
|
|
|
| + // Simple accessors.
|
| + MacroAssembler* masm() const { return masm_; }
|
| +
|
| + // Support for converting LOperands to assembler types.
|
| + Operand ToOperand(LOperand* op) const;
|
| + Register ToRegister(LOperand* op) const;
|
| + XMMRegister ToDoubleRegister(LOperand* op) const;
|
| + Immediate ToImmediate(LOperand* op);
|
| +
|
| + // The operand denoting the second word (the one with a higher address) of
|
| + // a double stack slot.
|
| + Operand HighOperand(LOperand* op);
|
| +
|
| // Try to generate code for the entire chunk, but it may fail if the
|
| // chunk contains constructs we cannot handle. Returns true if the
|
| // code generation attempt succeeded.
|
| @@ -76,6 +92,7 @@
|
| void DoDeferredTaggedToI(LTaggedToI* instr);
|
| void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
|
| void DoDeferredStackCheck(LGoto* instr);
|
| + void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
|
| void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
|
| Label* map_check);
|
|
|
| @@ -106,7 +123,6 @@
|
| LChunk* chunk() const { return chunk_; }
|
| Scope* scope() const { return scope_; }
|
| HGraph* graph() const { return chunk_->graph(); }
|
| - MacroAssembler* masm() const { return masm_; }
|
|
|
| int GetNextEmittedBlock(int block);
|
| LInstruction* GetNextInstruction();
|
| @@ -152,7 +168,7 @@
|
| int arity,
|
| LInstruction* instr);
|
|
|
| - void LoadPrototype(Register result, Handle<JSObject> prototype);
|
| + void LoadHeapObject(Register result, Handle<HeapObject> object);
|
|
|
| void RegisterLazyDeoptimization(LInstruction* instr);
|
| void RegisterEnvironmentForDeoptimization(LEnvironment* environment);
|
| @@ -168,13 +184,10 @@
|
|
|
| Register ToRegister(int index) const;
|
| XMMRegister ToDoubleRegister(int index) const;
|
| - Register ToRegister(LOperand* op) const;
|
| - XMMRegister ToDoubleRegister(LOperand* op) const;
|
| int ToInteger32(LConstantOperand* op) const;
|
| - Operand ToOperand(LOperand* op) const;
|
| - Immediate ToImmediate(LOperand* op);
|
|
|
| // Specific math operations - used from DoUnaryMathOperation.
|
| + void EmitIntegerMathAbs(LUnaryMathOperation* instr);
|
| void DoMathAbs(LUnaryMathOperation* instr);
|
| void DoMathFloor(LUnaryMathOperation* instr);
|
| void DoMathRound(LUnaryMathOperation* instr);
|
|
|