| 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 switch (b2) { | 1017 switch (b2) { |
| 1018 case 0xE0: mnem = "fchs"; break; | 1018 case 0xE0: mnem = "fchs"; break; |
| 1019 case 0xE1: mnem = "fabs"; break; | 1019 case 0xE1: mnem = "fabs"; break; |
| 1020 case 0xE4: mnem = "ftst"; break; | 1020 case 0xE4: mnem = "ftst"; break; |
| 1021 case 0xE8: mnem = "fld1"; break; | 1021 case 0xE8: mnem = "fld1"; break; |
| 1022 case 0xEE: mnem = "fldz"; break; | 1022 case 0xEE: mnem = "fldz"; break; |
| 1023 case 0xF2: mnem = "fptan"; break; | 1023 case 0xF2: mnem = "fptan"; break; |
| 1024 case 0xF5: mnem = "fprem1"; break; | 1024 case 0xF5: mnem = "fprem1"; break; |
| 1025 case 0xF8: mnem = "fprem"; break; | 1025 case 0xF8: mnem = "fprem"; break; |
| 1026 case 0xF7: mnem = "fincstp"; break; | 1026 case 0xF7: mnem = "fincstp"; break; |
| 1027 case 0xFB: mnem = "fsincos"; break; |
| 1027 case 0xFE: mnem = "fsin"; break; | 1028 case 0xFE: mnem = "fsin"; break; |
| 1028 case 0xFF: mnem = "fcos"; break; | 1029 case 0xFF: mnem = "fcos"; break; |
| 1029 } | 1030 } |
| 1030 if (mnem != NULL) { | 1031 if (mnem != NULL) { |
| 1031 Print(mnem); | 1032 Print(mnem); |
| 1032 return 2; | 1033 return 2; |
| 1033 } else if ((b2 & 0xF8) == 0xC8) { | 1034 } else if ((b2 & 0xF8) == 0xC8) { |
| 1034 Print("fxch st"); | 1035 Print("fxch st"); |
| 1035 PrintInt(b2 & 0x7); | 1036 PrintInt(b2 & 0x7); |
| 1036 return 2; | 1037 return 2; |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 } | 1848 } |
| 1848 hex_buffer[hex_index] = '\0'; | 1849 hex_buffer[hex_index] = '\0'; |
| 1849 if (out_instr_len) { | 1850 if (out_instr_len) { |
| 1850 *out_instr_len = instruction_length; | 1851 *out_instr_len = instruction_length; |
| 1851 } | 1852 } |
| 1852 } | 1853 } |
| 1853 | 1854 |
| 1854 } // namespace dart | 1855 } // namespace dart |
| 1855 | 1856 |
| 1856 #endif // defined TARGET_ARCH_IA32 | 1857 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |