Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index 9a0b54037fc1fa8348ea226bf047256a91011db5..8d4088b599ec038dddb0e9ce74a4d7f2eaf1952c 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -3693,6 +3693,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()); |