| Index: src/mips/macro-assembler-mips.cc
|
| ===================================================================
|
| --- src/mips/macro-assembler-mips.cc (revision 10367)
|
| +++ src/mips/macro-assembler-mips.cc (working copy)
|
| @@ -252,6 +252,12 @@
|
| // registers are cp.
|
| ASSERT(!address.is(cp) && !value.is(cp));
|
|
|
| + if (emit_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) {
|
| @@ -297,7 +303,7 @@
|
| SaveFPRegsMode fp_mode,
|
| RememberedSetFinalAction and_then) {
|
| Label done;
|
| - if (FLAG_debug_code) {
|
| + if (emit_debug_code()) {
|
| Label ok;
|
| JumpIfNotInNewSpace(object, scratch, &ok);
|
| stop("Remembered set pointer is in new space");
|
| @@ -4838,7 +4844,7 @@
|
| And(t8, mask_scratch, load_scratch);
|
| Branch(&done, ne, t8, Operand(zero_reg));
|
|
|
| - if (FLAG_debug_code) {
|
| + if (emit_debug_code()) {
|
| // Check for impossible bit pattern.
|
| Label ok;
|
| // sll may overflow, making the check conservative.
|
|
|