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

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

Issue 18014003: Add X32 port into V8 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 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
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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 AppendToBuffer("movdqa "); 1082 AppendToBuffer("movdqa ");
1083 current += PrintRightXMMOperand(current); 1083 current += PrintRightXMMOperand(current);
1084 AppendToBuffer(", %s", NameOfXMMRegister(regop)); 1084 AppendToBuffer(", %s", NameOfXMMRegister(regop));
1085 } else if (opcode == 0xD6) { 1085 } else if (opcode == 0xD6) {
1086 AppendToBuffer("movq "); 1086 AppendToBuffer("movq ");
1087 current += PrintRightXMMOperand(current); 1087 current += PrintRightXMMOperand(current);
1088 AppendToBuffer(", %s", NameOfXMMRegister(regop)); 1088 AppendToBuffer(", %s", NameOfXMMRegister(regop));
1089 } else if (opcode == 0x50) { 1089 } else if (opcode == 0x50) {
1090 AppendToBuffer("movmskpd %s,", NameOfCPURegister(regop)); 1090 AppendToBuffer("movmskpd %s,", NameOfCPURegister(regop));
1091 current += PrintRightXMMOperand(current); 1091 current += PrintRightXMMOperand(current);
1092 #ifdef V8_TARGET_ARCH_X32
1093 } else if (opcode == 0x76) {
1094 AppendToBuffer("pcmpeqd %s,", NameOfXMMRegister(regop));
1095 current += PrintRightXMMOperand(current);
1096 #endif
1092 } else { 1097 } else {
1093 const char* mnemonic = "?"; 1098 const char* mnemonic = "?";
1094 if (opcode == 0x54) { 1099 if (opcode == 0x54) {
1095 mnemonic = "andpd"; 1100 mnemonic = "andpd";
1096 } else if (opcode == 0x56) { 1101 } else if (opcode == 0x56) {
1097 mnemonic = "orpd"; 1102 mnemonic = "orpd";
1098 } else if (opcode == 0x57) { 1103 } else if (opcode == 0x57) {
1099 mnemonic = "xorpd"; 1104 mnemonic = "xorpd";
1100 } else if (opcode == 0x2E) { 1105 } else if (opcode == 0x2E) {
1101 mnemonic = "ucomisd"; 1106 mnemonic = "ucomisd";
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1865 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1861 fprintf(f, " "); 1866 fprintf(f, " ");
1862 } 1867 }
1863 fprintf(f, " %s\n", buffer.start()); 1868 fprintf(f, " %s\n", buffer.start());
1864 } 1869 }
1865 } 1870 }
1866 1871
1867 } // namespace disasm 1872 } // namespace disasm
1868 1873
1869 #endif // V8_TARGET_ARCH_X64 1874 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698