| 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 3029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3040 EnsureSpace ensure_space(this); | 3040 EnsureSpace ensure_space(this); |
| 3041 emit(0xF2); | 3041 emit(0xF2); |
| 3042 emit_rex_64(dst, src); | 3042 emit_rex_64(dst, src); |
| 3043 emit(0x0F); | 3043 emit(0x0F); |
| 3044 emit(0x2C); | 3044 emit(0x2C); |
| 3045 emit_sse_operand(dst, src); | 3045 emit_sse_operand(dst, src); |
| 3046 } | 3046 } |
| 3047 | 3047 |
| 3048 | 3048 |
| 3049 void Assembler::cvtlsi2sd(XMMRegister dst, const Operand& src) { | 3049 void Assembler::cvtlsi2sd(XMMRegister dst, const Operand& src) { |
| 3050 DCHECK(!IsEnabled(AVX)); |
| 3050 EnsureSpace ensure_space(this); | 3051 EnsureSpace ensure_space(this); |
| 3051 emit(0xF2); | 3052 emit(0xF2); |
| 3052 emit_optional_rex_32(dst, src); | 3053 emit_optional_rex_32(dst, src); |
| 3053 emit(0x0F); | 3054 emit(0x0F); |
| 3054 emit(0x2A); | 3055 emit(0x2A); |
| 3055 emit_sse_operand(dst, src); | 3056 emit_sse_operand(dst, src); |
| 3056 } | 3057 } |
| 3057 | 3058 |
| 3058 | 3059 |
| 3059 void Assembler::cvtlsi2sd(XMMRegister dst, Register src) { | 3060 void Assembler::cvtlsi2sd(XMMRegister dst, Register src) { |
| 3061 DCHECK(!IsEnabled(AVX)); |
| 3060 EnsureSpace ensure_space(this); | 3062 EnsureSpace ensure_space(this); |
| 3061 emit(0xF2); | 3063 emit(0xF2); |
| 3062 emit_optional_rex_32(dst, src); | 3064 emit_optional_rex_32(dst, src); |
| 3063 emit(0x0F); | 3065 emit(0x0F); |
| 3064 emit(0x2A); | 3066 emit(0x2A); |
| 3065 emit_sse_operand(dst, src); | 3067 emit_sse_operand(dst, src); |
| 3066 } | 3068 } |
| 3067 | 3069 |
| 3068 | 3070 |
| 3069 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { | 3071 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3941 | 3943 |
| 3942 bool RelocInfo::IsInConstantPool() { | 3944 bool RelocInfo::IsInConstantPool() { |
| 3943 return false; | 3945 return false; |
| 3944 } | 3946 } |
| 3945 | 3947 |
| 3946 | 3948 |
| 3947 } // namespace internal | 3949 } // namespace internal |
| 3948 } // namespace v8 | 3950 } // namespace v8 |
| 3949 | 3951 |
| 3950 #endif // V8_TARGET_ARCH_X64 | 3952 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |