| 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 #include "vm/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 8 #if defined(TARGET_ARCH_ARM64) | 8 #if defined(TARGET_ARCH_ARM64) |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 | 10 |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 (instr->Bits(21, 3) == 1)) { | 706 (instr->Bits(21, 3) == 1)) { |
| 707 Format(instr, "brk 'imm16"); | 707 Format(instr, "brk 'imm16"); |
| 708 } else if ((instr->Bits(0, 2) == 0) && (instr->Bits(2, 3) == 0) && | 708 } else if ((instr->Bits(0, 2) == 0) && (instr->Bits(2, 3) == 0) && |
| 709 (instr->Bits(21, 3) == 2)) { | 709 (instr->Bits(21, 3) == 2)) { |
| 710 Format(instr, "hlt 'imm16"); | 710 Format(instr, "hlt 'imm16"); |
| 711 } | 711 } |
| 712 } | 712 } |
| 713 | 713 |
| 714 | 714 |
| 715 void ARM64Decoder::DecodeSystem(Instr* instr) { | 715 void ARM64Decoder::DecodeSystem(Instr* instr) { |
| 716 if ((instr->Bits(0, 8) == 0x5f) && (instr->Bits(12, 4) == 2) && | 716 if ((instr->Bits(0, 8) == 0x1f) && (instr->Bits(12, 4) == 2) && |
| 717 (instr->Bits(16, 3) == 3) && (instr->Bits(19, 2) == 0) && | 717 (instr->Bits(16, 3) == 3) && (instr->Bits(19, 2) == 0) && |
| 718 (instr->Bit(21) == 0)) { | 718 (instr->Bit(21) == 0)) { |
| 719 if (instr->Bits(8, 4) == 0) { | 719 if (instr->Bits(8, 4) == 0) { |
| 720 Format(instr, "nop"); | 720 Format(instr, "nop"); |
| 721 } else { | 721 } else { |
| 722 Unknown(instr); | 722 Unknown(instr); |
| 723 } | 723 } |
| 724 } else { | 724 } else { |
| 725 Unknown(instr); | 725 Unknown(instr); |
| 726 } | 726 } |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 human_buffer, | 1167 human_buffer, |
| 1168 sizeof(human_buffer), | 1168 sizeof(human_buffer), |
| 1169 pc); | 1169 pc); |
| 1170 pc += instruction_length; | 1170 pc += instruction_length; |
| 1171 } | 1171 } |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 } // namespace dart | 1174 } // namespace dart |
| 1175 | 1175 |
| 1176 #endif // defined TARGET_ARCH_ARM | 1176 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |