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

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

Issue 652041: IA32: Native access to TranscendentalCache for sin/cos. (Closed)
Patch Set: Updated to head. Removed dead code. Ignore first patch. Created 10 years, 10 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
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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 case 0xDB: switch (regop) { 671 case 0xDB: switch (regop) {
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;
fschneider 2010/02/22 17:42:54 extra '
Lasse Reichstein 2010/02/23 10:18:53 fixed.
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 } 1352 }
1351 for (int i = 6 - (pc - prev_pc); i >= 0; i--) { 1353 for (int i = 6 - (pc - prev_pc); i >= 0; i--) {
1352 fprintf(f, " "); 1354 fprintf(f, " ");
1353 } 1355 }
1354 fprintf(f, " %s\n", buffer.start()); 1356 fprintf(f, " %s\n", buffer.start());
1355 } 1357 }
1356 } 1358 }
1357 1359
1358 1360
1359 } // namespace disasm 1361 } // namespace disasm
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/ia32/codegen-ia32.cc ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698