| 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
| 6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 __ bind(ool->exit()); | 734 __ bind(ool->exit()); |
| 735 break; | 735 break; |
| 736 } | 736 } |
| 737 case kArchStackSlot: { | 737 case kArchStackSlot: { |
| 738 FrameOffset offset = | 738 FrameOffset offset = |
| 739 frame_access_state()->GetFrameOffset(i.InputInt32(0)); | 739 frame_access_state()->GetFrameOffset(i.InputInt32(0)); |
| 740 __ Addu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp, | 740 __ Addu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp, |
| 741 Operand(offset.offset())); | 741 Operand(offset.offset())); |
| 742 break; | 742 break; |
| 743 } | 743 } |
| 744 case kIeee754Float64Acos: |
| 745 ASSEMBLE_IEEE754_UNOP(acos); |
| 746 break; |
| 747 case kIeee754Float64Acosh: |
| 748 ASSEMBLE_IEEE754_UNOP(acosh); |
| 749 break; |
| 750 case kIeee754Float64Asin: |
| 751 ASSEMBLE_IEEE754_UNOP(asin); |
| 752 break; |
| 753 case kIeee754Float64Asinh: |
| 754 ASSEMBLE_IEEE754_UNOP(asinh); |
| 755 break; |
| 744 case kIeee754Float64Atan: | 756 case kIeee754Float64Atan: |
| 745 ASSEMBLE_IEEE754_UNOP(atan); | 757 ASSEMBLE_IEEE754_UNOP(atan); |
| 746 break; | 758 break; |
| 759 case kIeee754Float64Atanh: |
| 760 ASSEMBLE_IEEE754_UNOP(atanh); |
| 761 break; |
| 747 case kIeee754Float64Atan2: | 762 case kIeee754Float64Atan2: |
| 748 ASSEMBLE_IEEE754_BINOP(atan2); | 763 ASSEMBLE_IEEE754_BINOP(atan2); |
| 749 break; | 764 break; |
| 750 case kIeee754Float64Cos: | 765 case kIeee754Float64Cos: |
| 751 ASSEMBLE_IEEE754_UNOP(cos); | 766 ASSEMBLE_IEEE754_UNOP(cos); |
| 752 break; | 767 break; |
| 753 case kIeee754Float64Cosh: | 768 case kIeee754Float64Cosh: |
| 754 ASSEMBLE_IEEE754_UNOP(cosh); | 769 ASSEMBLE_IEEE754_UNOP(cosh); |
| 755 break; | 770 break; |
| 756 case kIeee754Float64Cbrt: | 771 case kIeee754Float64Cbrt: |
| 757 ASSEMBLE_IEEE754_UNOP(cbrt); | 772 ASSEMBLE_IEEE754_UNOP(cbrt); |
| 758 break; | 773 break; |
| 759 case kIeee754Float64Exp: | 774 case kIeee754Float64Exp: |
| 760 ASSEMBLE_IEEE754_UNOP(exp); | 775 ASSEMBLE_IEEE754_UNOP(exp); |
| 761 break; | 776 break; |
| 762 case kIeee754Float64Expm1: | 777 case kIeee754Float64Expm1: |
| 763 ASSEMBLE_IEEE754_UNOP(expm1); | 778 ASSEMBLE_IEEE754_UNOP(expm1); |
| 764 break; | 779 break; |
| 765 case kIeee754Float64Atanh: | |
| 766 ASSEMBLE_IEEE754_UNOP(atanh); | |
| 767 break; | |
| 768 case kIeee754Float64Log: | 780 case kIeee754Float64Log: |
| 769 ASSEMBLE_IEEE754_UNOP(log); | 781 ASSEMBLE_IEEE754_UNOP(log); |
| 770 break; | 782 break; |
| 771 case kIeee754Float64Log1p: | 783 case kIeee754Float64Log1p: |
| 772 ASSEMBLE_IEEE754_UNOP(log1p); | 784 ASSEMBLE_IEEE754_UNOP(log1p); |
| 773 break; | 785 break; |
| 774 case kIeee754Float64Log10: | 786 case kIeee754Float64Log10: |
| 775 ASSEMBLE_IEEE754_UNOP(log10); | 787 ASSEMBLE_IEEE754_UNOP(log10); |
| 776 break; | 788 break; |
| 777 case kIeee754Float64Log2: | 789 case kIeee754Float64Log2: |
| (...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2098 padding_size -= v8::internal::Assembler::kInstrSize; | 2110 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2099 } | 2111 } |
| 2100 } | 2112 } |
| 2101 } | 2113 } |
| 2102 | 2114 |
| 2103 #undef __ | 2115 #undef __ |
| 2104 | 2116 |
| 2105 } // namespace compiler | 2117 } // namespace compiler |
| 2106 } // namespace internal | 2118 } // namespace internal |
| 2107 } // namespace v8 | 2119 } // namespace v8 |
| OLD | NEW |