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

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

Issue 10382033: x86/x64 port of Math.floor(x/y) to use integer division for specific divisor (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 6 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/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 switch (regop) { 696 switch (regop) {
697 case 2: 697 case 2:
698 mnem = "not"; 698 mnem = "not";
699 break; 699 break;
700 case 3: 700 case 3:
701 mnem = "neg"; 701 mnem = "neg";
702 break; 702 break;
703 case 4: 703 case 4:
704 mnem = "mul"; 704 mnem = "mul";
705 break; 705 break;
706 case 5:
707 mnem = "imul";
708 break;
706 case 7: 709 case 7:
707 mnem = "idiv"; 710 mnem = "idiv";
708 break; 711 break;
709 default: 712 default:
710 UnimplementedInstruction(); 713 UnimplementedInstruction();
711 } 714 }
712 AppendToBuffer("%s%c %s", 715 AppendToBuffer("%s%c %s",
713 mnem, 716 mnem,
714 operand_size_code(), 717 operand_size_code(),
715 NameOfCPURegister(rm)); 718 NameOfCPURegister(rm));
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1848 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1846 fprintf(f, " "); 1849 fprintf(f, " ");
1847 } 1850 }
1848 fprintf(f, " %s\n", buffer.start()); 1851 fprintf(f, " %s\n", buffer.start());
1849 } 1852 }
1850 } 1853 }
1851 1854
1852 } // namespace disasm 1855 } // namespace disasm
1853 1856
1854 #endif // V8_TARGET_ARCH_X64 1857 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698