| 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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 kInstrSize = 4, | 792 kInstrSize = 4, |
| 793 kInstrSizeLog2 = 2, | 793 kInstrSizeLog2 = 2, |
| 794 kPCReadOffset = 8 | 794 kPCReadOffset = 8 |
| 795 }; | 795 }; |
| 796 | 796 |
| 797 static const int32_t kNopInstruction = HINT; // hint #0 === nop. | 797 static const int32_t kNopInstruction = HINT; // hint #0 === nop. |
| 798 | 798 |
| 799 // Reserved brk and hlt instruction codes. | 799 // Reserved brk and hlt instruction codes. |
| 800 static const int32_t kBreakPointCode = 0xdeb0; // For breakpoint. | 800 static const int32_t kBreakPointCode = 0xdeb0; // For breakpoint. |
| 801 static const int32_t kStopMessageCode = 0xdeb1; // For Stop(message). | 801 static const int32_t kStopMessageCode = 0xdeb1; // For Stop(message). |
| 802 static const int32_t kSimulatorMessageCode = 0xdeb2; // For trace msg in sim. | 802 static const int32_t kSimulatorBreakCode = 0xdeb2; // For breakpoint in sim. |
| 803 static const int32_t kSimulatorBreakCode = 0xdeb3; // For breakpoint in sim. | |
| 804 static const int32_t kSimulatorRedirectCode = 0xca11; // For redirection. | 803 static const int32_t kSimulatorRedirectCode = 0xca11; // For redirection. |
| 805 | 804 |
| 806 // Breakpoint instruction filling assembler code buffers in debug mode. | 805 // Breakpoint instruction filling assembler code buffers in debug mode. |
| 807 static const int32_t kBreakPointInstruction = // brk(0xdeb0). | 806 static const int32_t kBreakPointInstruction = // brk(0xdeb0). |
| 808 BRK | (kBreakPointCode << kImm16Shift); | 807 BRK | (kBreakPointCode << kImm16Shift); |
| 809 | 808 |
| 810 // Breakpoint instruction used by the simulator. | 809 // Breakpoint instruction used by the simulator. |
| 811 // Should be distinct from kBreakPointInstruction and from a typical user | 810 // Should be distinct from kBreakPointInstruction and from a typical user |
| 812 // breakpoint inserted in generated code for debugging, e.g. brk(0). | 811 // breakpoint inserted in generated code for debugging, e.g. brk(0). |
| 813 static const int32_t kSimulatorBreakpointInstruction = | 812 static const int32_t kSimulatorBreakpointInstruction = |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 1058 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 1060 | 1059 |
| 1061 private: | 1060 private: |
| 1062 DISALLOW_ALLOCATION(); | 1061 DISALLOW_ALLOCATION(); |
| 1063 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 1062 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 1064 }; | 1063 }; |
| 1065 | 1064 |
| 1066 } // namespace dart | 1065 } // namespace dart |
| 1067 | 1066 |
| 1068 #endif // VM_CONSTANTS_ARM64_H_ | 1067 #endif // VM_CONSTANTS_ARM64_H_ |
| OLD | NEW |