Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 697f6cd403fd46fd238a5de31f41f782144a1189..1c5b103c70ab19187ac3a9bfac9783d541680072 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -190,13 +190,18 @@ void RelocInfo::PatchCode(byte* instructions, int instruction_count) { |
// ----------------------------------------------------------------------------- |
// Register constants. |
-const int Register::registerCodeByAllocationIndex[kNumAllocatableRegisters] = { |
- // rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r12 |
- 0, 3, 2, 1, 7, 8, 9, 11, 14, 12 |
+const int Register::kRegisterCodeByAllocationIndex[kNumAllocatableRegisters] = { |
+ // rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r12 |
+ 0, 3, 2, 1, 7, 8, 9, 11, 14, 12 |
}; |
-const int Register::allocationIndexByRegisterCode[kNumRegisters] = { |
- 0, 3, 2, 1, -1, -1, -1, 4, 5, 6, -1, 7, 9, -1, 8, -1 |
+const int Register::kAllocationIndexByRegisterCode[kNumRegisters] = { |
+ 0, 3, 2, 1, -1, -1, -1, 4, 5, 6, -1, 7, 9, -1, 8, -1 |
+}; |
+ |
+ |
+const int Register::kRspIndexForPushAllByRegisterCode[kNumRegisters] = { |
+ 10, 9, 8, 7, -1, -1, 6, 5, 4, 3, -1, 2, 1, -1, 0, -1 |
}; |