| Index: src/ia32/lithium-ia32.h
|
| diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
|
| index 4643f95f48e2f4f5fbaeadfa4894bcc637098d95..83a6c6f32b042df99551db1a616fb64bdc8fd203 100644
|
| --- a/src/ia32/lithium-ia32.h
|
| +++ b/src/ia32/lithium-ia32.h
|
| @@ -257,6 +257,9 @@ class LInstruction: public ZoneObject {
|
| virtual bool HasResult() const = 0;
|
| virtual LOperand* result() = 0;
|
|
|
| + virtual int TempCount() = 0;
|
| + virtual LOperand* TempAt(int i) = 0;
|
| +
|
| LOperand* FirstInput() { return InputAt(0); }
|
| LOperand* Output() { return HasResult() ? result() : NULL; }
|
|
|
| @@ -270,10 +273,6 @@ class LInstruction: public ZoneObject {
|
| virtual int InputCount() = 0;
|
| virtual LOperand* InputAt(int i) = 0;
|
|
|
| - friend class TempIterator;
|
| - virtual int TempCount() = 0;
|
| - virtual LOperand* TempAt(int i) = 0;
|
| -
|
| LEnvironment* environment_;
|
| SetOncePointer<LPointerMap> pointer_map_;
|
| HValue* hydrogen_value_;
|
| @@ -293,18 +292,18 @@ class LTemplateInstruction: public LInstruction {
|
| void set_result(LOperand* operand) { results_[0] = operand; }
|
| LOperand* result() { return results_[0]; }
|
|
|
| + LOperand* InputAt(int i) { return inputs_[i]; }
|
| +
|
| + int TempCount() { return T; }
|
| + LOperand* TempAt(int i) { return temps_[i]; }
|
| +
|
| protected:
|
| EmbeddedContainer<LOperand*, R> results_;
|
| EmbeddedContainer<LOperand*, I> inputs_;
|
| EmbeddedContainer<LOperand*, T> temps_;
|
|
|
| private:
|
| - // Iterator support.
|
| virtual int InputCount() { return I; }
|
| - virtual LOperand* InputAt(int i) { return inputs_[i]; }
|
| -
|
| - virtual int TempCount() { return T; }
|
| - virtual LOperand* TempAt(int i) { return temps_[i]; }
|
| };
|
|
|
|
|
| @@ -424,11 +423,11 @@ class LCallStub: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
|
| DECLARE_HYDROGEN_ACCESSOR(CallStub)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| +
|
| TranscendentalCache::Type transcendental_type() {
|
| return hydrogen()->transcendental_type();
|
| }
|
| @@ -468,11 +467,10 @@ class LWrapReceiver: public LTemplateInstruction<1, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
|
| +
|
| LOperand* receiver() { return inputs_[0]; }
|
| LOperand* function() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
|
| };
|
|
|
|
|
| @@ -488,12 +486,12 @@ class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
|
| inputs_[3] = elements;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
|
| +
|
| LOperand* function() { return inputs_[0]; }
|
| LOperand* receiver() { return inputs_[1]; }
|
| LOperand* length() { return inputs_[2]; }
|
| LOperand* elements() { return inputs_[3]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
|
| };
|
|
|
|
|
| @@ -505,12 +503,12 @@ class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = index;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
|
| +
|
| LOperand* arguments() { return inputs_[0]; }
|
| LOperand* length() { return inputs_[1]; }
|
| LOperand* index() { return inputs_[2]; }
|
|
|
| - DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
|
| -
|
| virtual void PrintDataTo(StringStream* stream);
|
| };
|
|
|
| @@ -521,8 +519,6 @@ class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = elements;
|
| }
|
|
|
| - LOperand* elements() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
|
| };
|
|
|
| @@ -542,10 +538,6 @@ class LModI: public LTemplateInstruction<1, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Mod)
|
| };
|
| @@ -559,9 +551,6 @@ class LDivI: public LTemplateInstruction<1, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Div)
|
| };
|
| @@ -577,10 +566,6 @@ class LMathFloorOfDiv: public LTemplateInstruction<1, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div")
|
| DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv)
|
| };
|
| @@ -594,10 +579,6 @@ class LMulI: public LTemplateInstruction<1, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Mul)
|
| };
|
| @@ -610,9 +591,6 @@ class LCmpIDAndBranch: public LControlInstruction<2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch)
|
|
|
| @@ -668,9 +646,6 @@ class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch,
|
| "cmp-object-eq-and-branch")
|
| };
|
| @@ -682,8 +657,6 @@ class LCmpConstantEqAndBranch: public LControlInstruction<1, 0> {
|
| inputs_[0] = left;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch,
|
| "cmp-constant-eq-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch)
|
| @@ -697,9 +670,6 @@ class LIsNilAndBranch: public LControlInstruction<1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch)
|
|
|
| @@ -717,9 +687,6 @@ class LIsObjectAndBranch: public LControlInstruction<1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| @@ -733,9 +700,6 @@ class LIsStringAndBranch: public LControlInstruction<1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch")
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| @@ -748,8 +712,6 @@ class LIsSmiAndBranch: public LControlInstruction<1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch)
|
|
|
| @@ -764,9 +726,6 @@ class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch,
|
| "is-undetectable-and-branch")
|
|
|
| @@ -782,9 +741,6 @@ class LStringCompareAndBranch: public LControlInstruction<3, 0> {
|
| inputs_[2] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[1]; }
|
| - LOperand* right() { return inputs_[2]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
|
| "string-compare-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
|
| @@ -802,9 +758,6 @@ class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
|
| "has-instance-type-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
|
| @@ -819,8 +772,6 @@ class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
|
| DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
|
| };
|
| @@ -832,11 +783,8 @@ class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
|
| "has-cached-array-index-and-branch")
|
| -
|
| virtual void PrintDataTo(StringStream* stream);
|
| };
|
|
|
| @@ -847,8 +795,6 @@ class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
|
| "is-construct-call-and-branch")
|
| };
|
| @@ -862,10 +808,6 @@ class LClassOfTestAndBranch: public LControlInstruction<1, 2> {
|
| temps_[1] = temp2;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| - LOperand* temp2() { return temps_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
|
| "class-of-test-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch)
|
| @@ -897,9 +839,9 @@ class LInstanceOf: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = right;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
|
| +
|
| + LOperand* context() { return inputs_[0]; }
|
| };
|
|
|
|
|
| @@ -911,9 +853,6 @@ class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
|
| "instance-of-known-global")
|
| DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
|
| @@ -953,13 +892,10 @@ class LBitI: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| + Token::Value op() const { return hydrogen()->op(); }
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Bitwise)
|
| -
|
| - Token::Value op() const { return hydrogen()->op(); }
|
| };
|
|
|
|
|
| @@ -971,14 +907,12 @@ class LShiftI: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
|
| -
|
| Token::Value op() const { return op_; }
|
| +
|
| bool can_deopt() const { return can_deopt_; }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
|
| +
|
| private:
|
| Token::Value op_;
|
| bool can_deopt_;
|
| @@ -992,9 +926,6 @@ class LSubI: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Sub)
|
| };
|
| @@ -1015,8 +946,6 @@ class LConstantD: public LTemplateInstruction<1, 0, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
|
| DECLARE_HYDROGEN_ACCESSOR(Constant)
|
|
|
| @@ -1035,14 +964,11 @@ class LConstantT: public LTemplateInstruction<1, 0, 0> {
|
|
|
| class LBranch: public LControlInstruction<1, 1> {
|
| public:
|
| - LBranch(LOperand* value, LOperand* temp) {
|
| + explicit LBranch(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
|
| DECLARE_HYDROGEN_ACCESSOR(Branch)
|
|
|
| @@ -1056,8 +982,6 @@ class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(CompareMap)
|
|
|
| @@ -1079,8 +1003,6 @@ class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
|
| DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
|
| };
|
| @@ -1092,8 +1014,6 @@ class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
|
| "fixed-array-base-length")
|
| DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
|
| @@ -1106,8 +1026,6 @@ class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
|
| };
|
|
|
| @@ -1118,8 +1036,6 @@ class LElementsKind: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
|
| DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
|
| };
|
| @@ -1132,9 +1048,6 @@ class LValueOf: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
|
| DECLARE_HYDROGEN_ACCESSOR(ValueOf)
|
| };
|
| @@ -1148,9 +1061,6 @@ class LDateField: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* date() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
|
| DECLARE_HYDROGEN_ACCESSOR(DateField)
|
|
|
| @@ -1181,8 +1091,6 @@ class LBitNotI: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
|
| };
|
|
|
| @@ -1194,9 +1102,6 @@ class LAddI: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Add)
|
| };
|
| @@ -1209,9 +1114,6 @@ class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(MathMinMax, "min-max")
|
| DECLARE_HYDROGEN_ACCESSOR(MathMinMax)
|
| };
|
| @@ -1224,9 +1126,6 @@ class LPower: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(Power, "power")
|
| DECLARE_HYDROGEN_ACCESSOR(Power)
|
| };
|
| @@ -1238,8 +1137,6 @@ class LRandom: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = global_object;
|
| }
|
|
|
| - LOperand* global_object() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(Random, "random")
|
| DECLARE_HYDROGEN_ACCESSOR(Random)
|
| };
|
| @@ -1253,9 +1150,6 @@ class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = right;
|
| }
|
|
|
| - LOperand* left() { return inputs_[0]; }
|
| - LOperand* right() { return inputs_[1]; }
|
| -
|
| Token::Value op() const { return op_; }
|
|
|
| virtual Opcode opcode() const { return LInstruction::kArithmeticD; }
|
| @@ -1279,15 +1173,14 @@ class LArithmeticT: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = right;
|
| }
|
|
|
| - LOperand* context() { return inputs_[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;
|
|
|
| Token::Value op() const { return op_; }
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* left() { return inputs_[1]; }
|
| + LOperand* right() { return inputs_[2]; }
|
|
|
| private:
|
| Token::Value op_;
|
| @@ -1310,10 +1203,10 @@ class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = object;
|
| }
|
|
|
| - LOperand* object() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
|
| +
|
| + LOperand* object() { return inputs_[0]; }
|
| };
|
|
|
|
|
| @@ -1324,11 +1217,11 @@ class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 2, 0> {
|
| 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)
|
| +
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* object() { return inputs_[1]; }
|
| };
|
|
|
|
|
| @@ -1339,12 +1232,11 @@ class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = object;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* object() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* object() { return inputs_[1]; }
|
| Handle<Object> name() const { return hydrogen()->name(); }
|
| };
|
|
|
| @@ -1356,11 +1248,10 @@ class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* function() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
|
| +
|
| + LOperand* function() { return inputs_[0]; }
|
| };
|
|
|
|
|
| @@ -1370,8 +1261,6 @@ class LLoadElements: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = object;
|
| }
|
|
|
| - LOperand* object() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
|
| };
|
|
|
| @@ -1382,8 +1271,6 @@ class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = object;
|
| }
|
|
|
| - LOperand* object() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
|
| "load-external-array-pointer")
|
| };
|
| @@ -1396,12 +1283,11 @@ class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = key;
|
| }
|
|
|
| - LOperand* elements() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
|
|
|
| + LOperand* elements() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| uint32_t additional_index() const { return hydrogen()->index_offset(); }
|
| };
|
|
|
| @@ -1413,13 +1299,12 @@ class LLoadKeyedFastDoubleElement: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = key;
|
| }
|
|
|
| - LOperand* elements() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastDoubleElement,
|
| "load-keyed-fast-double-element")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement)
|
|
|
| + LOperand* elements() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| uint32_t additional_index() const { return hydrogen()->index_offset(); }
|
| };
|
|
|
| @@ -1444,13 +1329,12 @@ class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = key;
|
| }
|
|
|
| - LOperand* external_pointer() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
|
| "load-keyed-specialized-array-element")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
|
|
|
| + LOperand* external_pointer() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| ElementsKind elements_kind() const {
|
| return hydrogen()->elements_kind();
|
| }
|
| @@ -1466,11 +1350,11 @@ class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = key;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
|
| +
|
| LOperand* context() { return inputs_[0]; }
|
| LOperand* object() { return inputs_[1]; }
|
| LOperand* key() { return inputs_[2]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
|
| };
|
|
|
|
|
| @@ -1488,12 +1372,11 @@ class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = global_object;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* global_object() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* global_object() { return inputs_[1]; }
|
| Handle<Object> name() const { return hydrogen()->name(); }
|
| bool for_typeof() const { return hydrogen()->for_typeof(); }
|
| };
|
| @@ -1505,10 +1388,10 @@ class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
|
| +
|
| + LOperand* value() { return inputs_[0]; }
|
| };
|
|
|
|
|
| @@ -1522,14 +1405,13 @@ class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> {
|
| inputs_[2] = value;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* global_object() { return inputs_[1]; }
|
| - LOperand* value() { return inputs_[2]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
|
|
|
| + LOperand* context() { return InputAt(0); }
|
| + LOperand* global_object() { return InputAt(1); }
|
| Handle<Object> name() const { return hydrogen()->name(); }
|
| + LOperand* value() { return InputAt(2); }
|
| StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
|
| };
|
|
|
| @@ -1540,11 +1422,10 @@ class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
|
| DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
|
|
|
| + LOperand* context() { return InputAt(0); }
|
| int slot_index() { return hydrogen()->slot_index(); }
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| @@ -1559,13 +1440,11 @@ class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* value() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
|
|
|
| + LOperand* context() { return InputAt(0); }
|
| + LOperand* value() { return InputAt(1); }
|
| int slot_index() { return hydrogen()->slot_index(); }
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| @@ -1578,8 +1457,6 @@ class LPushArgument: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
|
| };
|
|
|
| @@ -1616,9 +1493,9 @@ class LOuterContext: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
|
| +
|
| + LOperand* context() { return InputAt(0); }
|
| };
|
|
|
|
|
| @@ -1628,8 +1505,6 @@ class LDeclareGlobals: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
|
| DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
|
| };
|
| @@ -1641,9 +1516,9 @@ class LGlobalObject: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
|
| +
|
| + LOperand* context() { return InputAt(0); }
|
| };
|
|
|
|
|
| @@ -1653,9 +1528,9 @@ class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = global_object;
|
| }
|
|
|
| - LOperand* global() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
|
| +
|
| + LOperand* global() { return InputAt(0); }
|
| };
|
|
|
|
|
| @@ -1678,12 +1553,12 @@ class LInvokeFunction: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = function;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* function() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
|
| DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* function() { return inputs_[1]; }
|
| +
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| @@ -1698,12 +1573,12 @@ class LCallKeyed: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = key;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
|
| DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| +
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| @@ -1716,13 +1591,12 @@ class LCallNamed: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
|
| DECLARE_HYDROGEN_ACCESSOR(CallNamed)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| Handle<String> name() const { return hydrogen()->name(); }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
| @@ -1735,12 +1609,11 @@ class LCallFunction: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = function;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* function() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
|
| DECLARE_HYDROGEN_ACCESSOR(CallFunction)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* function() { return inputs_[1]; }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
| @@ -1751,13 +1624,12 @@ class LCallGlobal: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = context;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
|
| DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| Handle<String> name() const {return hydrogen()->name(); }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
| @@ -1782,14 +1654,13 @@ class LCallNew: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = constructor;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* constructor() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
|
| DECLARE_HYDROGEN_ACCESSOR(CallNew)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* constructor() { return inputs_[1]; }
|
| int arity() const { return hydrogen()->argument_count() - 1; }
|
| };
|
|
|
| @@ -1799,12 +1670,10 @@ class LCallRuntime: public LTemplateInstruction<1, 1, 0> {
|
| explicit LCallRuntime(LOperand* context) {
|
| inputs_[0] = context;
|
| }
|
| -
|
| - LOperand* context() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
|
| DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| const Runtime::Function* function() const { return hydrogen()->function(); }
|
| int arity() const { return hydrogen()->argument_count(); }
|
| };
|
| @@ -1816,8 +1685,6 @@ class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double")
|
| };
|
|
|
| @@ -1829,9 +1696,6 @@ class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
|
| };
|
|
|
| @@ -1842,8 +1706,6 @@ class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
|
| };
|
|
|
| @@ -1855,8 +1717,6 @@ class LNumberTagU: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u")
|
| };
|
|
|
| @@ -1868,9 +1728,6 @@ class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
|
| };
|
|
|
| @@ -1883,9 +1740,6 @@ class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
|
| DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
|
|
|
| @@ -1901,9 +1755,6 @@ class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
|
| DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
|
|
|
| @@ -1917,8 +1768,6 @@ class LSmiTag: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
|
| };
|
|
|
| @@ -1930,9 +1779,6 @@ class LNumberUntagD: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
|
| DECLARE_HYDROGEN_ACCESSOR(Change);
|
| };
|
| @@ -1945,8 +1791,6 @@ class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
|
|
|
| bool needs_check() const { return needs_check_; }
|
| @@ -1968,16 +1812,14 @@ class LStoreNamedField: public LTemplateInstruction<0, 2, 2> {
|
| temps_[1] = temp_map;
|
| }
|
|
|
| - LOperand* object() { return inputs_[0]; }
|
| - LOperand* value() { return inputs_[1]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| - LOperand* temp_map() { return temps_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* object() { return inputs_[0]; }
|
| + LOperand* value() { return inputs_[1]; }
|
| +
|
| Handle<Object> name() const { return hydrogen()->name(); }
|
| bool is_in_object() { return hydrogen()->is_in_object(); }
|
| int offset() { return hydrogen()->offset(); }
|
| @@ -1993,14 +1835,14 @@ class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
|
| inputs_[2] = value;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* object() { return inputs_[1]; }
|
| - LOperand* value() { return inputs_[2]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| +
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* object() { return inputs_[1]; }
|
| + LOperand* value() { return inputs_[2]; }
|
| Handle<Object> name() const { return hydrogen()->name(); }
|
| StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
|
| };
|
| @@ -2014,15 +1856,15 @@ class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
|
| inputs_[2] = val;
|
| }
|
|
|
| - LOperand* object() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| - LOperand* value() { return inputs_[2]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement,
|
| "store-keyed-fast-element")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| +
|
| + LOperand* object() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| + LOperand* value() { return inputs_[2]; }
|
| uint32_t additional_index() const { return hydrogen()->index_offset(); }
|
| };
|
|
|
| @@ -2037,16 +1879,15 @@ class LStoreKeyedFastDoubleElement: public LTemplateInstruction<0, 3, 0> {
|
| inputs_[2] = val;
|
| }
|
|
|
| - LOperand* elements() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| - LOperand* value() { return inputs_[2]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastDoubleElement,
|
| "store-keyed-fast-double-element")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastDoubleElement)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* elements() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| + LOperand* value() { return inputs_[2]; }
|
| uint32_t additional_index() const { return hydrogen()->index_offset(); }
|
|
|
| bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
|
| @@ -2063,14 +1904,13 @@ class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
|
| inputs_[2] = val;
|
| }
|
|
|
| - LOperand* external_pointer() { return inputs_[0]; }
|
| - LOperand* key() { return inputs_[1]; }
|
| - LOperand* value() { return inputs_[2]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
|
| "store-keyed-specialized-array-element")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
|
|
|
| + LOperand* external_pointer() { return inputs_[0]; }
|
| + LOperand* key() { return inputs_[1]; }
|
| + LOperand* value() { return inputs_[2]; }
|
| ElementsKind elements_kind() const {
|
| return hydrogen()->elements_kind();
|
| }
|
| @@ -2090,16 +1930,15 @@ class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
|
| inputs_[3] = value;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* object() { return inputs_[1]; }
|
| - LOperand* key() { return inputs_[2]; }
|
| - LOperand* value() { return inputs_[3]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
|
| DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* object() { return inputs_[1]; }
|
| + LOperand* key() { return inputs_[2]; }
|
| + LOperand* value() { return inputs_[3]; }
|
| StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
|
| };
|
|
|
| @@ -2108,22 +1947,21 @@ class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> {
|
| public:
|
| LTransitionElementsKind(LOperand* object,
|
| LOperand* new_map_temp,
|
| - LOperand* temp) {
|
| + LOperand* temp_reg) {
|
| inputs_[0] = object;
|
| temps_[0] = new_map_temp;
|
| - temps_[1] = temp;
|
| + temps_[1] = temp_reg;
|
| }
|
|
|
| - LOperand* object() { return inputs_[0]; }
|
| - LOperand* new_map_temp() { return temps_[0]; }
|
| - LOperand* temp() { return temps_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind,
|
| "transition-elements-kind")
|
| DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind)
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| + LOperand* object() { return inputs_[0]; }
|
| + LOperand* new_map_reg() { return temps_[0]; }
|
| + LOperand* temp_reg() { return temps_[1]; }
|
| Handle<Map> original_map() { return hydrogen()->original_map(); }
|
| Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); }
|
| };
|
| @@ -2137,12 +1975,12 @@ class LStringAdd: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = right;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
|
| + DECLARE_HYDROGEN_ACCESSOR(StringAdd)
|
| +
|
| LOperand* context() { return inputs_[0]; }
|
| LOperand* left() { return inputs_[1]; }
|
| LOperand* right() { return inputs_[2]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
|
| - DECLARE_HYDROGEN_ACCESSOR(StringAdd)
|
| };
|
|
|
|
|
| @@ -2154,12 +1992,12 @@ class LStringCharCodeAt: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = index;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
|
| + DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
|
| +
|
| LOperand* context() { return inputs_[0]; }
|
| LOperand* string() { return inputs_[1]; }
|
| LOperand* index() { return inputs_[2]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
|
| - DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
|
| };
|
|
|
|
|
| @@ -2170,11 +2008,11 @@ class LStringCharFromCode: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = char_code;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* char_code() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
|
| DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
|
| +
|
| + LOperand* context() { return inputs_[0]; }
|
| + LOperand* char_code() { return inputs_[1]; }
|
| };
|
|
|
|
|
| @@ -2184,10 +2022,10 @@ class LStringLength: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = string;
|
| }
|
|
|
| - LOperand* string() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
|
| DECLARE_HYDROGEN_ACCESSOR(StringLength)
|
| +
|
| + LOperand* string() { return inputs_[0]; }
|
| };
|
|
|
|
|
| @@ -2211,9 +2049,6 @@ class LCheckInstanceType: public LTemplateInstruction<0, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
|
| DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
|
| };
|
| @@ -2225,8 +2060,6 @@ class LCheckMaps: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
|
| DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
|
| };
|
| @@ -2238,8 +2071,6 @@ class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
|
| DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
|
|
|
| @@ -2254,8 +2085,6 @@ class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
|
| };
|
|
|
| @@ -2303,8 +2132,6 @@ class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
|
| };
|
|
|
| @@ -2316,11 +2143,10 @@ class LAllocateObject: public LTemplateInstruction<1, 1, 1> {
|
| temps_[0] = temp;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* temp() { return temps_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
|
| DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
|
| +
|
| + LOperand* context() { return inputs_[0]; }
|
| };
|
|
|
|
|
| @@ -2397,8 +2223,6 @@ class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
|
| DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
|
| };
|
| @@ -2411,9 +2235,6 @@ class LTypeof: public LTemplateInstruction<1, 2, 0> {
|
| inputs_[1] = value;
|
| }
|
|
|
| - LOperand* context() { return inputs_[0]; }
|
| - LOperand* value() { return inputs_[1]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
|
| };
|
|
|
| @@ -2424,8 +2245,6 @@ class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
|
| inputs_[0] = value;
|
| }
|
|
|
| - LOperand* value() { return inputs_[0]; }
|
| -
|
| DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
|
| DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch)
|
|
|
| @@ -2443,11 +2262,11 @@ class LDeleteProperty: public LTemplateInstruction<1, 3, 0> {
|
| inputs_[2] = key;
|
| }
|
|
|
| + DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
|
| +
|
| LOperand* context() { return inputs_[0]; }
|
| LOperand* object() { return inputs_[1]; }
|
| LOperand* key() { return inputs_[2]; }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
|
| };
|
|
|
|
|
|
|