| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 bool has_register = false; // Is the FPU register encoded in modrm_byte? | 711 bool has_register = false; // Is the FPU register encoded in modrm_byte? |
| 712 const char* mnem = "?"; | 712 const char* mnem = "?"; |
| 713 | 713 |
| 714 switch (escape_opcode) { | 714 switch (escape_opcode) { |
| 715 case 0xD8: | 715 case 0xD8: |
| 716 UnimplementedInstruction(); | 716 UnimplementedInstruction(); |
| 717 break; | 717 break; |
| 718 | 718 |
| 719 case 0xD9: | 719 case 0xD9: |
| 720 switch (modrm_byte & 0xF8) { | 720 switch (modrm_byte & 0xF8) { |
| 721 case 0xC0: |
| 722 mnem = "fld"; |
| 723 has_register = true; |
| 724 break; |
| 721 case 0xC8: | 725 case 0xC8: |
| 722 mnem = "fxch"; | 726 mnem = "fxch"; |
| 723 has_register = true; | 727 has_register = true; |
| 724 break; | 728 break; |
| 725 default: | 729 default: |
| 726 switch (modrm_byte) { | 730 switch (modrm_byte) { |
| 727 case 0xE0: mnem = "fchs"; break; | 731 case 0xE0: mnem = "fchs"; break; |
| 728 case 0xE1: mnem = "fabs"; break; | 732 case 0xE1: mnem = "fabs"; break; |
| 729 case 0xE4: mnem = "ftst"; break; | 733 case 0xE4: mnem = "ftst"; break; |
| 730 case 0xE8: mnem = "fld1"; break; | 734 case 0xE8: mnem = "fld1"; break; |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 fprintf(f, " "); | 1510 fprintf(f, " "); |
| 1507 } | 1511 } |
| 1508 fprintf(f, " %s\n", buffer.start()); | 1512 fprintf(f, " %s\n", buffer.start()); |
| 1509 } | 1513 } |
| 1510 } | 1514 } |
| 1511 | 1515 |
| 1512 | 1516 |
| 1513 } // namespace disasm | 1517 } // namespace disasm |
| 1514 | 1518 |
| 1515 #endif // V8_TARGET_ARCH_IA32 | 1519 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |