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

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

Issue 2331843004: MIPS64: Add support for DINS to disassembler (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | test/cctest/test-disasm-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 } 1476 }
1477 default: 1477 default:
1478 UNREACHABLE(); 1478 UNREACHABLE();
1479 break; 1479 break;
1480 } 1480 }
1481 break; 1481 break;
1482 } 1482 }
1483 } 1483 }
1484 break; 1484 break;
1485 } 1485 }
1486 case DINS: {
1487 Format(instr, "dins 'rt, 'rs, 'sa, 'ss2");
1488 break;
1489 }
1486 case DBSHFL: { 1490 case DBSHFL: {
1487 int sa = instr->SaFieldRaw() >> kSaShift; 1491 int sa = instr->SaFieldRaw() >> kSaShift;
1488 switch (sa) { 1492 switch (sa) {
1489 case DBITSWAP: { 1493 case DBITSWAP: {
1490 switch (instr->SaFieldRaw() >> kSaShift) { 1494 switch (instr->SaFieldRaw() >> kSaShift) {
1491 case DBITSWAP_SA: 1495 case DBITSWAP_SA:
1492 Format(instr, "dbitswap 'rd, 'rt"); 1496 Format(instr, "dbitswap 'rd, 'rt");
1493 break; 1497 break;
1494 default: 1498 default:
1495 UNREACHABLE(); 1499 UNREACHABLE();
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 2018 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
2015 } 2019 }
2016 } 2020 }
2017 2021
2018 2022
2019 #undef UNSUPPORTED 2023 #undef UNSUPPORTED
2020 2024
2021 } // namespace disasm 2025 } // namespace disasm
2022 2026
2023 #endif // V8_TARGET_ARCH_MIPS64 2027 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-disasm-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698