Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 02d798cae379811ec82a74d28feedc53080390cb..d2fa8dec69e93c01d54e1308e4baa1b1e0740ee7 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -56,6 +56,11 @@ void MacroAssembler::Store(Register src, |
} else if (r.IsInteger16() || r.IsUInteger16()) { |
sh(src, dst); |
} else { |
+ if (r.IsHeapObject()) { |
+ AssertNotSmi(src); |
+ } else if (r.IsSmi()) { |
+ AssertSmi(src); |
+ } |
sw(src, dst); |
} |
} |