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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 } | 702 } |
703 __ add(i.OutputRegister(0), base, Operand(offset.offset())); | 703 __ add(i.OutputRegister(0), base, Operand(offset.offset())); |
704 break; | 704 break; |
705 } | 705 } |
706 case kIeee754Float64Atan: | 706 case kIeee754Float64Atan: |
707 ASSEMBLE_IEEE754_UNOP(atan); | 707 ASSEMBLE_IEEE754_UNOP(atan); |
708 break; | 708 break; |
709 case kIeee754Float64Atan2: | 709 case kIeee754Float64Atan2: |
710 ASSEMBLE_IEEE754_BINOP(atan2); | 710 ASSEMBLE_IEEE754_BINOP(atan2); |
711 break; | 711 break; |
| 712 case kIeee754Float64Cbrt: |
| 713 ASSEMBLE_IEEE754_UNOP(cbrt); |
| 714 break; |
| 715 case kIeee754Float64Cos: |
| 716 ASSEMBLE_IEEE754_UNOP(cos); |
| 717 break; |
712 case kIeee754Float64Exp: | 718 case kIeee754Float64Exp: |
713 ASSEMBLE_IEEE754_UNOP(exp); | 719 ASSEMBLE_IEEE754_UNOP(exp); |
714 break; | 720 break; |
| 721 case kIeee754Float64Expm1: |
| 722 ASSEMBLE_IEEE754_UNOP(expm1); |
| 723 break; |
715 case kIeee754Float64Atanh: | 724 case kIeee754Float64Atanh: |
716 ASSEMBLE_IEEE754_UNOP(atanh); | 725 ASSEMBLE_IEEE754_UNOP(atanh); |
717 break; | 726 break; |
718 case kIeee754Float64Log: | 727 case kIeee754Float64Log: |
719 ASSEMBLE_IEEE754_UNOP(log); | 728 ASSEMBLE_IEEE754_UNOP(log); |
720 break; | 729 break; |
721 case kIeee754Float64Log1p: | 730 case kIeee754Float64Log1p: |
722 ASSEMBLE_IEEE754_UNOP(log1p); | 731 ASSEMBLE_IEEE754_UNOP(log1p); |
723 break; | 732 break; |
724 case kIeee754Float64Log2: | 733 case kIeee754Float64Log2: |
725 ASSEMBLE_IEEE754_UNOP(log2); | 734 ASSEMBLE_IEEE754_UNOP(log2); |
726 break; | 735 break; |
727 case kIeee754Float64Log10: | 736 case kIeee754Float64Log10: |
728 ASSEMBLE_IEEE754_UNOP(log10); | 737 ASSEMBLE_IEEE754_UNOP(log10); |
729 break; | 738 break; |
730 case kIeee754Float64Cbrt: | 739 case kIeee754Float64Sin: |
731 ASSEMBLE_IEEE754_UNOP(cbrt); | 740 ASSEMBLE_IEEE754_UNOP(sin); |
732 break; | |
733 case kIeee754Float64Expm1: | |
734 ASSEMBLE_IEEE754_UNOP(expm1); | |
735 break; | 741 break; |
736 case kArmAdd: | 742 case kArmAdd: |
737 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 743 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
738 i.OutputSBit()); | 744 i.OutputSBit()); |
739 break; | 745 break; |
740 case kArmAnd: | 746 case kArmAnd: |
741 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 747 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
742 i.OutputSBit()); | 748 i.OutputSBit()); |
743 break; | 749 break; |
744 case kArmBic: | 750 case kArmBic: |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 padding_size -= v8::internal::Assembler::kInstrSize; | 1833 padding_size -= v8::internal::Assembler::kInstrSize; |
1828 } | 1834 } |
1829 } | 1835 } |
1830 } | 1836 } |
1831 | 1837 |
1832 #undef __ | 1838 #undef __ |
1833 | 1839 |
1834 } // namespace compiler | 1840 } // namespace compiler |
1835 } // namespace internal | 1841 } // namespace internal |
1836 } // namespace v8 | 1842 } // namespace v8 |
OLD | NEW |