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

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

Issue 1589363002: [turbofan] Add the RoundInt32ToFloat32 operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/assembler-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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 void Cvtss2sd(XMMRegister dst, const Operand& src); 804 void Cvtss2sd(XMMRegister dst, const Operand& src);
805 void Cvtsd2ss(XMMRegister dst, XMMRegister src); 805 void Cvtsd2ss(XMMRegister dst, XMMRegister src);
806 void Cvtsd2ss(XMMRegister dst, const Operand& src); 806 void Cvtsd2ss(XMMRegister dst, const Operand& src);
807 807
808 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 808 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
809 // hinders register renaming and makes dependence chains longer. So we use 809 // hinders register renaming and makes dependence chains longer. So we use
810 // xorpd to clear the dst register before cvtsi2sd to solve this issue. 810 // xorpd to clear the dst register before cvtsi2sd to solve this issue.
811 void Cvtlsi2sd(XMMRegister dst, Register src); 811 void Cvtlsi2sd(XMMRegister dst, Register src);
812 void Cvtlsi2sd(XMMRegister dst, const Operand& src); 812 void Cvtlsi2sd(XMMRegister dst, const Operand& src);
813 813
814 void Cvtlsi2ss(XMMRegister dst, Register src);
815 void Cvtlsi2ss(XMMRegister dst, const Operand& src);
814 void Cvtqsi2ss(XMMRegister dst, Register src); 816 void Cvtqsi2ss(XMMRegister dst, Register src);
815 void Cvtqsi2ss(XMMRegister dst, const Operand& src); 817 void Cvtqsi2ss(XMMRegister dst, const Operand& src);
816 818
817 void Cvtqsi2sd(XMMRegister dst, Register src); 819 void Cvtqsi2sd(XMMRegister dst, Register src);
818 void Cvtqsi2sd(XMMRegister dst, const Operand& src); 820 void Cvtqsi2sd(XMMRegister dst, const Operand& src);
819 821
820 void Cvtqui2ss(XMMRegister dst, Register src, Register tmp); 822 void Cvtqui2ss(XMMRegister dst, Register src, Register tmp);
821 void Cvtqui2sd(XMMRegister dst, Register src, Register tmp); 823 void Cvtqui2sd(XMMRegister dst, Register src, Register tmp);
822 824
823 void Cvtsd2si(Register dst, XMMRegister src); 825 void Cvtsd2si(Register dst, XMMRegister src);
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 } \ 1741 } \
1740 masm-> 1742 masm->
1741 #else 1743 #else
1742 #define ACCESS_MASM(masm) masm-> 1744 #define ACCESS_MASM(masm) masm->
1743 #endif 1745 #endif
1744 1746
1745 } // namespace internal 1747 } // namespace internal
1746 } // namespace v8 1748 } // namespace v8
1747 1749
1748 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1750 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698