| 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 void Cvtsd2ss(XMMRegister dst, XMMRegister src); | 811 void Cvtsd2ss(XMMRegister dst, XMMRegister src); |
| 812 void Cvtsd2ss(XMMRegister dst, const Operand& src); | 812 void Cvtsd2ss(XMMRegister dst, const Operand& src); |
| 813 | 813 |
| 814 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 814 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
| 815 // hinders register renaming and makes dependence chains longer. So we use | 815 // hinders register renaming and makes dependence chains longer. So we use |
| 816 // xorpd to clear the dst register before cvtsi2sd to solve this issue. | 816 // xorpd to clear the dst register before cvtsi2sd to solve this issue. |
| 817 void Cvtlsi2sd(XMMRegister dst, Register src); | 817 void Cvtlsi2sd(XMMRegister dst, Register src); |
| 818 void Cvtlsi2sd(XMMRegister dst, const Operand& src); | 818 void Cvtlsi2sd(XMMRegister dst, const Operand& src); |
| 819 void Cvtqsi2sd(XMMRegister dst, Register src); | 819 void Cvtqsi2sd(XMMRegister dst, Register src); |
| 820 | 820 |
| 821 void Cvtsd2si(Register dst, XMMRegister src); |
| 822 |
| 821 void Cvttsd2si(Register dst, XMMRegister src); | 823 void Cvttsd2si(Register dst, XMMRegister src); |
| 822 void Cvttsd2si(Register dst, const Operand& src); | 824 void Cvttsd2si(Register dst, const Operand& src); |
| 823 void Cvttsd2siq(Register dst, XMMRegister src); | 825 void Cvttsd2siq(Register dst, XMMRegister src); |
| 824 void Cvttsd2siq(Register dst, const Operand& src); | 826 void Cvttsd2siq(Register dst, const Operand& src); |
| 825 | 827 |
| 826 // Move if the registers are not identical. | 828 // Move if the registers are not identical. |
| 827 void Move(Register target, Register source); | 829 void Move(Register target, Register source); |
| 828 | 830 |
| 829 // TestBit and Load SharedFunctionInfo special field. | 831 // TestBit and Load SharedFunctionInfo special field. |
| 830 void TestBitSharedFunctionInfoSpecialField(Register base, | 832 void TestBitSharedFunctionInfoSpecialField(Register base, |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1713 } \ | 1715 } \ |
| 1714 masm-> | 1716 masm-> |
| 1715 #else | 1717 #else |
| 1716 #define ACCESS_MASM(masm) masm-> | 1718 #define ACCESS_MASM(masm) masm-> |
| 1717 #endif | 1719 #endif |
| 1718 | 1720 |
| 1719 } // namespace internal | 1721 } // namespace internal |
| 1720 } // namespace v8 | 1722 } // namespace v8 |
| 1721 | 1723 |
| 1722 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1724 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |