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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 break; | 1429 break; |
1430 case DSGF: | 1430 case DSGF: |
1431 Format(instr, "dsgf\t'r1,'d2('r2d,'r3)"); | 1431 Format(instr, "dsgf\t'r1,'d2('r2d,'r3)"); |
1432 break; | 1432 break; |
1433 case MSGF: | 1433 case MSGF: |
1434 Format(instr, "msgf\t'r1,'d2('r2d,'r3)"); | 1434 Format(instr, "msgf\t'r1,'d2('r2d,'r3)"); |
1435 break; | 1435 break; |
1436 case MSY: | 1436 case MSY: |
1437 Format(instr, "msy\t'r1,'d2('r2d,'r3)"); | 1437 Format(instr, "msy\t'r1,'d2('r2d,'r3)"); |
1438 break; | 1438 break; |
| 1439 case MSC: |
| 1440 Format(instr, "msc\t'r1,'d2('r2d,'r3)"); |
| 1441 break; |
| 1442 case MSGC: |
| 1443 Format(instr, "msgc\t'r1,'d2('r2d,'r3)"); |
| 1444 break; |
1439 case STEY: | 1445 case STEY: |
1440 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); | 1446 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); |
1441 break; | 1447 break; |
1442 case STDY: | 1448 case STDY: |
1443 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); | 1449 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); |
1444 break; | 1450 break; |
1445 case ADB: | 1451 case ADB: |
1446 Format(instr, "adb\t'f1,'d1('r2d, 'r3)"); | 1452 Format(instr, "adb\t'f1,'d1('r2d, 'r3)"); |
1447 break; | 1453 break; |
1448 case AEB: | 1454 case AEB: |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 byte* prev_pc = pc; | 1570 byte* prev_pc = pc; |
1565 pc += d.InstructionDecode(buffer, pc); | 1571 pc += d.InstructionDecode(buffer, pc); |
1566 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), | 1572 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), |
1567 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1573 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1568 } | 1574 } |
1569 } | 1575 } |
1570 | 1576 |
1571 } // namespace disasm | 1577 } // namespace disasm |
1572 | 1578 |
1573 #endif // V8_TARGET_ARCH_S390 | 1579 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |