| 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 3178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3189 EnsureSpace ensure_space(this); | 3189 EnsureSpace ensure_space(this); |
| 3190 emit(0xF2); | 3190 emit(0xF2); |
| 3191 emit_optional_rex_32(dst, src); | 3191 emit_optional_rex_32(dst, src); |
| 3192 emit(0x0F); | 3192 emit(0x0F); |
| 3193 emit(0x5A); | 3193 emit(0x5A); |
| 3194 emit_sse_operand(dst, src); | 3194 emit_sse_operand(dst, src); |
| 3195 } | 3195 } |
| 3196 | 3196 |
| 3197 | 3197 |
| 3198 void Assembler::cvtsd2si(Register dst, XMMRegister src) { | 3198 void Assembler::cvtsd2si(Register dst, XMMRegister src) { |
| 3199 DCHECK(!IsEnabled(AVX)); |
| 3199 EnsureSpace ensure_space(this); | 3200 EnsureSpace ensure_space(this); |
| 3200 emit(0xF2); | 3201 emit(0xF2); |
| 3201 emit_optional_rex_32(dst, src); | 3202 emit_optional_rex_32(dst, src); |
| 3202 emit(0x0F); | 3203 emit(0x0F); |
| 3203 emit(0x2D); | 3204 emit(0x2D); |
| 3204 emit_sse_operand(dst, src); | 3205 emit_sse_operand(dst, src); |
| 3205 } | 3206 } |
| 3206 | 3207 |
| 3207 | 3208 |
| 3208 void Assembler::cvtsd2siq(Register dst, XMMRegister src) { | 3209 void Assembler::cvtsd2siq(Register dst, XMMRegister src) { |
| 3210 DCHECK(!IsEnabled(AVX)); |
| 3209 EnsureSpace ensure_space(this); | 3211 EnsureSpace ensure_space(this); |
| 3210 emit(0xF2); | 3212 emit(0xF2); |
| 3211 emit_rex_64(dst, src); | 3213 emit_rex_64(dst, src); |
| 3212 emit(0x0F); | 3214 emit(0x0F); |
| 3213 emit(0x2D); | 3215 emit(0x2D); |
| 3214 emit_sse_operand(dst, src); | 3216 emit_sse_operand(dst, src); |
| 3215 } | 3217 } |
| 3216 | 3218 |
| 3217 | 3219 |
| 3218 void Assembler::addsd(XMMRegister dst, XMMRegister src) { | 3220 void Assembler::addsd(XMMRegister dst, XMMRegister src) { |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4039 | 4041 |
| 4040 bool RelocInfo::IsInConstantPool() { | 4042 bool RelocInfo::IsInConstantPool() { |
| 4041 return false; | 4043 return false; |
| 4042 } | 4044 } |
| 4043 | 4045 |
| 4044 | 4046 |
| 4045 } // namespace internal | 4047 } // namespace internal |
| 4046 } // namespace v8 | 4048 } // namespace v8 |
| 4047 | 4049 |
| 4048 #endif // V8_TARGET_ARCH_X64 | 4050 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |