OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 void movq_mr_disp32(int offset, RegisterID base, RegisterID dst) | 920 void movq_mr_disp32(int offset, RegisterID base, RegisterID dst) |
921 { | 921 { |
922 m_formatter.oneByteOp64_disp32(OP_MOV_GvEv, dst, base, offset); | 922 m_formatter.oneByteOp64_disp32(OP_MOV_GvEv, dst, base, offset); |
923 } | 923 } |
924 | 924 |
925 void movq_mr(int offset, RegisterID base, RegisterID index, int scale, Regis
terID dst) | 925 void movq_mr(int offset, RegisterID base, RegisterID index, int scale, Regis
terID dst) |
926 { | 926 { |
927 m_formatter.oneByteOp64(OP_MOV_GvEv, dst, base, index, scale, offset); | 927 m_formatter.oneByteOp64(OP_MOV_GvEv, dst, base, index, scale, offset); |
928 } | 928 } |
929 | 929 |
| 930 void movq_i32m(int imm, int offset, RegisterID base) |
| 931 { |
| 932 m_formatter.oneByteOp64(OP_GROUP11_EvIz, GROUP11_MOV, base, offset); |
| 933 m_formatter.immediate32(imm); |
| 934 } |
| 935 |
930 void movq_i64r(int64_t imm, RegisterID dst) | 936 void movq_i64r(int64_t imm, RegisterID dst) |
931 { | 937 { |
932 m_formatter.oneByteOp64(OP_MOV_EAXIv, dst); | 938 m_formatter.oneByteOp64(OP_MOV_EAXIv, dst); |
933 m_formatter.immediate64(imm); | 939 m_formatter.immediate64(imm); |
934 } | 940 } |
935 | 941 |
936 void movsxd_rr(RegisterID src, RegisterID dst) | 942 void movsxd_rr(RegisterID src, RegisterID dst) |
937 { | 943 { |
938 m_formatter.oneByteOp64(OP_MOVSXD_GvEv, dst, src); | 944 m_formatter.oneByteOp64(OP_MOVSXD_GvEv, dst, src); |
939 } | 945 } |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1775 | 1781 |
1776 AssemblerBuffer m_buffer; | 1782 AssemblerBuffer m_buffer; |
1777 } m_formatter; | 1783 } m_formatter; |
1778 }; | 1784 }; |
1779 | 1785 |
1780 } // namespace JSC | 1786 } // namespace JSC |
1781 | 1787 |
1782 #endif // ENABLE(ASSEMBLER) && PLATFORM(X86) | 1788 #endif // ENABLE(ASSEMBLER) && PLATFORM(X86) |
1783 | 1789 |
1784 #endif // X86Assembler_h | 1790 #endif // X86Assembler_h |
OLD | NEW |