| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index faf640490b705a850e04dcbde83a91743694e9b3..384d467cf915dc3655b35dab3f9a3041e40c68fb 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -858,17 +858,9 @@ LInstruction* LChunkBuilder::DoShift(Token::Value op,
|
|
|
| // Shift operations can only deoptimize if we do a logical shift
|
| // by 0 and the result cannot be truncated to int32.
|
| - bool can_deopt = (op == Token::SHR && constant_value == 0);
|
| - if (can_deopt) {
|
| - bool can_truncate = true;
|
| - for (int i = 0; i < instr->uses()->length(); i++) {
|
| - if (!instr->uses()->at(i)->CheckFlag(HValue::kTruncatingToInt32)) {
|
| - can_truncate = false;
|
| - break;
|
| - }
|
| - }
|
| - can_deopt = !can_truncate;
|
| - }
|
| + bool can_deopt = op == Token::SHR &&
|
| + constant_value == 0 &&
|
| + !instr->representation().Equals(Representation::TruncatedInteger32());
|
|
|
| LInstruction* result =
|
| DefineSameAsFirst(new LShiftI(op, left, right, can_deopt));
|
|
|