| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 if (((instr->RdField() == R31) || (instr->RnField() == R31)) && | 606 if (((instr->RdField() == R31) || (instr->RnField() == R31)) && |
| 607 (instr->Imm12Field() == 0) && (instr->Bit(29) == 0)) { | 607 (instr->Imm12Field() == 0) && (instr->Bit(29) == 0)) { |
| 608 Format(instr, "mov'sf 'rd, 'rn"); | 608 Format(instr, "mov'sf 'rd, 'rn"); |
| 609 } else { | 609 } else { |
| 610 Format(instr, "addi'sf's 'rd, 'rn, 'imm12s"); | 610 Format(instr, "addi'sf's 'rd, 'rn, 'imm12s"); |
| 611 } | 611 } |
| 612 } | 612 } |
| 613 break; | 613 break; |
| 614 } | 614 } |
| 615 case 1: { | 615 case 1: { |
| 616 if ((instr->RdField() == R31) && (instr->SFField())) { | 616 if ((instr->RdField() == R31) && (instr->SField() == 1)) { |
| 617 Format(instr, "cmpi'sf 'rn, 'imm12s"); | 617 Format(instr, "cmpi'sf 'rn, 'imm12s"); |
| 618 } else { | 618 } else { |
| 619 Format(instr, "subi'sf's 'rd, 'rn, 'imm12s"); | 619 Format(instr, "subi'sf's 'rd, 'rn, 'imm12s"); |
| 620 } | 620 } |
| 621 break; | 621 break; |
| 622 } | 622 } |
| 623 default: | 623 default: |
| 624 Unknown(instr); | 624 Unknown(instr); |
| 625 break; | 625 break; |
| 626 } | 626 } |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 human_buffer, | 1052 human_buffer, |
| 1053 sizeof(human_buffer), | 1053 sizeof(human_buffer), |
| 1054 pc); | 1054 pc); |
| 1055 pc += instruction_length; | 1055 pc += instruction_length; |
| 1056 } | 1056 } |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 } // namespace dart | 1059 } // namespace dart |
| 1060 | 1060 |
| 1061 #endif // defined TARGET_ARCH_ARM | 1061 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |