| 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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 break; | 906 break; |
| 907 case CDFBR: | 907 case CDFBR: |
| 908 Format(instr, "cdfbr\t'f5,'m2,'r6"); | 908 Format(instr, "cdfbr\t'f5,'m2,'r6"); |
| 909 break; | 909 break; |
| 910 case CFEBR: | 910 case CFEBR: |
| 911 Format(instr, "cfebr\t'r5,'m2,'f6"); | 911 Format(instr, "cfebr\t'r5,'m2,'f6"); |
| 912 break; | 912 break; |
| 913 case CEFBR: | 913 case CEFBR: |
| 914 Format(instr, "cefbr\t'f5,'m2,'r6"); | 914 Format(instr, "cefbr\t'f5,'m2,'r6"); |
| 915 break; | 915 break; |
| 916 case CELFBR: |
| 917 Format(instr, "celfbr\t'f5,'m2,'r6"); |
| 918 break; |
| 916 case CGEBR: | 919 case CGEBR: |
| 917 Format(instr, "cgebr\t'r5,'m2,'f6"); | 920 Format(instr, "cgebr\t'r5,'m2,'f6"); |
| 918 break; | 921 break; |
| 919 case CGDBR: | 922 case CGDBR: |
| 920 Format(instr, "cgdbr\t'r5,'m2,'f6"); | 923 Format(instr, "cgdbr\t'r5,'m2,'f6"); |
| 921 break; | 924 break; |
| 922 case CEGBR: | 925 case CEGBR: |
| 923 Format(instr, "cegbr\t'f5,'m2,'r6"); | 926 Format(instr, "cegbr\t'f5,'m2,'r6"); |
| 924 break; | 927 break; |
| 925 case CDGBR: | 928 case CDGBR: |
| 926 Format(instr, "cdgbr\t'f5,'m2,'r6"); | 929 Format(instr, "cdgbr\t'f5,'m2,'r6"); |
| 927 break; | 930 break; |
| 928 case CDLFBR: | 931 case CDLFBR: |
| 929 Format(instr, "cdlfbr\t'f5,'m2,'r6"); | 932 Format(instr, "cdlfbr\t'f5,'m2,'r6"); |
| 930 break; | 933 break; |
| 931 case CDLGBR: | 934 case CDLGBR: |
| 932 Format(instr, "cdlgbr\t'f5,'m2,'r6"); | 935 Format(instr, "cdlgbr\t'f5,'m2,'r6"); |
| 933 break; | 936 break; |
| 934 case CELGBR: | 937 case CELGBR: |
| 935 Format(instr, "celgbr\t'f5,'m2,'r6"); | 938 Format(instr, "celgbr\t'f5,'m2,'r6"); |
| 936 break; | 939 break; |
| 937 case CLFDBR: | 940 case CLFDBR: |
| 938 Format(instr, "clfdbr\t'r5,'m2,'f6"); | 941 Format(instr, "clfdbr\t'r5,'m2,'f6"); |
| 939 break; | 942 break; |
| 943 case CLFEBR: |
| 944 Format(instr, "clfebr\t'r5,'m2,'f6"); |
| 945 break; |
| 946 case CLGEBR: |
| 947 Format(instr, "clgebr\t'r5,'m2,'f6"); |
| 948 break; |
| 940 case CLGDBR: | 949 case CLGDBR: |
| 941 Format(instr, "clgdbr\t'r5,'m2,'f6"); | 950 Format(instr, "clgdbr\t'r5,'m2,'f6"); |
| 942 break; | 951 break; |
| 943 case AEBR: | 952 case AEBR: |
| 944 Format(instr, "aebr\t'f5,'f6"); | 953 Format(instr, "aebr\t'f5,'f6"); |
| 945 break; | 954 break; |
| 946 case SEBR: | 955 case SEBR: |
| 947 Format(instr, "sebr\t'f5,'f6"); | 956 Format(instr, "sebr\t'f5,'f6"); |
| 948 break; | 957 break; |
| 949 case MEEBR: | 958 case MEEBR: |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 byte* prev_pc = pc; | 1423 byte* prev_pc = pc; |
| 1415 pc += d.InstructionDecode(buffer, pc); | 1424 pc += d.InstructionDecode(buffer, pc); |
| 1416 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), | 1425 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), |
| 1417 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1426 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
| 1418 } | 1427 } |
| 1419 } | 1428 } |
| 1420 | 1429 |
| 1421 } // namespace disasm | 1430 } // namespace disasm |
| 1422 | 1431 |
| 1423 #endif // V8_TARGET_ARCH_S390 | 1432 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |