| Index: src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| index acfb76dcad9723d2a8c753e29cd28bad6d11049c..3d53ac6dbc87c7ee728b00f4c271281dceec84b5 100644
|
| --- a/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| +++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| @@ -3774,6 +3774,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()));
|
|
|