Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index 875b4505cb33f800d66b7d0510315b450afe6c25..4c35763ab79eb08d9a7aef55675698f0b835775f 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -5103,6 +5103,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
if (representation.IsSmi() && |
instr->hydrogen()->value()->representation().IsInteger32()) { |
ASSERT(instr->hydrogen()->store_mode() == STORE_TO_INITIALIZED_ENTRY); |
+#ifdef DEBUG |
+ __ Ldr(temp1, FieldMemOperand(destination, offset)); |
+ __ AssertSmi(temp1); |
+#endif |
STATIC_ASSERT(kSmiValueSize == 32 && kSmiShift == 32 && kSmiTag == 0); |
__ Store(value, UntagSmiFieldMemOperand(destination, offset), |
Representation::Integer32()); |