| 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 break; | 954 break; |
| 955 case MDBR: | 955 case MDBR: |
| 956 Format(instr, "mdbr\t'f5,'f6"); | 956 Format(instr, "mdbr\t'f5,'f6"); |
| 957 break; | 957 break; |
| 958 case DDBR: | 958 case DDBR: |
| 959 Format(instr, "ddbr\t'f5,'f6"); | 959 Format(instr, "ddbr\t'f5,'f6"); |
| 960 break; | 960 break; |
| 961 case CDBR: | 961 case CDBR: |
| 962 Format(instr, "cdbr\t'f5,'f6"); | 962 Format(instr, "cdbr\t'f5,'f6"); |
| 963 break; | 963 break; |
| 964 case CEBR: |
| 965 Format(instr, "cebr\t'f5,'f6"); |
| 966 break; |
| 964 case SQDBR: | 967 case SQDBR: |
| 965 Format(instr, "sqdbr\t'f5,'f6"); | 968 Format(instr, "sqdbr\t'f5,'f6"); |
| 966 break; | 969 break; |
| 967 case LCDBR: | 970 case LCDBR: |
| 968 Format(instr, "lcdbr\t'f5,'f6"); | 971 Format(instr, "lcdbr\t'f5,'f6"); |
| 969 break; | 972 break; |
| 970 case STH: | 973 case STH: |
| 971 Format(instr, "sth\t'r1,'d1('r2d,'r3)"); | 974 Format(instr, "sth\t'r1,'d1('r2d,'r3)"); |
| 972 break; | 975 break; |
| 973 case SRDA: | 976 case SRDA: |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 byte* prev_pc = pc; | 1399 byte* prev_pc = pc; |
| 1397 pc += d.InstructionDecode(buffer, pc); | 1400 pc += d.InstructionDecode(buffer, pc); |
| 1398 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, | 1401 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, |
| 1399 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1402 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
| 1400 } | 1403 } |
| 1401 } | 1404 } |
| 1402 | 1405 |
| 1403 } // namespace disasm | 1406 } // namespace disasm |
| 1404 | 1407 |
| 1405 #endif // V8_TARGET_ARCH_S390 | 1408 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |