| Index: src/x87/lithium-x87.cc
|
| diff --git a/src/x87/lithium-x87.cc b/src/x87/lithium-x87.cc
|
| index f46aef9294ebf0fe1ab5db946ebf8cf8b114560d..9304b8975cff8b21ad02bb4efd439ef910539c83 100644
|
| --- a/src/x87/lithium-x87.cc
|
| +++ b/src/x87/lithium-x87.cc
|
| @@ -1252,8 +1252,10 @@ LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
|
|
|
| LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
|
| LOperand* input = UseRegisterAtStart(instr->value());
|
| - LMathSqrt* result = new(zone()) LMathSqrt(input);
|
| - return DefineSameAsFirst(result);
|
| + LOperand* temp1 = FixedTemp(ecx);
|
| + LOperand* temp2 = FixedTemp(edx);
|
| + LMathSqrt* result = new(zone()) LMathSqrt(input, temp1, temp2);
|
| + return MarkAsCall(DefineSameAsFirst(result), instr);
|
| }
|
|
|
|
|
|
|