| 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 VM_CONSTANTS_ARM64_H_ | 5 #ifndef VM_CONSTANTS_ARM64_H_ |
| 6 #define VM_CONSTANTS_ARM64_H_ | 6 #define 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // Hint Fields. | 530 // Hint Fields. |
| 531 kHintCRmShift = 8, | 531 kHintCRmShift = 8, |
| 532 kHintCRmBits = 4, | 532 kHintCRmBits = 4, |
| 533 kHintOp2Shift = 5, | 533 kHintOp2Shift = 5, |
| 534 kHintOp2Bits = 3, | 534 kHintOp2Bits = 3, |
| 535 }; | 535 }; |
| 536 | 536 |
| 537 | 537 |
| 538 const uint32_t kImmExceptionIsRedirectedCall = 0xca11; | 538 const uint32_t kImmExceptionIsRedirectedCall = 0xca11; |
| 539 const uint32_t kImmExceptionIsUnreachable = 0xdebf; | 539 const uint32_t kImmExceptionIsUnreachable = 0xdebf; |
| 540 const uint32_t kImmExceptionIsDebug = 0xdeb0; |
| 540 const uint32_t kImmExceptionIsPrintf = 0xdeb1; | 541 const uint32_t kImmExceptionIsPrintf = 0xdeb1; |
| 541 const uint32_t kImmExceptionIsDebug = 0xdeb0; | |
| 542 | 542 |
| 543 // Helper functions for decoding logical immediates. | 543 // Helper functions for decoding logical immediates. |
| 544 static inline uint64_t RotateRight( | 544 static inline uint64_t RotateRight( |
| 545 uint64_t value, uint8_t rotate, uint8_t width) { | 545 uint64_t value, uint8_t rotate, uint8_t width) { |
| 546 ASSERT(width <= 64); | 546 ASSERT(width <= 64); |
| 547 rotate &= 63; | 547 rotate &= 63; |
| 548 return ((value & ((1UL << rotate) - 1UL)) << (width - rotate)) | | 548 return ((value & ((1UL << rotate) - 1UL)) << (width - rotate)) | |
| 549 (value >> rotate); | 549 (value >> rotate); |
| 550 } | 550 } |
| 551 | 551 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 771 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 772 | 772 |
| 773 private: | 773 private: |
| 774 DISALLOW_ALLOCATION(); | 774 DISALLOW_ALLOCATION(); |
| 775 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 775 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 776 }; | 776 }; |
| 777 | 777 |
| 778 } // namespace dart | 778 } // namespace dart |
| 779 | 779 |
| 780 #endif // VM_CONSTANTS_ARM64_H_ | 780 #endif // VM_CONSTANTS_ARM64_H_ |
| OLD | NEW |