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

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

Issue 6597029: [Isolates] Merge r 6300:6500 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
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
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/frames-x64.h » ('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 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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 } else { 1019 } else {
1020 UnimplementedInstruction(); 1020 UnimplementedInstruction();
1021 } 1021 }
1022 } else { 1022 } else {
1023 get_modrm(*current, &mod, &regop, &rm); 1023 get_modrm(*current, &mod, &regop, &rm);
1024 if (opcode == 0x6E) { 1024 if (opcode == 0x6E) {
1025 AppendToBuffer("mov%c %s,", 1025 AppendToBuffer("mov%c %s,",
1026 rex_w() ? 'q' : 'd', 1026 rex_w() ? 'q' : 'd',
1027 NameOfXMMRegister(regop)); 1027 NameOfXMMRegister(regop));
1028 current += PrintRightOperand(current); 1028 current += PrintRightOperand(current);
1029 } else if (opcode == 0x6F) {
1030 AppendToBuffer("movdqa %s,",
1031 NameOfXMMRegister(regop));
1032 current += PrintRightOperand(current);
1029 } else if (opcode == 0x7E) { 1033 } else if (opcode == 0x7E) {
1030 AppendToBuffer("mov%c ", 1034 AppendToBuffer("mov%c ",
1031 rex_w() ? 'q' : 'd'); 1035 rex_w() ? 'q' : 'd');
1032 current += PrintRightOperand(current); 1036 current += PrintRightOperand(current);
1033 AppendToBuffer(", %s", NameOfXMMRegister(regop)); 1037 AppendToBuffer(", %s", NameOfXMMRegister(regop));
1038 } else if (opcode == 0x7F) {
1039 AppendToBuffer("movdqa ");
1040 current += PrintRightOperand(current);
1041 AppendToBuffer(", %s", NameOfXMMRegister(regop));
1034 } else { 1042 } else {
1035 const char* mnemonic = "?"; 1043 const char* mnemonic = "?";
1036 if (opcode == 0x57) { 1044 if (opcode == 0x57) {
1037 mnemonic = "xorpd"; 1045 mnemonic = "xorpd";
1038 } else if (opcode == 0x2E) { 1046 } else if (opcode == 0x2E) {
1039 mnemonic = "ucomisd"; 1047 mnemonic = "ucomisd";
1040 } else if (opcode == 0x2F) { 1048 } else if (opcode == 0x2F) {
1041 mnemonic = "comisd"; 1049 mnemonic = "comisd";
1042 } else { 1050 } else {
1043 UnimplementedInstruction(); 1051 UnimplementedInstruction();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 } 1115 }
1108 } else if (opcode == 0x2A) { 1116 } else if (opcode == 0x2A) {
1109 // CVTSI2SS: integer to XMM single conversion. 1117 // CVTSI2SS: integer to XMM single conversion.
1110 int mod, regop, rm; 1118 int mod, regop, rm;
1111 get_modrm(*current, &mod, &regop, &rm); 1119 get_modrm(*current, &mod, &regop, &rm);
1112 AppendToBuffer("%ss %s,", mnemonic, NameOfXMMRegister(regop)); 1120 AppendToBuffer("%ss %s,", mnemonic, NameOfXMMRegister(regop));
1113 current += PrintRightOperand(current); 1121 current += PrintRightOperand(current);
1114 } else if (opcode == 0x2C) { 1122 } else if (opcode == 0x2C) {
1115 // CVTTSS2SI: 1123 // CVTTSS2SI:
1116 // Convert with truncation scalar single-precision FP to dword integer. 1124 // Convert with truncation scalar single-precision FP to dword integer.
1117 // Assert that mod is not 3, so source is memory, not an XMM register. 1125 int mod, regop, rm;
1118 ASSERT_NE(0xC0, *current & 0xC0); 1126 get_modrm(*current, &mod, &regop, &rm);
1119 current += PrintOperands("cvttss2si", REG_OPER_OP_ORDER, current); 1127 AppendToBuffer("cvttss2si%c %s,",
1128 operand_size_code(), NameOfCPURegister(regop));
1129 current += PrintRightXMMOperand(current);
1120 } else if (opcode == 0x5A) { 1130 } else if (opcode == 0x5A) {
1121 // CVTSS2SD: 1131 // CVTSS2SD:
1122 // Convert scalar single-precision FP to scalar double-precision FP. 1132 // Convert scalar single-precision FP to scalar double-precision FP.
1123 int mod, regop, rm; 1133 int mod, regop, rm;
1124 get_modrm(*current, &mod, &regop, &rm); 1134 get_modrm(*current, &mod, &regop, &rm);
1125 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop)); 1135 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop));
1126 current += PrintRightXMMOperand(current); 1136 current += PrintRightXMMOperand(current);
1127 } else { 1137 } else {
1128 UnimplementedInstruction(); 1138 UnimplementedInstruction();
1129 } 1139 }
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1722 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1713 fprintf(f, " "); 1723 fprintf(f, " ");
1714 } 1724 }
1715 fprintf(f, " %s\n", buffer.start()); 1725 fprintf(f, " %s\n", buffer.start());
1716 } 1726 }
1717 } 1727 }
1718 1728
1719 } // namespace disasm 1729 } // namespace disasm
1720 1730
1721 #endif // V8_TARGET_ARCH_X64 1731 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/frames-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698