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

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

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
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 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // An architecture independent representation of the sets of registers available 13 // An architecture independent representation of the sets of registers available
14 // for instruction creation. 14 // for instruction creation.
15 class RegisterConfiguration { 15 class RegisterConfiguration {
16 public: 16 public:
17 // Architecture independent maxes. 17 // Architecture independent maxes.
18 static const int kMaxGeneralRegisters = 32; 18 static const int kMaxGeneralRegisters = 32;
19 static const int kMaxDoubleRegisters = 32; 19 static const int kMaxDoubleRegisters = 32;
20 20
21 static const RegisterConfiguration* ArchDefault(); 21 static const RegisterConfiguration* ArchDefault();
danno 2015/10/16 08:47:02 I would prefer to have a single ArchDefault call t
22 22
23 static const RegisterConfiguration* ArchDefaultForTurbo();
24
23 RegisterConfiguration(int num_general_registers, int num_double_registers, 25 RegisterConfiguration(int num_general_registers, int num_double_registers,
24 int num_allocatable_general_registers, 26 int num_allocatable_general_registers,
25 int num_allocatable_double_registers, 27 int num_allocatable_double_registers,
26 int num_allocatable_aliased_double_registers, 28 int num_allocatable_aliased_double_registers,
27 const int* allocatable_general_codes, 29 const int* allocatable_general_codes,
28 const int* allocatable_double_codes, 30 const int* allocatable_double_codes,
29 char const* const* general_names, 31 char const* const* general_names,
30 char const* const* double_names); 32 char const* const* double_names);
31 33
32 int num_general_registers() const { return num_general_registers_; } 34 int num_general_registers() const { return num_general_registers_; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const int* allocatable_general_codes_; 81 const int* allocatable_general_codes_;
80 const int* allocatable_double_codes_; 82 const int* allocatable_double_codes_;
81 char const* const* general_register_names_; 83 char const* const* general_register_names_;
82 char const* const* double_register_names_; 84 char const* const* double_register_names_;
83 }; 85 };
84 86
85 } // namespace internal 87 } // namespace internal
86 } // namespace v8 88 } // namespace v8
87 89
88 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_ 90 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698