OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |