| Index: src/a64/lithium-a64.cc
|
| diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc
|
| index 1b7ceb60c7ee2ba415876c9657b4ba4c2d0f3569..ab76044546d887eb119058b1fb9ba668236c4ffc 100644
|
| --- a/src/a64/lithium-a64.cc
|
| +++ b/src/a64/lithium-a64.cc
|
| @@ -1749,12 +1749,13 @@ LInstruction* LChunkBuilder::DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr) {
|
| ASSERT(instr->right()->representation().Equals(instr->representation()));
|
| LOperand* dividend = UseRegisterAtStart(instr->left());
|
| int32_t divisor = instr->right()->GetInteger32Constant();
|
| - LInstruction* result =
|
| - DefineSameAsFirst(new(zone()) LFlooringDivByPowerOf2I(dividend, divisor));
|
| - bool can_deopt =
|
| - (instr->CheckFlag(HValue::kBailoutOnMinusZero) && divisor < 0) ||
|
| - (instr->left()->RangeCanInclude(kMinInt) && divisor == -1);
|
| - return can_deopt ? AssignEnvironment(result) : result;
|
| + LInstruction* result = DefineAsRegister(new(zone()) LFlooringDivByPowerOf2I(
|
| + dividend, divisor));
|
| + if ((instr->CheckFlag(HValue::kBailoutOnMinusZero) && divisor < 0) ||
|
| + (instr->CheckFlag(HValue::kLeftCanBeMinInt) && divisor == -1)) {
|
| + result = AssignEnvironment(result);
|
| + }
|
| + return result;
|
| }
|
|
|
|
|
|
|