| 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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3123 EnsureSpace ensure_space(this); | 3123 EnsureSpace ensure_space(this); |
| 3124 emit(0xF3); | 3124 emit(0xF3); |
| 3125 emit_optional_rex_32(dst, src); | 3125 emit_optional_rex_32(dst, src); |
| 3126 emit(0x0F); | 3126 emit(0x0F); |
| 3127 emit(0x2A); | 3127 emit(0x2A); |
| 3128 emit_sse_operand(dst, src); | 3128 emit_sse_operand(dst, src); |
| 3129 } | 3129 } |
| 3130 | 3130 |
| 3131 | 3131 |
| 3132 void Assembler::cvtqsi2sd(XMMRegister dst, const Operand& src) { | 3132 void Assembler::cvtqsi2sd(XMMRegister dst, const Operand& src) { |
| 3133 DCHECK(!IsEnabled(AVX)); |
| 3133 EnsureSpace ensure_space(this); | 3134 EnsureSpace ensure_space(this); |
| 3134 emit(0xF2); | 3135 emit(0xF2); |
| 3135 emit_rex_64(dst, src); | 3136 emit_rex_64(dst, src); |
| 3136 emit(0x0F); | 3137 emit(0x0F); |
| 3137 emit(0x2A); | 3138 emit(0x2A); |
| 3138 emit_sse_operand(dst, src); | 3139 emit_sse_operand(dst, src); |
| 3139 } | 3140 } |
| 3140 | 3141 |
| 3141 | 3142 |
| 3142 void Assembler::cvtqsi2sd(XMMRegister dst, Register src) { | 3143 void Assembler::cvtqsi2sd(XMMRegister dst, Register src) { |
| 3144 DCHECK(!IsEnabled(AVX)); |
| 3143 EnsureSpace ensure_space(this); | 3145 EnsureSpace ensure_space(this); |
| 3144 emit(0xF2); | 3146 emit(0xF2); |
| 3145 emit_rex_64(dst, src); | 3147 emit_rex_64(dst, src); |
| 3146 emit(0x0F); | 3148 emit(0x0F); |
| 3147 emit(0x2A); | 3149 emit(0x2A); |
| 3148 emit_sse_operand(dst, src); | 3150 emit_sse_operand(dst, src); |
| 3149 } | 3151 } |
| 3150 | 3152 |
| 3151 | 3153 |
| 3152 void Assembler::cvtss2sd(XMMRegister dst, XMMRegister src) { | 3154 void Assembler::cvtss2sd(XMMRegister dst, XMMRegister src) { |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4037 | 4039 |
| 4038 bool RelocInfo::IsInConstantPool() { | 4040 bool RelocInfo::IsInConstantPool() { |
| 4039 return false; | 4041 return false; |
| 4040 } | 4042 } |
| 4041 | 4043 |
| 4042 | 4044 |
| 4043 } // namespace internal | 4045 } // namespace internal |
| 4044 } // namespace v8 | 4046 } // namespace v8 |
| 4045 | 4047 |
| 4046 #endif // V8_TARGET_ARCH_X64 | 4048 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |