Index: src/crankshaft/mips/lithium-codegen-mips.cc |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc |
index 3cee6db394002f1c89328a1a9ca48037fc2b4dec..85d58d3c42a04d8343410c692303cd12bb90c51e 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.cc |
+++ b/src/crankshaft/mips/lithium-codegen-mips.cc |
@@ -3490,6 +3490,19 @@ void LCodeGen::DoPower(LPower* instr) { |
} |
} |
+void LCodeGen::DoMathCos(LMathCos* instr) { |
+ __ PrepareCallCFunction(0, 1, scratch0()); |
+ __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
+ __ CallCFunction(ExternalReference::ieee754_cos_function(isolate()), 0, 1); |
+ __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
+} |
+ |
+void LCodeGen::DoMathSin(LMathSin* instr) { |
+ __ PrepareCallCFunction(0, 1, scratch0()); |
+ __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
+ __ CallCFunction(ExternalReference::ieee754_sin_function(isolate()), 0, 1); |
+ __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
+} |
void LCodeGen::DoMathExp(LMathExp* instr) { |
__ PrepareCallCFunction(0, 1, scratch0()); |