OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 switch (regop) { | 696 switch (regop) { |
697 case 2: | 697 case 2: |
698 mnem = "not"; | 698 mnem = "not"; |
699 break; | 699 break; |
700 case 3: | 700 case 3: |
701 mnem = "neg"; | 701 mnem = "neg"; |
702 break; | 702 break; |
703 case 4: | 703 case 4: |
704 mnem = "mul"; | 704 mnem = "mul"; |
705 break; | 705 break; |
| 706 case 5: |
| 707 mnem = "imul"; |
| 708 break; |
706 case 7: | 709 case 7: |
707 mnem = "idiv"; | 710 mnem = "idiv"; |
708 break; | 711 break; |
709 default: | 712 default: |
710 UnimplementedInstruction(); | 713 UnimplementedInstruction(); |
711 } | 714 } |
712 AppendToBuffer("%s%c %s", | 715 AppendToBuffer("%s%c %s", |
713 mnem, | 716 mnem, |
714 operand_size_code(), | 717 operand_size_code(), |
715 NameOfCPURegister(rm)); | 718 NameOfCPURegister(rm)); |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1845 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { | 1848 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { |
1846 fprintf(f, " "); | 1849 fprintf(f, " "); |
1847 } | 1850 } |
1848 fprintf(f, " %s\n", buffer.start()); | 1851 fprintf(f, " %s\n", buffer.start()); |
1849 } | 1852 } |
1850 } | 1853 } |
1851 | 1854 |
1852 } // namespace disasm | 1855 } // namespace disasm |
1853 | 1856 |
1854 #endif // V8_TARGET_ARCH_X64 | 1857 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |