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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 return; | 606 return; |
607 } | 607 } |
608 case STFDUX: { | 608 case STFDUX: { |
609 Format(instr, "stfdux 'rs, 'ra, 'rb"); | 609 Format(instr, "stfdux 'rs, 'ra, 'rb"); |
610 return; | 610 return; |
611 } | 611 } |
612 case POPCNTW: { | 612 case POPCNTW: { |
613 Format(instr, "popcntw 'ra, 'rs"); | 613 Format(instr, "popcntw 'ra, 'rs"); |
614 return; | 614 return; |
615 } | 615 } |
| 616 #if V8_TARGET_ARCH_PPC64 |
| 617 case POPCNTD: { |
| 618 Format(instr, "popcntd 'ra, 'rs"); |
| 619 return; |
| 620 } |
| 621 #endif |
616 } | 622 } |
617 | 623 |
618 switch (instr->Bits(10, 2) << 2) { | 624 switch (instr->Bits(10, 2) << 2) { |
619 case SRADIX: { | 625 case SRADIX: { |
620 Format(instr, "sradi'. 'ra,'rs,'sh"); | 626 Format(instr, "sradi'. 'ra,'rs,'sh"); |
621 return; | 627 return; |
622 } | 628 } |
623 } | 629 } |
624 | 630 |
625 // ?? are all of these xo_form? | 631 // ?? are all of these xo_form? |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 pc += d.InstructionDecode(buffer, pc); | 1412 pc += d.InstructionDecode(buffer, pc); |
1407 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, | 1413 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, |
1408 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1414 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1409 } | 1415 } |
1410 } | 1416 } |
1411 | 1417 |
1412 | 1418 |
1413 } // namespace disasm | 1419 } // namespace disasm |
1414 | 1420 |
1415 #endif // V8_TARGET_ARCH_PPC | 1421 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |