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

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

Issue 283513002: Adds far-branches to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months 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_arm64.h ('k') | runtime/vm/find_code_object_test.cc » ('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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/constants_arm64.h ('k') | runtime/vm/find_code_object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698