Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 1f5bea9420e3f3d688021c9d880f226c68ef5fe1..c2cb491261d90dff25aa18063cfaa20f6d387456 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -201,7 +201,8 @@ void RelocInfo::PatchCode(byte* instructions, int instruction_count) { |
// ----------------------------------------------------------------------------- |
// Register constants. |
-const int Register::kRegisterCodeByAllocationIndex[kNumAllocatableRegisters] = { |
+const int |
+Register::kRegisterCodeByAllocationIndex[kMaxNumAllocatableRegisters] = { |
// rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r15 |
0, 3, 2, 1, 7, 8, 9, 11, 14, 15 |
}; |