Chromium Code Reviews| Index: src/arm/macro-assembler-arm.cc |
| =================================================================== |
| --- src/arm/macro-assembler-arm.cc (revision 9962) |
| +++ src/arm/macro-assembler-arm.cc (working copy) |
| @@ -483,6 +483,15 @@ |
| // registers are cp. |
| ASSERT(!address.is(cp) && !value.is(cp)); |
| + if (FLAG_debug_code) { |
|
Kevin Millikin (Chromium)
2011/11/11 11:28:37
We don't use FLAG_debug_code in the macro assemble
|
| + Label ok; |
| + ldr(ip, MemOperand(address)); |
| + cmp(ip, value); |
| + b(eq, &ok); |
|
Kevin Millikin (Chromium)
2011/11/11 11:32:23
Also, while I think of it, is there a reason not t
|
| + stop("Wrong address or value passed to RecordWrite"); |
| + bind(&ok); |
| + } |
| + |
| Label done; |
| if (smi_check == INLINE_SMI_CHECK) { |