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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 // Load a register with a long value as efficiently as possible. | 805 // Load a register with a long value as efficiently as possible. |
806 void Set(Register dst, int64_t x); | 806 void Set(Register dst, int64_t x); |
807 void Set(const Operand& dst, intptr_t x); | 807 void Set(const Operand& dst, intptr_t x); |
808 | 808 |
809 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 809 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
810 // hinders register renaming and makes dependence chains longer. So we use | 810 // hinders register renaming and makes dependence chains longer. So we use |
811 // xorpd to clear the dst register before cvtsi2sd to solve this issue. | 811 // xorpd to clear the dst register before cvtsi2sd to solve this issue. |
812 void Cvtlsi2sd(XMMRegister dst, Register src); | 812 void Cvtlsi2sd(XMMRegister dst, Register src); |
813 void Cvtlsi2sd(XMMRegister dst, const Operand& src); | 813 void Cvtlsi2sd(XMMRegister dst, const Operand& src); |
814 | 814 |
| 815 void Cvttsd2si(Register dst, XMMRegister src); |
| 816 void Cvttsd2si(Register dst, const Operand& src); |
| 817 void Cvttsd2siq(Register dst, XMMRegister src); |
| 818 void Cvttsd2siq(Register dst, const Operand& src); |
| 819 |
815 // Move if the registers are not identical. | 820 // Move if the registers are not identical. |
816 void Move(Register target, Register source); | 821 void Move(Register target, Register source); |
817 | 822 |
818 // TestBit and Load SharedFunctionInfo special field. | 823 // TestBit and Load SharedFunctionInfo special field. |
819 void TestBitSharedFunctionInfoSpecialField(Register base, | 824 void TestBitSharedFunctionInfoSpecialField(Register base, |
820 int offset, | 825 int offset, |
821 int bit_index); | 826 int bit_index); |
822 void LoadSharedFunctionInfoSpecialField(Register dst, | 827 void LoadSharedFunctionInfoSpecialField(Register dst, |
823 Register base, | 828 Register base, |
824 int offset); | 829 int offset); |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 } \ | 1661 } \ |
1657 masm-> | 1662 masm-> |
1658 #else | 1663 #else |
1659 #define ACCESS_MASM(masm) masm-> | 1664 #define ACCESS_MASM(masm) masm-> |
1660 #endif | 1665 #endif |
1661 | 1666 |
1662 } // namespace internal | 1667 } // namespace internal |
1663 } // namespace v8 | 1668 } // namespace v8 |
1664 | 1669 |
1665 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1670 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |