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_IA32_H_ | 5 #ifndef RUNTIME_VM_CONSTANTS_IA32_H_ |
6 #define RUNTIME_VM_CONSTANTS_IA32_H_ | 6 #define RUNTIME_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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 LESS = 12, | 115 LESS = 12, |
116 GREATER_EQUAL = 13, | 116 GREATER_EQUAL = 13, |
117 LESS_EQUAL = 14, | 117 LESS_EQUAL = 14, |
118 GREATER = 15, | 118 GREATER = 15, |
119 | 119 |
120 ZERO = EQUAL, | 120 ZERO = EQUAL, |
121 NOT_ZERO = NOT_EQUAL, | 121 NOT_ZERO = NOT_EQUAL, |
122 NEGATIVE = SIGN, | 122 NEGATIVE = SIGN, |
123 POSITIVE = NOT_SIGN, | 123 POSITIVE = NOT_SIGN, |
124 CARRY = BELOW, | 124 CARRY = BELOW, |
125 NOT_CARRY = ABOVE_EQUAL, | 125 NOT_CARRY = ABOVE_EQUAL |
126 | |
127 INVALID_CONDITION = 16 | |
128 }; | 126 }; |
129 | 127 |
130 | 128 |
131 class Instr { | 129 class Instr { |
132 public: | 130 public: |
133 static const uint8_t kHltInstruction = 0xF4; | 131 static const uint8_t kHltInstruction = 0xF4; |
134 // We prefer not to use the int3 instruction since it conflicts with gdb. | 132 // We prefer not to use the int3 instruction since it conflicts with gdb. |
135 static const uint8_t kBreakPointInstruction = kHltInstruction; | 133 static const uint8_t kBreakPointInstruction = kHltInstruction; |
136 static const int kBreakPointInstructionSize = 1; | 134 static const int kBreakPointInstructionSize = 1; |
137 | 135 |
(...skipping 15 matching lines...) Expand all Loading... |
153 }; | 151 }; |
154 | 152 |
155 | 153 |
156 // The largest multibyte nop we will emit. This could go up to 15 if it | 154 // The largest multibyte nop we will emit. This could go up to 15 if it |
157 // becomes important to us. | 155 // becomes important to us. |
158 const int MAX_NOP_SIZE = 8; | 156 const int MAX_NOP_SIZE = 8; |
159 | 157 |
160 } // namespace dart | 158 } // namespace dart |
161 | 159 |
162 #endif // RUNTIME_VM_CONSTANTS_IA32_H_ | 160 #endif // RUNTIME_VM_CONSTANTS_IA32_H_ |
OLD | NEW |