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

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

Issue 6576030: X64 Crankshaft: Implement Math.abs on x64 lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 AppendToBuffer("mov%c ", 1033 AppendToBuffer("mov%c ",
1034 rex_w() ? 'q' : 'd'); 1034 rex_w() ? 'q' : 'd');
1035 current += PrintRightOperand(current); 1035 current += PrintRightOperand(current);
1036 AppendToBuffer(", %s", NameOfXMMRegister(regop)); 1036 AppendToBuffer(", %s", NameOfXMMRegister(regop));
1037 } else if (opcode == 0x7F) { 1037 } else if (opcode == 0x7F) {
1038 AppendToBuffer("movdqa "); 1038 AppendToBuffer("movdqa ");
1039 current += PrintRightOperand(current); 1039 current += PrintRightOperand(current);
1040 AppendToBuffer(", %s", NameOfXMMRegister(regop)); 1040 AppendToBuffer(", %s", NameOfXMMRegister(regop));
1041 } else { 1041 } else {
1042 const char* mnemonic = "?"; 1042 const char* mnemonic = "?";
1043 if (opcode == 0x57) { 1043 if (opcode == 0x50) {
1044 mnemonic = "movmskpd";
1045 } else if (opcode == 0x54) {
1046 mnemonic = "andpd";
1047 } else if (opcode == 0x56) {
1048 mnemonic = "orpd";
1049 } else if (opcode == 0x57) {
1044 mnemonic = "xorpd"; 1050 mnemonic = "xorpd";
1045 } else if (opcode == 0x2E) { 1051 } else if (opcode == 0x2E) {
1046 mnemonic = "ucomisd"; 1052 mnemonic = "ucomisd";
1047 } else if (opcode == 0x2F) { 1053 } else if (opcode == 0x2F) {
1048 mnemonic = "comisd"; 1054 mnemonic = "comisd";
1049 } else if (opcode == 0x50) {
1050 mnemonic = "movmskpd";
1051 } else { 1055 } else {
1052 UnimplementedInstruction(); 1056 UnimplementedInstruction();
1053 } 1057 }
1054 AppendToBuffer("%s %s,", mnemonic, NameOfXMMRegister(regop)); 1058 AppendToBuffer("%s %s,", mnemonic, NameOfXMMRegister(regop));
1055 current += PrintRightXMMOperand(current); 1059 current += PrintRightXMMOperand(current);
1056 } 1060 }
1057 } 1061 }
1058 } else if (group_1_prefix_ == 0xF2) { 1062 } else if (group_1_prefix_ == 0xF2) {
1059 // Beginning of instructions with prefix 0xF2. 1063 // Beginning of instructions with prefix 0xF2.
1060 1064
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1728 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1725 fprintf(f, " "); 1729 fprintf(f, " ");
1726 } 1730 }
1727 fprintf(f, " %s\n", buffer.start()); 1731 fprintf(f, " %s\n", buffer.start());
1728 } 1732 }
1729 } 1733 }
1730 1734
1731 } // namespace disasm 1735 } // namespace disasm
1732 1736
1733 #endif // V8_TARGET_ARCH_X64 1737 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698