| OLD | NEW |
| 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 Loading... |
| 1091 AppendToBuffer("movsd "); | 1091 AppendToBuffer("movsd "); |
| 1092 int mod, regop, rm; | 1092 int mod, regop, rm; |
| 1093 get_modrm(*current, &mod, ®op, &rm); | 1093 get_modrm(*current, &mod, ®op, &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, ®op, &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, ®op, &rm); | 1110 get_modrm(*current, &mod, ®op, &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 Loading... |
| 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 |
| OLD | NEW |