OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 enum XmmRegister { | 45 enum XmmRegister { |
46 XMM0 = 0, | 46 XMM0 = 0, |
47 XMM1 = 1, | 47 XMM1 = 1, |
48 XMM2 = 2, | 48 XMM2 = 2, |
49 XMM3 = 3, | 49 XMM3 = 3, |
50 XMM4 = 4, | 50 XMM4 = 4, |
51 XMM5 = 5, | 51 XMM5 = 5, |
52 XMM6 = 6, | 52 XMM6 = 6, |
53 XMM7 = 7, | 53 XMM7 = 7, |
54 kNumberOfXmmRegisters = 8, | 54 XMM8 = 8, |
| 55 XMM9 = 9, |
| 56 XMM10 = 10, |
| 57 XMM11 = 11, |
| 58 XMM12 = 12, |
| 59 XMM13 = 13, |
| 60 XMM14 = 14, |
| 61 XMM15 = 15, |
| 62 kNumberOfXmmRegisters = 16, |
55 kNoXmmRegister = -1 // Signals an illegal register. | 63 kNoXmmRegister = -1 // Signals an illegal register. |
56 }; | 64 }; |
57 | 65 |
58 | 66 |
59 enum RexBits { | 67 enum RexBits { |
60 REX_NONE = 0, | 68 REX_NONE = 0, |
61 REX_B = 1 << 0, | 69 REX_B = 1 << 0, |
62 REX_X = 1 << 1, | 70 REX_X = 1 << 1, |
63 REX_R = 1 << 2, | 71 REX_R = 1 << 2, |
64 REX_W = 1 << 3, | 72 REX_W = 1 << 3, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 }; | 148 }; |
141 | 149 |
142 | 150 |
143 // The largest multibyte nop we will emit. This could go up to 15 if it | 151 // The largest multibyte nop we will emit. This could go up to 15 if it |
144 // becomes important to us. | 152 // becomes important to us. |
145 const int MAX_NOP_SIZE = 8; | 153 const int MAX_NOP_SIZE = 8; |
146 | 154 |
147 } // namespace dart | 155 } // namespace dart |
148 | 156 |
149 #endif // VM_CONSTANTS_X64_H_ | 157 #endif // VM_CONSTANTS_X64_H_ |
OLD | NEW |