| Index: src/x64/assembler-x64.h
|
| diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h
|
| index 91e7e6cc61dc74a7d3354559407a3dc339cf6241..6e1837d7e2150d23560d6a8c3c24e06bfd73a8f7 100644
|
| --- a/src/x64/assembler-x64.h
|
| +++ b/src/x64/assembler-x64.h
|
| @@ -99,15 +99,19 @@ struct Register {
|
| static const int kNumAllocatableRegisters = 10;
|
|
|
| static int ToAllocationIndex(Register reg) {
|
| - return allocationIndexByRegisterCode[reg.code()];
|
| + return kAllocationIndexByRegisterCode[reg.code()];
|
| }
|
|
|
| static Register FromAllocationIndex(int index) {
|
| ASSERT(index >= 0 && index < kNumAllocatableRegisters);
|
| - Register result = { registerCodeByAllocationIndex[index] };
|
| + Register result = { kRegisterCodeByAllocationIndex[index] };
|
| return result;
|
| }
|
|
|
| + static int ToRspIndexForPushAll(Register reg) {
|
| + return kRspIndexForPushAllByRegisterCode[reg.code()];
|
| + }
|
| +
|
| static const char* AllocationIndexToString(int index) {
|
| ASSERT(index >= 0 && index < kNumAllocatableRegisters);
|
| const char* const names[] = {
|
| @@ -155,8 +159,9 @@ struct Register {
|
| int code_;
|
|
|
| private:
|
| - static const int registerCodeByAllocationIndex[kNumAllocatableRegisters];
|
| - static const int allocationIndexByRegisterCode[kNumRegisters];
|
| + static const int kRegisterCodeByAllocationIndex[kNumAllocatableRegisters];
|
| + static const int kAllocationIndexByRegisterCode[kNumRegisters];
|
| + static const int kRspIndexForPushAllByRegisterCode[kNumRegisters];
|
| };
|
|
|
| const Register rax = { 0 };
|
|
|