| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index a0e8ac15bff6f8a99ca45221599ab3865c07b1a3..b8b02da37ac0c7d8850dc14f2eda1f6adc45b0b1 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -1451,7 +1451,8 @@ LInstruction* LChunkBuilder::DoMod(HMod* instr) {
|
| }
|
|
|
| return (instr->CheckFlag(HValue::kBailoutOnMinusZero) ||
|
| - instr->CheckFlag(HValue::kCanBeDivByZero))
|
| + instr->CheckFlag(HValue::kCanBeDivByZero) ||
|
| + instr->CheckFlag(HValue::kCanOverflow))
|
| ? AssignEnvironment(result)
|
| : result;
|
| } else if (instr->representation().IsTagged()) {
|
|
|