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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 void MacroAssembler::Movsd(const Operand& dst, XMMRegister src) { | 2562 void MacroAssembler::Movsd(const Operand& dst, XMMRegister src) { |
2563 if (CpuFeatures::IsSupported(AVX)) { | 2563 if (CpuFeatures::IsSupported(AVX)) { |
2564 CpuFeatureScope scope(this, AVX); | 2564 CpuFeatureScope scope(this, AVX); |
2565 vmovsd(dst, src); | 2565 vmovsd(dst, src); |
2566 } else { | 2566 } else { |
2567 movsd(dst, src); | 2567 movsd(dst, src); |
2568 } | 2568 } |
2569 } | 2569 } |
2570 | 2570 |
2571 | 2571 |
| 2572 void MacroAssembler::Movss(XMMRegister dst, const Operand& src) { |
| 2573 if (CpuFeatures::IsSupported(AVX)) { |
| 2574 CpuFeatureScope scope(this, AVX); |
| 2575 vmovss(dst, src); |
| 2576 } else { |
| 2577 movss(dst, src); |
| 2578 } |
| 2579 } |
| 2580 |
| 2581 |
| 2582 void MacroAssembler::Movss(const Operand& dst, XMMRegister src) { |
| 2583 if (CpuFeatures::IsSupported(AVX)) { |
| 2584 CpuFeatureScope scope(this, AVX); |
| 2585 vmovss(dst, src); |
| 2586 } else { |
| 2587 movss(dst, src); |
| 2588 } |
| 2589 } |
| 2590 |
| 2591 |
2572 void MacroAssembler::Movd(XMMRegister dst, Register src) { | 2592 void MacroAssembler::Movd(XMMRegister dst, Register src) { |
2573 if (CpuFeatures::IsSupported(AVX)) { | 2593 if (CpuFeatures::IsSupported(AVX)) { |
2574 CpuFeatureScope scope(this, AVX); | 2594 CpuFeatureScope scope(this, AVX); |
2575 vmovd(dst, src); | 2595 vmovd(dst, src); |
2576 } else { | 2596 } else { |
2577 movd(dst, src); | 2597 movd(dst, src); |
2578 } | 2598 } |
2579 } | 2599 } |
2580 | 2600 |
2581 | 2601 |
(...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5291 movl(rax, dividend); | 5311 movl(rax, dividend); |
5292 shrl(rax, Immediate(31)); | 5312 shrl(rax, Immediate(31)); |
5293 addl(rdx, rax); | 5313 addl(rdx, rax); |
5294 } | 5314 } |
5295 | 5315 |
5296 | 5316 |
5297 } // namespace internal | 5317 } // namespace internal |
5298 } // namespace v8 | 5318 } // namespace v8 |
5299 | 5319 |
5300 #endif // V8_TARGET_ARCH_X64 | 5320 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |