| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const Register kExceptionObjectReg = RAX; | 85 const Register kExceptionObjectReg = RAX; |
| 86 | 86 |
| 87 // Stack trace object is passed in this register to the catch handlers when | 87 // Stack trace object is passed in this register to the catch handlers when |
| 88 // an exception is thrown. | 88 // an exception is thrown. |
| 89 const Register kStackTraceObjectReg = RDX; | 89 const Register kStackTraceObjectReg = RDX; |
| 90 | 90 |
| 91 enum ScaleFactor { | 91 enum ScaleFactor { |
| 92 TIMES_1 = 0, | 92 TIMES_1 = 0, |
| 93 TIMES_2 = 1, | 93 TIMES_2 = 1, |
| 94 TIMES_4 = 2, | 94 TIMES_4 = 2, |
| 95 TIMES_8 = 3 | 95 TIMES_8 = 3, |
| 96 TIMES_HALF_WORD_SIZE = kWordSizeLog2 - 1 |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 | 99 |
| 99 enum Condition { | 100 enum Condition { |
| 100 OVERFLOW = 0, | 101 OVERFLOW = 0, |
| 101 NO_OVERFLOW = 1, | 102 NO_OVERFLOW = 1, |
| 102 BELOW = 2, | 103 BELOW = 2, |
| 103 ABOVE_EQUAL = 3, | 104 ABOVE_EQUAL = 3, |
| 104 EQUAL = 4, | 105 EQUAL = 4, |
| 105 NOT_EQUAL = 5, | 106 NOT_EQUAL = 5, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 | 151 |
| 151 // The largest multibyte nop we will emit. This could go up to 15 if it | 152 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 152 // becomes important to us. | 153 // becomes important to us. |
| 153 const int MAX_NOP_SIZE = 8; | 154 const int MAX_NOP_SIZE = 8; |
| 154 | 155 |
| 155 } // namespace dart | 156 } // namespace dart |
| 156 | 157 |
| 157 #endif // VM_CONSTANTS_X64_H_ | 158 #endif // VM_CONSTANTS_X64_H_ |
| OLD | NEW |