| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_IA32_H_ | 5 #ifndef VM_CONSTANTS_IA32_H_ |
| 6 #define VM_CONSTANTS_IA32_H_ | 6 #define VM_CONSTANTS_IA32_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const Register kExceptionObjectReg = EAX; | 62 const Register kExceptionObjectReg = EAX; |
| 63 | 63 |
| 64 // Stack trace object is passed in this register to the catch handlers when | 64 // Stack trace object is passed in this register to the catch handlers when |
| 65 // an exception is thrown. | 65 // an exception is thrown. |
| 66 const Register kStackTraceObjectReg = EDX; | 66 const Register kStackTraceObjectReg = EDX; |
| 67 | 67 |
| 68 enum ScaleFactor { | 68 enum ScaleFactor { |
| 69 TIMES_1 = 0, | 69 TIMES_1 = 0, |
| 70 TIMES_2 = 1, | 70 TIMES_2 = 1, |
| 71 TIMES_4 = 2, | 71 TIMES_4 = 2, |
| 72 TIMES_8 = 3 | 72 TIMES_8 = 3, |
| 73 TIMES_HALF_WORD_SIZE = kWordSizeLog2 - 1 |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 | 76 |
| 76 enum Condition { | 77 enum Condition { |
| 77 OVERFLOW = 0, | 78 OVERFLOW = 0, |
| 78 NO_OVERFLOW = 1, | 79 NO_OVERFLOW = 1, |
| 79 BELOW = 2, | 80 BELOW = 2, |
| 80 ABOVE_EQUAL = 3, | 81 ABOVE_EQUAL = 3, |
| 81 EQUAL = 4, | 82 EQUAL = 4, |
| 82 NOT_EQUAL = 5, | 83 NOT_EQUAL = 5, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 | 128 |
| 128 // The largest multibyte nop we will emit. This could go up to 15 if it | 129 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 129 // becomes important to us. | 130 // becomes important to us. |
| 130 const int MAX_NOP_SIZE = 8; | 131 const int MAX_NOP_SIZE = 8; |
| 131 | 132 |
| 132 } // namespace dart | 133 } // namespace dart |
| 133 | 134 |
| 134 #endif // VM_CONSTANTS_IA32_H_ | 135 #endif // VM_CONSTANTS_IA32_H_ |
| OLD | NEW |