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/compiler/arm64/code-generator-arm64.cc

Issue 2083573002: [builtins] Unify Cosh, Sinh and Tanh as exports from flibm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and windows fix. Created 4 years, 5 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 } 813 }
814 case kIeee754Float64Atan: 814 case kIeee754Float64Atan:
815 ASSEMBLE_IEEE754_UNOP(atan); 815 ASSEMBLE_IEEE754_UNOP(atan);
816 break; 816 break;
817 case kIeee754Float64Atan2: 817 case kIeee754Float64Atan2:
818 ASSEMBLE_IEEE754_BINOP(atan2); 818 ASSEMBLE_IEEE754_BINOP(atan2);
819 break; 819 break;
820 case kIeee754Float64Cos: 820 case kIeee754Float64Cos:
821 ASSEMBLE_IEEE754_UNOP(cos); 821 ASSEMBLE_IEEE754_UNOP(cos);
822 break; 822 break;
823 case kIeee754Float64Cosh:
824 ASSEMBLE_IEEE754_UNOP(cosh);
825 break;
823 case kIeee754Float64Cbrt: 826 case kIeee754Float64Cbrt:
824 ASSEMBLE_IEEE754_UNOP(cbrt); 827 ASSEMBLE_IEEE754_UNOP(cbrt);
825 break; 828 break;
826 case kIeee754Float64Exp: 829 case kIeee754Float64Exp:
827 ASSEMBLE_IEEE754_UNOP(exp); 830 ASSEMBLE_IEEE754_UNOP(exp);
828 break; 831 break;
829 case kIeee754Float64Expm1: 832 case kIeee754Float64Expm1:
830 ASSEMBLE_IEEE754_UNOP(expm1); 833 ASSEMBLE_IEEE754_UNOP(expm1);
831 break; 834 break;
832 case kIeee754Float64Atanh: 835 case kIeee754Float64Atanh:
(...skipping 12 matching lines...) Expand all
845 ASSEMBLE_IEEE754_UNOP(log10); 848 ASSEMBLE_IEEE754_UNOP(log10);
846 break; 849 break;
847 case kIeee754Float64Pow: { 850 case kIeee754Float64Pow: {
848 MathPowStub stub(isolate(), MathPowStub::DOUBLE); 851 MathPowStub stub(isolate(), MathPowStub::DOUBLE);
849 __ CallStub(&stub); 852 __ CallStub(&stub);
850 break; 853 break;
851 } 854 }
852 case kIeee754Float64Sin: 855 case kIeee754Float64Sin:
853 ASSEMBLE_IEEE754_UNOP(sin); 856 ASSEMBLE_IEEE754_UNOP(sin);
854 break; 857 break;
858 case kIeee754Float64Sinh:
859 ASSEMBLE_IEEE754_UNOP(sinh);
860 break;
855 case kIeee754Float64Tan: 861 case kIeee754Float64Tan:
856 ASSEMBLE_IEEE754_UNOP(tan); 862 ASSEMBLE_IEEE754_UNOP(tan);
857 break; 863 break;
864 case kIeee754Float64Tanh:
865 ASSEMBLE_IEEE754_UNOP(tanh);
866 break;
858 case kArm64Float32RoundDown: 867 case kArm64Float32RoundDown:
859 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); 868 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0));
860 break; 869 break;
861 case kArm64Float64RoundDown: 870 case kArm64Float64RoundDown:
862 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 871 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
863 break; 872 break;
864 case kArm64Float32RoundUp: 873 case kArm64Float32RoundUp:
865 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0)); 874 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0));
866 break; 875 break;
867 case kArm64Float64RoundUp: 876 case kArm64Float64RoundUp:
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 padding_size -= kInstructionSize; 2022 padding_size -= kInstructionSize;
2014 } 2023 }
2015 } 2024 }
2016 } 2025 }
2017 2026
2018 #undef __ 2027 #undef __
2019 2028
2020 } // namespace compiler 2029 } // namespace compiler
2021 } // namespace internal 2030 } // namespace internal
2022 } // namespace v8 2031 } // 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