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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // - "context" | 189 // - "context" |
190 | 190 |
191 static Register from_code(int code) { | 191 static Register from_code(int code) { |
192 // Always return an X register. | 192 // Always return an X register. |
193 return Register::Create(code, kXRegSizeInBits); | 193 return Register::Create(code, kXRegSizeInBits); |
194 } | 194 } |
195 | 195 |
196 // End of V8 compatibility section ----------------------- | 196 // End of V8 compatibility section ----------------------- |
197 }; | 197 }; |
198 | 198 |
| 199 static const bool kSimpleFPAliasing = true; |
199 | 200 |
200 struct FPRegister : public CPURegister { | 201 struct FPRegister : public CPURegister { |
201 enum Code { | 202 enum Code { |
202 #define REGISTER_CODE(R) kCode_##R, | 203 #define REGISTER_CODE(R) kCode_##R, |
203 DOUBLE_REGISTERS(REGISTER_CODE) | 204 DOUBLE_REGISTERS(REGISTER_CODE) |
204 #undef REGISTER_CODE | 205 #undef REGISTER_CODE |
205 kAfterLast, | 206 kAfterLast, |
206 kCode_no_reg = -1 | 207 kCode_no_reg = -1 |
207 }; | 208 }; |
208 | 209 |
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 public: | 2239 public: |
2239 explicit EnsureSpace(Assembler* assembler) { | 2240 explicit EnsureSpace(Assembler* assembler) { |
2240 assembler->CheckBufferSpace(); | 2241 assembler->CheckBufferSpace(); |
2241 } | 2242 } |
2242 }; | 2243 }; |
2243 | 2244 |
2244 } // namespace internal | 2245 } // namespace internal |
2245 } // namespace v8 | 2246 } // namespace v8 |
2246 | 2247 |
2247 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2248 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
OLD | NEW |