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 | 811 |
812 // --------------------------------------------------------------------------- | 812 // --------------------------------------------------------------------------- |
813 // Macro instructions. | 813 // Macro instructions. |
814 | 814 |
815 // Load/store with specific representation. | 815 // Load/store with specific representation. |
816 void Load(Register dst, const Operand& src, Representation r); | 816 void Load(Register dst, const Operand& src, Representation r); |
817 void Store(const Operand& dst, Register src, Representation r); | 817 void Store(const Operand& dst, Register src, Representation r); |
818 | 818 |
819 // Load a register with a long value as efficiently as possible. | 819 // Load a register with a long value as efficiently as possible. |
820 void Set(Register dst, int64_t x); | 820 void Set(Register dst, int64_t x); |
| 821 void Set(Register dst, int64_t x, RelocInfo::Mode rmode); |
821 void Set(const Operand& dst, intptr_t x); | 822 void Set(const Operand& dst, intptr_t x); |
822 | 823 |
823 void Cvtss2sd(XMMRegister dst, XMMRegister src); | 824 void Cvtss2sd(XMMRegister dst, XMMRegister src); |
824 void Cvtss2sd(XMMRegister dst, const Operand& src); | 825 void Cvtss2sd(XMMRegister dst, const Operand& src); |
825 void Cvtsd2ss(XMMRegister dst, XMMRegister src); | 826 void Cvtsd2ss(XMMRegister dst, XMMRegister src); |
826 void Cvtsd2ss(XMMRegister dst, const Operand& src); | 827 void Cvtsd2ss(XMMRegister dst, const Operand& src); |
827 | 828 |
828 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 829 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
829 // hinders register renaming and makes dependence chains longer. So we use | 830 // hinders register renaming and makes dependence chains longer. So we use |
830 // xorpd to clear the dst register before cvtsi2sd to solve this issue. | 831 // xorpd to clear the dst register before cvtsi2sd to solve this issue. |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 } \ | 1765 } \ |
1765 masm-> | 1766 masm-> |
1766 #else | 1767 #else |
1767 #define ACCESS_MASM(masm) masm-> | 1768 #define ACCESS_MASM(masm) masm-> |
1768 #endif | 1769 #endif |
1769 | 1770 |
1770 } // namespace internal | 1771 } // namespace internal |
1771 } // namespace v8 | 1772 } // namespace v8 |
1772 | 1773 |
1773 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1774 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |