Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index cdacbf3c0d86cb588e0bfafbfd8392f017f447f4..78890ef91a764a6e00a6d8fc3d3c57f4a8fa25b9 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -252,6 +252,12 @@ void MacroAssembler::RecordWrite(Register object, |
// registers are cp. |
ASSERT(!address.is(cp) && !value.is(cp)); |
+ if (FLAG_debug_code) { |
+ lw(at, MemOperand(address)); |
+ Assert(eq, "Wrong address or value passed to RecordWrite", |
+ at, Operand(value)); |
+ } |
+ |
Label done; |
if (smi_check == INLINE_SMI_CHECK) { |