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

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

Issue 3412028: Support dec_b instruction in ia32 and x64 disassembler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 NameOfCPURegister(reg)); 1443 NameOfCPURegister(reg));
1444 } 1444 }
1445 data++; 1445 data++;
1446 } 1446 }
1447 break; 1447 break;
1448 1448
1449 case 0xFE: { 1449 case 0xFE: {
1450 data++; 1450 data++;
1451 int mod, regop, rm; 1451 int mod, regop, rm;
1452 get_modrm(*data, &mod, &regop, &rm); 1452 get_modrm(*data, &mod, &regop, &rm);
1453 if (mod == 3 && regop == 1) { 1453 if (regop == 1) {
1454 AppendToBuffer("decb %s", NameOfCPURegister(rm)); 1454 AppendToBuffer("decb ");
1455 data += PrintRightOperand(data);
1455 } else { 1456 } else {
1456 UnimplementedInstruction(); 1457 UnimplementedInstruction();
1457 } 1458 }
1458 data++;
1459 } 1459 }
1460 break; 1460 break;
1461 1461
1462 case 0x68: 1462 case 0x68:
1463 AppendToBuffer("push 0x%x", *reinterpret_cast<int32_t*>(data + 1)); 1463 AppendToBuffer("push 0x%x", *reinterpret_cast<int32_t*>(data + 1));
1464 data += 5; 1464 data += 5;
1465 break; 1465 break;
1466 1466
1467 case 0x6A: 1467 case 0x6A:
1468 AppendToBuffer("push 0x%x", *reinterpret_cast<int8_t*>(data + 1)); 1468 AppendToBuffer("push 0x%x", *reinterpret_cast<int8_t*>(data + 1));
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1687 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1688 fprintf(f, " "); 1688 fprintf(f, " ");
1689 } 1689 }
1690 fprintf(f, " %s\n", buffer.start()); 1690 fprintf(f, " %s\n", buffer.start());
1691 } 1691 }
1692 } 1692 }
1693 1693
1694 } // namespace disasm 1694 } // namespace disasm
1695 1695
1696 #endif // V8_TARGET_ARCH_X64 1696 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698