Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 1408983002: [x64] Make use of vxorpd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/lithium-gap-resolver-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 // Load/store with specific representation. 801 // Load/store with specific representation.
802 void Load(Register dst, const Operand& src, Representation r); 802 void Load(Register dst, const Operand& src, Representation r);
803 void Store(const Operand& dst, Register src, Representation r); 803 void Store(const Operand& dst, Register src, Representation r);
804 804
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 // xorps 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 // Move if the registers are not identical. 815 // Move if the registers are not identical.
816 void Move(Register target, Register source); 816 void Move(Register target, Register source);
817 817
818 // TestBit and Load SharedFunctionInfo special field. 818 // TestBit and Load SharedFunctionInfo special field.
819 void TestBitSharedFunctionInfoSpecialField(Register base, 819 void TestBitSharedFunctionInfoSpecialField(Register base,
820 int offset, 820 int offset,
821 int bit_index); 821 int bit_index);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 void Movsd(XMMRegister dst, XMMRegister src); 898 void Movsd(XMMRegister dst, XMMRegister src);
899 void Movsd(XMMRegister dst, const Operand& src); 899 void Movsd(XMMRegister dst, const Operand& src);
900 void Movsd(const Operand& dst, XMMRegister src); 900 void Movsd(const Operand& dst, XMMRegister src);
901 901
902 void Movd(XMMRegister dst, Register src); 902 void Movd(XMMRegister dst, Register src);
903 void Movd(XMMRegister dst, const Operand& src); 903 void Movd(XMMRegister dst, const Operand& src);
904 void Movd(Register dst, XMMRegister src); 904 void Movd(Register dst, XMMRegister src);
905 void Movq(XMMRegister dst, Register src); 905 void Movq(XMMRegister dst, Register src);
906 void Movq(Register dst, XMMRegister src); 906 void Movq(Register dst, XMMRegister src);
907 907
908 void Xorpd(XMMRegister dst, XMMRegister src);
909
908 // Control Flow 910 // Control Flow
909 void Jump(Address destination, RelocInfo::Mode rmode); 911 void Jump(Address destination, RelocInfo::Mode rmode);
910 void Jump(ExternalReference ext); 912 void Jump(ExternalReference ext);
911 void Jump(const Operand& op); 913 void Jump(const Operand& op);
912 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 914 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
913 915
914 void Call(Address destination, RelocInfo::Mode rmode); 916 void Call(Address destination, RelocInfo::Mode rmode);
915 void Call(ExternalReference ext); 917 void Call(ExternalReference ext);
916 void Call(const Operand& op); 918 void Call(const Operand& op);
917 void Call(Handle<Code> code_object, 919 void Call(Handle<Code> code_object,
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 } \ 1653 } \
1652 masm-> 1654 masm->
1653 #else 1655 #else
1654 #define ACCESS_MASM(masm) masm-> 1656 #define ACCESS_MASM(masm) masm->
1655 #endif 1657 #endif
1656 1658
1657 } // namespace internal 1659 } // namespace internal
1658 } // namespace v8 1660 } // namespace v8
1659 1661
1660 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1662 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-gap-resolver-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698