| Index: src/x64/lithium-codegen-x64.h
|
| ===================================================================
|
| --- src/x64/lithium-codegen-x64.h (revision 7031)
|
| +++ src/x64/lithium-codegen-x64.h (working copy)
|
| @@ -53,6 +53,7 @@
|
| current_instruction_(-1),
|
| instructions_(chunk->instructions()),
|
| deoptimizations_(4),
|
| + jump_table_(4),
|
| deoptimization_literals_(8),
|
| inlined_function_count_(0),
|
| scope_(chunk->graph()->info()->scope()),
|
| @@ -91,8 +92,8 @@
|
| void DoDeferredTaggedToI(LTaggedToI* instr);
|
| void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
|
| void DoDeferredStackCheck(LGoto* instr);
|
| - void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
|
| - Label* map_check);
|
| + void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
|
| + void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr);
|
|
|
| // Parallel move support.
|
| void DoParallelMove(LParallelMove* move);
|
| @@ -118,6 +119,10 @@
|
| bool is_done() const { return status_ == DONE; }
|
| bool is_aborted() const { return status_ == ABORTED; }
|
|
|
| + int strict_mode_flag() const {
|
| + return info_->is_strict() ? kStrictMode : kNonStrictMode;
|
| + }
|
| +
|
| LChunk* chunk() const { return chunk_; }
|
| Scope* scope() const { return scope_; }
|
| HGraph* graph() const { return chunk_->graph(); }
|
| @@ -144,6 +149,7 @@
|
| bool GeneratePrologue();
|
| bool GenerateBody();
|
| bool GenerateDeferredCode();
|
| + bool GenerateJumpTable();
|
| bool GenerateSafepointTable();
|
|
|
| void CallCode(Handle<Code> code,
|
| @@ -183,6 +189,7 @@
|
| XMMRegister ToDoubleRegister(int index) const;
|
|
|
| // Specific math operations - used from DoUnaryMathOperation.
|
| + void EmitIntegerMathAbs(LUnaryMathOperation* instr);
|
| void DoMathAbs(LUnaryMathOperation* instr);
|
| void DoMathFloor(LUnaryMathOperation* instr);
|
| void DoMathRound(LUnaryMathOperation* instr);
|
| @@ -198,6 +205,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);
|
| @@ -226,6 +234,17 @@
|
| // Caller should branch on equal condition.
|
| void EmitIsConstructCall(Register temp);
|
|
|
| + // Emits code for pushing a constant operand.
|
| + void EmitPushConstantOperand(LOperand* operand);
|
| +
|
| + struct JumpTableEntry {
|
| + inline JumpTableEntry(Address address)
|
| + : label_(),
|
| + address_(address) { }
|
| + Label label_;
|
| + Address address_;
|
| + };
|
| +
|
| LChunk* const chunk_;
|
| MacroAssembler* const masm_;
|
| CompilationInfo* const info_;
|
| @@ -234,6 +253,7 @@
|
| int current_instruction_;
|
| const ZoneList<LInstruction*>* instructions_;
|
| ZoneList<LEnvironment*> deoptimizations_;
|
| + ZoneList<JumpTableEntry*> jump_table_;
|
| ZoneList<Handle<Object> > deoptimization_literals_;
|
| int inlined_function_count_;
|
| Scope* const scope_;
|
|
|