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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 } | 743 } |
744 case kIeee754Float64Atan: | 744 case kIeee754Float64Atan: |
745 ASSEMBLE_IEEE754_UNOP(atan); | 745 ASSEMBLE_IEEE754_UNOP(atan); |
746 break; | 746 break; |
747 case kIeee754Float64Atan2: | 747 case kIeee754Float64Atan2: |
748 ASSEMBLE_IEEE754_BINOP(atan2); | 748 ASSEMBLE_IEEE754_BINOP(atan2); |
749 break; | 749 break; |
750 case kIeee754Float64Cos: | 750 case kIeee754Float64Cos: |
751 ASSEMBLE_IEEE754_UNOP(cos); | 751 ASSEMBLE_IEEE754_UNOP(cos); |
752 break; | 752 break; |
| 753 case kIeee754Float64Cosh: |
| 754 ASSEMBLE_IEEE754_UNOP(cosh); |
| 755 break; |
753 case kIeee754Float64Cbrt: | 756 case kIeee754Float64Cbrt: |
754 ASSEMBLE_IEEE754_UNOP(cbrt); | 757 ASSEMBLE_IEEE754_UNOP(cbrt); |
755 break; | 758 break; |
756 case kIeee754Float64Exp: | 759 case kIeee754Float64Exp: |
757 ASSEMBLE_IEEE754_UNOP(exp); | 760 ASSEMBLE_IEEE754_UNOP(exp); |
758 break; | 761 break; |
759 case kIeee754Float64Expm1: | 762 case kIeee754Float64Expm1: |
760 ASSEMBLE_IEEE754_UNOP(expm1); | 763 ASSEMBLE_IEEE754_UNOP(expm1); |
761 break; | 764 break; |
762 case kIeee754Float64Atanh: | 765 case kIeee754Float64Atanh: |
(...skipping 12 matching lines...) Expand all Loading... |
775 ASSEMBLE_IEEE754_UNOP(log2); | 778 ASSEMBLE_IEEE754_UNOP(log2); |
776 break; | 779 break; |
777 case kIeee754Float64Pow: { | 780 case kIeee754Float64Pow: { |
778 MathPowStub stub(isolate(), MathPowStub::DOUBLE); | 781 MathPowStub stub(isolate(), MathPowStub::DOUBLE); |
779 __ CallStub(&stub); | 782 __ CallStub(&stub); |
780 break; | 783 break; |
781 } | 784 } |
782 case kIeee754Float64Sin: | 785 case kIeee754Float64Sin: |
783 ASSEMBLE_IEEE754_UNOP(sin); | 786 ASSEMBLE_IEEE754_UNOP(sin); |
784 break; | 787 break; |
| 788 case kIeee754Float64Sinh: |
| 789 ASSEMBLE_IEEE754_UNOP(sinh); |
| 790 break; |
785 case kIeee754Float64Tan: | 791 case kIeee754Float64Tan: |
786 ASSEMBLE_IEEE754_UNOP(tan); | 792 ASSEMBLE_IEEE754_UNOP(tan); |
787 break; | 793 break; |
| 794 case kIeee754Float64Tanh: |
| 795 ASSEMBLE_IEEE754_UNOP(tanh); |
| 796 break; |
788 case kMipsAdd: | 797 case kMipsAdd: |
789 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 798 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
790 break; | 799 break; |
791 case kMipsAddOvf: | 800 case kMipsAddOvf: |
792 // Pseudo-instruction used for overflow/branch. No opcode emitted here. | 801 // Pseudo-instruction used for overflow/branch. No opcode emitted here. |
793 break; | 802 break; |
794 case kMipsSub: | 803 case kMipsSub: |
795 __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 804 __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
796 break; | 805 break; |
797 case kMipsSubOvf: | 806 case kMipsSubOvf: |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 padding_size -= v8::internal::Assembler::kInstrSize; | 2098 padding_size -= v8::internal::Assembler::kInstrSize; |
2090 } | 2099 } |
2091 } | 2100 } |
2092 } | 2101 } |
2093 | 2102 |
2094 #undef __ | 2103 #undef __ |
2095 | 2104 |
2096 } // namespace compiler | 2105 } // namespace compiler |
2097 } // namespace internal | 2106 } // namespace internal |
2098 } // namespace v8 | 2107 } // namespace v8 |
OLD | NEW |