Chromium Code Reviews| Index: src/compiler/register-configuration.cc |
| diff --git a/src/compiler/register-configuration.cc b/src/compiler/register-configuration.cc |
| index 7257aca02f0f236cc6ab515bb57be85cd387276b..a231ad0e31994d54ad9493f1709a21b89ff73156 100644 |
| --- a/src/compiler/register-configuration.cc |
| +++ b/src/compiler/register-configuration.cc |
| @@ -20,11 +20,17 @@ STATIC_ASSERT(RegisterConfiguration::kMaxDoubleRegisters >= |
| class ArchDefaultRegisterConfiguration : public RegisterConfiguration { |
| public: |
| ArchDefaultRegisterConfiguration() |
| - : RegisterConfiguration(Register::kMaxNumAllocatableRegisters, |
| - DoubleRegister::kMaxNumAllocatableRegisters, |
| - DoubleRegister::NumAllocatableAliasedRegisters(), |
| - general_register_name_table_, |
| - double_register_name_table_) { |
| + : RegisterConfiguration( |
| + Register::kMaxNumAllocatableRegisters, |
| +#if V8_TARGET_ARCH_X87 |
| + DoubleRegister::NumAllocatableRegistersForTurbo(), |
|
titzer
2015/06/11 11:17:49
Why not just 1 here?
|
| + DoubleRegister::NumAllocatableAliasedRegistersForTurbo(), |
| +#else |
| + DoubleRegister::kMaxNumAllocatableRegisters, |
| + DoubleRegister::NumAllocatableAliasedRegisters(), |
| +#endif |
| + general_register_name_table_, |
| + double_register_name_table_) { |
| DCHECK_EQ(Register::kMaxNumAllocatableRegisters, |
| Register::NumAllocatableRegisters()); |
| for (int i = 0; i < Register::kMaxNumAllocatableRegisters; ++i) { |