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 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 void Cvtss2sd(XMMRegister dst, XMMRegister src); | 810 void Cvtss2sd(XMMRegister dst, XMMRegister src); |
811 void Cvtss2sd(XMMRegister dst, const Operand& src); | 811 void Cvtss2sd(XMMRegister dst, const Operand& src); |
812 void Cvtsd2ss(XMMRegister dst, XMMRegister src); | 812 void Cvtsd2ss(XMMRegister dst, XMMRegister src); |
813 void Cvtsd2ss(XMMRegister dst, const Operand& src); | 813 void Cvtsd2ss(XMMRegister dst, const Operand& src); |
814 | 814 |
815 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 815 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
816 // hinders register renaming and makes dependence chains longer. So we use | 816 // hinders register renaming and makes dependence chains longer. So we use |
817 // xorpd to clear the dst register before cvtsi2sd to solve this issue. | 817 // xorpd to clear the dst register before cvtsi2sd to solve this issue. |
818 void Cvtlsi2sd(XMMRegister dst, Register src); | 818 void Cvtlsi2sd(XMMRegister dst, Register src); |
819 void Cvtlsi2sd(XMMRegister dst, const Operand& src); | 819 void Cvtlsi2sd(XMMRegister dst, const Operand& src); |
| 820 |
| 821 void Cvtqsi2ss(XMMRegister dst, Register src); |
| 822 void Cvtqsi2ss(XMMRegister dst, const Operand& src); |
| 823 |
820 void Cvtqsi2sd(XMMRegister dst, Register src); | 824 void Cvtqsi2sd(XMMRegister dst, Register src); |
821 void Cvtqsi2sd(XMMRegister dst, const Operand& src); | 825 void Cvtqsi2sd(XMMRegister dst, const Operand& src); |
822 | 826 |
823 void Cvtsd2si(Register dst, XMMRegister src); | 827 void Cvtsd2si(Register dst, XMMRegister src); |
824 | 828 |
825 void Cvttsd2si(Register dst, XMMRegister src); | 829 void Cvttsd2si(Register dst, XMMRegister src); |
826 void Cvttsd2si(Register dst, const Operand& src); | 830 void Cvttsd2si(Register dst, const Operand& src); |
827 void Cvttsd2siq(Register dst, XMMRegister src); | 831 void Cvttsd2siq(Register dst, XMMRegister src); |
828 void Cvttsd2siq(Register dst, const Operand& src); | 832 void Cvttsd2siq(Register dst, const Operand& src); |
829 | 833 |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 } \ | 1727 } \ |
1724 masm-> | 1728 masm-> |
1725 #else | 1729 #else |
1726 #define ACCESS_MASM(masm) masm-> | 1730 #define ACCESS_MASM(masm) masm-> |
1727 #endif | 1731 #endif |
1728 | 1732 |
1729 } // namespace internal | 1733 } // namespace internal |
1730 } // namespace v8 | 1734 } // namespace v8 |
1731 | 1735 |
1732 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1736 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |