| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_ | 5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_ |
| 6 #define V8_ARM64_CONSTANTS_ARM64_H_ | 6 #define V8_ARM64_CONSTANTS_ARM64_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 // Assert that this is an LP64 system. | 9 // Assert that this is an LP64 system. |
| 10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) | 10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 hi = 8, | 251 hi = 8, |
| 252 ls = 9, | 252 ls = 9, |
| 253 ge = 10, | 253 ge = 10, |
| 254 lt = 11, | 254 lt = 11, |
| 255 gt = 12, | 255 gt = 12, |
| 256 le = 13, | 256 le = 13, |
| 257 al = 14, | 257 al = 14, |
| 258 nv = 15 // Behaves as always/al. | 258 nv = 15 // Behaves as always/al. |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 inline Condition InvertCondition(Condition cond) { | 261 inline Condition NegateCondition(Condition cond) { |
| 262 // Conditions al and nv behave identically, as "always true". They can't be | 262 // Conditions al and nv behave identically, as "always true". They can't be |
| 263 // inverted, because there is no never condition. | 263 // inverted, because there is no never condition. |
| 264 ASSERT((cond != al) && (cond != nv)); | 264 ASSERT((cond != al) && (cond != nv)); |
| 265 return static_cast<Condition>(cond ^ 1); | 265 return static_cast<Condition>(cond ^ 1); |
| 266 } | 266 } |
| 267 | 267 |
| 268 // Corresponds to transposing the operands of a comparison. | 268 // Corresponds to transposing the operands of a comparison. |
| 269 inline Condition ReverseConditionForCmp(Condition cond) { | 269 inline Condition ReverseCondition(Condition cond) { |
| 270 switch (cond) { | 270 switch (cond) { |
| 271 case lo: | 271 case lo: |
| 272 return hi; | 272 return hi; |
| 273 case hi: | 273 case hi: |
| 274 return lo; | 274 return lo; |
| 275 case hs: | 275 case hs: |
| 276 return ls; | 276 return ls; |
| 277 case ls: | 277 case ls: |
| 278 return hs; | 278 return hs; |
| 279 case lt: | 279 case lt: |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 }; | 1242 }; |
| 1243 | 1243 |
| 1244 enum UnallocatedOp { | 1244 enum UnallocatedOp { |
| 1245 UnallocatedFixed = 0x00000000, | 1245 UnallocatedFixed = 0x00000000, |
| 1246 UnallocatedFMask = 0x00000000 | 1246 UnallocatedFMask = 0x00000000 |
| 1247 }; | 1247 }; |
| 1248 | 1248 |
| 1249 } } // namespace v8::internal | 1249 } } // namespace v8::internal |
| 1250 | 1250 |
| 1251 #endif // V8_ARM64_CONSTANTS_ARM64_H_ | 1251 #endif // V8_ARM64_CONSTANTS_ARM64_H_ |
| OLD | NEW |