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

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

Issue 6883159: X64: Adding macro to load double from memory, and use SSE3 instruction if present. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 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/x64/deoptimizer-x64.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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 AppendToBuffer("movsd "); 1091 AppendToBuffer("movsd ");
1092 int mod, regop, rm; 1092 int mod, regop, rm;
1093 get_modrm(*current, &mod, &regop, &rm); 1093 get_modrm(*current, &mod, &regop, &rm);
1094 if (opcode == 0x11) { 1094 if (opcode == 0x11) {
1095 current += PrintRightXMMOperand(current); 1095 current += PrintRightXMMOperand(current);
1096 AppendToBuffer(",%s", NameOfXMMRegister(regop)); 1096 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1097 } else { 1097 } else {
1098 AppendToBuffer("%s,", NameOfXMMRegister(regop)); 1098 AppendToBuffer("%s,", NameOfXMMRegister(regop));
1099 current += PrintRightXMMOperand(current); 1099 current += PrintRightXMMOperand(current);
1100 } 1100 }
1101 } else if (opcode == 0x12) {
1102 // movddup xmm1, xmm2/m64
1103 int mod, regop, rm;
1104 get_modrm(*current, &mod, &regop, &rm);
1105 AppendToBuffer("movddup %s,", NameOfXMMRegister(regop));
1106 current += PrintRightXMMOperand(current);
1101 } else if (opcode == 0x2A) { 1107 } else if (opcode == 0x2A) {
1102 // CVTSI2SD: integer to XMM double conversion. 1108 // CVTSI2SD: integer to XMM double conversion.
1103 int mod, regop, rm; 1109 int mod, regop, rm;
1104 get_modrm(*current, &mod, &regop, &rm); 1110 get_modrm(*current, &mod, &regop, &rm);
1105 AppendToBuffer("%sd %s,", mnemonic, NameOfXMMRegister(regop)); 1111 AppendToBuffer("%sd %s,", mnemonic, NameOfXMMRegister(regop));
1106 current += PrintRightOperand(current); 1112 current += PrintRightOperand(current);
1107 } else if (opcode == 0x2C) { 1113 } else if (opcode == 0x2C) {
1108 // CVTTSD2SI: 1114 // CVTTSD2SI:
1109 // Convert with truncation scalar double-precision FP to integer. 1115 // Convert with truncation scalar double-precision FP to integer.
1110 int mod, regop, rm; 1116 int mod, regop, rm;
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1829 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1824 fprintf(f, " "); 1830 fprintf(f, " ");
1825 } 1831 }
1826 fprintf(f, " %s\n", buffer.start()); 1832 fprintf(f, " %s\n", buffer.start());
1827 } 1833 }
1828 } 1834 }
1829 1835
1830 } // namespace disasm 1836 } // namespace disasm
1831 1837
1832 #endif // V8_TARGET_ARCH_X64 1838 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698