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

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

Issue 660095: Merge revision 3813 to 3930 from bleeding_edge to partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/debug-ia32.cc ('k') | src/ia32/fast-codegen-ia32.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 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 case 0: mnem = "fild_s"; break; 672 case 0: mnem = "fild_s"; break;
673 case 1: mnem = "fisttp_s"; break; 673 case 1: mnem = "fisttp_s"; break;
674 case 2: mnem = "fist_s"; break; 674 case 2: mnem = "fist_s"; break;
675 case 3: mnem = "fistp_s"; break; 675 case 3: mnem = "fistp_s"; break;
676 default: UnimplementedInstruction(); 676 default: UnimplementedInstruction();
677 } 677 }
678 break; 678 break;
679 679
680 case 0xDD: switch (regop) { 680 case 0xDD: switch (regop) {
681 case 0: mnem = "fld_d"; break; 681 case 0: mnem = "fld_d"; break;
682 case 2: mnem = "fstp"; break;
682 case 3: mnem = "fstp_d"; break; 683 case 3: mnem = "fstp_d"; break;
683 default: UnimplementedInstruction(); 684 default: UnimplementedInstruction();
684 } 685 }
685 break; 686 break;
686 687
687 case 0xDF: switch (regop) { 688 case 0xDF: switch (regop) {
688 case 5: mnem = "fild_d"; break; 689 case 5: mnem = "fild_d"; break;
689 case 7: mnem = "fistp_d"; break; 690 case 7: mnem = "fistp_d"; break;
690 default: UnimplementedInstruction(); 691 default: UnimplementedInstruction();
691 } 692 }
(...skipping 21 matching lines...) Expand all
713 case 0xC8: 714 case 0xC8:
714 mnem = "fxch"; 715 mnem = "fxch";
715 has_register = true; 716 has_register = true;
716 break; 717 break;
717 default: 718 default:
718 switch (modrm_byte) { 719 switch (modrm_byte) {
719 case 0xE0: mnem = "fchs"; break; 720 case 0xE0: mnem = "fchs"; break;
720 case 0xE1: mnem = "fabs"; break; 721 case 0xE1: mnem = "fabs"; break;
721 case 0xE4: mnem = "ftst"; break; 722 case 0xE4: mnem = "ftst"; break;
722 case 0xE8: mnem = "fld1"; break; 723 case 0xE8: mnem = "fld1"; break;
724 case 0xEB: mnem = "fldpi"; break;
723 case 0xEE: mnem = "fldz"; break; 725 case 0xEE: mnem = "fldz"; break;
724 case 0xF5: mnem = "fprem1"; break; 726 case 0xF5: mnem = "fprem1"; break;
725 case 0xF7: mnem = "fincstp"; break; 727 case 0xF7: mnem = "fincstp"; break;
726 case 0xF8: mnem = "fprem"; break; 728 case 0xF8: mnem = "fprem"; break;
727 case 0xFE: mnem = "fsin"; break; 729 case 0xFE: mnem = "fsin"; break;
728 case 0xFF: mnem = "fcos"; break; 730 case 0xFF: mnem = "fcos"; break;
729 default: UnimplementedInstruction(); 731 default: UnimplementedInstruction();
730 } 732 }
731 } 733 }
732 break; 734 break;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 AppendToBuffer(",0x%x", imm); 1009 AppendToBuffer(",0x%x", imm);
1008 data += is_byte ? 1 : 4; 1010 data += is_byte ? 1 : 4;
1009 } 1011 }
1010 break; 1012 break;
1011 1013
1012 case 0x80: 1014 case 0x80:
1013 { data++; 1015 { data++;
1014 int mod, regop, rm; 1016 int mod, regop, rm;
1015 get_modrm(*data, &mod, &regop, &rm); 1017 get_modrm(*data, &mod, &regop, &rm);
1016 const char* mnem = NULL; 1018 const char* mnem = NULL;
1017 printf("%d\n", regop);
1018 switch (regop) { 1019 switch (regop) {
1019 case 5: mnem = "subb"; break; 1020 case 5: mnem = "subb"; break;
1020 case 7: mnem = "cmpb"; break; 1021 case 7: mnem = "cmpb"; break;
1021 default: UnimplementedInstruction(); 1022 default: UnimplementedInstruction();
1022 } 1023 }
1023 AppendToBuffer("%s ", mnem); 1024 AppendToBuffer("%s ", mnem);
1024 data += PrintRightOperand(data); 1025 data += PrintRightOperand(data);
1025 int32_t imm = *data; 1026 int32_t imm = *data;
1026 AppendToBuffer(",0x%x", imm); 1027 AppendToBuffer(",0x%x", imm);
1027 data++; 1028 data++;
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 } 1352 }
1352 for (int i = 6 - (pc - prev_pc); i >= 0; i--) { 1353 for (int i = 6 - (pc - prev_pc); i >= 0; i--) {
1353 fprintf(f, " "); 1354 fprintf(f, " ");
1354 } 1355 }
1355 fprintf(f, " %s\n", buffer.start()); 1356 fprintf(f, " %s\n", buffer.start());
1356 } 1357 }
1357 } 1358 }
1358 1359
1359 1360
1360 } // namespace disasm 1361 } // namespace disasm
OLDNEW
« no previous file with comments | « src/ia32/debug-ia32.cc ('k') | src/ia32/fast-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698