| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // 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 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2857 DCHECK(IsEnabled(BMI2)); | 2857 DCHECK(IsEnabled(BMI2)); |
| 2858 DCHECK(is_uint8(imm8)); | 2858 DCHECK(is_uint8(imm8)); |
| 2859 Register vreg = {0}; // VEX.vvvv unused | 2859 Register vreg = {0}; // VEX.vvvv unused |
| 2860 EnsureSpace ensure_space(this); | 2860 EnsureSpace ensure_space(this); |
| 2861 emit_vex_prefix(vreg, kLZ, kF2, k0F3A, kW0); | 2861 emit_vex_prefix(vreg, kLZ, kF2, k0F3A, kW0); |
| 2862 EMIT(0xF0); | 2862 EMIT(0xF0); |
| 2863 emit_operand(dst, src); | 2863 emit_operand(dst, src); |
| 2864 EMIT(imm8); | 2864 EMIT(imm8); |
| 2865 } | 2865 } |
| 2866 | 2866 |
| 2867 void Assembler::sse2_instr(XMMRegister dst, const Operand& src, byte prefix, | |
| 2868 byte escape, byte opcode) { | |
| 2869 EnsureSpace ensure_space(this); | |
| 2870 EMIT(prefix); | |
| 2871 EMIT(escape); | |
| 2872 EMIT(opcode); | |
| 2873 emit_sse_operand(dst, src); | |
| 2874 } | |
| 2875 | |
| 2876 void Assembler::vinstr(byte op, XMMRegister dst, XMMRegister src1, | |
| 2877 const Operand& src2, SIMDPrefix pp, LeadingOpcode m, | |
| 2878 VexW w) { | |
| 2879 DCHECK(IsEnabled(AVX)); | |
| 2880 EnsureSpace ensure_space(this); | |
| 2881 emit_vex_prefix(src1, kL128, pp, m, w); | |
| 2882 EMIT(op); | |
| 2883 emit_sse_operand(dst, src2); | |
| 2884 } | |
| 2885 | 2867 |
| 2886 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { | 2868 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
| 2887 Register ireg = { reg.code() }; | 2869 Register ireg = { reg.code() }; |
| 2888 emit_operand(ireg, adr); | 2870 emit_operand(ireg, adr); |
| 2889 } | 2871 } |
| 2890 | 2872 |
| 2891 | 2873 |
| 2892 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { | 2874 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
| 2893 EMIT(0xC0 | dst.code() << 3 | src.code()); | 2875 EMIT(0xC0 | dst.code() << 3 | src.code()); |
| 2894 } | 2876 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3082 } | 3064 } |
| 3083 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 3065 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
| 3084 reloc_info_writer.Write(&rinfo); | 3066 reloc_info_writer.Write(&rinfo); |
| 3085 } | 3067 } |
| 3086 | 3068 |
| 3087 | 3069 |
| 3088 } // namespace internal | 3070 } // namespace internal |
| 3089 } // namespace v8 | 3071 } // namespace v8 |
| 3090 | 3072 |
| 3091 #endif // V8_TARGET_ARCH_IA32 | 3073 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |