[turbofan] Use NumAllocatableRegisters() instead of kMaxNumAllocatableRegisters.
authorrmcilroy <rmcilroy@chromium.org>
Thu, 9 Jul 2015 09:14:32 +0000 (02:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Jul 2015 09:14:40 +0000 (09:14 +0000)
commita4584c07e77bc0f5bf7fc2ee73a2194954fa64d4
tree4198d8d66a02f66d238183b59c0c5ab283db7920
parent6802c4b921fdc717227fec996e6988ff12a93c1b
[turbofan] Use NumAllocatableRegisters() instead of kMaxNumAllocatableRegisters.

Use NumAllocatableRegisters() instead of kMaxNumAllocatableRegisters in
ArchDefaultRegisterConfiguration::ArchDefaultRegisterConfiguration()
otherwise the compiler DCHECKS if triggered during snapshot builds on
Arm where only 16 DoubleRegisters are avaiable instead of 32.

BUG=v8:4280
LOG=N

Review URL: https://codereview.chromium.org/1230473006

Cr-Commit-Position: refs/heads/master@{#29548}
src/compiler/register-configuration.cc