| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_H_ |
| 6 #define V8_ARM64_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_ASSEMBLER_ARM64_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 DCHECK(IsValidOrNone()); | 147 DCHECK(IsValidOrNone()); |
| 148 } | 148 } |
| 149 | 149 |
| 150 Register(const Register& r) { // NOLINT(runtime/explicit) | 150 Register(const Register& r) { // NOLINT(runtime/explicit) |
| 151 reg_code = r.reg_code; | 151 reg_code = r.reg_code; |
| 152 reg_size = r.reg_size; | 152 reg_size = r.reg_size; |
| 153 reg_type = r.reg_type; | 153 reg_type = r.reg_type; |
| 154 DCHECK(IsValidOrNone()); | 154 DCHECK(IsValidOrNone()); |
| 155 } | 155 } |
| 156 | 156 |
| 157 const char* ToString(); | |
| 158 bool IsAllocatable(RegisterConfiguration::CompilerSelector compiler = | |
| 159 RegisterConfiguration::CRANKSHAFT) const; | |
| 160 bool IsValid() const { | 157 bool IsValid() const { |
| 161 DCHECK(IsRegister() || IsNone()); | 158 DCHECK(IsRegister() || IsNone()); |
| 162 return IsValidRegister(); | 159 return IsValidRegister(); |
| 163 } | 160 } |
| 164 | 161 |
| 165 static Register XRegFromCode(unsigned code); | 162 static Register XRegFromCode(unsigned code); |
| 166 static Register WRegFromCode(unsigned code); | 163 static Register WRegFromCode(unsigned code); |
| 167 | 164 |
| 168 // Start of V8 compatibility section --------------------- | 165 // Start of V8 compatibility section --------------------- |
| 169 // These memebers are necessary for compilation. | 166 // These memebers are necessary for compilation. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 DCHECK(IsValidOrNone()); | 222 DCHECK(IsValidOrNone()); |
| 226 } | 223 } |
| 227 | 224 |
| 228 FPRegister(const FPRegister& r) { // NOLINT(runtime/explicit) | 225 FPRegister(const FPRegister& r) { // NOLINT(runtime/explicit) |
| 229 reg_code = r.reg_code; | 226 reg_code = r.reg_code; |
| 230 reg_size = r.reg_size; | 227 reg_size = r.reg_size; |
| 231 reg_type = r.reg_type; | 228 reg_type = r.reg_type; |
| 232 DCHECK(IsValidOrNone()); | 229 DCHECK(IsValidOrNone()); |
| 233 } | 230 } |
| 234 | 231 |
| 235 const char* ToString(); | |
| 236 bool IsAllocatable(RegisterConfiguration::CompilerSelector compiler = | |
| 237 RegisterConfiguration::CRANKSHAFT) const; | |
| 238 bool IsValid() const { | 232 bool IsValid() const { |
| 239 DCHECK(IsFPRegister() || IsNone()); | 233 DCHECK(IsFPRegister() || IsNone()); |
| 240 return IsValidFPRegister(); | 234 return IsValidFPRegister(); |
| 241 } | 235 } |
| 242 | 236 |
| 243 static FPRegister SRegFromCode(unsigned code); | 237 static FPRegister SRegFromCode(unsigned code); |
| 244 static FPRegister DRegFromCode(unsigned code); | 238 static FPRegister DRegFromCode(unsigned code); |
| 245 | 239 |
| 246 // Start of V8 compatibility section --------------------- | 240 // Start of V8 compatibility section --------------------- |
| 247 static const int kMaxNumRegisters = kNumberOfFPRegisters; | 241 static const int kMaxNumRegisters = kNumberOfFPRegisters; |
| (...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2239 public: | 2233 public: |
| 2240 explicit EnsureSpace(Assembler* assembler) { | 2234 explicit EnsureSpace(Assembler* assembler) { |
| 2241 assembler->CheckBufferSpace(); | 2235 assembler->CheckBufferSpace(); |
| 2242 } | 2236 } |
| 2243 }; | 2237 }; |
| 2244 | 2238 |
| 2245 } // namespace internal | 2239 } // namespace internal |
| 2246 } // namespace v8 | 2240 } // namespace v8 |
| 2247 | 2241 |
| 2248 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2242 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
| OLD | NEW |