Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/s390/disasm-s390.cc

Issue 2586503003: s390: cleanup s390 opcode table (Closed)
Patch Set: make nbyteInstruction size as public Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/s390/constants-s390.h ('k') | src/s390/simulator-s390.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 1052
1053 Opcode opcode = instr->S390OpcodeValue(); 1053 Opcode opcode = instr->S390OpcodeValue();
1054 switch (opcode) { 1054 switch (opcode) {
1055 case DUMY: 1055 case DUMY:
1056 Format(instr, "dumy\t'r1, 'd2 ( 'r2d, 'r3 )"); 1056 Format(instr, "dumy\t'r1, 'd2 ( 'r2d, 'r3 )");
1057 break; 1057 break;
1058 #define DECODE_VRR_C_INSTRUCTIONS(name, opcode_name, opcode_value) \ 1058 #define DECODE_VRR_C_INSTRUCTIONS(name, opcode_name, opcode_value) \
1059 case opcode_name: \ 1059 case opcode_name: \
1060 Format(instr, #name "\t'f1,'f2,'f3"); \ 1060 Format(instr, #name "\t'f1,'f2,'f3"); \
1061 break; 1061 break;
1062 VRR_A_OPCODE_LIST(DECODE_VRR_C_INSTRUCTIONS) 1062 S390_VRR_C_OPCODE_LIST(DECODE_VRR_C_INSTRUCTIONS)
1063 #undef DECODE_VRR_C_INSTRUCTIONS 1063 #undef DECODE_VRR_C_INSTRUCTIONS
1064 case LLILF: 1064 case LLILF:
1065 Format(instr, "llilf\t'r1,'i7"); 1065 Format(instr, "llilf\t'r1,'i7");
1066 break; 1066 break;
1067 case LLIHF: 1067 case LLIHF:
1068 Format(instr, "llihf\t'r1,'i7"); 1068 Format(instr, "llihf\t'r1,'i7");
1069 break; 1069 break;
1070 case AFI: 1070 case AFI:
1071 Format(instr, "afi\t'r1,'i7"); 1071 Format(instr, "afi\t'r1,'i7");
1072 break; 1072 break;
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 byte* prev_pc = pc; 1483 byte* prev_pc = pc;
1484 pc += d.InstructionDecode(buffer, pc); 1484 pc += d.InstructionDecode(buffer, pc);
1485 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), 1485 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc),
1486 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1486 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1487 } 1487 }
1488 } 1488 }
1489 1489
1490 } // namespace disasm 1490 } // namespace disasm
1491 1491
1492 #endif // V8_TARGET_ARCH_S390 1492 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/constants-s390.h ('k') | src/s390/simulator-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698