| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54                 ? (kMaxAllocatableGeneralRegisterCount - 1) | 54                 ? (kMaxAllocatableGeneralRegisterCount - 1) | 
| 55                 : kMaxAllocatableGeneralRegisterCount, | 55                 : kMaxAllocatableGeneralRegisterCount, | 
| 56             CpuFeatures::IsSupported(VFP32DREGS) | 56             CpuFeatures::IsSupported(VFP32DREGS) | 
| 57                 ? kMaxAllocatableDoubleRegisterCount | 57                 ? kMaxAllocatableDoubleRegisterCount | 
| 58                 : (ALLOCATABLE_NO_VFP32_DOUBLE_REGISTERS(REGISTER_COUNT)0), | 58                 : (ALLOCATABLE_NO_VFP32_DOUBLE_REGISTERS(REGISTER_COUNT)0), | 
| 59             ALLOCATABLE_NO_VFP32_DOUBLE_REGISTERS(REGISTER_COUNT)0, | 59             ALLOCATABLE_NO_VFP32_DOUBLE_REGISTERS(REGISTER_COUNT)0, | 
| 60 #elif V8_TARGET_ARCH_ARM64 | 60 #elif V8_TARGET_ARCH_ARM64 | 
| 61             kMaxAllocatableGeneralRegisterCount, | 61             kMaxAllocatableGeneralRegisterCount, | 
| 62             kMaxAllocatableDoubleRegisterCount, | 62             kMaxAllocatableDoubleRegisterCount, | 
| 63             kMaxAllocatableDoubleRegisterCount, | 63             kMaxAllocatableDoubleRegisterCount, | 
|  | 64 #elif V8_TARGET_ARCH_MIPS | 
|  | 65             kMaxAllocatableGeneralRegisterCount, | 
|  | 66             kMaxAllocatableDoubleRegisterCount, | 
|  | 67             kMaxAllocatableDoubleRegisterCount, | 
|  | 68 #elif V8_TARGET_ARCH_MIPS64 | 
|  | 69             kMaxAllocatableGeneralRegisterCount, | 
|  | 70             kMaxAllocatableDoubleRegisterCount, | 
|  | 71             kMaxAllocatableDoubleRegisterCount, | 
| 64 #else | 72 #else | 
| 65             GetAllocatableGeneralRegisterCount(), | 73             GetAllocatableGeneralRegisterCount(), | 
| 66             GetAllocatableDoubleRegisterCount(), | 74             GetAllocatableDoubleRegisterCount(), | 
| 67             GetAllocatableAliasedDoubleRegisterCount(), | 75             GetAllocatableAliasedDoubleRegisterCount(), | 
| 68 #endif | 76 #endif | 
| 69             GetAllocatableGeneralCodes(), GetAllocatableDoubleCodes(), | 77             GetAllocatableGeneralCodes(), GetAllocatableDoubleCodes(), | 
| 70             kGeneralRegisterNames, kDoubleRegisterNames) { | 78             kGeneralRegisterNames, kDoubleRegisterNames) { | 
| 71   } | 79   } | 
| 72 | 80 | 
| 73   const char* general_register_name_table_[Register::kNumRegisters]; | 81   const char* general_register_name_table_[Register::kNumRegisters]; | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 129   } | 137   } | 
| 130   for (int i = 0; i < num_allocatable_double_registers_; ++i) { | 138   for (int i = 0; i < num_allocatable_double_registers_; ++i) { | 
| 131     allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); | 139     allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); | 
| 132   } | 140   } | 
| 133 } | 141 } | 
| 134 | 142 | 
| 135 #undef REGISTER_COUNT | 143 #undef REGISTER_COUNT | 
| 136 | 144 | 
| 137 }  // namespace internal | 145 }  // namespace internal | 
| 138 }  // namespace v8 | 146 }  // namespace v8 | 
| OLD | NEW | 
|---|