Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 5655) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -908,6 +908,17 @@ |
Register scratch2, |
Label* gc_required, |
AllocationFlags flags) { |
+ if (!FLAG_inline_new) { |
+ if (FLAG_debug_code) { |
+ // Trash the registers to simulate an allocation failure. |
+ mov(result, Operand(0x7091)); |
+ mov(scratch1, Operand(0x7191)); |
+ mov(scratch2, Operand(0x7291)); |
+ } |
+ jmp(gc_required); |
+ return; |
+ } |
+ |
ASSERT(!result.is(scratch1)); |
ASSERT(!scratch1.is(scratch2)); |
@@ -959,6 +970,17 @@ |
Register scratch2, |
Label* gc_required, |
AllocationFlags flags) { |
+ if (!FLAG_inline_new) { |
+ if (FLAG_debug_code) { |
+ // Trash the registers to simulate an allocation failure. |
+ mov(result, Operand(0x7091)); |
+ mov(scratch1, Operand(0x7191)); |
+ mov(scratch2, Operand(0x7291)); |
+ } |
+ jmp(gc_required); |
+ return; |
+ } |
+ |
ASSERT(!result.is(scratch1)); |
ASSERT(!scratch1.is(scratch2)); |