Index: src/arm/fast-codegen-arm.cc |
=================================================================== |
--- src/arm/fast-codegen-arm.cc (revision 3935) |
+++ src/arm/fast-codegen-arm.cc (working copy) |
@@ -39,6 +39,7 @@ |
Register FastCodeGenerator::accumulator1() { return r1; } |
Register FastCodeGenerator::scratch0() { return r3; } |
Register FastCodeGenerator::scratch1() { return r4; } |
+Register FastCodeGenerator::scratch2() { return r5; } |
Register FastCodeGenerator::receiver_reg() { return r2; } |
Register FastCodeGenerator::context_reg() { return cp; } |
@@ -99,7 +100,7 @@ |
if (needs_write_barrier) { |
__ mov(scratch1(), Operand(offset)); |
- __ RecordWrite(scratch0(), scratch1(), ip); |
+ __ RecordWrite(scratch0(), scratch1(), scratch2()); |
} |
if (destination().is(accumulator1())) { |