| OLD | NEW |
| 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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 } else { | 1018 } else { |
| 1019 UnimplementedInstruction(); | 1019 UnimplementedInstruction(); |
| 1020 } | 1020 } |
| 1021 } else { | 1021 } else { |
| 1022 get_modrm(*current, &mod, ®op, &rm); | 1022 get_modrm(*current, &mod, ®op, &rm); |
| 1023 if (opcode == 0x6E) { | 1023 if (opcode == 0x6E) { |
| 1024 AppendToBuffer("mov%c %s,", | 1024 AppendToBuffer("mov%c %s,", |
| 1025 rex_w() ? 'q' : 'd', | 1025 rex_w() ? 'q' : 'd', |
| 1026 NameOfXMMRegister(regop)); | 1026 NameOfXMMRegister(regop)); |
| 1027 current += PrintRightOperand(current); | 1027 current += PrintRightOperand(current); |
| 1028 } else if (opcode == 0x6F) { |
| 1029 AppendToBuffer("movdqa %s,", |
| 1030 NameOfXMMRegister(regop)); |
| 1031 current += PrintRightOperand(current); |
| 1028 } else if (opcode == 0x7E) { | 1032 } else if (opcode == 0x7E) { |
| 1029 AppendToBuffer("mov%c ", | 1033 AppendToBuffer("mov%c ", |
| 1030 rex_w() ? 'q' : 'd'); | 1034 rex_w() ? 'q' : 'd'); |
| 1031 current += PrintRightOperand(current); | 1035 current += PrintRightOperand(current); |
| 1032 AppendToBuffer(", %s", NameOfXMMRegister(regop)); | 1036 AppendToBuffer(", %s", NameOfXMMRegister(regop)); |
| 1037 } else if (opcode == 0x7F) { |
| 1038 AppendToBuffer("movdqa "); |
| 1039 current += PrintRightOperand(current); |
| 1040 AppendToBuffer(", %s", NameOfXMMRegister(regop)); |
| 1033 } else { | 1041 } else { |
| 1034 const char* mnemonic = "?"; | 1042 const char* mnemonic = "?"; |
| 1035 if (opcode == 0x57) { | 1043 if (opcode == 0x57) { |
| 1036 mnemonic = "xorpd"; | 1044 mnemonic = "xorpd"; |
| 1037 } else if (opcode == 0x2E) { | 1045 } else if (opcode == 0x2E) { |
| 1038 mnemonic = "ucomisd"; | 1046 mnemonic = "ucomisd"; |
| 1039 } else if (opcode == 0x2F) { | 1047 } else if (opcode == 0x2F) { |
| 1040 mnemonic = "comisd"; | 1048 mnemonic = "comisd"; |
| 1041 } else { | 1049 } else { |
| 1042 UnimplementedInstruction(); | 1050 UnimplementedInstruction(); |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 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--) { |
| 1715 fprintf(f, " "); | 1723 fprintf(f, " "); |
| 1716 } | 1724 } |
| 1717 fprintf(f, " %s\n", buffer.start()); | 1725 fprintf(f, " %s\n", buffer.start()); |
| 1718 } | 1726 } |
| 1719 } | 1727 } |
| 1720 | 1728 |
| 1721 } // namespace disasm | 1729 } // namespace disasm |
| 1722 | 1730 |
| 1723 #endif // V8_TARGET_ARCH_X64 | 1731 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |