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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 if (op == 0xD1) { | 599 if (op == 0xD1) { |
600 imm8 = 1; | 600 imm8 = 1; |
601 } else if (op == 0xC1) { | 601 } else if (op == 0xC1) { |
602 imm8 = *(data+2); | 602 imm8 = *(data+2); |
603 num_bytes = 3; | 603 num_bytes = 3; |
604 } else if (op == 0xD3) { | 604 } else if (op == 0xD3) { |
605 // Shift/rotate by cl. | 605 // Shift/rotate by cl. |
606 } | 606 } |
607 ASSERT_NE(NULL, mnem); | 607 ASSERT_NE(NULL, mnem); |
608 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(rm)); | 608 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(rm)); |
609 if (imm8 > 0) { | 609 if (imm8 >= 0) { |
610 AppendToBuffer("%d", imm8); | 610 AppendToBuffer("%d", imm8); |
611 } else { | 611 } else { |
612 AppendToBuffer("cl"); | 612 AppendToBuffer("cl"); |
613 } | 613 } |
614 } else { | 614 } else { |
615 UnimplementedInstruction(); | 615 UnimplementedInstruction(); |
616 } | 616 } |
617 return num_bytes; | 617 return num_bytes; |
618 } | 618 } |
619 | 619 |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 fprintf(f, " "); | 1717 fprintf(f, " "); |
1718 } | 1718 } |
1719 fprintf(f, " %s\n", buffer.start()); | 1719 fprintf(f, " %s\n", buffer.start()); |
1720 } | 1720 } |
1721 } | 1721 } |
1722 | 1722 |
1723 | 1723 |
1724 } // namespace disasm | 1724 } // namespace disasm |
1725 | 1725 |
1726 #endif // V8_TARGET_ARCH_IA32 | 1726 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |