Index: src/crankshaft/x87/lithium-x87.h |
diff --git a/src/crankshaft/x87/lithium-x87.h b/src/crankshaft/x87/lithium-x87.h |
index a0d877ce0ae1bd67626f78bc4e9b05e37ce6f06a..1f7bc55105183a13ac936fe4ccae5434fbd4149d 100644 |
--- a/src/crankshaft/x87/lithium-x87.h |
+++ b/src/crankshaft/x87/lithium-x87.h |
@@ -103,6 +103,7 @@ class LCodeGen; |
V(LoadRoot) \ |
V(MathAbs) \ |
V(MathClz32) \ |
+ V(MathCos) \ |
V(MathExp) \ |
V(MathFloor) \ |
V(MathFround) \ |
@@ -112,6 +113,7 @@ class LCodeGen; |
V(MathRound) \ |
V(MathSqrt) \ |
V(MaybeGrowElements) \ |
+ V(MathSin) \ |
V(ModByConstI) \ |
V(ModByPowerOf2I) \ |
V(ModI) \ |
@@ -904,6 +906,24 @@ class LMathClz32 final : public LTemplateInstruction<1, 1, 0> { |
DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") |
}; |
+class LMathCos final : public LTemplateInstruction<1, 1, 0> { |
+ public: |
+ explicit LMathCos(LOperand* value) { inputs_[0] = value; } |
+ |
+ LOperand* value() { return inputs_[0]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") |
+}; |
+ |
+class LMathSin final : public LTemplateInstruction<1, 1, 0> { |
+ public: |
+ explicit LMathSin(LOperand* value) { inputs_[0] = value; } |
+ |
+ LOperand* value() { return inputs_[0]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") |
+}; |
+ |
class LMathExp final : public LTemplateInstruction<1, 1, 0> { |
public: |
explicit LMathExp(LOperand* value) { inputs_[0] = value; } |
@@ -2534,6 +2554,8 @@ class LChunkBuilder final : public LChunkBuilderBase { |
LInstruction* DoMathFround(HUnaryMathOperation* instr); |
LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
LInstruction* DoMathLog(HUnaryMathOperation* instr); |
+ LInstruction* DoMathCos(HUnaryMathOperation* instr); |
+ LInstruction* DoMathSin(HUnaryMathOperation* instr); |
LInstruction* DoMathExp(HUnaryMathOperation* instr); |
LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |