Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 3f8470de48a2442678ebfaf29925b5e796439a67..ccf0e5346e0ab533d32e5faf62ad793f786e2b06 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -1681,8 +1681,7 @@ void LCodeGen::DoSubI(LSubI* instr) { |
} else { |
DCHECK(right->IsRegister() || right->IsConstantOperand()); |
__ SubuAndCheckForOverflow(ToRegister(result), ToRegister(left), |
- ToOperand(right), |
- overflow); // Reg at also used as scratch. |
+ ToOperand(right), overflow, scratch); |
} |
DeoptimizeIf(lt, instr, Deoptimizer::kOverflow, overflow, |
Operand(zero_reg)); |
@@ -1878,8 +1877,7 @@ void LCodeGen::DoAddI(LAddI* instr) { |
} else { |
DCHECK(right->IsRegister() || right->IsConstantOperand()); |
__ AdduAndCheckForOverflow(ToRegister(result), ToRegister(left), |
- ToOperand(right), |
- overflow); // Reg at also used as scratch. |
+ ToOperand(right), overflow, scratch); |
} |
DeoptimizeIf(lt, instr, Deoptimizer::kOverflow, overflow, |
Operand(zero_reg)); |