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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 } | 882 } |
883 } | 883 } |
884 | 884 |
885 | 885 |
886 void Decoder::DecodeExt3(Instruction* instr) { | 886 void Decoder::DecodeExt3(Instruction* instr) { |
887 switch (instr->Bits(10, 1) << 1) { | 887 switch (instr->Bits(10, 1) << 1) { |
888 case FCFID: { | 888 case FCFID: { |
889 Format(instr, "fcfids'. 'Dt, 'Db"); | 889 Format(instr, "fcfids'. 'Dt, 'Db"); |
890 break; | 890 break; |
891 } | 891 } |
| 892 case FCFIDU: { |
| 893 Format(instr, "fcfidus'.'Dt, 'Db"); |
| 894 break; |
| 895 } |
892 default: { | 896 default: { |
893 Unknown(instr); // not used by V8 | 897 Unknown(instr); // not used by V8 |
894 } | 898 } |
895 } | 899 } |
896 } | 900 } |
897 | 901 |
898 | 902 |
899 void Decoder::DecodeExt4(Instruction* instr) { | 903 void Decoder::DecodeExt4(Instruction* instr) { |
900 switch (instr->Bits(5, 1) << 1) { | 904 switch (instr->Bits(5, 1) << 1) { |
901 case FDIV: { | 905 case FDIV: { |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 pc += d.InstructionDecode(buffer, pc); | 1437 pc += d.InstructionDecode(buffer, pc); |
1434 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, | 1438 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, |
1435 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1439 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1436 } | 1440 } |
1437 } | 1441 } |
1438 | 1442 |
1439 | 1443 |
1440 } // namespace disasm | 1444 } // namespace disasm |
1441 | 1445 |
1442 #endif // V8_TARGET_ARCH_PPC | 1446 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |