| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 8 #if defined(TARGET_ARCH_IA32) | 8 #if defined(TARGET_ARCH_IA32) |
| 9 #include "platform/utils.h" | 9 #include "platform/utils.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 data += 4; | 1489 data += 4; |
| 1490 Print("nop"); | 1490 Print("nop"); |
| 1491 } else if (*data == 0x50) { | 1491 } else if (*data == 0x50) { |
| 1492 Print("movmskpd "); | 1492 Print("movmskpd "); |
| 1493 data++; | 1493 data++; |
| 1494 int mod, regop, rm; | 1494 int mod, regop, rm; |
| 1495 GetModRm(*data, &mod, ®op, &rm); | 1495 GetModRm(*data, &mod, ®op, &rm); |
| 1496 PrintCPURegister(regop); | 1496 PrintCPURegister(regop); |
| 1497 Print(","); | 1497 Print(","); |
| 1498 data += PrintRightXmmOperand(data); | 1498 data += PrintRightXmmOperand(data); |
| 1499 } else if (*data == 0x3A && | 1499 } else if (*data == 0x3A && *(data+1) == 0x16) { |
| 1500 *(data+1) == 0x16) { | |
| 1501 Print("pextrd "); | 1500 Print("pextrd "); |
| 1502 data += 2; | 1501 data += 2; |
| 1503 int mod, regop, rm; | 1502 int mod, regop, rm; |
| 1504 GetModRm(*data, &mod, ®op, &rm); | 1503 GetModRm(*data, &mod, ®op, &rm); |
| 1505 PrintCPURegister(rm); | 1504 PrintCPURegister(rm); |
| 1506 Print(","); | 1505 Print(","); |
| 1507 PrintXmmRegister(regop); | 1506 PrintXmmRegister(regop); |
| 1508 Print(","); | 1507 Print(","); |
| 1509 PrintHex(*(data+1)); | 1508 PrintHex(*(data+1)); |
| 1510 data += 2; | 1509 data += 2; |
| 1511 } else if (*data == 0x38) { | 1510 } else if (*data == 0x38) { |
| 1512 data += Packed660F38Instruction(data); | 1511 data += Packed660F38Instruction(data); |
| 1512 } else if (*data == 0xEF) { |
| 1513 int mod, regop, rm; |
| 1514 GetModRm(*(data+1), &mod, ®op, &rm); |
| 1515 Print("pxor "); |
| 1516 PrintXmmRegister(regop); |
| 1517 Print(","); |
| 1518 PrintXmmRegister(rm); |
| 1519 data += 2; |
| 1513 } else { | 1520 } else { |
| 1514 UNIMPLEMENTED(); | 1521 UNIMPLEMENTED(); |
| 1515 } | 1522 } |
| 1516 } else if (*data == 0x90) { | 1523 } else if (*data == 0x90) { |
| 1517 data++; | 1524 data++; |
| 1518 Print("nop"); | 1525 Print("nop"); |
| 1519 } else { | 1526 } else { |
| 1520 UNIMPLEMENTED(); | 1527 UNIMPLEMENTED(); |
| 1521 } | 1528 } |
| 1522 break; | 1529 break; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 human_buffer, | 1718 human_buffer, |
| 1712 sizeof(human_buffer), | 1719 sizeof(human_buffer), |
| 1713 pc); | 1720 pc); |
| 1714 pc += instruction_length; | 1721 pc += instruction_length; |
| 1715 } | 1722 } |
| 1716 } | 1723 } |
| 1717 | 1724 |
| 1718 } // namespace dart | 1725 } // namespace dart |
| 1719 | 1726 |
| 1720 #endif // defined TARGET_ARCH_IA32 | 1727 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |