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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 break; | 1087 break; |
1088 case BRASL: | 1088 case BRASL: |
1089 Format(instr, "brasl\t'r1,'ie"); | 1089 Format(instr, "brasl\t'r1,'ie"); |
1090 break; | 1090 break; |
1091 case BRCL: | 1091 case BRCL: |
1092 Format(instr, "brcl\t'm1,'i5"); | 1092 Format(instr, "brcl\t'm1,'i5"); |
1093 break; | 1093 break; |
1094 case IIHF: | 1094 case IIHF: |
1095 Format(instr, "iihf\t'r1,'i7"); | 1095 Format(instr, "iihf\t'r1,'i7"); |
1096 break; | 1096 break; |
| 1097 case LGFI: |
| 1098 Format(instr, "lgfi\t'r1,'i7"); |
| 1099 break; |
1097 case IILF: | 1100 case IILF: |
1098 Format(instr, "iilf\t'r1,'i7"); | 1101 Format(instr, "iilf\t'r1,'i7"); |
1099 break; | 1102 break; |
1100 case XIHF: | 1103 case XIHF: |
1101 Format(instr, "xihf\t'r1,'i7"); | 1104 Format(instr, "xihf\t'r1,'i7"); |
1102 break; | 1105 break; |
1103 case XILF: | 1106 case XILF: |
1104 Format(instr, "xilf\t'r1,'i7"); | 1107 Format(instr, "xilf\t'r1,'i7"); |
1105 break; | 1108 break; |
1106 case SLLK: | 1109 case SLLK: |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 byte* prev_pc = pc; | 1465 byte* prev_pc = pc; |
1463 pc += d.InstructionDecode(buffer, pc); | 1466 pc += d.InstructionDecode(buffer, pc); |
1464 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), | 1467 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), |
1465 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1468 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1466 } | 1469 } |
1467 } | 1470 } |
1468 | 1471 |
1469 } // namespace disasm | 1472 } // namespace disasm |
1470 | 1473 |
1471 #endif // V8_TARGET_ARCH_S390 | 1474 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |