OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_CONSTANTS_X64_H_ | 5 #ifndef VM_CONSTANTS_X64_H_ |
6 #define VM_CONSTANTS_X64_H_ | 6 #define VM_CONSTANTS_X64_H_ |
7 | 7 |
8 namespace dart { | 8 namespace dart { |
9 | 9 |
10 enum Register { | 10 enum Register { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 XMM15 = 15, | 63 XMM15 = 15, |
64 kNumberOfXmmRegisters = 16, | 64 kNumberOfXmmRegisters = 16, |
65 kNoXmmRegister = -1 // Signals an illegal register. | 65 kNoXmmRegister = -1 // Signals an illegal register. |
66 }; | 66 }; |
67 | 67 |
68 | 68 |
69 // Architecture independent aliases. | 69 // Architecture independent aliases. |
70 typedef XmmRegister FpuRegister; | 70 typedef XmmRegister FpuRegister; |
71 const FpuRegister FpuTMP = XMM0; | 71 const FpuRegister FpuTMP = XMM0; |
72 const int kNumberOfFpuRegisters = kNumberOfXmmRegisters; | 72 const int kNumberOfFpuRegisters = kNumberOfXmmRegisters; |
| 73 const FpuRegister kNoFpuRegister = kNoXmmRegister; |
73 | 74 |
74 | 75 |
75 enum RexBits { | 76 enum RexBits { |
76 REX_NONE = 0, | 77 REX_NONE = 0, |
77 REX_B = 1 << 0, | 78 REX_B = 1 << 0, |
78 REX_X = 1 << 1, | 79 REX_X = 1 << 1, |
79 REX_R = 1 << 2, | 80 REX_R = 1 << 2, |
80 REX_W = 1 << 3, | 81 REX_W = 1 << 3, |
81 REX_PREFIX = 1 << 6 | 82 REX_PREFIX = 1 << 6 |
82 }; | 83 }; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 }; | 166 }; |
166 | 167 |
167 | 168 |
168 // The largest multibyte nop we will emit. This could go up to 15 if it | 169 // The largest multibyte nop we will emit. This could go up to 15 if it |
169 // becomes important to us. | 170 // becomes important to us. |
170 const int MAX_NOP_SIZE = 8; | 171 const int MAX_NOP_SIZE = 8; |
171 | 172 |
172 } // namespace dart | 173 } // namespace dart |
173 | 174 |
174 #endif // VM_CONSTANTS_X64_H_ | 175 #endif // VM_CONSTANTS_X64_H_ |
OLD | NEW |