Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 1fab8c326f7f71ea5431cf26c7d9ead72b240d62..77c514ff546624baa7db121f21baf63702608e5e 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -509,6 +509,7 @@ void MacroAssembler::RecordWrite(Register object, |
SaveFPRegsMode fp_mode, |
RememberedSetAction remembered_set_action, |
SmiCheck smi_check) { |
+ ASSERT(!object.is(value)); |
if (emit_debug_code()) { |
ldr(ip, MemOperand(address)); |
cmp(ip, value); |