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 | |
153 }; | 151 }; |
154 | 152 |
155 #define R(reg) (1 << (reg)) | 153 #define R(reg) (1 << (reg)) |
156 | 154 |
157 #if defined(_WIN64) | 155 #if defined(_WIN64) |
158 class CallingConventions { | 156 class CallingConventions { |
159 public: | 157 public: |
160 static const Register kArg1Reg = RCX; | 158 static const Register kArg1Reg = RCX; |
161 static const Register kArg2Reg = RDX; | 159 static const Register kArg2Reg = RDX; |
162 static const Register kArg3Reg = R8; | 160 static const Register kArg3Reg = R8; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 }; | 232 }; |
235 | 233 |
236 | 234 |
237 // The largest multibyte nop we will emit. This could go up to 15 if it | 235 // The largest multibyte nop we will emit. This could go up to 15 if it |
238 // becomes important to us. | 236 // becomes important to us. |
239 const int MAX_NOP_SIZE = 8; | 237 const int MAX_NOP_SIZE = 8; |
240 | 238 |
241 } // namespace dart | 239 } // namespace dart |
242 | 240 |
243 #endif // RUNTIME_VM_CONSTANTS_X64_H_ | 241 #endif // RUNTIME_VM_CONSTANTS_X64_H_ |
OLD | NEW |