Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index b1919ba54e431b07abed8bfdb3986422cc343816..ee70f67f1d364e57435a082ec9a261df5ba8fb58 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -4036,6 +4036,9 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
instr->hydrogen()->value()->IsHeapObject() |
? OMIT_SMI_CHECK : INLINE_SMI_CHECK; |
+ ASSERT(!(representation.IsSmi() && |
+ instr->value()->IsConstantOperand() && |
+ !IsSmi(LConstantOperand::cast(instr->value())))); |
if (representation.IsHeapObject()) { |
Register value = ToRegister(instr->value()); |
if (!instr->hydrogen()->value()->type().IsHeapObject()) { |