Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 7baa659d014d79864d3da4946e887787e4b04e04..8d8876f1ddd0ee6fdde79ad89823104eb1279843 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -55,6 +55,11 @@ void MacroAssembler::Store(Register src, const Operand& dst, Representation r) { |
} else if (r.IsInteger16() || r.IsUInteger16()) { |
mov_w(dst, src); |
} else { |
+ if (r.IsHeapObject()) { |
+ AssertNotSmi(src); |
+ } else if (r.IsSmi()) { |
+ AssertSmi(src); |
+ } |
mov(dst, src); |
} |
} |