diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2015-10-06 08:42:38 +0200 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-10-14 11:20:34 -0700 |
commit | d8011d1683fe0d977de2bea1147f5213d4490c5a (patch) | |
tree | 54967df8dc1732e59eef39e5c5b39fe99ad88977 /deps/v8/src/compiler/register-configuration.cc | |
parent | d1a2e5357ef0357cec9b516fa9ac78cc38a984aa (diff) | |
download | node-new-d8011d1683fe0d977de2bea1147f5213d4490c5a.tar.gz |
deps: upgrade V8 to 4.6.85.23
PR-URL: https://github.com/nodejs/node/pull/3351
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/compiler/register-configuration.cc')
-rw-r--r-- | deps/v8/src/compiler/register-configuration.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/src/compiler/register-configuration.cc b/deps/v8/src/compiler/register-configuration.cc index a3d3be1790..ebe6cfe23c 100644 --- a/deps/v8/src/compiler/register-configuration.cc +++ b/deps/v8/src/compiler/register-configuration.cc @@ -25,7 +25,7 @@ class ArchDefaultRegisterConfiguration : public RegisterConfiguration { 1, 1, #else - DoubleRegister::kMaxNumAllocatableRegisters, + DoubleRegister::NumAllocatableRegisters(), DoubleRegister::NumAllocatableAliasedRegisters(), #endif general_register_name_table_, @@ -35,7 +35,9 @@ class ArchDefaultRegisterConfiguration : public RegisterConfiguration { for (int i = 0; i < Register::kMaxNumAllocatableRegisters; ++i) { general_register_name_table_[i] = Register::AllocationIndexToString(i); } - for (int i = 0; i < DoubleRegister::kMaxNumAllocatableRegisters; ++i) { + DCHECK_GE(DoubleRegister::kMaxNumAllocatableRegisters, + DoubleRegister::NumAllocatableRegisters()); + for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { double_register_name_table_[i] = DoubleRegister::AllocationIndexToString(i); } |