| 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 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 } else if (*data == 0x38) { | 1492 } else if (*data == 0x38) { |
| 1493 data += Packed660F38Instruction(data); | 1493 data += Packed660F38Instruction(data); |
| 1494 } else if (*data == 0xEF) { | 1494 } else if (*data == 0xEF) { |
| 1495 int mod, regop, rm; | 1495 int mod, regop, rm; |
| 1496 GetModRm(*(data+1), &mod, ®op, &rm); | 1496 GetModRm(*(data+1), &mod, ®op, &rm); |
| 1497 Print("pxor "); | 1497 Print("pxor "); |
| 1498 PrintXmmRegister(regop); | 1498 PrintXmmRegister(regop); |
| 1499 Print(","); | 1499 Print(","); |
| 1500 PrintXmmRegister(rm); | 1500 PrintXmmRegister(rm); |
| 1501 data += 2; | 1501 data += 2; |
| 1502 } else if (*data == 0x3A) { |
| 1503 data++; |
| 1504 if (*data == 0x0B) { |
| 1505 data++; |
| 1506 int mod, regop, rm; |
| 1507 GetModRm(*data, &mod, ®op, &rm); |
| 1508 Print("roundsd "); |
| 1509 PrintXmmRegister(regop); |
| 1510 Print(", "); |
| 1511 PrintXmmRegister(rm); |
| 1512 Print(", "); |
| 1513 PrintInt(data[1] & 3); |
| 1514 data += 2; |
| 1515 } else { |
| 1516 UNIMPLEMENTED(); |
| 1517 } |
| 1502 } else { | 1518 } else { |
| 1503 UNIMPLEMENTED(); | 1519 UNIMPLEMENTED(); |
| 1504 } | 1520 } |
| 1505 } else if (*data == 0x90) { | 1521 } else if (*data == 0x90) { |
| 1506 data++; | 1522 data++; |
| 1507 Print("nop"); | 1523 Print("nop"); |
| 1508 } else { | 1524 } else { |
| 1509 UNIMPLEMENTED(); | 1525 UNIMPLEMENTED(); |
| 1510 } | 1526 } |
| 1511 break; | 1527 break; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 human_buffer, | 1718 human_buffer, |
| 1703 sizeof(human_buffer), | 1719 sizeof(human_buffer), |
| 1704 pc); | 1720 pc); |
| 1705 pc += instruction_length; | 1721 pc += instruction_length; |
| 1706 } | 1722 } |
| 1707 } | 1723 } |
| 1708 | 1724 |
| 1709 } // namespace dart | 1725 } // namespace dart |
| 1710 | 1726 |
| 1711 #endif // defined TARGET_ARCH_IA32 | 1727 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |