Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 2435174de33fdb21bf2f6a2203df69322510231c..930b7ed8784f5bde81c081566a3f0580e8522343 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1409,12 +1409,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 = DefineSameAsFirst(new(zone()) LFlooringDivByPowerOf2I( |
+ dividend, divisor)); |
+ if ((instr->CheckFlag(HValue::kBailoutOnMinusZero) && divisor < 0) || |
+ (instr->CheckFlag(HValue::kLeftCanBeMinInt) && divisor == -1)) { |
+ result = AssignEnvironment(result); |
+ } |
+ return result; |
} |