Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index f8091206a6051a4961162c74e8638fb3ef0d6ed2..6bb8bbefd98257af39c23d66d3a477da2d83d741 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -761,21 +761,20 @@ LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op, |
ASSERT(instr->representation().IsDouble()); |
ASSERT(instr->left()->representation().IsDouble()); |
ASSERT(instr->right()->representation().IsDouble()); |
- LOperand* left = NULL; |
- LOperand* right = NULL; |
if (op == Token::MOD) { |
- left = UseFixedDouble(instr->left(), f2); |
- right = UseFixedDouble(instr->right(), f4); |
+ LOperand* left = UseFixedDouble(instr->left(), f2); |
+ LOperand* right = UseFixedDouble(instr->right(), f4); |
LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); |
// We call a C function for double modulo. It can't trigger a GC. We need |
// to use fixed result register for the call. |
// TODO(fschneider): Allow any register as input registers. |
return MarkAsCall(DefineFixedDouble(result, f2), instr); |
+ } else { |
+ LOperand* left = UseRegisterAtStart(instr->left()); |
+ LOperand* right = UseRegisterAtStart(instr->right()); |
+ LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); |
+ return DefineAsRegister(result); |
} |
- left = UseRegisterAtStart(instr->left()); |
- right = UseRegisterAtStart(instr->right()); |
- LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); |
- return DefineAsRegister(result); |
} |