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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks Created 4 years, 6 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/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-assembler.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 } 806 }
807 __ Add(i.OutputRegister(0), base, Operand(offset.offset())); 807 __ Add(i.OutputRegister(0), base, Operand(offset.offset()));
808 break; 808 break;
809 } 809 }
810 case kIeee754Float64Atan: 810 case kIeee754Float64Atan:
811 ASSEMBLE_IEEE754_UNOP(atan); 811 ASSEMBLE_IEEE754_UNOP(atan);
812 break; 812 break;
813 case kIeee754Float64Atan2: 813 case kIeee754Float64Atan2:
814 ASSEMBLE_IEEE754_BINOP(atan2); 814 ASSEMBLE_IEEE754_BINOP(atan2);
815 break; 815 break;
816 case kIeee754Float64Cos:
817 ASSEMBLE_IEEE754_UNOP(cos);
818 break;
819 case kIeee754Float64Cbrt:
820 ASSEMBLE_IEEE754_UNOP(cbrt);
821 break;
816 case kIeee754Float64Exp: 822 case kIeee754Float64Exp:
817 ASSEMBLE_IEEE754_UNOP(exp); 823 ASSEMBLE_IEEE754_UNOP(exp);
818 break; 824 break;
825 case kIeee754Float64Expm1:
826 ASSEMBLE_IEEE754_UNOP(expm1);
827 break;
819 case kIeee754Float64Atanh: 828 case kIeee754Float64Atanh:
820 ASSEMBLE_IEEE754_UNOP(atanh); 829 ASSEMBLE_IEEE754_UNOP(atanh);
821 break; 830 break;
822 case kIeee754Float64Log: 831 case kIeee754Float64Log:
823 ASSEMBLE_IEEE754_UNOP(log); 832 ASSEMBLE_IEEE754_UNOP(log);
824 break; 833 break;
825 case kIeee754Float64Log1p: 834 case kIeee754Float64Log1p:
826 ASSEMBLE_IEEE754_UNOP(log1p); 835 ASSEMBLE_IEEE754_UNOP(log1p);
827 break; 836 break;
828 case kIeee754Float64Log2: 837 case kIeee754Float64Log2:
829 ASSEMBLE_IEEE754_UNOP(log2); 838 ASSEMBLE_IEEE754_UNOP(log2);
830 break; 839 break;
831 case kIeee754Float64Log10: 840 case kIeee754Float64Log10:
832 ASSEMBLE_IEEE754_UNOP(log10); 841 ASSEMBLE_IEEE754_UNOP(log10);
833 break; 842 break;
834 case kIeee754Float64Cbrt: 843 case kIeee754Float64Sin:
835 ASSEMBLE_IEEE754_UNOP(cbrt); 844 ASSEMBLE_IEEE754_UNOP(sin);
836 break;
837 case kIeee754Float64Expm1:
838 ASSEMBLE_IEEE754_UNOP(expm1);
839 break; 845 break;
840 case kArm64Float32RoundDown: 846 case kArm64Float32RoundDown:
841 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); 847 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0));
842 break; 848 break;
843 case kArm64Float64RoundDown: 849 case kArm64Float64RoundDown:
844 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 850 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
845 break; 851 break;
846 case kArm64Float32RoundUp: 852 case kArm64Float32RoundUp:
847 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0)); 853 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0));
848 break; 854 break;
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 padding_size -= kInstructionSize; 1979 padding_size -= kInstructionSize;
1974 } 1980 }
1975 } 1981 }
1976 } 1982 }
1977 1983
1978 #undef __ 1984 #undef __
1979 1985
1980 } // namespace compiler 1986 } // namespace compiler
1981 } // namespace internal 1987 } // namespace internal
1982 } // namespace v8 1988 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698