| Index: src/crankshaft/mips/lithium-mips.h
|
| diff --git a/src/crankshaft/mips/lithium-mips.h b/src/crankshaft/mips/lithium-mips.h
|
| index d6fd59e44330a6bb3b36f5c68452d4ba786ff1f3..1c624fce4a9991b930881803956a2f1ecfd0b9eb 100644
|
| --- a/src/crankshaft/mips/lithium-mips.h
|
| +++ b/src/crankshaft/mips/lithium-mips.h
|
| @@ -97,6 +97,8 @@ class LCodeGen;
|
| V(LoadNamedField) \
|
| V(LoadNamedGeneric) \
|
| V(MathAbs) \
|
| + V(MathCos) \
|
| + V(MathSin) \
|
| V(MathExp) \
|
| V(MathClz32) \
|
| V(MathFloor) \
|
| @@ -882,6 +884,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; }
|
| @@ -2490,6 +2510,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);
|
|
|