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

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

Issue 2030143002: Add FloatRegister names to RegisterConfiguration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix non-ARM ports. Created 4 years, 6 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/instruction.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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 16 matching lines...) Expand all
27 27
28 static const RegisterConfiguration* ArchDefault(CompilerSelector compiler); 28 static const RegisterConfiguration* ArchDefault(CompilerSelector compiler);
29 29
30 RegisterConfiguration(int num_general_registers, int num_double_registers, 30 RegisterConfiguration(int num_general_registers, int num_double_registers,
31 int num_allocatable_general_registers, 31 int num_allocatable_general_registers,
32 int num_allocatable_double_registers, 32 int num_allocatable_double_registers,
33 int num_allocatable_aliased_double_registers, 33 int num_allocatable_aliased_double_registers,
34 const int* allocatable_general_codes, 34 const int* allocatable_general_codes,
35 const int* allocatable_double_codes, 35 const int* allocatable_double_codes,
36 char const* const* general_names, 36 char const* const* general_names,
37 char const* const* float_names,
37 char const* const* double_names); 38 char const* const* double_names);
38 39
39 int num_general_registers() const { return num_general_registers_; } 40 int num_general_registers() const { return num_general_registers_; }
40 int num_double_registers() const { return num_double_registers_; } 41 int num_double_registers() const { return num_double_registers_; }
41 int num_allocatable_general_registers() const { 42 int num_allocatable_general_registers() const {
42 return num_allocatable_general_registers_; 43 return num_allocatable_general_registers_;
43 } 44 }
44 int num_allocatable_double_registers() const { 45 int num_allocatable_double_registers() const {
45 return num_allocatable_double_registers_; 46 return num_allocatable_double_registers_;
46 } 47 }
(...skipping 11 matching lines...) Expand all
58 } 59 }
59 int GetAllocatableGeneralCode(int index) const { 60 int GetAllocatableGeneralCode(int index) const {
60 return allocatable_general_codes_[index]; 61 return allocatable_general_codes_[index];
61 } 62 }
62 int GetAllocatableDoubleCode(int index) const { 63 int GetAllocatableDoubleCode(int index) const {
63 return allocatable_double_codes_[index]; 64 return allocatable_double_codes_[index];
64 } 65 }
65 const char* GetGeneralRegisterName(int code) const { 66 const char* GetGeneralRegisterName(int code) const {
66 return general_register_names_[code]; 67 return general_register_names_[code];
67 } 68 }
69 const char* GetFloatRegisterName(int code) const {
70 return float_register_names_[code];
71 }
68 const char* GetDoubleRegisterName(int code) const { 72 const char* GetDoubleRegisterName(int code) const {
69 return double_register_names_[code]; 73 return double_register_names_[code];
70 } 74 }
71 const int* allocatable_general_codes() const { 75 const int* allocatable_general_codes() const {
72 return allocatable_general_codes_; 76 return allocatable_general_codes_;
73 } 77 }
74 const int* allocatable_double_codes() const { 78 const int* allocatable_double_codes() const {
75 return allocatable_double_codes_; 79 return allocatable_double_codes_;
76 } 80 }
77 81
78 private: 82 private:
79 const int num_general_registers_; 83 const int num_general_registers_;
80 const int num_double_registers_; 84 const int num_double_registers_;
81 int num_allocatable_general_registers_; 85 int num_allocatable_general_registers_;
82 int num_allocatable_double_registers_; 86 int num_allocatable_double_registers_;
83 int num_allocatable_aliased_double_registers_; 87 int num_allocatable_aliased_double_registers_;
84 int32_t allocatable_general_codes_mask_; 88 int32_t allocatable_general_codes_mask_;
85 int32_t allocatable_double_codes_mask_; 89 int32_t allocatable_double_codes_mask_;
86 const int* allocatable_general_codes_; 90 const int* allocatable_general_codes_;
87 const int* allocatable_double_codes_; 91 const int* allocatable_double_codes_;
88 char const* const* general_register_names_; 92 char const* const* general_register_names_;
93 char const* const* float_register_names_;
89 char const* const* double_register_names_; 94 char const* const* double_register_names_;
90 }; 95 };
91 96
92 } // namespace internal 97 } // namespace internal
93 } // namespace v8 98 } // namespace v8
94 99
95 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_ 100 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/register-configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698