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 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 break; | 987 break; |
988 case SQDBR: | 988 case SQDBR: |
989 Format(instr, "sqdbr\t'f5,'f6"); | 989 Format(instr, "sqdbr\t'f5,'f6"); |
990 break; | 990 break; |
991 case SQEBR: | 991 case SQEBR: |
992 Format(instr, "sqebr\t'f5,'f6"); | 992 Format(instr, "sqebr\t'f5,'f6"); |
993 break; | 993 break; |
994 case LCDBR: | 994 case LCDBR: |
995 Format(instr, "lcdbr\t'f5,'f6"); | 995 Format(instr, "lcdbr\t'f5,'f6"); |
996 break; | 996 break; |
| 997 case LCEBR: |
| 998 Format(instr, "lcebr\t'f5,'f6"); |
| 999 break; |
997 case STH: | 1000 case STH: |
998 Format(instr, "sth\t'r1,'d1('r2d,'r3)"); | 1001 Format(instr, "sth\t'r1,'d1('r2d,'r3)"); |
999 break; | 1002 break; |
1000 case SRDA: | 1003 case SRDA: |
1001 Format(instr, "srda\t'r1,'d1('r3)"); | 1004 Format(instr, "srda\t'r1,'d1('r3)"); |
1002 break; | 1005 break; |
1003 case SRDL: | 1006 case SRDL: |
1004 Format(instr, "srdl\t'r1,'d1('r3)"); | 1007 Format(instr, "srdl\t'r1,'d1('r3)"); |
1005 break; | 1008 break; |
1006 case MADBR: | 1009 case MADBR: |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 byte* prev_pc = pc; | 1450 byte* prev_pc = pc; |
1448 pc += d.InstructionDecode(buffer, pc); | 1451 pc += d.InstructionDecode(buffer, pc); |
1449 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), | 1452 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), |
1450 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1453 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1451 } | 1454 } |
1452 } | 1455 } |
1453 | 1456 |
1454 } // namespace disasm | 1457 } // namespace disasm |
1455 | 1458 |
1456 #endif // V8_TARGET_ARCH_S390 | 1459 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |