| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <assert.h> | 5 #include <assert.h> |
| 6 #include <stdarg.h> | 6 #include <stdarg.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 mnem = "sar"; | 599 mnem = "sar"; |
| 600 break; | 600 break; |
| 601 default: | 601 default: |
| 602 UnimplementedInstruction(); | 602 UnimplementedInstruction(); |
| 603 } | 603 } |
| 604 AppendToBuffer("%s ", mnem); | 604 AppendToBuffer("%s ", mnem); |
| 605 int count = PrintRightOperand(data); | 605 int count = PrintRightOperand(data); |
| 606 if (op == 0xD1) { | 606 if (op == 0xD1) { |
| 607 imm8 = 1; | 607 imm8 = 1; |
| 608 } else if (op == 0xC1) { | 608 } else if (op == 0xC1) { |
| 609 imm8 = *(data + 2); | 609 imm8 = *(data + 1); |
| 610 count++; | 610 count++; |
| 611 } else if (op == 0xD3) { | 611 } else if (op == 0xD3) { |
| 612 // Shift/rotate by cl. | 612 // Shift/rotate by cl. |
| 613 } | 613 } |
| 614 if (imm8 >= 0) { | 614 if (imm8 >= 0) { |
| 615 AppendToBuffer(",%d", imm8); | 615 AppendToBuffer(",%d", imm8); |
| 616 } else { | 616 } else { |
| 617 AppendToBuffer(",cl"); | 617 AppendToBuffer(",cl"); |
| 618 } | 618 } |
| 619 return 1 + count; | 619 return 1 + count; |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1766 fprintf(f, " "); | 1766 fprintf(f, " "); |
| 1767 } | 1767 } |
| 1768 fprintf(f, " %s\n", buffer.start()); | 1768 fprintf(f, " %s\n", buffer.start()); |
| 1769 } | 1769 } |
| 1770 } | 1770 } |
| 1771 | 1771 |
| 1772 | 1772 |
| 1773 } // namespace disasm | 1773 } // namespace disasm |
| 1774 | 1774 |
| 1775 #endif // V8_TARGET_ARCH_X87 | 1775 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |