| 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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1190         } else if (*data == 0x8B) { | 1190         } else if (*data == 0x8B) { | 
| 1191           data++; | 1191           data++; | 
| 1192           data += PrintOperands("mov_w", REG_OPER_OP_ORDER, data); | 1192           data += PrintOperands("mov_w", REG_OPER_OP_ORDER, data); | 
| 1193         } else if (*data == 0x89) { | 1193         } else if (*data == 0x89) { | 
| 1194           data++; | 1194           data++; | 
| 1195           int mod, regop, rm; | 1195           int mod, regop, rm; | 
| 1196           get_modrm(*data, &mod, ®op, &rm); | 1196           get_modrm(*data, &mod, ®op, &rm); | 
| 1197           AppendToBuffer("mov_w "); | 1197           AppendToBuffer("mov_w "); | 
| 1198           data += PrintRightOperand(data); | 1198           data += PrintRightOperand(data); | 
| 1199           AppendToBuffer(",%s", NameOfCPURegister(regop)); | 1199           AppendToBuffer(",%s", NameOfCPURegister(regop)); | 
|  | 1200         } else if (*data == 0xC7) { | 
|  | 1201           data++; | 
|  | 1202           AppendToBuffer("%s ", "mov_w"); | 
|  | 1203           data += PrintRightOperand(data); | 
|  | 1204           int imm = *reinterpret_cast<int16_t*>(data); | 
|  | 1205           AppendToBuffer(",0x%x", imm); | 
|  | 1206           data += 2; | 
| 1200         } else if (*data == 0x0F) { | 1207         } else if (*data == 0x0F) { | 
| 1201           data++; | 1208           data++; | 
| 1202           if (*data == 0x38) { | 1209           if (*data == 0x38) { | 
| 1203             data++; | 1210             data++; | 
| 1204             if (*data == 0x17) { | 1211             if (*data == 0x17) { | 
| 1205               data++; | 1212               data++; | 
| 1206               int mod, regop, rm; | 1213               int mod, regop, rm; | 
| 1207               get_modrm(*data, &mod, ®op, &rm); | 1214               get_modrm(*data, &mod, ®op, &rm); | 
| 1208               AppendToBuffer("ptest %s,%s", | 1215               AppendToBuffer("ptest %s,%s", | 
| 1209                              NameOfXMMRegister(regop), | 1216                              NameOfXMMRegister(regop), | 
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1736       fprintf(f, "  "); | 1743       fprintf(f, "  "); | 
| 1737     } | 1744     } | 
| 1738     fprintf(f, "  %s\n", buffer.start()); | 1745     fprintf(f, "  %s\n", buffer.start()); | 
| 1739   } | 1746   } | 
| 1740 } | 1747 } | 
| 1741 | 1748 | 
| 1742 | 1749 | 
| 1743 }  // namespace disasm | 1750 }  // namespace disasm | 
| 1744 | 1751 | 
| 1745 #endif  // V8_TARGET_ARCH_IA32 | 1752 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW | 
|---|