Index: src/arm/macro-assembler-arm.h |
=================================================================== |
--- src/arm/macro-assembler-arm.h (revision 10353) |
+++ src/arm/macro-assembler-arm.h (working copy) |
@@ -51,7 +51,7 @@ |
// Give alias names to registers |
const Register cp = { 8 }; // JavaScript context pointer |
-const Register roots = { 10 }; // Roots array pointer. |
+const Register kRootRegister = { 10 }; // Roots array pointer. |
// Flags used for the AllocateInNewSpace functions. |
enum AllocationFlags { |
@@ -350,6 +350,12 @@ |
Register map, |
Register scratch); |
+ void InitializeRootRegister() { |
+ ExternalReference roots_address = |
+ ExternalReference::roots_address(isolate()); |
+ mov(kRootRegister, Operand(roots_address)); |
+ } |
+ |
// --------------------------------------------------------------------------- |
// JavaScript invokes |