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 RUNTIME_VM_CONSTANTS_X64_H_ | 5 #ifndef RUNTIME_VM_CONSTANTS_X64_H_ |
6 #define RUNTIME_VM_CONSTANTS_X64_H_ | 6 #define RUNTIME_VM_CONSTANTS_X64_H_ |
7 | 7 |
8 namespace dart { | 8 namespace dart { |
9 | 9 |
10 enum Register { | 10 enum Register { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 LESS = 12, | 140 LESS = 12, |
141 GREATER_EQUAL = 13, | 141 GREATER_EQUAL = 13, |
142 LESS_EQUAL = 14, | 142 LESS_EQUAL = 14, |
143 GREATER = 15, | 143 GREATER = 15, |
144 | 144 |
145 ZERO = EQUAL, | 145 ZERO = EQUAL, |
146 NOT_ZERO = NOT_EQUAL, | 146 NOT_ZERO = NOT_EQUAL, |
147 NEGATIVE = SIGN, | 147 NEGATIVE = SIGN, |
148 POSITIVE = NOT_SIGN, | 148 POSITIVE = NOT_SIGN, |
149 CARRY = BELOW, | 149 CARRY = BELOW, |
150 NOT_CARRY = ABOVE_EQUAL | 150 NOT_CARRY = ABOVE_EQUAL, |
| 151 |
| 152 INVALID_CONDITION = 16 |
151 }; | 153 }; |
152 | 154 |
153 #define R(reg) (1 << (reg)) | 155 #define R(reg) (1 << (reg)) |
154 | 156 |
155 #if defined(_WIN64) | 157 #if defined(_WIN64) |
156 class CallingConventions { | 158 class CallingConventions { |
157 public: | 159 public: |
158 static const Register kArg1Reg = RCX; | 160 static const Register kArg1Reg = RCX; |
159 static const Register kArg2Reg = RDX; | 161 static const Register kArg2Reg = RDX; |
160 static const Register kArg3Reg = R8; | 162 static const Register kArg3Reg = R8; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 }; | 234 }; |
233 | 235 |
234 | 236 |
235 // The largest multibyte nop we will emit. This could go up to 15 if it | 237 // The largest multibyte nop we will emit. This could go up to 15 if it |
236 // becomes important to us. | 238 // becomes important to us. |
237 const int MAX_NOP_SIZE = 8; | 239 const int MAX_NOP_SIZE = 8; |
238 | 240 |
239 } // namespace dart | 241 } // namespace dart |
240 | 242 |
241 #endif // RUNTIME_VM_CONSTANTS_X64_H_ | 243 #endif // RUNTIME_VM_CONSTANTS_X64_H_ |
OLD | NEW |