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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 8749002: Implement Math.pow using FPU instructions and inline it in crankshaft (ia32). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also do NaN/infinity check on base for TAGGED case. Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 // The fisttp instructions require SSE3. 919 // The fisttp instructions require SSE3.
920 void fisttp_s(const Operand& adr); 920 void fisttp_s(const Operand& adr);
921 void fisttp_d(const Operand& adr); 921 void fisttp_d(const Operand& adr);
922 922
923 void fabs(); 923 void fabs();
924 void fchs(); 924 void fchs();
925 void fcos(); 925 void fcos();
926 void fsin(); 926 void fsin();
927 void fptan(); 927 void fptan();
928 void fyl2x(); 928 void fyl2x();
929 void f2xm1();
930 void fscale();
931 void fninit();
929 932
930 void fadd(int i); 933 void fadd(int i);
931 void fsub(int i); 934 void fsub(int i);
932 void fmul(int i); 935 void fmul(int i);
933 void fdiv(int i); 936 void fdiv(int i);
934 937
935 void fisub_s(const Operand& adr); 938 void fisub_s(const Operand& adr);
936 939
937 void faddp(int i = 1); 940 void faddp(int i = 1);
938 void fsubp(int i = 1); 941 void fsubp(int i = 1);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1013
1011 void movd(XMMRegister dst, Register src) { movd(dst, Operand(src)); } 1014 void movd(XMMRegister dst, Register src) { movd(dst, Operand(src)); }
1012 void movd(XMMRegister dst, const Operand& src); 1015 void movd(XMMRegister dst, const Operand& src);
1013 void movd(Register dst, XMMRegister src) { movd(Operand(dst), src); } 1016 void movd(Register dst, XMMRegister src) { movd(Operand(dst), src); }
1014 void movd(const Operand& dst, XMMRegister src); 1017 void movd(const Operand& dst, XMMRegister src);
1015 void movsd(XMMRegister dst, XMMRegister src); 1018 void movsd(XMMRegister dst, XMMRegister src);
1016 1019
1017 void movss(XMMRegister dst, const Operand& src); 1020 void movss(XMMRegister dst, const Operand& src);
1018 void movss(const Operand& dst, XMMRegister src); 1021 void movss(const Operand& dst, XMMRegister src);
1019 void movss(XMMRegister dst, XMMRegister src); 1022 void movss(XMMRegister dst, XMMRegister src);
1023 void extractps(Register dst, XMMRegister src, byte imm8);
1020 1024
1021 void pand(XMMRegister dst, XMMRegister src); 1025 void pand(XMMRegister dst, XMMRegister src);
1022 void pxor(XMMRegister dst, XMMRegister src); 1026 void pxor(XMMRegister dst, XMMRegister src);
1023 void por(XMMRegister dst, XMMRegister src); 1027 void por(XMMRegister dst, XMMRegister src);
1024 void ptest(XMMRegister dst, XMMRegister src); 1028 void ptest(XMMRegister dst, XMMRegister src);
1025 1029
1026 void psllq(XMMRegister reg, int8_t shift); 1030 void psllq(XMMRegister reg, int8_t shift);
1027 void psllq(XMMRegister dst, XMMRegister src); 1031 void psllq(XMMRegister dst, XMMRegister src);
1028 void psrlq(XMMRegister reg, int8_t shift); 1032 void psrlq(XMMRegister reg, int8_t shift);
1029 void psrlq(XMMRegister dst, XMMRegister src); 1033 void psrlq(XMMRegister dst, XMMRegister src);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 private: 1204 private:
1201 Assembler* assembler_; 1205 Assembler* assembler_;
1202 #ifdef DEBUG 1206 #ifdef DEBUG
1203 int space_before_; 1207 int space_before_;
1204 #endif 1208 #endif
1205 }; 1209 };
1206 1210
1207 } } // namespace v8::internal 1211 } } // namespace v8::internal
1208 1212
1209 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1213 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/assembler-ia32.cc » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698