Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 9343) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -523,11 +523,18 @@ |
} |
-void MacroAssembler::RememberedSetHelper(Register address, |
+void MacroAssembler::RememberedSetHelper(Register object, // For debug tests. |
+ Register address, |
Register scratch, |
SaveFPRegsMode fp_mode, |
RememberedSetFinalAction and_then) { |
Label done; |
+ if (FLAG_debug_code) { |
+ Label ok; |
+ JumpIfNotInNewSpace(object, scratch, &ok); |
+ stop("Remembered set pointer is in new space"); |
+ bind(&ok); |
+ } |
// Load store buffer top. |
ExternalReference store_buffer = |
ExternalReference::store_buffer_top(isolate()); |