Index: src/x64/register-allocator-x64-inl.h |
diff --git a/src/x64/register-allocator-x64-inl.h b/src/x64/register-allocator-x64-inl.h |
index c6bea3ab099543b58b6d9b8bfbf1f9f2246cdc90..5df3d54ec5e6458bc3f423a5cd93ea42253b481d 100644 |
--- a/src/x64/register-allocator-x64-inl.h |
+++ b/src/x64/register-allocator-x64-inl.h |
@@ -60,10 +60,10 @@ int RegisterAllocator::ToNumber(Register reg) { |
6, // r9 |
-1, // r10 Scratch register. |
8, // r11 |
- 9, // r12 |
+ -1, // r12 Smi constant. |
-1, // r13 Roots array. This is callee saved. |
7, // r14 |
- -1 // r15 Smi constant register. |
+ 9 // r15 |
}; |
return kNumbers[reg.code()]; |
} |
@@ -72,7 +72,7 @@ int RegisterAllocator::ToNumber(Register reg) { |
Register RegisterAllocator::ToRegister(int num) { |
ASSERT(num >= 0 && num < kNumRegisters); |
const Register kRegisters[] = |
- { rax, rbx, rcx, rdx, rdi, r8, r9, r14, r11, r12 }; |
+ { rax, rbx, rcx, rdx, rdi, r8, r9, r14, r11, r15 }; |
return kRegisters[num]; |
} |