Index: src/arm/macro-assembler-arm.h |
diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h |
index 754c6ce9077858bcea14229279d58a9f4d340b96..ea66d748b8e3c09169a005a85b9a860983e6d406 100644 |
--- a/src/arm/macro-assembler-arm.h |
+++ b/src/arm/macro-assembler-arm.h |
@@ -13,6 +13,17 @@ |
namespace v8 { |
namespace internal { |
+// Give alias names to registers for calling conventions. |
+const Register kReturnRegister0 = {kRegister_r0_Code}; |
+const Register kReturnRegister1 = {kRegister_r1_Code}; |
+const Register kJSFunctionRegister = {kRegister_r1_Code}; |
+const Register kContextRegister = {kRegister_r7_Code}; |
+const Register kInterpreterBytecodeOffsetRegister = {kRegister_r5_Code}; |
+const Register kInterpreterBytecodeArrayRegister = {kRegister_r6_Code}; |
+const Register kInterpreterDispatchTableRegister = {kRegister_r8_Code}; |
+const Register kRuntimeCallFunctionRegister = {kRegister_r1_Code}; |
+const Register kRuntimeCallArgCountRegister = {kRegister_r0_Code}; |
+ |
// ---------------------------------------------------------------------------- |
// Static helper functions |
@@ -26,15 +37,6 @@ inline MemOperand FieldMemOperand(Register object, int offset) { |
const Register cp = { kRegister_r7_Code }; // JavaScript context pointer. |
const Register pp = { kRegister_r8_Code }; // Constant pool pointer. |
const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer. |
-const Register kInterpreterBytecodeOffsetRegister = { |
- kRegister_r5_Code // Interpreter bytecode offset. |
-}; |
-const Register kInterpreterBytecodeArrayRegister = { |
- kRegister_r6_Code // Interpreter bytecode array pointer. |
-}; |
-const Register kInterpreterDispatchTableRegister = { |
- kRegister_r8_Code // Interpreter dispatch table. |
-}; |
// Flags used for AllocateHeapNumber |
enum TaggingMode { |