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 } |
2867 | 2875 |
2868 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { | 2876 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
2869 Register ireg = { reg.code() }; | 2877 Register ireg = { reg.code() }; |
2870 emit_operand(ireg, adr); | 2878 emit_operand(ireg, adr); |
2871 } | 2879 } |
2872 | 2880 |
2873 | 2881 |
2874 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { | 2882 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
2875 EMIT(0xC0 | dst.code() << 3 | src.code()); | 2883 EMIT(0xC0 | dst.code() << 3 | src.code()); |
2876 } | 2884 } |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3064 } | 3072 } |
3065 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 3073 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
3066 reloc_info_writer.Write(&rinfo); | 3074 reloc_info_writer.Write(&rinfo); |
3067 } | 3075 } |
3068 | 3076 |
3069 | 3077 |
3070 } // namespace internal | 3078 } // namespace internal |
3071 } // namespace v8 | 3079 } // namespace v8 |
3072 | 3080 |
3073 #endif // V8_TARGET_ARCH_IA32 | 3081 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |