Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: runtime/vm/disassembler_arm64.cc

Issue 789903002: Complete and clean up breakpoint support in all 3 debuggers embedded in MIPS, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/constants_mips.h ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 void ARM64Decoder::DecodeExceptionGen(Instr* instr) { 825 void ARM64Decoder::DecodeExceptionGen(Instr* instr) {
826 if ((instr->Bits(0, 2) == 1) && (instr->Bits(2, 3) == 0) && 826 if ((instr->Bits(0, 2) == 1) && (instr->Bits(2, 3) == 0) &&
827 (instr->Bits(21, 3) == 0)) { 827 (instr->Bits(21, 3) == 0)) {
828 Format(instr, "svc 'imm16"); 828 Format(instr, "svc 'imm16");
829 } else if ((instr->Bits(0, 2) == 0) && (instr->Bits(2, 3) == 0) && 829 } else if ((instr->Bits(0, 2) == 0) && (instr->Bits(2, 3) == 0) &&
830 (instr->Bits(21, 3) == 1)) { 830 (instr->Bits(21, 3) == 1)) {
831 Format(instr, "brk 'imm16"); 831 Format(instr, "brk 'imm16");
832 } else if ((instr->Bits(0, 2) == 0) && (instr->Bits(2, 3) == 0) && 832 } else if ((instr->Bits(0, 2) == 0) && (instr->Bits(2, 3) == 0) &&
833 (instr->Bits(21, 3) == 2)) { 833 (instr->Bits(21, 3) == 2)) {
834 Format(instr, "hlt 'imm16"); 834 Format(instr, "hlt 'imm16");
835 } else {
836 Unknown(instr);
835 } 837 }
836 } 838 }
837 839
838 840
839 void ARM64Decoder::DecodeSystem(Instr* instr) { 841 void ARM64Decoder::DecodeSystem(Instr* instr) {
840 if ((instr->Bits(0, 8) == 0x1f) && (instr->Bits(12, 4) == 2) && 842 if ((instr->Bits(0, 8) == 0x1f) && (instr->Bits(12, 4) == 2) &&
841 (instr->Bits(16, 3) == 3) && (instr->Bits(19, 2) == 0) && 843 (instr->Bits(16, 3) == 3) && (instr->Bits(19, 2) == 0) &&
842 (instr->Bit(21) == 0)) { 844 (instr->Bit(21) == 0)) {
843 if (instr->Bits(8, 4) == 0) { 845 if (instr->Bits(8, 4) == 0) {
844 Format(instr, "nop"); 846 Format(instr, "nop");
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 human_buffer, 1464 human_buffer,
1463 sizeof(human_buffer), 1465 sizeof(human_buffer),
1464 pc); 1466 pc);
1465 pc += instruction_length; 1467 pc += instruction_length;
1466 } 1468 }
1467 } 1469 }
1468 1470
1469 } // namespace dart 1471 } // namespace dart
1470 1472
1471 #endif // defined TARGET_ARCH_ARM 1473 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/constants_mips.h ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698