Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index e7b93d532ead6cea793bec9ac1e08f46583472c8..7142bc1423ab86b01681ab8b358f380b720195bf 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1377,7 +1377,8 @@ LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
} |
if (instr->CheckFlag(HValue::kBailoutOnMinusZero) || |
- instr->CheckFlag(HValue::kCanBeDivByZero)) { |
+ instr->CheckFlag(HValue::kCanBeDivByZero) || |
+ instr->CheckFlag(HValue::kCanOverflow)) { |
return AssignEnvironment(DefineAsRegister(mod)); |
} else { |
return DefineAsRegister(mod); |