| 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 data += 2; | 1353 data += 2; |
| 1354 data += PrintOperands(f0mnem, REG_OPER_OP_ORDER, data); | 1354 data += PrintOperands(f0mnem, REG_OPER_OP_ORDER, data); |
| 1355 } else if (f0byte == 0x57) { | 1355 } else if (f0byte == 0x57) { |
| 1356 data += 2; | 1356 data += 2; |
| 1357 int mod, regop, rm; | 1357 int mod, regop, rm; |
| 1358 GetModRm(*data, &mod, ®op, &rm); | 1358 GetModRm(*data, &mod, ®op, &rm); |
| 1359 Print(f0mnem); | 1359 Print(f0mnem); |
| 1360 Print(" "); | 1360 Print(" "); |
| 1361 PrintXmmRegister(regop); | 1361 PrintXmmRegister(regop); |
| 1362 Print(","); | 1362 Print(","); |
| 1363 data += PrintRightOperand(data); | 1363 data += PrintRightXmmOperand(data); |
| 1364 } else if (f0byte == 0xB1) { | 1364 } else if (f0byte == 0xB1) { |
| 1365 data += 2; | 1365 data += 2; |
| 1366 data += PrintOperands(f0mnem, OPER_REG_OP_ORDER, data); | 1366 data += PrintOperands(f0mnem, OPER_REG_OP_ORDER, data); |
| 1367 } else if ((f0byte & 0xF0) == 0x90) { | 1367 } else if ((f0byte & 0xF0) == 0x90) { |
| 1368 data += SetCC(data); | 1368 data += SetCC(data); |
| 1369 } else if ((f0byte & 0xF0) == 0x40) { | 1369 } else if ((f0byte & 0xF0) == 0x40) { |
| 1370 data += CMov(data); | 1370 data += CMov(data); |
| 1371 } else if (f0byte == 0x2F) { | 1371 } else if (f0byte == 0x2F) { |
| 1372 data += 2; | 1372 data += 2; |
| 1373 int mod, regop, rm; | 1373 int mod, regop, rm; |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 pc); | 1870 pc); |
| 1871 pc += instruction_length; | 1871 pc += instruction_length; |
| 1872 } | 1872 } |
| 1873 | 1873 |
| 1874 return; | 1874 return; |
| 1875 } | 1875 } |
| 1876 | 1876 |
| 1877 } // namespace dart | 1877 } // namespace dart |
| 1878 | 1878 |
| 1879 #endif // defined TARGET_ARCH_IA32 | 1879 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |