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

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

Issue 240283005: Adds simulator debugger and Stop to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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
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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 if (instr->IsDPImmediateOp()) { 863 if (instr->IsDPImmediateOp()) {
864 DecodeDPImmediate(instr); 864 DecodeDPImmediate(instr);
865 } else if (instr->IsCompareBranchOp()) { 865 } else if (instr->IsCompareBranchOp()) {
866 DecodeCompareBranch(instr); 866 DecodeCompareBranch(instr);
867 } else if (instr->IsLoadStoreOp()) { 867 } else if (instr->IsLoadStoreOp()) {
868 DecodeLoadStore(instr); 868 DecodeLoadStore(instr);
869 } else if (instr->IsDPRegisterOp()) { 869 } else if (instr->IsDPRegisterOp()) {
870 DecodeDPRegister(instr); 870 DecodeDPRegister(instr);
871 } else if (instr->IsDPSimd1Op()) { 871 } else if (instr->IsDPSimd1Op()) {
872 DecodeDPSimd1(instr); 872 DecodeDPSimd1(instr);
873 } else if (instr->IsDPSimd2Op()) {
874 DecodeDPSimd2(instr);
873 } else { 875 } else {
874 ASSERT(instr->IsDPSimd2Op()); 876 Unknown(instr);
875 DecodeDPSimd2(instr);
876 } 877 }
877 } 878 }
878 879
879 880
880 void Disassembler::DecodeInstruction(char* hex_buffer, intptr_t hex_size, 881 void Disassembler::DecodeInstruction(char* hex_buffer, intptr_t hex_size,
881 char* human_buffer, intptr_t human_size, 882 char* human_buffer, intptr_t human_size,
882 int* out_instr_size, uword pc) { 883 int* out_instr_size, uword pc) {
883 ARM64Decoder decoder(human_buffer, human_size); 884 ARM64Decoder decoder(human_buffer, human_size);
884 decoder.InstructionDecode(pc); 885 decoder.InstructionDecode(pc);
885 int32_t instruction_bits = Instr::At(pc)->InstructionBits(); 886 int32_t instruction_bits = Instr::At(pc)->InstructionBits();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 human_buffer, 919 human_buffer,
919 sizeof(human_buffer), 920 sizeof(human_buffer),
920 pc); 921 pc);
921 pc += instruction_length; 922 pc += instruction_length;
922 } 923 }
923 } 924 }
924 925
925 } // namespace dart 926 } // namespace dart
926 927
927 #endif // defined TARGET_ARCH_ARM 928 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698