OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
8 #if defined(TARGET_ARCH_ARM) | 8 #if defined(TARGET_ARCH_ARM) |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 | 10 |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 PrintCondition(instr); | 421 PrintCondition(instr); |
422 return 4; | 422 return 4; |
423 } | 423 } |
424 case 'd': { | 424 case 'd': { |
425 if (format[1] == 'e') { // 'dest: branch destination | 425 if (format[1] == 'e') { // 'dest: branch destination |
426 ASSERT(STRING_STARTS_WITH(format, "dest")); | 426 ASSERT(STRING_STARTS_WITH(format, "dest")); |
427 int off = (instr->SImmed24Field() << 2) + 8; | 427 int off = (instr->SImmed24Field() << 2) + 8; |
428 uword destination = reinterpret_cast<uword>(instr) + off; | 428 uword destination = reinterpret_cast<uword>(instr) + off; |
429 buffer_pos_ += OS::SNPrint(current_position_in_buffer(), | 429 buffer_pos_ += OS::SNPrint(current_position_in_buffer(), |
430 remaining_size_in_buffer(), | 430 remaining_size_in_buffer(), |
431 "%#"Px"", | 431 "%#" Px "", |
432 destination); | 432 destination); |
433 return 4; | 433 return 4; |
434 } else { | 434 } else { |
435 return FormatDRegister(instr, format); | 435 return FormatDRegister(instr, format); |
436 } | 436 } |
437 } | 437 } |
438 case 'q': { | 438 case 'q': { |
439 return FormatQRegister(instr, format); | 439 return FormatQRegister(instr, format); |
440 } | 440 } |
441 case 'i': { // 'imm12_4, imm4_12, immf, or immd | 441 case 'i': { // 'imm12_4, imm4_12, immf, or immd |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 human_buffer, | 1516 human_buffer, |
1517 sizeof(human_buffer), | 1517 sizeof(human_buffer), |
1518 pc); | 1518 pc); |
1519 pc += instruction_length; | 1519 pc += instruction_length; |
1520 } | 1520 } |
1521 } | 1521 } |
1522 | 1522 |
1523 } // namespace dart | 1523 } // namespace dart |
1524 | 1524 |
1525 #endif // defined TARGET_ARCH_ARM | 1525 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |