| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "src/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
| 10 | 10 |
| (...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2944 DCHECK(!IsEnabled(AVX)); | 2944 DCHECK(!IsEnabled(AVX)); |
| 2945 EnsureSpace ensure_space(this); | 2945 EnsureSpace ensure_space(this); |
| 2946 emit_optional_rex_32(dst, src); | 2946 emit_optional_rex_32(dst, src); |
| 2947 emit(0x0f); | 2947 emit(0x0f); |
| 2948 emit(0x2e); | 2948 emit(0x2e); |
| 2949 emit_sse_operand(dst, src); | 2949 emit_sse_operand(dst, src); |
| 2950 } | 2950 } |
| 2951 | 2951 |
| 2952 | 2952 |
| 2953 void Assembler::movss(XMMRegister dst, const Operand& src) { | 2953 void Assembler::movss(XMMRegister dst, const Operand& src) { |
| 2954 DCHECK(!IsEnabled(AVX)); |
| 2954 EnsureSpace ensure_space(this); | 2955 EnsureSpace ensure_space(this); |
| 2955 emit(0xF3); // single | 2956 emit(0xF3); // single |
| 2956 emit_optional_rex_32(dst, src); | 2957 emit_optional_rex_32(dst, src); |
| 2957 emit(0x0F); | 2958 emit(0x0F); |
| 2958 emit(0x10); // load | 2959 emit(0x10); // load |
| 2959 emit_sse_operand(dst, src); | 2960 emit_sse_operand(dst, src); |
| 2960 } | 2961 } |
| 2961 | 2962 |
| 2962 | 2963 |
| 2963 void Assembler::movss(const Operand& src, XMMRegister dst) { | 2964 void Assembler::movss(const Operand& src, XMMRegister dst) { |
| 2965 DCHECK(!IsEnabled(AVX)); |
| 2964 EnsureSpace ensure_space(this); | 2966 EnsureSpace ensure_space(this); |
| 2965 emit(0xF3); // single | 2967 emit(0xF3); // single |
| 2966 emit_optional_rex_32(dst, src); | 2968 emit_optional_rex_32(dst, src); |
| 2967 emit(0x0F); | 2969 emit(0x0F); |
| 2968 emit(0x11); // store | 2970 emit(0x11); // store |
| 2969 emit_sse_operand(dst, src); | 2971 emit_sse_operand(dst, src); |
| 2970 } | 2972 } |
| 2971 | 2973 |
| 2972 | 2974 |
| 2973 void Assembler::psllq(XMMRegister reg, byte imm8) { | 2975 void Assembler::psllq(XMMRegister reg, byte imm8) { |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4016 | 4018 |
| 4017 bool RelocInfo::IsInConstantPool() { | 4019 bool RelocInfo::IsInConstantPool() { |
| 4018 return false; | 4020 return false; |
| 4019 } | 4021 } |
| 4020 | 4022 |
| 4021 | 4023 |
| 4022 } // namespace internal | 4024 } // namespace internal |
| 4023 } // namespace v8 | 4025 } // namespace v8 |
| 4024 | 4026 |
| 4025 #endif // V8_TARGET_ARCH_X64 | 4027 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |