Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 75fd2b62be2641cfcc875f9c068c3d7d691b7758..83c45a68d37ab2dd6fe9756bb6660efc4f77ed4f 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -559,6 +559,11 @@ void MacroAssembler::Store(const Register& rt, |
Str(rt.W(), addr); |
} else { |
ASSERT(rt.Is64Bits()); |
+ if (r.IsHeapObject()) { |
+ AssertNotSmi(rt); |
+ } else if (r.IsSmi()) { |
+ AssertSmi(rt); |
+ } |
Str(rt, addr); |
} |
} |