OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // A Disassembler object is used to disassemble a block of code instruction by | 5 // A Disassembler object is used to disassemble a block of code instruction by |
6 // instruction. The default implementation of the NameConverter object can be | 6 // instruction. The default implementation of the NameConverter object can be |
7 // overriden to modify register names or to do symbol lookup on addresses. | 7 // overriden to modify register names or to do symbol lookup on addresses. |
8 // | 8 // |
9 // The example below will disassemble a block of code and print it to stdout. | 9 // The example below will disassemble a block of code and print it to stdout. |
10 // | 10 // |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 break; | 954 break; |
955 } | 955 } |
956 case FCTID: { | 956 case FCTID: { |
957 Format(instr, "fctid 'Dt, 'Db"); | 957 Format(instr, "fctid 'Dt, 'Db"); |
958 break; | 958 break; |
959 } | 959 } |
960 case FCTIDZ: { | 960 case FCTIDZ: { |
961 Format(instr, "fctidz 'Dt, 'Db"); | 961 Format(instr, "fctidz 'Dt, 'Db"); |
962 break; | 962 break; |
963 } | 963 } |
| 964 case FCTIDU: { |
| 965 Format(instr, "fctidu 'Dt, 'Db"); |
| 966 break; |
| 967 } |
| 968 case FCTIDUZ: { |
| 969 Format(instr, "fctiduz 'Dt, 'Db"); |
| 970 break; |
| 971 } |
964 case FCTIW: { | 972 case FCTIW: { |
965 Format(instr, "fctiw'. 'Dt, 'Db"); | 973 Format(instr, "fctiw'. 'Dt, 'Db"); |
966 break; | 974 break; |
967 } | 975 } |
968 case FCTIWZ: { | 976 case FCTIWZ: { |
969 Format(instr, "fctiwz'. 'Dt, 'Db"); | 977 Format(instr, "fctiwz'. 'Dt, 'Db"); |
970 break; | 978 break; |
971 } | 979 } |
972 case FMR: { | 980 case FMR: { |
973 Format(instr, "fmr'. 'Dt, 'Db"); | 981 Format(instr, "fmr'. 'Dt, 'Db"); |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1437 pc += d.InstructionDecode(buffer, pc); | 1445 pc += d.InstructionDecode(buffer, pc); |
1438 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, | 1446 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, |
1439 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1447 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1440 } | 1448 } |
1441 } | 1449 } |
1442 | 1450 |
1443 | 1451 |
1444 } // namespace disasm | 1452 } // namespace disasm |
1445 | 1453 |
1446 #endif // V8_TARGET_ARCH_PPC | 1454 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |