Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 9c6efed3d2f57ea37a8a1ed37aaeb5be97c8918c..dec6278013aa052d010f63de9d1b15481fcbae76 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -751,7 +751,8 @@ LInstruction* LChunkBuilder::DoShift(Token::Value op, |
does_deopt = !instr->CheckFlag(HInstruction::kUint32); |
} else { |
for (HUseIterator it(instr->uses()); !it.Done(); it.Advance()) { |
- if (!it.value()->CheckFlag(HValue::kTruncatingToInt32)) { |
+ if (!it.value()->CheckFlag(HValue::kTruncatingToInt32) && |
+ !it.value()->CheckFlag(HValue::kTruncatingToSmi)) { |
does_deopt = true; |
break; |
} |