Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: src/register-configuration.h

Issue 2176173003: [Turbofan] Revert FP register aliasing support on Arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/wasm-linkage.cc ('k') | src/register-configuration.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef V8_COMPILER_REGISTER_CONFIGURATION_H_ 5 #ifndef V8_COMPILER_REGISTER_CONFIGURATION_H_
6 #define V8_COMPILER_REGISTER_CONFIGURATION_H_ 6 #define V8_COMPILER_REGISTER_CONFIGURATION_H_
7 7
8 #include "src/base/macros.h" 8 #include "src/base/macros.h"
9 #include "src/machine-type.h" 9 #include "src/machine-type.h"
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 // Default RegisterConfigurations for the target architecture. 29 // Default RegisterConfigurations for the target architecture.
30 // TODO(X87): This distinction in RegisterConfigurations is temporary 30 // TODO(X87): This distinction in RegisterConfigurations is temporary
31 // until x87 TF supports all of the registers that Crankshaft does. 31 // until x87 TF supports all of the registers that Crankshaft does.
32 static const RegisterConfiguration* Crankshaft(); 32 static const RegisterConfiguration* Crankshaft();
33 static const RegisterConfiguration* Turbofan(); 33 static const RegisterConfiguration* Turbofan();
34 34
35 RegisterConfiguration(int num_general_registers, int num_double_registers, 35 RegisterConfiguration(int num_general_registers, int num_double_registers,
36 int num_allocatable_general_registers, 36 int num_allocatable_general_registers,
37 int num_allocatable_double_registers, 37 int num_allocatable_double_registers,
38 int num_allocatable_aliased_double_registers,
38 const int* allocatable_general_codes, 39 const int* allocatable_general_codes,
39 const int* allocatable_double_codes, 40 const int* allocatable_double_codes,
40 AliasingKind fp_aliasing_kind, 41 AliasingKind fp_aliasing_kind,
41 char const* const* general_names, 42 char const* const* general_names,
42 char const* const* float_names, 43 char const* const* float_names,
43 char const* const* double_names, 44 char const* const* double_names,
44 char const* const* simd128_names); 45 char const* const* simd128_names);
45 46
46 int num_general_registers() const { return num_general_registers_; } 47 int num_general_registers() const { return num_general_registers_; }
47 int num_float_registers() const { return num_float_registers_; } 48 int num_float_registers() const { return num_float_registers_; }
48 int num_double_registers() const { return num_double_registers_; } 49 int num_double_registers() const { return num_double_registers_; }
49 int num_simd128_registers() const { return num_simd128_registers_; } 50 int num_simd128_registers() const { return num_simd128_registers_; }
50 int num_allocatable_general_registers() const { 51 int num_allocatable_general_registers() const {
51 return num_allocatable_general_registers_; 52 return num_allocatable_general_registers_;
52 } 53 }
53 int num_allocatable_float_registers() const { 54 int num_allocatable_float_registers() const {
54 return num_allocatable_float_registers_; 55 return num_allocatable_float_registers_;
55 } 56 }
56 int num_allocatable_double_registers() const { 57 int num_allocatable_double_registers() const {
57 return num_allocatable_double_registers_; 58 return num_allocatable_double_registers_;
58 } 59 }
60 // TODO(bbudge): This is a temporary work-around required because our
61 // register allocator does not yet support the aliasing of single/double
62 // registers on ARM.
63 int num_allocatable_aliased_double_registers() const {
64 return num_allocatable_aliased_double_registers_;
65 }
59 int num_allocatable_simd128_registers() const { 66 int num_allocatable_simd128_registers() const {
60 return num_allocatable_simd128_registers_; 67 return num_allocatable_simd128_registers_;
61 } 68 }
62 AliasingKind fp_aliasing_kind() const { return fp_aliasing_kind_; } 69 AliasingKind fp_aliasing_kind() const { return fp_aliasing_kind_; }
63 int32_t allocatable_general_codes_mask() const { 70 int32_t allocatable_general_codes_mask() const {
64 return allocatable_general_codes_mask_; 71 return allocatable_general_codes_mask_;
65 } 72 }
66 int32_t allocatable_double_codes_mask() const { 73 int32_t allocatable_double_codes_mask() const {
67 return allocatable_double_codes_mask_; 74 return allocatable_double_codes_mask_;
68 } 75 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 MachineRepresentation other_rep, int other_index) const; 135 MachineRepresentation other_rep, int other_index) const;
129 136
130 private: 137 private:
131 const int num_general_registers_; 138 const int num_general_registers_;
132 int num_float_registers_; 139 int num_float_registers_;
133 const int num_double_registers_; 140 const int num_double_registers_;
134 int num_simd128_registers_; 141 int num_simd128_registers_;
135 int num_allocatable_general_registers_; 142 int num_allocatable_general_registers_;
136 int num_allocatable_float_registers_; 143 int num_allocatable_float_registers_;
137 int num_allocatable_double_registers_; 144 int num_allocatable_double_registers_;
145 int num_allocatable_aliased_double_registers_;
138 int num_allocatable_simd128_registers_; 146 int num_allocatable_simd128_registers_;
139 int32_t allocatable_general_codes_mask_; 147 int32_t allocatable_general_codes_mask_;
140 int32_t allocatable_float_codes_mask_; 148 int32_t allocatable_float_codes_mask_;
141 int32_t allocatable_double_codes_mask_; 149 int32_t allocatable_double_codes_mask_;
142 int32_t allocatable_simd128_codes_mask_; 150 int32_t allocatable_simd128_codes_mask_;
143 const int* allocatable_general_codes_; 151 const int* allocatable_general_codes_;
144 int allocatable_float_codes_[kMaxFPRegisters]; 152 int allocatable_float_codes_[kMaxFPRegisters];
145 const int* allocatable_double_codes_; 153 const int* allocatable_double_codes_;
146 int allocatable_simd128_codes_[kMaxFPRegisters]; 154 int allocatable_simd128_codes_[kMaxFPRegisters];
147 AliasingKind fp_aliasing_kind_; 155 AliasingKind fp_aliasing_kind_;
148 char const* const* general_register_names_; 156 char const* const* general_register_names_;
149 char const* const* float_register_names_; 157 char const* const* float_register_names_;
150 char const* const* double_register_names_; 158 char const* const* double_register_names_;
151 char const* const* simd128_register_names_; 159 char const* const* simd128_register_names_;
152 }; 160 };
153 161
154 } // namespace internal 162 } // namespace internal
155 } // namespace v8 163 } // namespace v8
156 164
157 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_ 165 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-linkage.cc ('k') | src/register-configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698