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 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 case MSY: | 1421 case MSY: |
1422 Format(instr, "msy\t'r1,'d2('r2d,'r3)"); | 1422 Format(instr, "msy\t'r1,'d2('r2d,'r3)"); |
1423 break; | 1423 break; |
1424 case STEY: | 1424 case STEY: |
1425 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); | 1425 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); |
1426 break; | 1426 break; |
1427 case STDY: | 1427 case STDY: |
1428 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); | 1428 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); |
1429 break; | 1429 break; |
1430 case ADB: | 1430 case ADB: |
1431 Format(instr, "adb\t'r1,'d1('r2d, 'r3)"); | 1431 Format(instr, "adb\t'f1,'d1('r2d, 'r3)"); |
| 1432 break; |
| 1433 case CDB: |
| 1434 Format(instr, "cdb\t'f1,'d1('r2d, 'r3)"); |
| 1435 break; |
| 1436 case CEB: |
| 1437 Format(instr, "ceb\t'f1,'d1('r2d, 'r3)"); |
1432 break; | 1438 break; |
1433 case SDB: | 1439 case SDB: |
1434 Format(instr, "sdb\t'r1,'d1('r2d, 'r3)"); | 1440 Format(instr, "sdb\t'r1,'d1('r2d, 'r3)"); |
1435 break; | 1441 break; |
1436 case MDB: | 1442 case MDB: |
1437 Format(instr, "mdb\t'r1,'d1('r2d, 'r3)"); | 1443 Format(instr, "mdb\t'r1,'d1('r2d, 'r3)"); |
1438 break; | 1444 break; |
1439 case DDB: | 1445 case DDB: |
1440 Format(instr, "ddb\t'r1,'d1('r2d, 'r3)"); | 1446 Format(instr, "ddb\t'r1,'d1('r2d, 'r3)"); |
1441 break; | 1447 break; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1531 byte* prev_pc = pc; | 1537 byte* prev_pc = pc; |
1532 pc += d.InstructionDecode(buffer, pc); | 1538 pc += d.InstructionDecode(buffer, pc); |
1533 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), | 1539 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), |
1534 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1540 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1535 } | 1541 } |
1536 } | 1542 } |
1537 | 1543 |
1538 } // namespace disasm | 1544 } // namespace disasm |
1539 | 1545 |
1540 #endif // V8_TARGET_ARCH_S390 | 1546 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |