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

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

Issue 2722313003: s390: optimize for int 64-bit operation and cleanup (Closed)
Patch Set: Created 3 years, 9 months 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.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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 break; 1429 break;
1430 case STEY: 1430 case STEY:
1431 Format(instr, "stey\t'f1,'d2('r2d,'r3)"); 1431 Format(instr, "stey\t'f1,'d2('r2d,'r3)");
1432 break; 1432 break;
1433 case STDY: 1433 case STDY:
1434 Format(instr, "stdy\t'f1,'d2('r2d,'r3)"); 1434 Format(instr, "stdy\t'f1,'d2('r2d,'r3)");
1435 break; 1435 break;
1436 case ADB: 1436 case ADB:
1437 Format(instr, "adb\t'f1,'d1('r2d, 'r3)"); 1437 Format(instr, "adb\t'f1,'d1('r2d, 'r3)");
1438 break; 1438 break;
1439 case AEB:
1440 Format(instr, "aeb\t'f1,'d1('r2d, 'r3)");
1441 break;
1439 case CDB: 1442 case CDB:
1440 Format(instr, "cdb\t'f1,'d1('r2d, 'r3)"); 1443 Format(instr, "cdb\t'f1,'d1('r2d, 'r3)");
1441 break; 1444 break;
1442 case CEB: 1445 case CEB:
1443 Format(instr, "ceb\t'f1,'d1('r2d, 'r3)"); 1446 Format(instr, "ceb\t'f1,'d1('r2d, 'r3)");
1444 break; 1447 break;
1445 case SDB: 1448 case SDB:
1446 Format(instr, "sdb\t'r1,'d1('r2d, 'r3)"); 1449 Format(instr, "sdb\t'r1,'d1('r2d, 'r3)");
1447 break; 1450 break;
1451 case SEB:
1452 Format(instr, "seb\t'r1,'d1('r2d, 'r3)");
1453 break;
1448 case MDB: 1454 case MDB:
1449 Format(instr, "mdb\t'r1,'d1('r2d, 'r3)"); 1455 Format(instr, "mdb\t'r1,'d1('r2d, 'r3)");
1450 break; 1456 break;
1457 case MEEB:
1458 Format(instr, "meeb\t'r1,'d1('r2d, 'r3)");
1459 break;
1451 case DDB: 1460 case DDB:
1452 Format(instr, "ddb\t'r1,'d1('r2d, 'r3)"); 1461 Format(instr, "ddb\t'r1,'d1('r2d, 'r3)");
1453 break; 1462 break;
1463 case DEB:
1464 Format(instr, "deb\t'r1,'d1('r2d, 'r3)");
1465 break;
1454 case SQDB: 1466 case SQDB:
1455 Format(instr, "sqdb\t'r1,'d1('r2d, 'r3)"); 1467 Format(instr, "sqdb\t'r1,'d1('r2d, 'r3)");
1456 break; 1468 break;
1457 case PFD: 1469 case PFD:
1458 Format(instr, "pfd\t'm1,'d2('r2d,'r3)"); 1470 Format(instr, "pfd\t'm1,'d2('r2d,'r3)");
1459 break; 1471 break;
1460 default: 1472 default:
1461 return false; 1473 return false;
1462 } 1474 }
1463 return true; 1475 return true;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 byte* prev_pc = pc; 1555 byte* prev_pc = pc;
1544 pc += d.InstructionDecode(buffer, pc); 1556 pc += d.InstructionDecode(buffer, pc);
1545 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), 1557 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc),
1546 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1558 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1547 } 1559 }
1548 } 1560 }
1549 1561
1550 } // namespace disasm 1562 } // namespace disasm
1551 1563
1552 #endif // V8_TARGET_ARCH_S390 1564 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/assembler-s390.cc ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698