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 44eb58cf9b94418762d0ce72068ed621a311b88f..acfb76dcad9723d2a8c753e29cd28bad6d11049c 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -3774,20 +3774,13 @@ void LCodeGen::DoPower(LPower* instr) { |
} |
} |
- |
void LCodeGen::DoMathExp(LMathExp* instr) { |
- DoubleRegister input = ToDoubleRegister(instr->value()); |
- DoubleRegister result = ToDoubleRegister(instr->result()); |
- DoubleRegister double_scratch1 = ToDoubleRegister(instr->double_temp()); |
- DoubleRegister double_scratch2 = double_scratch0(); |
- Register temp1 = ToRegister(instr->temp1()); |
- Register temp2 = ToRegister(instr->temp2()); |
- |
- MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1, |
- double_scratch2, temp1, temp2, scratch0()); |
+ __ PrepareCallCFunction(0, 1, scratch0()); |
+ __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
+ __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); |
+ __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
} |
- |
void LCodeGen::DoMathLog(LMathLog* instr) { |
__ PrepareCallCFunction(0, 1, scratch0()); |
__ MovToFloatParameter(ToDoubleRegister(instr->value())); |
@@ -3795,7 +3788,6 @@ void LCodeGen::DoMathLog(LMathLog* instr) { |
__ MovFromFloatResult(ToDoubleRegister(instr->result())); |
} |
- |
void LCodeGen::DoMathClz32(LMathClz32* instr) { |
Register input = ToRegister(instr->value()); |
Register result = ToRegister(instr->result()); |