| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64_H_ | 5 #ifndef RUNTIME_VM_CONSTANTS_ARM64_H_ |
| 6 #define RUNTIME_VM_CONSTANTS_ARM64_H_ | 6 #define RUNTIME_VM_CONSTANTS_ARM64_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 VS = 6, // overflow | 186 VS = 6, // overflow |
| 187 VC = 7, // no overflow | 187 VC = 7, // no overflow |
| 188 HI = 8, // unsigned higher | 188 HI = 8, // unsigned higher |
| 189 LS = 9, // unsigned lower or same | 189 LS = 9, // unsigned lower or same |
| 190 GE = 10, // signed greater than or equal | 190 GE = 10, // signed greater than or equal |
| 191 LT = 11, // signed less than | 191 LT = 11, // signed less than |
| 192 GT = 12, // signed greater than | 192 GT = 12, // signed greater than |
| 193 LE = 13, // signed less than or equal | 193 LE = 13, // signed less than or equal |
| 194 AL = 14, // always (unconditional) | 194 AL = 14, // always (unconditional) |
| 195 NV = 15, // special condition (refer to section C1.2.3) | 195 NV = 15, // special condition (refer to section C1.2.3) |
| 196 kMaxCondition = 16, | 196 kNumberOfConditions = 16, |
| 197 kInvalidCondition = 16 |
| 197 }; | 198 }; |
| 198 | 199 |
| 199 static inline Condition InvertCondition(Condition c) { | 200 static inline Condition InvertCondition(Condition c) { |
| 200 const int32_t i = static_cast<int32_t>(c) ^ 0x1; | 201 const int32_t i = static_cast<int32_t>(c) ^ 0x1; |
| 201 return static_cast<Condition>(i); | 202 return static_cast<Condition>(i); |
| 202 } | 203 } |
| 203 | 204 |
| 204 enum Bits { | 205 enum Bits { |
| 205 B0 = (1 << 0), | 206 B0 = (1 << 0), |
| 206 B1 = (1 << 1), | 207 B1 = (1 << 1), |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 1126 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 1126 | 1127 |
| 1127 private: | 1128 private: |
| 1128 DISALLOW_ALLOCATION(); | 1129 DISALLOW_ALLOCATION(); |
| 1129 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 1130 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 1130 }; | 1131 }; |
| 1131 | 1132 |
| 1132 } // namespace dart | 1133 } // namespace dart |
| 1133 | 1134 |
| 1134 #endif // RUNTIME_VM_CONSTANTS_ARM64_H_ | 1135 #endif // RUNTIME_VM_CONSTANTS_ARM64_H_ |
| OLD | NEW |