| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 360f91910eeae9fb4b6f10ae6fdcb43271dd34f2..fac89e494916f7d0db8c762f40dded39b2efee38 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1316,13 +1316,13 @@ LInstruction* LChunkBuilder::DoDiv(HDiv* instr) {
|
| LInstruction* LChunkBuilder::DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr) {
|
| 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;
|
| }
|
|
|
|
|
|
|