Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 37395646af978ec4aa3f8a01c87c150b618bf959..625b4f4ce5f57c7f450c9176aa6c322369e0eada 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1330,12 +1330,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; |
} |