Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index f054dfe3cbacfc8ad2ba86c1aabde9df532cce60..0e6cf10a15ae5ea77507066608c81b135c470ea5 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -4341,14 +4341,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
instr->hydrogen()->value()->IsHeapObject() |
? OMIT_SMI_CHECK : INLINE_SMI_CHECK; |
- if (representation.IsSmi()) { |
- if (instr->value()->IsConstantOperand()) { |
- LConstantOperand* operand_value = LConstantOperand::cast(instr->value()); |
- if (!IsSmi(operand_value)) { |
- DeoptimizeIf(no_condition, instr->environment()); |
- } |
- } |
- } else if (representation.IsHeapObject()) { |
+ ASSERT(!(representation.IsSmi() && |
+ instr->value()->IsConstantOperand() && |
+ !IsSmi(LConstantOperand::cast(instr->value())))); |
+ if (representation.IsHeapObject()) { |
if (instr->value()->IsConstantOperand()) { |
LConstantOperand* operand_value = LConstantOperand::cast(instr->value()); |
if (IsInteger32(operand_value)) { |