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); | |
822 void Set(const Operand& dst, intptr_t x); | 821 void Set(const Operand& dst, intptr_t x); |
823 | 822 |
824 void Cvtss2sd(XMMRegister dst, XMMRegister src); | 823 void Cvtss2sd(XMMRegister dst, XMMRegister src); |
825 void Cvtss2sd(XMMRegister dst, const Operand& src); | 824 void Cvtss2sd(XMMRegister dst, const Operand& src); |
826 void Cvtsd2ss(XMMRegister dst, XMMRegister src); | 825 void Cvtsd2ss(XMMRegister dst, XMMRegister src); |
827 void Cvtsd2ss(XMMRegister dst, const Operand& src); | 826 void Cvtsd2ss(XMMRegister dst, const Operand& src); |
828 | 827 |
829 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 828 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
830 // hinders register renaming and makes dependence chains longer. So we use | 829 // hinders register renaming and makes dependence chains longer. So we use |
831 // xorpd to clear the dst register before cvtsi2sd to solve this issue. | 830 // xorpd to clear the dst register before cvtsi2sd to solve this issue. |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 } \ | 1759 } \ |
1761 masm-> | 1760 masm-> |
1762 #else | 1761 #else |
1763 #define ACCESS_MASM(masm) masm-> | 1762 #define ACCESS_MASM(masm) masm-> |
1764 #endif | 1763 #endif |
1765 | 1764 |
1766 } // namespace internal | 1765 } // namespace internal |
1767 } // namespace v8 | 1766 } // namespace v8 |
1768 | 1767 |
1769 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1768 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |