| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/register-configuration.h" | 5 #include "src/register-configuration.h" |
| 6 #include "src/globals.h" | 6 #include "src/globals.h" |
| 7 #include "src/macro-assembler.h" | 7 #include "src/macro-assembler.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class ArchDefaultRegisterConfiguration : public RegisterConfiguration { | 37 class ArchDefaultRegisterConfiguration : public RegisterConfiguration { |
| 38 public: | 38 public: |
| 39 ArchDefaultRegisterConfiguration() | 39 ArchDefaultRegisterConfiguration() |
| 40 : RegisterConfiguration( | 40 : RegisterConfiguration( |
| 41 Register::kNumRegisters, DoubleRegister::kMaxNumRegisters, | 41 Register::kNumRegisters, DoubleRegister::kMaxNumRegisters, |
| 42 #if V8_TARGET_ARCH_IA32 | 42 #if V8_TARGET_ARCH_IA32 |
| 43 kMaxAllocatableGeneralRegisterCount, | 43 kMaxAllocatableGeneralRegisterCount, |
| 44 kMaxAllocatableDoubleRegisterCount, | 44 kMaxAllocatableDoubleRegisterCount, |
| 45 kMaxAllocatableDoubleRegisterCount, | 45 kMaxAllocatableDoubleRegisterCount, |
| 46 #elif V8_TARGET_ARCH_X87 | 46 #elif V8_TARGET_ARCH_X87 |
| 47 kMaxAllocatableGeneralRegisterCount, 1, 1, | 47 kMaxAllocatableGeneralRegisterCount, |
| 48 compiler == TURBOFAN ? 1 : kMaxAllocatableDoubleRegisterCount, |
| 49 compiler == TURBOFAN ? 1 : kMaxAllocatableDoubleRegisterCount, |
| 48 #elif V8_TARGET_ARCH_X64 | 50 #elif V8_TARGET_ARCH_X64 |
| 49 kMaxAllocatableGeneralRegisterCount, | 51 kMaxAllocatableGeneralRegisterCount, |
| 50 kMaxAllocatableDoubleRegisterCount, | 52 kMaxAllocatableDoubleRegisterCount, |
| 51 kMaxAllocatableDoubleRegisterCount, | 53 kMaxAllocatableDoubleRegisterCount, |
| 52 #elif V8_TARGET_ARCH_ARM | 54 #elif V8_TARGET_ARCH_ARM |
| 53 FLAG_enable_embedded_constant_pool | 55 FLAG_enable_embedded_constant_pool |
| 54 ? (kMaxAllocatableGeneralRegisterCount - 1) | 56 ? (kMaxAllocatableGeneralRegisterCount - 1) |
| 55 : kMaxAllocatableGeneralRegisterCount, | 57 : kMaxAllocatableGeneralRegisterCount, |
| 56 CpuFeatures::IsSupported(VFP32DREGS) | 58 CpuFeatures::IsSupported(VFP32DREGS) |
| 57 ? kMaxAllocatableDoubleRegisterCount | 59 ? kMaxAllocatableDoubleRegisterCount |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 140 } |
| 139 for (int i = 0; i < num_allocatable_double_registers_; ++i) { | 141 for (int i = 0; i < num_allocatable_double_registers_; ++i) { |
| 140 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); | 142 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); |
| 141 } | 143 } |
| 142 } | 144 } |
| 143 | 145 |
| 144 #undef REGISTER_COUNT | 146 #undef REGISTER_COUNT |
| 145 | 147 |
| 146 } // namespace internal | 148 } // namespace internal |
| 147 } // namespace v8 | 149 } // namespace v8 |
| OLD | NEW |