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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 frame_access_state()->GetFrameOffset(i.InputInt32(0)); | 804 frame_access_state()->GetFrameOffset(i.InputInt32(0)); |
805 Register base; | 805 Register base; |
806 if (offset.from_stack_pointer()) { | 806 if (offset.from_stack_pointer()) { |
807 base = __ StackPointer(); | 807 base = __ StackPointer(); |
808 } else { | 808 } else { |
809 base = fp; | 809 base = fp; |
810 } | 810 } |
811 __ Add(i.OutputRegister(0), base, Operand(offset.offset())); | 811 __ Add(i.OutputRegister(0), base, Operand(offset.offset())); |
812 break; | 812 break; |
813 } | 813 } |
| 814 case kIeee754Float64Acos: |
| 815 ASSEMBLE_IEEE754_UNOP(acos); |
| 816 break; |
| 817 case kIeee754Float64Acosh: |
| 818 ASSEMBLE_IEEE754_UNOP(acosh); |
| 819 break; |
| 820 case kIeee754Float64Asin: |
| 821 ASSEMBLE_IEEE754_UNOP(asin); |
| 822 break; |
| 823 case kIeee754Float64Asinh: |
| 824 ASSEMBLE_IEEE754_UNOP(asinh); |
| 825 break; |
814 case kIeee754Float64Atan: | 826 case kIeee754Float64Atan: |
815 ASSEMBLE_IEEE754_UNOP(atan); | 827 ASSEMBLE_IEEE754_UNOP(atan); |
816 break; | 828 break; |
| 829 case kIeee754Float64Atanh: |
| 830 ASSEMBLE_IEEE754_UNOP(atanh); |
| 831 break; |
817 case kIeee754Float64Atan2: | 832 case kIeee754Float64Atan2: |
818 ASSEMBLE_IEEE754_BINOP(atan2); | 833 ASSEMBLE_IEEE754_BINOP(atan2); |
819 break; | 834 break; |
820 case kIeee754Float64Cos: | 835 case kIeee754Float64Cos: |
821 ASSEMBLE_IEEE754_UNOP(cos); | 836 ASSEMBLE_IEEE754_UNOP(cos); |
822 break; | 837 break; |
823 case kIeee754Float64Cosh: | 838 case kIeee754Float64Cosh: |
824 ASSEMBLE_IEEE754_UNOP(cosh); | 839 ASSEMBLE_IEEE754_UNOP(cosh); |
825 break; | 840 break; |
826 case kIeee754Float64Cbrt: | 841 case kIeee754Float64Cbrt: |
827 ASSEMBLE_IEEE754_UNOP(cbrt); | 842 ASSEMBLE_IEEE754_UNOP(cbrt); |
828 break; | 843 break; |
829 case kIeee754Float64Exp: | 844 case kIeee754Float64Exp: |
830 ASSEMBLE_IEEE754_UNOP(exp); | 845 ASSEMBLE_IEEE754_UNOP(exp); |
831 break; | 846 break; |
832 case kIeee754Float64Expm1: | 847 case kIeee754Float64Expm1: |
833 ASSEMBLE_IEEE754_UNOP(expm1); | 848 ASSEMBLE_IEEE754_UNOP(expm1); |
834 break; | 849 break; |
835 case kIeee754Float64Atanh: | |
836 ASSEMBLE_IEEE754_UNOP(atanh); | |
837 break; | |
838 case kIeee754Float64Log: | 850 case kIeee754Float64Log: |
839 ASSEMBLE_IEEE754_UNOP(log); | 851 ASSEMBLE_IEEE754_UNOP(log); |
840 break; | 852 break; |
841 case kIeee754Float64Log1p: | 853 case kIeee754Float64Log1p: |
842 ASSEMBLE_IEEE754_UNOP(log1p); | 854 ASSEMBLE_IEEE754_UNOP(log1p); |
843 break; | 855 break; |
844 case kIeee754Float64Log2: | 856 case kIeee754Float64Log2: |
845 ASSEMBLE_IEEE754_UNOP(log2); | 857 ASSEMBLE_IEEE754_UNOP(log2); |
846 break; | 858 break; |
847 case kIeee754Float64Log10: | 859 case kIeee754Float64Log10: |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2031 padding_size -= kInstructionSize; | 2043 padding_size -= kInstructionSize; |
2032 } | 2044 } |
2033 } | 2045 } |
2034 } | 2046 } |
2035 | 2047 |
2036 #undef __ | 2048 #undef __ |
2037 | 2049 |
2038 } // namespace compiler | 2050 } // namespace compiler |
2039 } // namespace internal | 2051 } // namespace internal |
2040 } // namespace v8 | 2052 } // namespace v8 |
OLD | NEW |