| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index f4fef13ccecd1a9786a4c9ee2716d0f4a72b9fe6..11f9fde0576e4765bb5ee8cd21735e30fa48aa5c 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1417,7 +1417,8 @@ LInstruction* LChunkBuilder::DoModByPowerOf2I(HMod* instr) {
|
| int32_t divisor = instr->right()->GetInteger32Constant();
|
| LInstruction* result = DefineSameAsFirst(new(zone()) LModByPowerOf2I(
|
| dividend, divisor));
|
| - if (instr->CheckFlag(HValue::kBailoutOnMinusZero)) {
|
| + if (instr->CheckFlag(HValue::kLeftCanBeNegative) &&
|
| + instr->CheckFlag(HValue::kBailoutOnMinusZero)) {
|
| result = AssignEnvironment(result);
|
| }
|
| return result;
|
|
|