Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 7b3028fbe6586694e36747058cee2cd48aeeb697..28ce3de955dc8a1bcbf023922351e819b24e6683 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -401,6 +401,11 @@ void MacroAssembler::Store(Register src, |
} else if (r.IsInteger16() || r.IsUInteger16()) { |
strh(src, dst); |
} else { |
+ if (r.IsHeapObject()) { |
+ AssertNotSmi(src); |
+ } else if (r.IsSmi()) { |
+ AssertSmi(src); |
+ } |
str(src, dst); |
} |
} |