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

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

Issue 3471011: Implemented missing instructions in ia32 and x64 disassembler.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 2 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
« no previous file with comments | « no previous file | src/x64/disasm-x64.cc » ('j') | src/x64/disasm-x64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 bool has_register = false; // Is the FPU register encoded in modrm_byte? 711 bool has_register = false; // Is the FPU register encoded in modrm_byte?
712 const char* mnem = "?"; 712 const char* mnem = "?";
713 713
714 switch (escape_opcode) { 714 switch (escape_opcode) {
715 case 0xD8: 715 case 0xD8:
716 UnimplementedInstruction(); 716 UnimplementedInstruction();
717 break; 717 break;
718 718
719 case 0xD9: 719 case 0xD9:
720 switch (modrm_byte & 0xF8) { 720 switch (modrm_byte & 0xF8) {
721 case 0xC0:
722 mnem = "fld";
723 has_register = true;
724 break;
721 case 0xC8: 725 case 0xC8:
722 mnem = "fxch"; 726 mnem = "fxch";
723 has_register = true; 727 has_register = true;
724 break; 728 break;
725 default: 729 default:
726 switch (modrm_byte) { 730 switch (modrm_byte) {
727 case 0xE0: mnem = "fchs"; break; 731 case 0xE0: mnem = "fchs"; break;
728 case 0xE1: mnem = "fabs"; break; 732 case 0xE1: mnem = "fabs"; break;
729 case 0xE4: mnem = "ftst"; break; 733 case 0xE4: mnem = "ftst"; break;
730 case 0xE8: mnem = "fld1"; break; 734 case 0xE8: mnem = "fld1"; break;
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 fprintf(f, " "); 1510 fprintf(f, " ");
1507 } 1511 }
1508 fprintf(f, " %s\n", buffer.start()); 1512 fprintf(f, " %s\n", buffer.start());
1509 } 1513 }
1510 } 1514 }
1511 1515
1512 1516
1513 } // namespace disasm 1517 } // namespace disasm
1514 1518
1515 #endif // V8_TARGET_ARCH_IA32 1519 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/x64/disasm-x64.cc » ('j') | src/x64/disasm-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698