Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 5849cf4ef910d6573c75dd7b4858a964e75192b9..638c26add6c6eea138056441e7a8de97981ebe73 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3966,7 +3966,7 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
} else if (representation.IsHeapObject()) { |
if (instr->value()->IsConstantOperand()) { |
LConstantOperand* operand_value = LConstantOperand::cast(instr->value()); |
- if (IsInteger32Constant(operand_value)) { |
+ if (chunk_->LookupConstant(operand_value)->HasSmiValue()) { |
DeoptimizeIf(no_condition, instr->environment()); |
} |
} else { |