| 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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 break; | 938 break; |
| 939 } | 939 } |
| 940 case FRSP: { | 940 case FRSP: { |
| 941 Format(instr, "frsp'. 'Dt, 'Db"); | 941 Format(instr, "frsp'. 'Dt, 'Db"); |
| 942 break; | 942 break; |
| 943 } | 943 } |
| 944 case FCFID: { | 944 case FCFID: { |
| 945 Format(instr, "fcfid'. 'Dt, 'Db"); | 945 Format(instr, "fcfid'. 'Dt, 'Db"); |
| 946 break; | 946 break; |
| 947 } | 947 } |
| 948 case FCFIDU: { |
| 949 Format(instr, "fcfidu'. 'Dt, 'Db"); |
| 950 break; |
| 951 } |
| 948 case FCTID: { | 952 case FCTID: { |
| 949 Format(instr, "fctid 'Dt, 'Db"); | 953 Format(instr, "fctid 'Dt, 'Db"); |
| 950 break; | 954 break; |
| 951 } | 955 } |
| 952 case FCTIDZ: { | 956 case FCTIDZ: { |
| 953 Format(instr, "fctidz 'Dt, 'Db"); | 957 Format(instr, "fctidz 'Dt, 'Db"); |
| 954 break; | 958 break; |
| 955 } | 959 } |
| 956 case FCTIW: { | 960 case FCTIW: { |
| 957 Format(instr, "fctiw'. 'Dt, 'Db"); | 961 Format(instr, "fctiw'. 'Dt, 'Db"); |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 pc += d.InstructionDecode(buffer, pc); | 1433 pc += d.InstructionDecode(buffer, pc); |
| 1430 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, | 1434 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, |
| 1431 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1435 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
| 1432 } | 1436 } |
| 1433 } | 1437 } |
| 1434 | 1438 |
| 1435 | 1439 |
| 1436 } // namespace disasm | 1440 } // namespace disasm |
| 1437 | 1441 |
| 1438 #endif // V8_TARGET_ARCH_PPC | 1442 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |