| Index: src/arm/fast-codegen-arm.cc
|
| ===================================================================
|
| --- src/arm/fast-codegen-arm.cc (revision 3964)
|
| +++ src/arm/fast-codegen-arm.cc (working copy)
|
| @@ -29,6 +29,7 @@
|
|
|
| #include "codegen-inl.h"
|
| #include "fast-codegen.h"
|
| +#include "scopes.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -39,6 +40,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 +101,7 @@
|
|
|
| if (needs_write_barrier) {
|
| __ mov(scratch1(), Operand(offset));
|
| - __ RecordWrite(scratch0(), scratch1(), ip);
|
| + __ RecordWrite(scratch0(), scratch1(), scratch2());
|
| }
|
|
|
| if (destination().is(accumulator1())) {
|
| @@ -179,6 +181,7 @@
|
| void FastCodeGenerator::Generate(CompilationInfo* compilation_info) {
|
| ASSERT(info_ == NULL);
|
| info_ = compilation_info;
|
| + Comment cmnt(masm_, "[ function compiled by fast code generator");
|
|
|
| // Save the caller's frame pointer and set up our own.
|
| Comment prologue_cmnt(masm(), ";; Prologue");
|
|
|