diff options
Diffstat (limited to 'deps/v8/src/crankshaft/arm64/lithium-arm64.h')
-rw-r--r-- | deps/v8/src/crankshaft/arm64/lithium-arm64.h | 106 |
1 files changed, 36 insertions, 70 deletions
diff --git a/deps/v8/src/crankshaft/arm64/lithium-arm64.h b/deps/v8/src/crankshaft/arm64/lithium-arm64.h index 237487ff88..782da09546 100644 --- a/deps/v8/src/crankshaft/arm64/lithium-arm64.h +++ b/deps/v8/src/crankshaft/arm64/lithium-arm64.h @@ -57,7 +57,6 @@ class LCodeGen; V(ConstantI) \ V(ConstantS) \ V(ConstantT) \ - V(ConstructDouble) \ V(Context) \ V(DebugBreak) \ V(DeclareGlobals) \ @@ -65,11 +64,11 @@ class LCodeGen; V(DivByConstI) \ V(DivByPowerOf2I) \ V(DivI) \ - V(DoubleBits) \ V(DoubleToIntOrSmi) \ V(Drop) \ V(Dummy) \ V(DummyUse) \ + V(FastAllocate) \ V(FlooringDivByConstI) \ V(FlooringDivByPowerOf2I) \ V(FlooringDivI) \ @@ -81,7 +80,6 @@ class LCodeGen; V(HasInPrototypeChainAndBranch) \ V(HasInstanceTypeAndBranch) \ V(InnerAllocatedObject) \ - V(InstanceOf) \ V(InstructionGap) \ V(Integer32ToDouble) \ V(InvokeFunction) \ @@ -104,6 +102,8 @@ class LCodeGen; V(MathAbs) \ V(MathAbsTagged) \ V(MathClz32) \ + V(MathCos) \ + V(MathSin) \ V(MathExp) \ V(MathFloorD) \ V(MathFloorI) \ @@ -163,7 +163,6 @@ class LCodeGen; V(UnknownOSRValue) \ V(WrapReceiver) - #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ Opcode opcode() const final { return LInstruction::k##type; } \ void CompileToNative(LCodeGen* generator) final; \ @@ -626,6 +625,21 @@ class LAllocate final : public LTemplateInstruction<1, 2, 3> { DECLARE_HYDROGEN_ACCESSOR(Allocate) }; +class LFastAllocate final : public LTemplateInstruction<1, 1, 2> { + public: + LFastAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { + inputs_[0] = size; + temps_[0] = temp1; + temps_[1] = temp2; + } + + LOperand* size() { return inputs_[0]; } + LOperand* temp1() { return temps_[0]; } + LOperand* temp2() { return temps_[1]; } + + DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate") + DECLARE_HYDROGEN_ACCESSOR(Allocate) +}; class LApplyArguments final : public LTemplateInstruction<1, 4, 0> { public: @@ -966,33 +980,6 @@ class LClampTToUint8 final : public LTemplateInstruction<1, 1, 1> { }; -class LDoubleBits final : public LTemplateInstruction<1, 1, 0> { - public: - explicit LDoubleBits(LOperand* value) { - inputs_[0] = value; - } - - LOperand* value() { return inputs_[0]; } - - DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") - DECLARE_HYDROGEN_ACCESSOR(DoubleBits) -}; - - -class LConstructDouble final : public LTemplateInstruction<1, 2, 0> { - public: - LConstructDouble(LOperand* hi, LOperand* lo) { - inputs_[0] = hi; - inputs_[1] = lo; - } - - LOperand* hi() { return inputs_[0]; } - LOperand* lo() { return inputs_[1]; } - - DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") -}; - - class LClassOfTestAndBranch final : public LControlInstruction<1, 2> { public: LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { @@ -1363,22 +1350,6 @@ class LInnerAllocatedObject final : public LTemplateInstruction<1, 2, 0> { }; -class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { - public: - LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { - inputs_[0] = context; - inputs_[1] = left; - inputs_[2] = right; - } - - LOperand* context() const { return inputs_[0]; } - LOperand* left() const { return inputs_[1]; } - LOperand* right() const { return inputs_[2]; } - - DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") -}; - - class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 2> { public: LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype, @@ -1568,18 +1539,14 @@ class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) }; - -class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { +class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { public: - LLoadGlobalGeneric(LOperand* context, LOperand* global_object, - LOperand* vector) { + LLoadGlobalGeneric(LOperand* context, LOperand* vector) { inputs_[0] = context; - inputs_[1] = global_object; temps_[0] = vector; } LOperand* context() { return inputs_[0]; } - LOperand* global_object() { return inputs_[1]; } LOperand* temp_vector() { return temps_[0]; } DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") @@ -1765,26 +1732,23 @@ class LMathAbsTagged: public LTemplateInstruction<1, 2, 3> { DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) }; +class LMathCos final : public LUnaryMathOperation<0> { + public: + explicit LMathCos(LOperand* value) : LUnaryMathOperation<0>(value) {} + + DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") +}; -class LMathExp final : public LUnaryMathOperation<4> { +class LMathSin final : public LUnaryMathOperation<0> { public: - LMathExp(LOperand* value, - LOperand* double_temp1, - LOperand* temp1, - LOperand* temp2, - LOperand* temp3) - : LUnaryMathOperation<4>(value) { - temps_[0] = double_temp1; - temps_[1] = temp1; - temps_[2] = temp2; - temps_[3] = temp3; - ExternalReference::InitializeMathExpData(); - } + explicit LMathSin(LOperand* value) : LUnaryMathOperation<0>(value) {} - LOperand* double_temp1() { return temps_[0]; } - LOperand* temp1() { return temps_[1]; } - LOperand* temp2() { return temps_[2]; } - LOperand* temp3() { return temps_[3]; } + DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") +}; + +class LMathExp final : public LUnaryMathOperation<0> { + public: + explicit LMathExp(LOperand* value) : LUnaryMathOperation<0>(value) {} DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") }; @@ -2470,6 +2434,8 @@ class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { LOperand* key() { return inputs_[3]; } LOperand* current_capacity() { return inputs_[4]; } + bool ClobbersDoubleRegisters(Isolate* isolate) const override { return true; } + DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") }; |