Chromium Code Reviews| Index: src/ia32/lithium-ia32.cc |
| =================================================================== |
| --- src/ia32/lithium-ia32.cc (revision 7492) |
| +++ src/ia32/lithium-ia32.cc (working copy) |
| @@ -1227,7 +1227,11 @@ |
| if (op == kMathLog || op == kMathSin || op == kMathCos) { |
| LOperand* input = UseFixedDouble(instr->value(), xmm1); |
| LUnaryMathOperation* result = new LUnaryMathOperation(input); |
| - return MarkAsCall(DefineFixedDouble(result, xmm1), instr); |
| + if (op == kMathLog) { |
|
fschneider
2011/04/05 07:31:05
You don't need a fixed register for MathLog either
|
| + return DefineFixedDouble(result, xmm1); |
| + } else { |
| + return MarkAsCall(DefineFixedDouble(result, xmm1), instr); |
| + } |
| } else { |
| LOperand* input = UseRegisterAtStart(instr->value()); |
| LUnaryMathOperation* result = new LUnaryMathOperation(input); |