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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 break; | 900 break; |
901 case LD: | 901 case LD: |
902 Format(instr, "ld\t'f1,'d1('r2d,'r3)"); | 902 Format(instr, "ld\t'f1,'d1('r2d,'r3)"); |
903 break; | 903 break; |
904 case LE: | 904 case LE: |
905 Format(instr, "le\t'f1,'d1('r2d,'r3)"); | 905 Format(instr, "le\t'f1,'d1('r2d,'r3)"); |
906 break; | 906 break; |
907 case LDGR: | 907 case LDGR: |
908 Format(instr, "ldgr\t'f5,'r6"); | 908 Format(instr, "ldgr\t'f5,'r6"); |
909 break; | 909 break; |
| 910 case MS: |
| 911 Format(instr, "ms\t'r1,'d1('r2d,'r3)"); |
| 912 break; |
910 case STE: | 913 case STE: |
911 Format(instr, "ste\t'f1,'d1('r2d,'r3)"); | 914 Format(instr, "ste\t'f1,'d1('r2d,'r3)"); |
912 break; | 915 break; |
913 case STD: | 916 case STD: |
914 Format(instr, "std\t'f1,'d1('r2d,'r3)"); | 917 Format(instr, "std\t'f1,'d1('r2d,'r3)"); |
915 break; | 918 break; |
916 case CFDBR: | 919 case CFDBR: |
917 Format(instr, "cfdbr\t'r5,'m2,'f6"); | 920 Format(instr, "cfdbr\t'r5,'m2,'f6"); |
918 break; | 921 break; |
919 case CDFBR: | 922 case CDFBR: |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 break; | 1354 break; |
1352 case MSGFI: | 1355 case MSGFI: |
1353 Format(instr, "msgfi\t'r1,'i7"); | 1356 Format(instr, "msgfi\t'r1,'i7"); |
1354 break; | 1357 break; |
1355 case LDY: | 1358 case LDY: |
1356 Format(instr, "ldy\t'f1,'d2('r2d,'r3)"); | 1359 Format(instr, "ldy\t'f1,'d2('r2d,'r3)"); |
1357 break; | 1360 break; |
1358 case LEY: | 1361 case LEY: |
1359 Format(instr, "ley\t'f1,'d2('r2d,'r3)"); | 1362 Format(instr, "ley\t'f1,'d2('r2d,'r3)"); |
1360 break; | 1363 break; |
| 1364 case MSG: |
| 1365 Format(instr, "msg\t'r1,'d2('r2d,'r3)"); |
| 1366 break; |
| 1367 case MSY: |
| 1368 Format(instr, "msy\t'r1,'d2('r2d,'r3)"); |
| 1369 break; |
1361 case STEY: | 1370 case STEY: |
1362 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); | 1371 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); |
1363 break; | 1372 break; |
1364 case STDY: | 1373 case STDY: |
1365 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); | 1374 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); |
1366 break; | 1375 break; |
1367 case ADB: | 1376 case ADB: |
1368 Format(instr, "adb\t'r1,'d1('r2d, 'r3)"); | 1377 Format(instr, "adb\t'r1,'d1('r2d, 'r3)"); |
1369 break; | 1378 break; |
1370 case SDB: | 1379 case SDB: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1465 byte* prev_pc = pc; | 1474 byte* prev_pc = pc; |
1466 pc += d.InstructionDecode(buffer, pc); | 1475 pc += d.InstructionDecode(buffer, pc); |
1467 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), | 1476 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), |
1468 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1477 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1469 } | 1478 } |
1470 } | 1479 } |
1471 | 1480 |
1472 } // namespace disasm | 1481 } // namespace disasm |
1473 | 1482 |
1474 #endif // V8_TARGET_ARCH_S390 | 1483 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |