| 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 break; | 673 break; |
| 674 case 3: | 674 case 3: |
| 675 mnem = "neg"; | 675 mnem = "neg"; |
| 676 break; | 676 break; |
| 677 case 4: | 677 case 4: |
| 678 mnem = "mul"; | 678 mnem = "mul"; |
| 679 break; | 679 break; |
| 680 case 5: | 680 case 5: |
| 681 mnem = "imul"; | 681 mnem = "imul"; |
| 682 break; | 682 break; |
| 683 case 6: |
| 684 mnem = "div"; |
| 685 break; |
| 683 case 7: | 686 case 7: |
| 684 mnem = "idiv"; | 687 mnem = "idiv"; |
| 685 break; | 688 break; |
| 686 default: | 689 default: |
| 687 UnimplementedInstruction(); | 690 UnimplementedInstruction(); |
| 688 } | 691 } |
| 689 AppendToBuffer("%s%c %s", | 692 AppendToBuffer("%s%c %s", |
| 690 mnem, | 693 mnem, |
| 691 operand_size_code(), | 694 operand_size_code(), |
| 692 NameOfCPURegister(rm)); | 695 NameOfCPURegister(rm)); |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { | 1906 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { |
| 1904 fprintf(f, " "); | 1907 fprintf(f, " "); |
| 1905 } | 1908 } |
| 1906 fprintf(f, " %s\n", buffer.start()); | 1909 fprintf(f, " %s\n", buffer.start()); |
| 1907 } | 1910 } |
| 1908 } | 1911 } |
| 1909 | 1912 |
| 1910 } // namespace disasm | 1913 } // namespace disasm |
| 1911 | 1914 |
| 1912 #endif // V8_TARGET_ARCH_X64 | 1915 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |