Index: src/crankshaft/s390/lithium-codegen-s390.cc |
diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc |
index ee02f0b31265f16d4750d9646abbc4ea16c7eef0..349c357d0cac83c41f400f8bf5e1d81962c2a2ca 100644 |
--- a/src/crankshaft/s390/lithium-codegen-s390.cc |
+++ b/src/crankshaft/s390/lithium-codegen-s390.cc |
@@ -3669,6 +3669,20 @@ 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()); |
__ MovToFloatParameter(ToDoubleRegister(instr->value())); |