| Index: src/ia32/lithium-ia32.h
|
| diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
|
| index 50084f65c544fc7f9b1fc6ec427f78ff47c5977e..a6a25261ea446c6457a16bea6521f0e468e80e07 100644
|
| --- a/src/ia32/lithium-ia32.h
|
| +++ b/src/ia32/lithium-ia32.h
|
| @@ -75,6 +75,7 @@ class LCodeGen;
|
| V(ClassOfTestAndBranch) \
|
| V(CompareNumericAndBranch) \
|
| V(CmpObjectEqAndBranch) \
|
| + V(CmpHoleAndBranch) \
|
| V(CmpMapAndBranch) \
|
| V(CmpT) \
|
| V(ConstantD) \
|
| @@ -127,7 +128,6 @@ class LCodeGen;
|
| V(LoadKeyed) \
|
| V(LoadKeyedGeneric) \
|
| V(LoadNamedField) \
|
| - V(LoadNamedFieldPolymorphic) \
|
| V(LoadNamedGeneric) \
|
| V(MapEnumLength) \
|
| V(MathAbs) \
|
| @@ -188,13 +188,17 @@ class LCodeGen;
|
| V(WrapReceiver)
|
|
|
|
|
| -#define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
|
| - virtual Opcode opcode() const { return LInstruction::k##type; } \
|
| - virtual void CompileToNative(LCodeGen* generator); \
|
| - virtual const char* Mnemonic() const { return mnemonic; } \
|
| - static L##type* cast(LInstruction* instr) { \
|
| - ASSERT(instr->Is##type()); \
|
| - return reinterpret_cast<L##type*>(instr); \
|
| +#define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
|
| + virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
|
| + return LInstruction::k##type; \
|
| + } \
|
| + virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
|
| + virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \
|
| + return mnemonic; \
|
| + } \
|
| + static L##type* cast(LInstruction* instr) { \
|
| + ASSERT(instr->Is##type()); \
|
| + return reinterpret_cast<L##type*>(instr); \
|
| }
|
|
|
|
|
| @@ -204,7 +208,7 @@ class LCodeGen;
|
| }
|
|
|
|
|
| -class LInstruction: public ZoneObject {
|
| +class LInstruction : public ZoneObject {
|
| public:
|
| LInstruction()
|
| : environment_(NULL),
|
| @@ -213,7 +217,7 @@ class LInstruction: public ZoneObject {
|
| set_position(RelocInfo::kNoPosition);
|
| }
|
|
|
| - virtual ~LInstruction() { }
|
| + virtual ~LInstruction() {}
|
|
|
| virtual void CompileToNative(LCodeGen* generator) = 0;
|
| virtual const char* Mnemonic() const = 0;
|
| @@ -273,10 +277,9 @@ class LInstruction: public ZoneObject {
|
| bool ClobbersRegisters() const { return IsCall(); }
|
| virtual bool ClobbersDoubleRegisters() const {
|
| return IsCall() ||
|
| - (!CpuFeatures::IsSupported(SSE2) &&
|
| - // We only have rudimentary X87Stack tracking, thus in general
|
| - // cannot handle deoptimization nor phi-nodes.
|
| - (HasEnvironment() || IsControl()));
|
| + // We only have rudimentary X87Stack tracking, thus in general
|
| + // cannot handle phi-nodes.
|
| + (!CpuFeatures::IsSafeForSnapshot(SSE2) && IsControl());
|
| }
|
|
|
| virtual bool HasResult() const = 0;
|
| @@ -319,11 +322,13 @@ class LInstruction: public ZoneObject {
|
| // I = number of input operands.
|
| // T = number of temporary operands.
|
| template<int R, int I, int T>
|
| -class LTemplateInstruction: public LInstruction {
|
| +class LTemplateInstruction : public LInstruction {
|
| public:
|
| // Allow 0 or 1 output operands.
|
| STATIC_ASSERT(R == 0 || R == 1);
|
| - virtual bool HasResult() const { return R != 0 && result() != NULL; }
|
| + virtual bool HasResult() const V8_FINAL V8_OVERRIDE {
|
| + return R != 0 && result() != NULL;
|
| + }
|
| void set_result(LOperand* operand) { results_[0] = operand; }
|
| LOperand* result() const { return results_[0]; }
|
|
|
| @@ -334,15 +339,15 @@ class LTemplateInstruction: public LInstruction {
|
|
|
| private:
|
| // Iterator support.
|
| - virtual int InputCount() { return I; }
|
| - virtual LOperand* InputAt(int i) { return inputs_[i]; }
|
| + virtual int InputCount() V8_FINAL V8_OVERRIDE { return I; }
|
| + virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; }
|
|
|
| - virtual int TempCount() { return T; }
|
| - virtual LOperand* TempAt(int i) { return temps_[i]; }
|
| + virtual int TempCount() V8_FINAL V8_OVERRIDE { return T; }
|
| + virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return temps_[i]; }
|
| };
|
|
|
|
|
| -class LGap: public LTemplateInstruction<0, 0, 0> {
|
| +class LGap : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| explicit LGap(HBasicBlock* block) : block_(block) {
|
| parallel_moves_[BEFORE] = NULL;
|
| @@ -352,8 +357,8 @@ class LGap: public LTemplateInstruction<0, 0, 0> {
|
| }
|
|
|
| // Can't use the DECLARE-macro here because of sub-classes.
|
| - virtual bool IsGap() const { return true; }
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual bool IsGap() const V8_FINAL V8_OVERRIDE { return true; }
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| static LGap* cast(LInstruction* instr) {
|
| ASSERT(instr->IsGap());
|
| return reinterpret_cast<LGap*>(instr);
|
| @@ -389,11 +394,11 @@ class LGap: public LTemplateInstruction<0, 0, 0> {
|
| };
|
|
|
|
|
| -class LInstructionGap: public LGap {
|
| +class LInstructionGap V8_FINAL : public LGap {
|
| public:
|
| explicit LInstructionGap(HBasicBlock* block) : LGap(block) { }
|
|
|
| - virtual bool HasInterestingComment(LCodeGen* gen) const {
|
| + virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
|
| return !IsRedundant();
|
| }
|
|
|
| @@ -401,14 +406,14 @@ class LInstructionGap: public LGap {
|
| };
|
|
|
|
|
| -class LGoto: public LTemplateInstruction<0, 0, 0> {
|
| +class LGoto V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| explicit LGoto(int block_id) : block_id_(block_id) { }
|
|
|
| - virtual bool HasInterestingComment(LCodeGen* gen) const;
|
| + virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE;
|
| DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
|
| - virtual void PrintDataTo(StringStream* stream);
|
| - virtual bool IsControl() const { return true; }
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| + virtual bool IsControl() const V8_OVERRIDE { return true; }
|
|
|
| int block_id() const { return block_id_; }
|
|
|
| @@ -417,13 +422,13 @@ class LGoto: public LTemplateInstruction<0, 0, 0> {
|
| };
|
|
|
|
|
| -class LLazyBailout: public LTemplateInstruction<0, 0, 0> {
|
| +class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
|
| };
|
|
|
|
|
| -class LDummyUse: public LTemplateInstruction<1, 1, 0> {
|
| +class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LDummyUse(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -432,22 +437,24 @@ class LDummyUse: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
|
| +class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
|
| DECLARE_HYDROGEN_ACCESSOR(Deoptimize)
|
| };
|
|
|
|
|
| -class LLabel: public LGap {
|
| +class LLabel V8_FINAL : public LGap {
|
| public:
|
| explicit LLabel(HBasicBlock* block)
|
| : LGap(block), replacement_(NULL) { }
|
|
|
| - virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
|
| + virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
|
| + return false;
|
| + }
|
| DECLARE_CONCRETE_INSTRUCTION(Label, "label")
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| int block_id() const { return block()->block_id(); }
|
| bool is_loop_header() const { return block()->IsLoopHeader(); }
|
| @@ -463,14 +470,16 @@ class LLabel: public LGap {
|
| };
|
|
|
|
|
| -class LParameter: public LTemplateInstruction<1, 0, 0> {
|
| +class LParameter V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| - virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
|
| + virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
|
| + return false;
|
| + }
|
| DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
|
| };
|
|
|
|
|
| -class LCallStub: public LTemplateInstruction<1, 1, 0> {
|
| +class LCallStub V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LCallStub(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -487,9 +496,11 @@ class LCallStub: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LUnknownOSRValue: public LTemplateInstruction<1, 0, 0> {
|
| +class LUnknownOSRValue V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| - virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
|
| + virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
|
| + return false;
|
| + }
|
| DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
|
| };
|
|
|
| @@ -499,7 +510,7 @@ class LControlInstruction: public LTemplateInstruction<0, I, T> {
|
| public:
|
| LControlInstruction() : false_label_(NULL), true_label_(NULL) { }
|
|
|
| - virtual bool IsControl() const { return true; }
|
| + virtual bool IsControl() const V8_FINAL V8_OVERRIDE { return true; }
|
|
|
| int SuccessorCount() { return hydrogen()->SuccessorCount(); }
|
| HBasicBlock* SuccessorAt(int i) { return hydrogen()->SuccessorAt(i); }
|
| @@ -538,7 +549,7 @@ class LControlInstruction: public LTemplateInstruction<0, I, T> {
|
| };
|
|
|
|
|
| -class LWrapReceiver: public LTemplateInstruction<1, 2, 1> {
|
| +class LWrapReceiver V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LWrapReceiver(LOperand* receiver,
|
| LOperand* function,
|
| @@ -556,7 +567,7 @@ class LWrapReceiver: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
|
| +class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> {
|
| public:
|
| LApplyArguments(LOperand* function,
|
| LOperand* receiver,
|
| @@ -577,7 +588,7 @@ class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
|
| };
|
|
|
|
|
| -class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
|
| +class LAccessArgumentsAt V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) {
|
| inputs_[0] = arguments;
|
| @@ -591,11 +602,11 @@ class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
|
| +class LArgumentsLength V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LArgumentsLength(LOperand* elements) {
|
| inputs_[0] = elements;
|
| @@ -607,20 +618,20 @@ class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
|
| +class LArgumentsElements V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
|
| DECLARE_HYDROGEN_ACCESSOR(ArgumentsElements)
|
| };
|
|
|
|
|
| -class LDebugBreak: public LTemplateInstruction<0, 0, 0> {
|
| +class LDebugBreak V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break")
|
| };
|
|
|
|
|
| -class LModI: public LTemplateInstruction<1, 2, 1> {
|
| +class LModI V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LModI(LOperand* left, LOperand* right, LOperand* temp) {
|
| inputs_[0] = left;
|
| @@ -637,7 +648,7 @@ class LModI: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LDivI: public LTemplateInstruction<1, 2, 1> {
|
| +class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LDivI(LOperand* left, LOperand* right, LOperand* temp) {
|
| inputs_[0] = left;
|
| @@ -655,7 +666,7 @@ class LDivI: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LMathFloorOfDiv: public LTemplateInstruction<1, 2, 1> {
|
| +class LMathFloorOfDiv V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LMathFloorOfDiv(LOperand* left,
|
| LOperand* right,
|
| @@ -674,7 +685,7 @@ class LMathFloorOfDiv: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LMulI: public LTemplateInstruction<1, 2, 1> {
|
| +class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LMulI(LOperand* left, LOperand* right, LOperand* temp) {
|
| inputs_[0] = left;
|
| @@ -691,7 +702,7 @@ class LMulI: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LCompareNumericAndBranch: public LControlInstruction<2, 0> {
|
| +class LCompareNumericAndBranch V8_FINAL : public LControlInstruction<2, 0> {
|
| public:
|
| LCompareNumericAndBranch(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -714,7 +725,7 @@ class LCompareNumericAndBranch: public LControlInstruction<2, 0> {
|
| };
|
|
|
|
|
| -class LMathFloor: public LTemplateInstruction<1, 1, 0> {
|
| +class LMathFloor V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMathFloor(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -727,7 +738,7 @@ class LMathFloor: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LMathRound: public LTemplateInstruction<1, 2, 1> {
|
| +class LMathRound V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LMathRound(LOperand* context, LOperand* value, LOperand* temp) {
|
| inputs_[1] = context;
|
| @@ -744,7 +755,7 @@ class LMathRound: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LMathAbs: public LTemplateInstruction<1, 2, 0> {
|
| +class LMathAbs V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LMathAbs(LOperand* context, LOperand* value) {
|
| inputs_[1] = context;
|
| @@ -759,7 +770,7 @@ class LMathAbs: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LMathLog: public LTemplateInstruction<1, 1, 0> {
|
| +class LMathLog V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMathLog(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -771,7 +782,7 @@ class LMathLog: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LMathSin: public LTemplateInstruction<1, 1, 0> {
|
| +class LMathSin V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMathSin(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -783,7 +794,7 @@ class LMathSin: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LMathCos: public LTemplateInstruction<1, 1, 0> {
|
| +class LMathCos V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMathCos(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -795,7 +806,7 @@ class LMathCos: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LMathTan: public LTemplateInstruction<1, 1, 0> {
|
| +class LMathTan V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMathTan(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -807,7 +818,7 @@ class LMathTan: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LMathExp: public LTemplateInstruction<1, 1, 2> {
|
| +class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> {
|
| public:
|
| LMathExp(LOperand* value,
|
| LOperand* temp1,
|
| @@ -826,7 +837,7 @@ class LMathExp: public LTemplateInstruction<1, 1, 2> {
|
| };
|
|
|
|
|
| -class LMathSqrt: public LTemplateInstruction<1, 1, 0> {
|
| +class LMathSqrt V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMathSqrt(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -838,7 +849,7 @@ class LMathSqrt: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LMathPowHalf: public LTemplateInstruction<1, 2, 1> {
|
| +class LMathPowHalf V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LMathPowHalf(LOperand* context, LOperand* value, LOperand* temp) {
|
| inputs_[1] = context;
|
| @@ -854,7 +865,7 @@ class LMathPowHalf: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
|
| +class LCmpObjectEqAndBranch V8_FINAL : public LControlInstruction<2, 0> {
|
| public:
|
| LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -864,12 +875,24 @@ class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
|
| LOperand* left() { return inputs_[0]; }
|
| LOperand* right() { return inputs_[1]; }
|
|
|
| - DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch,
|
| - "cmp-object-eq-and-branch")
|
| + DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch")
|
| +};
|
| +
|
| +
|
| +class LCmpHoleAndBranch V8_FINAL : public LControlInstruction<1, 0> {
|
| + public:
|
| + explicit LCmpHoleAndBranch(LOperand* object) {
|
| + inputs_[0] = object;
|
| + }
|
| +
|
| + LOperand* object() { return inputs_[0]; }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
|
| + DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
|
| };
|
|
|
|
|
| -class LIsObjectAndBranch: public LControlInstruction<1, 1> {
|
| +class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> {
|
| public:
|
| LIsObjectAndBranch(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -881,11 +904,11 @@ class LIsObjectAndBranch: public LControlInstruction<1, 1> {
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LIsNumberAndBranch: public LControlInstruction<1, 0> {
|
| +class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> {
|
| public:
|
| explicit LIsNumberAndBranch(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -898,7 +921,7 @@ class LIsNumberAndBranch: public LControlInstruction<1, 0> {
|
| };
|
|
|
|
|
| -class LIsStringAndBranch: public LControlInstruction<1, 1> {
|
| +class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> {
|
| public:
|
| LIsStringAndBranch(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -911,11 +934,11 @@ class LIsStringAndBranch: public LControlInstruction<1, 1> {
|
| DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LIsSmiAndBranch: public LControlInstruction<1, 0> {
|
| +class LIsSmiAndBranch V8_FINAL : public LControlInstruction<1, 0> {
|
| public:
|
| explicit LIsSmiAndBranch(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -926,11 +949,11 @@ class LIsSmiAndBranch: public LControlInstruction<1, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
|
| +class LIsUndetectableAndBranch V8_FINAL : public LControlInstruction<1, 1> {
|
| public:
|
| LIsUndetectableAndBranch(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -944,11 +967,11 @@ class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
|
| "is-undetectable-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LStringCompareAndBranch: public LControlInstruction<3, 0> {
|
| +class LStringCompareAndBranch V8_FINAL : public LControlInstruction<3, 0> {
|
| public:
|
| LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) {
|
| inputs_[0] = context;
|
| @@ -963,13 +986,13 @@ class LStringCompareAndBranch: public LControlInstruction<3, 0> {
|
| "string-compare-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| Token::Value op() const { return hydrogen()->token(); }
|
| };
|
|
|
|
|
| -class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> {
|
| +class LHasInstanceTypeAndBranch V8_FINAL : public LControlInstruction<1, 1> {
|
| public:
|
| LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -983,11 +1006,11 @@ class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> {
|
| "has-instance-type-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
|
| +class LGetCachedArrayIndex V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LGetCachedArrayIndex(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1000,7 +1023,8 @@ class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
|
| +class LHasCachedArrayIndexAndBranch V8_FINAL
|
| + : public LControlInstruction<1, 0> {
|
| public:
|
| explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1011,11 +1035,11 @@ class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
|
| "has-cached-array-index-and-branch")
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
|
| +class LIsConstructCallAndBranch V8_FINAL : public LControlInstruction<0, 1> {
|
| public:
|
| explicit LIsConstructCallAndBranch(LOperand* temp) {
|
| temps_[0] = temp;
|
| @@ -1028,7 +1052,7 @@ class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
|
| };
|
|
|
|
|
| -class LClassOfTestAndBranch: public LControlInstruction<1, 2> {
|
| +class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> {
|
| public:
|
| LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) {
|
| inputs_[0] = value;
|
| @@ -1044,11 +1068,11 @@ class LClassOfTestAndBranch: public LControlInstruction<1, 2> {
|
| "class-of-test-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LCmpT: public LTemplateInstruction<1, 3, 0> {
|
| +class LCmpT V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LCmpT(LOperand* context, LOperand* left, LOperand* right) {
|
| inputs_[0] = context;
|
| @@ -1063,7 +1087,7 @@ class LCmpT: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LInstanceOf: public LTemplateInstruction<1, 3, 0> {
|
| +class LInstanceOf V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
|
| inputs_[0] = context;
|
| @@ -1077,7 +1101,7 @@ class LInstanceOf: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 2, 1> {
|
| +class LInstanceOfKnownGlobal V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LInstanceOfKnownGlobal(LOperand* context, LOperand* value, LOperand* temp) {
|
| inputs_[0] = context;
|
| @@ -1096,7 +1120,8 @@ class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 2, 1> {
|
| LEnvironment* GetDeferredLazyDeoptimizationEnvironment() {
|
| return lazy_deopt_env_;
|
| }
|
| - virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
|
| + virtual void SetDeferredLazyDeoptimizationEnvironment(
|
| + LEnvironment* env) V8_OVERRIDE {
|
| lazy_deopt_env_ = env;
|
| }
|
|
|
| @@ -1105,7 +1130,7 @@ class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LInstanceSize: public LTemplateInstruction<1, 1, 0> {
|
| +class LInstanceSize V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LInstanceSize(LOperand* object) {
|
| inputs_[0] = object;
|
| @@ -1118,7 +1143,7 @@ class LInstanceSize: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
|
| +class LBoundsCheck V8_FINAL : public LTemplateInstruction<0, 2, 0> {
|
| public:
|
| LBoundsCheck(LOperand* index, LOperand* length) {
|
| inputs_[0] = index;
|
| @@ -1133,7 +1158,7 @@ class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
|
| };
|
|
|
|
|
| -class LBitI: public LTemplateInstruction<1, 2, 0> {
|
| +class LBitI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LBitI(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -1150,7 +1175,7 @@ class LBitI: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LShiftI: public LTemplateInstruction<1, 2, 0> {
|
| +class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
|
| : op_(op), can_deopt_(can_deopt) {
|
| @@ -1172,7 +1197,7 @@ class LShiftI: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LSubI: public LTemplateInstruction<1, 2, 0> {
|
| +class LSubI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LSubI(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -1187,7 +1212,7 @@ class LSubI: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LConstantI: public LTemplateInstruction<1, 0, 0> {
|
| +class LConstantI V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Constant)
|
| @@ -1196,7 +1221,7 @@ class LConstantI: public LTemplateInstruction<1, 0, 0> {
|
| };
|
|
|
|
|
| -class LConstantS: public LTemplateInstruction<1, 0, 0> {
|
| +class LConstantS V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s")
|
| DECLARE_HYDROGEN_ACCESSOR(Constant)
|
| @@ -1205,7 +1230,7 @@ class LConstantS: public LTemplateInstruction<1, 0, 0> {
|
| };
|
|
|
|
|
| -class LConstantD: public LTemplateInstruction<1, 0, 1> {
|
| +class LConstantD V8_FINAL : public LTemplateInstruction<1, 0, 1> {
|
| public:
|
| explicit LConstantD(LOperand* temp) {
|
| temps_[0] = temp;
|
| @@ -1220,7 +1245,7 @@ class LConstantD: public LTemplateInstruction<1, 0, 1> {
|
| };
|
|
|
|
|
| -class LConstantE: public LTemplateInstruction<1, 0, 0> {
|
| +class LConstantE V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e")
|
| DECLARE_HYDROGEN_ACCESSOR(Constant)
|
| @@ -1231,7 +1256,7 @@ class LConstantE: public LTemplateInstruction<1, 0, 0> {
|
| };
|
|
|
|
|
| -class LConstantT: public LTemplateInstruction<1, 0, 0> {
|
| +class LConstantT V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
|
| DECLARE_HYDROGEN_ACCESSOR(Constant)
|
| @@ -1240,7 +1265,7 @@ class LConstantT: public LTemplateInstruction<1, 0, 0> {
|
| };
|
|
|
|
|
| -class LBranch: public LControlInstruction<1, 1> {
|
| +class LBranch V8_FINAL : public LControlInstruction<1, 1> {
|
| public:
|
| LBranch(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -1253,11 +1278,11 @@ class LBranch: public LControlInstruction<1, 1> {
|
| DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
|
| DECLARE_HYDROGEN_ACCESSOR(Branch)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LCmpMapAndBranch: public LControlInstruction<1, 0> {
|
| +class LCmpMapAndBranch V8_FINAL : public LControlInstruction<1, 0> {
|
| public:
|
| explicit LCmpMapAndBranch(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1272,7 +1297,7 @@ class LCmpMapAndBranch: public LControlInstruction<1, 0> {
|
| };
|
|
|
|
|
| -class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
|
| +class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LMapEnumLength(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1284,7 +1309,7 @@ class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LElementsKind: public LTemplateInstruction<1, 1, 0> {
|
| +class LElementsKind V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LElementsKind(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1297,7 +1322,7 @@ class LElementsKind: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LValueOf: public LTemplateInstruction<1, 1, 1> {
|
| +class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LValueOf(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -1312,7 +1337,7 @@ class LValueOf: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| -class LDateField: public LTemplateInstruction<1, 1, 1> {
|
| +class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LDateField(LOperand* date, LOperand* temp, Smi* index)
|
| : index_(index) {
|
| @@ -1333,7 +1358,7 @@ class LDateField: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| -class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> {
|
| +class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LSeqStringSetChar(String::Encoding encoding,
|
| LOperand* string,
|
| @@ -1357,7 +1382,7 @@ class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LThrow: public LTemplateInstruction<0, 2, 0> {
|
| +class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
|
| public:
|
| LThrow(LOperand* context, LOperand* value) {
|
| inputs_[0] = context;
|
| @@ -1371,7 +1396,7 @@ class LThrow: public LTemplateInstruction<0, 2, 0> {
|
| };
|
|
|
|
|
| -class LAddI: public LTemplateInstruction<1, 2, 0> {
|
| +class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LAddI(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -1391,7 +1416,7 @@ class LAddI: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
|
| +class LMathMinMax V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LMathMinMax(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -1406,7 +1431,7 @@ class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LPower: public LTemplateInstruction<1, 2, 0> {
|
| +class LPower V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LPower(LOperand* left, LOperand* right) {
|
| inputs_[0] = left;
|
| @@ -1421,7 +1446,7 @@ class LPower: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LRandom: public LTemplateInstruction<1, 1, 0> {
|
| +class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LRandom(LOperand* global_object) {
|
| inputs_[0] = global_object;
|
| @@ -1434,7 +1459,7 @@ class LRandom: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
|
| +class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
|
| : op_(op) {
|
| @@ -1447,16 +1472,18 @@ class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
|
|
|
| Token::Value op() const { return op_; }
|
|
|
| - virtual Opcode opcode() const { return LInstruction::kArithmeticD; }
|
| - virtual void CompileToNative(LCodeGen* generator);
|
| - virtual const char* Mnemonic() const;
|
| + virtual Opcode opcode() const V8_OVERRIDE {
|
| + return LInstruction::kArithmeticD;
|
| + }
|
| + virtual void CompileToNative(LCodeGen* generator) V8_OVERRIDE;
|
| + virtual const char* Mnemonic() const V8_OVERRIDE;
|
|
|
| private:
|
| Token::Value op_;
|
| };
|
|
|
|
|
| -class LArithmeticT: public LTemplateInstruction<1, 3, 0> {
|
| +class LArithmeticT V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LArithmeticT(Token::Value op,
|
| LOperand* context,
|
| @@ -1472,9 +1499,11 @@ class LArithmeticT: public LTemplateInstruction<1, 3, 0> {
|
| LOperand* left() { return inputs_[1]; }
|
| LOperand* right() { return inputs_[2]; }
|
|
|
| - virtual Opcode opcode() const { return LInstruction::kArithmeticT; }
|
| - virtual void CompileToNative(LCodeGen* generator);
|
| - virtual const char* Mnemonic() const;
|
| + virtual Opcode opcode() const V8_OVERRIDE {
|
| + return LInstruction::kArithmeticT;
|
| + }
|
| + virtual void CompileToNative(LCodeGen* generator) V8_OVERRIDE;
|
| + virtual const char* Mnemonic() const V8_OVERRIDE;
|
|
|
| Token::Value op() const { return op_; }
|
|
|
| @@ -1483,7 +1512,7 @@ class LArithmeticT: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LReturn: public LTemplateInstruction<0, 3, 0> {
|
| +class LReturn V8_FINAL : public LTemplateInstruction<0, 3, 0> {
|
| public:
|
| explicit LReturn(LOperand* value, LOperand* context,
|
| LOperand* parameter_count) {
|
| @@ -1506,17 +1535,12 @@ class LReturn: public LTemplateInstruction<0, 3, 0> {
|
| };
|
|
|
|
|
| -class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
|
| +class LLoadNamedField V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LLoadNamedField(LOperand* object) {
|
| inputs_[0] = object;
|
| }
|
|
|
| - virtual bool ClobbersDoubleRegisters() const {
|
| - return !CpuFeatures::IsSupported(SSE2) &&
|
| - !hydrogen()->representation().IsDouble();
|
| - }
|
| -
|
| LOperand* object() { return inputs_[0]; }
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
|
| @@ -1524,22 +1548,7 @@ class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 2, 0> {
|
| - public:
|
| - LLoadNamedFieldPolymorphic(LOperand* context, LOperand* object) {
|
| - inputs_[0] = context;
|
| - inputs_[1] = object;
|
| - }
|
| -
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* object() { return inputs_[1]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
|
| - DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
|
| -};
|
| -
|
| -
|
| -class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
|
| +class LLoadNamedGeneric V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LLoadNamedGeneric(LOperand* context, LOperand* object) {
|
| inputs_[0] = context;
|
| @@ -1556,7 +1565,7 @@ class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 1> {
|
| +class LLoadFunctionPrototype V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LLoadFunctionPrototype(LOperand* function, LOperand* temp) {
|
| inputs_[0] = function;
|
| @@ -1571,7 +1580,8 @@ class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| -class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
|
| +class LLoadExternalArrayPointer V8_FINAL
|
| + : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LLoadExternalArrayPointer(LOperand* object) {
|
| inputs_[0] = object;
|
| @@ -1584,7 +1594,7 @@ class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LLoadKeyed: public LTemplateInstruction<1, 2, 0> {
|
| +class LLoadKeyed V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LLoadKeyed(LOperand* elements, LOperand* key) {
|
| inputs_[0] = elements;
|
| @@ -1599,7 +1609,7 @@ class LLoadKeyed: public LTemplateInstruction<1, 2, 0> {
|
| return hydrogen()->is_external();
|
| }
|
|
|
| - virtual bool ClobbersDoubleRegisters() const {
|
| + virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE {
|
| return !CpuFeatures::IsSupported(SSE2) &&
|
| !IsDoubleOrFloatElementsKind(hydrogen()->elements_kind());
|
| }
|
| @@ -1607,7 +1617,7 @@ class LLoadKeyed: public LTemplateInstruction<1, 2, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| uint32_t additional_index() const { return hydrogen()->index_offset(); }
|
| bool key_is_smi() {
|
| return hydrogen()->key()->representation().IsTagged();
|
| @@ -1628,7 +1638,7 @@ inline static bool ExternalArrayOpRequiresTemp(
|
| }
|
|
|
|
|
| -class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
|
| +class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) {
|
| inputs_[0] = context;
|
| @@ -1644,14 +1654,14 @@ class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
|
| +class LLoadGlobalCell V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
|
| };
|
|
|
|
|
| -class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
|
| +class LLoadGlobalGeneric V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LLoadGlobalGeneric(LOperand* context, LOperand* global_object) {
|
| inputs_[0] = context;
|
| @@ -1669,7 +1679,7 @@ class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> {
|
| +class LStoreGlobalCell V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LStoreGlobalCell(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1682,7 +1692,7 @@ class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> {
|
| +class LStoreGlobalGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> {
|
| public:
|
| LStoreGlobalGeneric(LOperand* context,
|
| LOperand* global_object,
|
| @@ -1704,7 +1714,7 @@ class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> {
|
| };
|
|
|
|
|
| -class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
|
| +class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LLoadContextSlot(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -1717,11 +1727,11 @@ class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
|
|
|
| int slot_index() { return hydrogen()->slot_index(); }
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
|
| +class LStoreContextSlot V8_FINAL : public LTemplateInstruction<0, 2, 1> {
|
| public:
|
| LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) {
|
| inputs_[0] = context;
|
| @@ -1738,11 +1748,11 @@ class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
|
|
|
| int slot_index() { return hydrogen()->slot_index(); }
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LPushArgument: public LTemplateInstruction<0, 1, 0> {
|
| +class LPushArgument V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LPushArgument(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -1754,7 +1764,7 @@ class LPushArgument: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LDrop: public LTemplateInstruction<0, 0, 0> {
|
| +class LDrop V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| explicit LDrop(int count) : count_(count) { }
|
|
|
| @@ -1767,7 +1777,7 @@ class LDrop: public LTemplateInstruction<0, 0, 0> {
|
| };
|
|
|
|
|
| -class LInnerAllocatedObject: public LTemplateInstruction<1, 1, 0> {
|
| +class LInnerAllocatedObject V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LInnerAllocatedObject(LOperand* base_object) {
|
| inputs_[0] = base_object;
|
| @@ -1783,21 +1793,21 @@ class LInnerAllocatedObject: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LThisFunction: public LTemplateInstruction<1, 0, 0> {
|
| +class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
|
| DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
|
| };
|
|
|
|
|
| -class LContext: public LTemplateInstruction<1, 0, 0> {
|
| +class LContext V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(Context, "context")
|
| DECLARE_HYDROGEN_ACCESSOR(Context)
|
| };
|
|
|
|
|
| -class LOuterContext: public LTemplateInstruction<1, 1, 0> {
|
| +class LOuterContext V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LOuterContext(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -1809,7 +1819,7 @@ class LOuterContext: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LDeclareGlobals: public LTemplateInstruction<0, 1, 0> {
|
| +class LDeclareGlobals V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LDeclareGlobals(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -1822,7 +1832,7 @@ class LDeclareGlobals: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LGlobalObject: public LTemplateInstruction<1, 1, 0> {
|
| +class LGlobalObject V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LGlobalObject(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -1834,7 +1844,7 @@ class LGlobalObject: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
|
| +class LGlobalReceiver V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LGlobalReceiver(LOperand* global_object) {
|
| inputs_[0] = global_object;
|
| @@ -1846,19 +1856,19 @@ class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> {
|
| +class LCallConstantFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
|
| DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| Handle<JSFunction> function() { return hydrogen()->function(); }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LInvokeFunction: public LTemplateInstruction<1, 2, 0> {
|
| +class LInvokeFunction V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LInvokeFunction(LOperand* context, LOperand* function) {
|
| inputs_[0] = context;
|
| @@ -1871,13 +1881,13 @@ class LInvokeFunction: public LTemplateInstruction<1, 2, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
|
| DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallKeyed: public LTemplateInstruction<1, 2, 0> {
|
| +class LCallKeyed V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LCallKeyed(LOperand* context, LOperand* key) {
|
| inputs_[0] = context;
|
| @@ -1890,13 +1900,13 @@ class LCallKeyed: public LTemplateInstruction<1, 2, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
|
| DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallNamed: public LTemplateInstruction<1, 1, 0> {
|
| +class LCallNamed V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LCallNamed(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -1907,14 +1917,14 @@ class LCallNamed: public LTemplateInstruction<1, 1, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
|
| DECLARE_HYDROGEN_ACCESSOR(CallNamed)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| Handle<String> name() const { return hydrogen()->name(); }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallFunction: public LTemplateInstruction<1, 2, 0> {
|
| +class LCallFunction V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| explicit LCallFunction(LOperand* context, LOperand* function) {
|
| inputs_[0] = context;
|
| @@ -1931,7 +1941,7 @@ class LCallFunction: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LCallGlobal: public LTemplateInstruction<1, 1, 0> {
|
| +class LCallGlobal V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LCallGlobal(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -1942,25 +1952,25 @@ class LCallGlobal: public LTemplateInstruction<1, 1, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
|
| DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| Handle<String> name() const {return hydrogen()->name(); }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
|
| +class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
|
| DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallNew: public LTemplateInstruction<1, 2, 0> {
|
| +class LCallNew V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LCallNew(LOperand* context, LOperand* constructor) {
|
| inputs_[0] = context;
|
| @@ -1973,13 +1983,13 @@ class LCallNew: public LTemplateInstruction<1, 2, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
|
| DECLARE_HYDROGEN_ACCESSOR(CallNew)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallNewArray: public LTemplateInstruction<1, 2, 0> {
|
| +class LCallNewArray V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LCallNewArray(LOperand* context, LOperand* constructor) {
|
| inputs_[0] = context;
|
| @@ -1992,13 +2002,13 @@ class LCallNewArray: public LTemplateInstruction<1, 2, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(CallNewArray, "call-new-array")
|
| DECLARE_HYDROGEN_ACCESSOR(CallNewArray)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
|
|
| -class LCallRuntime: public LTemplateInstruction<1, 1, 0> {
|
| +class LCallRuntime V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LCallRuntime(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -2014,7 +2024,7 @@ class LCallRuntime: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
|
| +class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LInteger32ToDouble(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2026,7 +2036,7 @@ class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LInteger32ToSmi: public LTemplateInstruction<1, 1, 0> {
|
| +class LInteger32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LInteger32ToSmi(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2039,7 +2049,7 @@ class LInteger32ToSmi: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> {
|
| +class LUint32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| explicit LUint32ToDouble(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2053,7 +2063,7 @@ class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| -class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
|
| +class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LNumberTagI(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2065,7 +2075,7 @@ class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LNumberTagU: public LTemplateInstruction<1, 1, 1> {
|
| +class LNumberTagU V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LNumberTagU(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2079,7 +2089,7 @@ class LNumberTagU: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| -class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
|
| +class LNumberTagD V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LNumberTagD(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2095,7 +2105,7 @@ class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
|
|
|
|
|
| // Sometimes truncating conversion from a tagged value to an int32.
|
| -class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
|
| +class LDoubleToI V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LDoubleToI(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2112,7 +2122,7 @@ class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| -class LDoubleToSmi: public LTemplateInstruction<1, 1, 0> {
|
| +class LDoubleToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LDoubleToSmi(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2126,7 +2136,7 @@ class LDoubleToSmi: public LTemplateInstruction<1, 1, 0> {
|
|
|
|
|
| // Truncating conversion from a tagged value to an int32.
|
| -class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
|
| +class LTaggedToI V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LTaggedToI(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2144,7 +2154,7 @@ class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
|
|
|
|
|
| // Truncating conversion from a tagged value to an int32.
|
| -class LTaggedToINoSSE2: public LTemplateInstruction<1, 1, 3> {
|
| +class LTaggedToINoSSE2 V8_FINAL : public LTemplateInstruction<1, 1, 3> {
|
| public:
|
| LTaggedToINoSSE2(LOperand* value,
|
| LOperand* temp1,
|
| @@ -2168,7 +2178,7 @@ class LTaggedToINoSSE2: public LTemplateInstruction<1, 1, 3> {
|
| };
|
|
|
|
|
| -class LSmiTag: public LTemplateInstruction<1, 1, 0> {
|
| +class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LSmiTag(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2180,7 +2190,7 @@ class LSmiTag: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LNumberUntagD: public LTemplateInstruction<1, 1, 1> {
|
| +class LNumberUntagD V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| explicit LNumberUntagD(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2190,14 +2200,12 @@ class LNumberUntagD: public LTemplateInstruction<1, 1, 1> {
|
| LOperand* value() { return inputs_[0]; }
|
| LOperand* temp() { return temps_[0]; }
|
|
|
| - virtual bool ClobbersDoubleRegisters() const { return false; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
|
| DECLARE_HYDROGEN_ACCESSOR(Change);
|
| };
|
|
|
|
|
| -class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
|
| +class LSmiUntag V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| LSmiUntag(LOperand* value, bool needs_check)
|
| : needs_check_(needs_check) {
|
| @@ -2215,7 +2223,7 @@ class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LStoreNamedField: public LTemplateInstruction<0, 2, 2> {
|
| +class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 2> {
|
| public:
|
| LStoreNamedField(LOperand* obj,
|
| LOperand* val,
|
| @@ -2235,7 +2243,7 @@ class LStoreNamedField: public LTemplateInstruction<0, 2, 2> {
|
| DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| Handle<Map> transition() const { return hydrogen()->transition_map(); }
|
| Representation representation() const {
|
| @@ -2244,7 +2252,7 @@ class LStoreNamedField: public LTemplateInstruction<0, 2, 2> {
|
| };
|
|
|
|
|
| -class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
|
| +class LStoreNamedGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> {
|
| public:
|
| LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) {
|
| inputs_[0] = context;
|
| @@ -2259,13 +2267,13 @@ class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| Handle<Object> name() const { return hydrogen()->name(); }
|
| StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
|
| };
|
|
|
|
|
| -class LStoreKeyed: public LTemplateInstruction<0, 3, 0> {
|
| +class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> {
|
| public:
|
| LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) {
|
| inputs_[0] = obj;
|
| @@ -2284,13 +2292,13 @@ class LStoreKeyed: public LTemplateInstruction<0, 3, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| uint32_t additional_index() const { return hydrogen()->index_offset(); }
|
| bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
|
| };
|
|
|
|
|
| -class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
|
| +class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> {
|
| public:
|
| LStoreKeyedGeneric(LOperand* context,
|
| LOperand* object,
|
| @@ -2310,13 +2318,13 @@ class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
|
| DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
|
| };
|
|
|
|
|
| -class LTransitionElementsKind: public LTemplateInstruction<0, 2, 2> {
|
| +class LTransitionElementsKind V8_FINAL : public LTemplateInstruction<0, 2, 2> {
|
| public:
|
| LTransitionElementsKind(LOperand* object,
|
| LOperand* context,
|
| @@ -2337,7 +2345,7 @@ class LTransitionElementsKind: public LTemplateInstruction<0, 2, 2> {
|
| "transition-elements-kind")
|
| DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind)
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
|
|
| Handle<Map> original_map() { return hydrogen()->original_map(); }
|
| Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); }
|
| @@ -2346,7 +2354,7 @@ class LTransitionElementsKind: public LTemplateInstruction<0, 2, 2> {
|
| };
|
|
|
|
|
| -class LTrapAllocationMemento : public LTemplateInstruction<0, 1, 1> {
|
| +class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> {
|
| public:
|
| LTrapAllocationMemento(LOperand* object,
|
| LOperand* temp) {
|
| @@ -2362,7 +2370,7 @@ class LTrapAllocationMemento : public LTemplateInstruction<0, 1, 1> {
|
| };
|
|
|
|
|
| -class LStringAdd: public LTemplateInstruction<1, 3, 0> {
|
| +class LStringAdd V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LStringAdd(LOperand* context, LOperand* left, LOperand* right) {
|
| inputs_[0] = context;
|
| @@ -2379,7 +2387,7 @@ class LStringAdd: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LStringCharCodeAt: public LTemplateInstruction<1, 3, 0> {
|
| +class LStringCharCodeAt V8_FINAL : public LTemplateInstruction<1, 3, 0> {
|
| public:
|
| LStringCharCodeAt(LOperand* context, LOperand* string, LOperand* index) {
|
| inputs_[0] = context;
|
| @@ -2396,7 +2404,7 @@ class LStringCharCodeAt: public LTemplateInstruction<1, 3, 0> {
|
| };
|
|
|
|
|
| -class LStringCharFromCode: public LTemplateInstruction<1, 2, 0> {
|
| +class LStringCharFromCode V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LStringCharFromCode(LOperand* context, LOperand* char_code) {
|
| inputs_[0] = context;
|
| @@ -2411,7 +2419,7 @@ class LStringCharFromCode: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
|
| +class LCheckFunction V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LCheckFunction(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2424,7 +2432,7 @@ class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LCheckInstanceType: public LTemplateInstruction<0, 1, 1> {
|
| +class LCheckInstanceType V8_FINAL : public LTemplateInstruction<0, 1, 1> {
|
| public:
|
| LCheckInstanceType(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2439,7 +2447,7 @@ class LCheckInstanceType: public LTemplateInstruction<0, 1, 1> {
|
| };
|
|
|
|
|
| -class LCheckMaps: public LTemplateInstruction<0, 1, 0> {
|
| +class LCheckMaps V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LCheckMaps(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2452,7 +2460,7 @@ class LCheckMaps: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
|
| +class LCheckSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LCheckSmi(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2464,7 +2472,7 @@ class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
|
| +class LClampDToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LClampDToUint8(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2476,7 +2484,7 @@ class LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LClampIToUint8: public LTemplateInstruction<1, 1, 0> {
|
| +class LClampIToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LClampIToUint8(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2488,7 +2496,7 @@ class LClampIToUint8: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LClampTToUint8: public LTemplateInstruction<1, 1, 1> {
|
| +class LClampTToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| LClampTToUint8(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| @@ -2502,7 +2510,7 @@ class LClampTToUint8: public LTemplateInstruction<1, 1, 1> {
|
|
|
|
|
| // Truncating conversion from a tagged value to an int32.
|
| -class LClampTToUint8NoSSE2: public LTemplateInstruction<1, 1, 3> {
|
| +class LClampTToUint8NoSSE2 V8_FINAL : public LTemplateInstruction<1, 1, 3> {
|
| public:
|
| LClampTToUint8NoSSE2(LOperand* unclamped,
|
| LOperand* temp1,
|
| @@ -2525,7 +2533,7 @@ class LClampTToUint8NoSSE2: public LTemplateInstruction<1, 1, 3> {
|
| };
|
|
|
|
|
| -class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
|
| +class LCheckNonSmi V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LCheckNonSmi(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2538,7 +2546,7 @@ class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LAllocate: public LTemplateInstruction<1, 2, 1> {
|
| +class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 1> {
|
| public:
|
| LAllocate(LOperand* context, LOperand* size, LOperand* temp) {
|
| inputs_[0] = context;
|
| @@ -2555,7 +2563,7 @@ class LAllocate: public LTemplateInstruction<1, 2, 1> {
|
| };
|
|
|
|
|
| -class LRegExpLiteral: public LTemplateInstruction<1, 1, 0> {
|
| +class LRegExpLiteral V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LRegExpLiteral(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -2568,7 +2576,7 @@ class LRegExpLiteral: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LFunctionLiteral: public LTemplateInstruction<1, 1, 0> {
|
| +class LFunctionLiteral V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LFunctionLiteral(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -2581,7 +2589,7 @@ class LFunctionLiteral: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
|
| +class LToFastProperties V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LToFastProperties(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2594,7 +2602,7 @@ class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LTypeof: public LTemplateInstruction<1, 2, 0> {
|
| +class LTypeof V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LTypeof(LOperand* context, LOperand* value) {
|
| inputs_[0] = context;
|
| @@ -2608,7 +2616,7 @@ class LTypeof: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
|
| +class LTypeofIsAndBranch V8_FINAL : public LControlInstruction<1, 0> {
|
| public:
|
| explicit LTypeofIsAndBranch(LOperand* value) {
|
| inputs_[0] = value;
|
| @@ -2621,20 +2629,20 @@ class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
|
|
|
| Handle<String> type_literal() { return hydrogen()->type_literal(); }
|
|
|
| - virtual void PrintDataTo(StringStream* stream);
|
| + virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
|
| };
|
|
|
|
|
| -class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
|
| +class LOsrEntry V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
| public:
|
| - LOsrEntry() {}
|
| -
|
| - virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
|
| + virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
|
| + return false;
|
| + }
|
| DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
|
| };
|
|
|
|
|
| -class LStackCheck: public LTemplateInstruction<0, 1, 0> {
|
| +class LStackCheck V8_FINAL : public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LStackCheck(LOperand* context) {
|
| inputs_[0] = context;
|
| @@ -2652,7 +2660,7 @@ class LStackCheck: public LTemplateInstruction<0, 1, 0> {
|
| };
|
|
|
|
|
| -class LForInPrepareMap: public LTemplateInstruction<1, 2, 0> {
|
| +class LForInPrepareMap V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LForInPrepareMap(LOperand* context, LOperand* object) {
|
| inputs_[0] = context;
|
| @@ -2666,7 +2674,7 @@ class LForInPrepareMap: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LForInCacheArray: public LTemplateInstruction<1, 1, 0> {
|
| +class LForInCacheArray V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LForInCacheArray(LOperand* map) {
|
| inputs_[0] = map;
|
| @@ -2682,7 +2690,7 @@ class LForInCacheArray: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| -class LCheckMapValue: public LTemplateInstruction<0, 2, 0> {
|
| +class LCheckMapValue V8_FINAL : public LTemplateInstruction<0, 2, 0> {
|
| public:
|
| LCheckMapValue(LOperand* value, LOperand* map) {
|
| inputs_[0] = value;
|
| @@ -2696,7 +2704,7 @@ class LCheckMapValue: public LTemplateInstruction<0, 2, 0> {
|
| };
|
|
|
|
|
| -class LLoadFieldByIndex: public LTemplateInstruction<1, 2, 0> {
|
| +class LLoadFieldByIndex V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| public:
|
| LLoadFieldByIndex(LOperand* object, LOperand* index) {
|
| inputs_[0] = object;
|
| @@ -2711,7 +2719,7 @@ class LLoadFieldByIndex: public LTemplateInstruction<1, 2, 0> {
|
|
|
|
|
| class LChunkBuilder;
|
| -class LPlatformChunk: public LChunk {
|
| +class LPlatformChunk V8_FINAL : public LChunk {
|
| public:
|
| LPlatformChunk(CompilationInfo* info, HGraph* graph)
|
| : LChunk(info, graph),
|
| @@ -2727,7 +2735,7 @@ class LPlatformChunk: public LChunk {
|
| };
|
|
|
|
|
| -class LChunkBuilder BASE_EMBEDDED {
|
| +class LChunkBuilder V8_FINAL BASE_EMBEDDED {
|
| public:
|
| LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator)
|
| : chunk_(NULL),
|
|
|