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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 frame_access_state()->GetFrameOffset(i.InputInt32(0)); | 671 frame_access_state()->GetFrameOffset(i.InputInt32(0)); |
672 Register base; | 672 Register base; |
673 if (offset.from_stack_pointer()) { | 673 if (offset.from_stack_pointer()) { |
674 base = sp; | 674 base = sp; |
675 } else { | 675 } else { |
676 base = fp; | 676 base = fp; |
677 } | 677 } |
678 __ add(i.OutputRegister(0), base, Operand(offset.offset())); | 678 __ add(i.OutputRegister(0), base, Operand(offset.offset())); |
679 break; | 679 break; |
680 } | 680 } |
| 681 case kIeee754Float64Acos: |
| 682 ASSEMBLE_IEEE754_UNOP(acos); |
| 683 break; |
| 684 case kIeee754Float64Acosh: |
| 685 ASSEMBLE_IEEE754_UNOP(acosh); |
| 686 break; |
| 687 case kIeee754Float64Asin: |
| 688 ASSEMBLE_IEEE754_UNOP(asin); |
| 689 break; |
| 690 case kIeee754Float64Asinh: |
| 691 ASSEMBLE_IEEE754_UNOP(asinh); |
| 692 break; |
681 case kIeee754Float64Atan: | 693 case kIeee754Float64Atan: |
682 ASSEMBLE_IEEE754_UNOP(atan); | 694 ASSEMBLE_IEEE754_UNOP(atan); |
683 break; | 695 break; |
| 696 case kIeee754Float64Atanh: |
| 697 ASSEMBLE_IEEE754_UNOP(atanh); |
| 698 break; |
684 case kIeee754Float64Atan2: | 699 case kIeee754Float64Atan2: |
685 ASSEMBLE_IEEE754_BINOP(atan2); | 700 ASSEMBLE_IEEE754_BINOP(atan2); |
686 break; | 701 break; |
687 case kIeee754Float64Cbrt: | 702 case kIeee754Float64Cbrt: |
688 ASSEMBLE_IEEE754_UNOP(cbrt); | 703 ASSEMBLE_IEEE754_UNOP(cbrt); |
689 break; | 704 break; |
690 case kIeee754Float64Cos: | 705 case kIeee754Float64Cos: |
691 ASSEMBLE_IEEE754_UNOP(cos); | 706 ASSEMBLE_IEEE754_UNOP(cos); |
692 break; | 707 break; |
693 case kIeee754Float64Cosh: | 708 case kIeee754Float64Cosh: |
694 ASSEMBLE_IEEE754_UNOP(cosh); | 709 ASSEMBLE_IEEE754_UNOP(cosh); |
695 break; | 710 break; |
696 case kIeee754Float64Exp: | 711 case kIeee754Float64Exp: |
697 ASSEMBLE_IEEE754_UNOP(exp); | 712 ASSEMBLE_IEEE754_UNOP(exp); |
698 break; | 713 break; |
699 case kIeee754Float64Expm1: | 714 case kIeee754Float64Expm1: |
700 ASSEMBLE_IEEE754_UNOP(expm1); | 715 ASSEMBLE_IEEE754_UNOP(expm1); |
701 break; | 716 break; |
702 case kIeee754Float64Atanh: | |
703 ASSEMBLE_IEEE754_UNOP(atanh); | |
704 break; | |
705 case kIeee754Float64Log: | 717 case kIeee754Float64Log: |
706 ASSEMBLE_IEEE754_UNOP(log); | 718 ASSEMBLE_IEEE754_UNOP(log); |
707 break; | 719 break; |
708 case kIeee754Float64Log1p: | 720 case kIeee754Float64Log1p: |
709 ASSEMBLE_IEEE754_UNOP(log1p); | 721 ASSEMBLE_IEEE754_UNOP(log1p); |
710 break; | 722 break; |
711 case kIeee754Float64Log2: | 723 case kIeee754Float64Log2: |
712 ASSEMBLE_IEEE754_UNOP(log2); | 724 ASSEMBLE_IEEE754_UNOP(log2); |
713 break; | 725 break; |
714 case kIeee754Float64Log10: | 726 case kIeee754Float64Log10: |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 padding_size -= v8::internal::Assembler::kInstrSize; | 1845 padding_size -= v8::internal::Assembler::kInstrSize; |
1834 } | 1846 } |
1835 } | 1847 } |
1836 } | 1848 } |
1837 | 1849 |
1838 #undef __ | 1850 #undef __ |
1839 | 1851 |
1840 } // namespace compiler | 1852 } // namespace compiler |
1841 } // namespace internal | 1853 } // namespace internal |
1842 } // namespace v8 | 1854 } // namespace v8 |
OLD | NEW |