| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 PARITY_EVEN = 10, | 87 PARITY_EVEN = 10, |
| 88 PARITY_ODD = 11, | 88 PARITY_ODD = 11, |
| 89 LESS = 12, | 89 LESS = 12, |
| 90 GREATER_EQUAL = 13, | 90 GREATER_EQUAL = 13, |
| 91 LESS_EQUAL = 14, | 91 LESS_EQUAL = 14, |
| 92 GREATER = 15, | 92 GREATER = 15, |
| 93 | 93 |
| 94 ZERO = EQUAL, | 94 ZERO = EQUAL, |
| 95 NOT_ZERO = NOT_EQUAL, | 95 NOT_ZERO = NOT_EQUAL, |
| 96 NEGATIVE = SIGN, | 96 NEGATIVE = SIGN, |
| 97 POSITIVE = NOT_SIGN | 97 POSITIVE = NOT_SIGN, |
| 98 CARRY = BELOW, |
| 99 NOT_CARRY = ABOVE_EQUAL |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 | 102 |
| 101 class Instr { | 103 class Instr { |
| 102 public: | 104 public: |
| 103 static const uint8_t kHltInstruction = 0xF4; | 105 static const uint8_t kHltInstruction = 0xF4; |
| 104 // We prefer not to use the int3 instruction since it conflicts with gdb. | 106 // We prefer not to use the int3 instruction since it conflicts with gdb. |
| 105 static const uint8_t kBreakPointInstruction = kHltInstruction; | 107 static const uint8_t kBreakPointInstruction = kHltInstruction; |
| 106 static const int kBreakPointInstructionSize = 1; | 108 static const int kBreakPointInstructionSize = 1; |
| 107 | 109 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 | 127 |
| 126 // The largest multibyte nop we will emit. This could go up to 15 if it | 128 // The largest multibyte nop we will emit. This could go up to 15 if it |
| 127 // becomes important to us. | 129 // becomes important to us. |
| 128 const int MAX_NOP_SIZE = 8; | 130 const int MAX_NOP_SIZE = 8; |
| 129 | 131 |
| 130 } // namespace dart | 132 } // namespace dart |
| 131 | 133 |
| 132 #endif // VM_CONSTANTS_IA32_H_ | 134 #endif // VM_CONSTANTS_IA32_H_ |
| OLD | NEW |