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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 case 5: | 796 case 5: |
797 mnem = "shr"; | 797 mnem = "shr"; |
798 break; | 798 break; |
799 case 7: | 799 case 7: |
800 mnem = "sar"; | 800 mnem = "sar"; |
801 break; | 801 break; |
802 default: | 802 default: |
803 UnimplementedInstruction(); | 803 UnimplementedInstruction(); |
804 return count + 1; | 804 return count + 1; |
805 } | 805 } |
806 DCHECK_NE(NULL, mnem); | 806 DCHECK_NOT_NULL(mnem); |
807 AppendToBuffer("%s%c ", mnem, operand_size_code()); | 807 AppendToBuffer("%s%c ", mnem, operand_size_code()); |
808 } | 808 } |
809 count += PrintRightOperand(data + count); | 809 count += PrintRightOperand(data + count); |
810 if (op == 0xD2) { | 810 if (op == 0xD2) { |
811 AppendToBuffer(", cl"); | 811 AppendToBuffer(", cl"); |
812 } else { | 812 } else { |
813 int imm8 = -1; | 813 int imm8 = -1; |
814 if (op == 0xD0) { | 814 if (op == 0xD0) { |
815 imm8 = 1; | 815 imm8 = 1; |
816 } else { | 816 } else { |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { | 2111 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { |
2112 fprintf(f, " "); | 2112 fprintf(f, " "); |
2113 } | 2113 } |
2114 fprintf(f, " %s\n", buffer.start()); | 2114 fprintf(f, " %s\n", buffer.start()); |
2115 } | 2115 } |
2116 } | 2116 } |
2117 | 2117 |
2118 } // namespace disasm | 2118 } // namespace disasm |
2119 | 2119 |
2120 #endif // V8_TARGET_ARCH_X64 | 2120 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |