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

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

Issue 2601563002: S390: Optimize allocate sequence (Closed)
Patch Set: 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/assembler-s390.cc ('k') | src/s390/macro-assembler-s390.cc » ('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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 break; 1408 break;
1409 case MDB: 1409 case MDB:
1410 Format(instr, "mdb\t'r1,'d1('r2d, 'r3)"); 1410 Format(instr, "mdb\t'r1,'d1('r2d, 'r3)");
1411 break; 1411 break;
1412 case DDB: 1412 case DDB:
1413 Format(instr, "ddb\t'r1,'d1('r2d, 'r3)"); 1413 Format(instr, "ddb\t'r1,'d1('r2d, 'r3)");
1414 break; 1414 break;
1415 case SQDB: 1415 case SQDB:
1416 Format(instr, "sqdb\t'r1,'d1('r2d, 'r3)"); 1416 Format(instr, "sqdb\t'r1,'d1('r2d, 'r3)");
1417 break; 1417 break;
1418 case PFD:
1419 Format(instr, "pfd\t'm1,'d2('r2d,'r3)");
1420 break;
1418 default: 1421 default:
1419 return false; 1422 return false;
1420 } 1423 }
1421 return true; 1424 return true;
1422 } 1425 }
1423 1426
1424 #undef VERIFIY 1427 #undef VERIFIY
1425 1428
1426 // Disassemble the instruction at *instr_ptr into the output buffer. 1429 // Disassemble the instruction at *instr_ptr into the output buffer.
1427 int Decoder::InstructionDecode(byte* instr_ptr) { 1430 int Decoder::InstructionDecode(byte* instr_ptr) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 byte* prev_pc = pc; 1504 byte* prev_pc = pc;
1502 pc += d.InstructionDecode(buffer, pc); 1505 pc += d.InstructionDecode(buffer, pc);
1503 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), 1506 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc),
1504 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1507 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1505 } 1508 }
1506 } 1509 }
1507 1510
1508 } // namespace disasm 1511 } // namespace disasm
1509 1512
1510 #endif // V8_TARGET_ARCH_S390 1513 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/assembler-s390.cc ('k') | src/s390/macro-assembler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698