| 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_MIPS. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 8 #if defined(TARGET_ARCH_MIPS) | 8 #if defined(TARGET_ARCH_MIPS) |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 | 10 |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 break; | 625 break; |
| 626 } | 626 } |
| 627 case SW: { | 627 case SW: { |
| 628 Format(instr, "sw 'rt, 'imms('rs)"); | 628 Format(instr, "sw 'rt, 'imms('rs)"); |
| 629 break; | 629 break; |
| 630 } | 630 } |
| 631 case SWC1: { | 631 case SWC1: { |
| 632 Format(instr, "swc1 'ft, 'imms('rs)"); | 632 Format(instr, "swc1 'ft, 'imms('rs)"); |
| 633 break; | 633 break; |
| 634 } | 634 } |
| 635 case XORI: { |
| 636 Format(instr, "xori 'rt, 'rs, 'immu"); |
| 637 break; |
| 638 } |
| 635 default: { | 639 default: { |
| 636 Unknown(instr); | 640 Unknown(instr); |
| 637 break; | 641 break; |
| 638 } | 642 } |
| 639 } | 643 } |
| 640 } | 644 } |
| 641 | 645 |
| 642 | 646 |
| 643 void Disassembler::DecodeInstruction(char* hex_buffer, intptr_t hex_size, | 647 void Disassembler::DecodeInstruction(char* hex_buffer, intptr_t hex_size, |
| 644 char* human_buffer, intptr_t human_size, | 648 char* human_buffer, intptr_t human_size, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 pc); | 687 pc); |
| 684 pc += instruction_length; | 688 pc += instruction_length; |
| 685 } | 689 } |
| 686 | 690 |
| 687 return; | 691 return; |
| 688 } | 692 } |
| 689 | 693 |
| 690 } // namespace dart | 694 } // namespace dart |
| 691 | 695 |
| 692 #endif // defined TARGET_ARCH_MIPS | 696 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |