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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 break; | 755 break; |
756 case kIeee754Float64Atan2: | 756 case kIeee754Float64Atan2: |
757 ASSEMBLE_IEEE754_BINOP(atan2); | 757 ASSEMBLE_IEEE754_BINOP(atan2); |
758 break; | 758 break; |
759 case kIeee754Float64Atanh: | 759 case kIeee754Float64Atanh: |
760 ASSEMBLE_IEEE754_UNOP(atanh); | 760 ASSEMBLE_IEEE754_UNOP(atanh); |
761 break; | 761 break; |
762 case kIeee754Float64Cos: | 762 case kIeee754Float64Cos: |
763 ASSEMBLE_IEEE754_UNOP(cos); | 763 ASSEMBLE_IEEE754_UNOP(cos); |
764 break; | 764 break; |
| 765 case kIeee754Float64Cosh: |
| 766 ASSEMBLE_IEEE754_UNOP(cosh); |
| 767 break; |
765 case kIeee754Float64Cbrt: | 768 case kIeee754Float64Cbrt: |
766 ASSEMBLE_IEEE754_UNOP(cbrt); | 769 ASSEMBLE_IEEE754_UNOP(cbrt); |
767 break; | 770 break; |
768 case kIeee754Float64Exp: | 771 case kIeee754Float64Exp: |
769 ASSEMBLE_IEEE754_UNOP(exp); | 772 ASSEMBLE_IEEE754_UNOP(exp); |
770 break; | 773 break; |
771 case kIeee754Float64Expm1: | 774 case kIeee754Float64Expm1: |
772 ASSEMBLE_IEEE754_UNOP(expm1); | 775 ASSEMBLE_IEEE754_UNOP(expm1); |
773 break; | 776 break; |
774 case kIeee754Float64Log: | 777 case kIeee754Float64Log: |
775 ASSEMBLE_IEEE754_UNOP(log); | 778 ASSEMBLE_IEEE754_UNOP(log); |
776 break; | 779 break; |
777 case kIeee754Float64Log1p: | 780 case kIeee754Float64Log1p: |
778 ASSEMBLE_IEEE754_UNOP(log1p); | 781 ASSEMBLE_IEEE754_UNOP(log1p); |
779 break; | 782 break; |
780 case kIeee754Float64Log2: | 783 case kIeee754Float64Log2: |
781 ASSEMBLE_IEEE754_UNOP(log2); | 784 ASSEMBLE_IEEE754_UNOP(log2); |
782 break; | 785 break; |
783 case kIeee754Float64Log10: | 786 case kIeee754Float64Log10: |
784 ASSEMBLE_IEEE754_UNOP(log10); | 787 ASSEMBLE_IEEE754_UNOP(log10); |
785 break; | 788 break; |
786 case kIeee754Float64Pow: { | 789 case kIeee754Float64Pow: { |
787 MathPowStub stub(isolate(), MathPowStub::DOUBLE); | 790 MathPowStub stub(isolate(), MathPowStub::DOUBLE); |
788 __ CallStub(&stub); | 791 __ CallStub(&stub); |
789 break; | 792 break; |
790 } | 793 } |
791 case kIeee754Float64Sin: | 794 case kIeee754Float64Sin: |
792 ASSEMBLE_IEEE754_UNOP(sin); | 795 ASSEMBLE_IEEE754_UNOP(sin); |
793 break; | 796 break; |
| 797 case kIeee754Float64Sinh: |
| 798 ASSEMBLE_IEEE754_UNOP(sinh); |
| 799 break; |
794 case kIeee754Float64Tan: | 800 case kIeee754Float64Tan: |
795 ASSEMBLE_IEEE754_UNOP(tan); | 801 ASSEMBLE_IEEE754_UNOP(tan); |
796 break; | 802 break; |
| 803 case kIeee754Float64Tanh: |
| 804 ASSEMBLE_IEEE754_UNOP(tanh); |
| 805 break; |
797 case kMips64Add: | 806 case kMips64Add: |
798 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 807 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
799 break; | 808 break; |
800 case kMips64Dadd: | 809 case kMips64Dadd: |
801 __ Daddu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 810 __ Daddu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
802 break; | 811 break; |
803 case kMips64DaddOvf: | 812 case kMips64DaddOvf: |
804 // Pseudo-instruction used for overflow/branch. No opcode emitted here. | 813 // Pseudo-instruction used for overflow/branch. No opcode emitted here. |
805 break; | 814 break; |
806 case kMips64Sub: | 815 case kMips64Sub: |
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2336 padding_size -= v8::internal::Assembler::kInstrSize; | 2345 padding_size -= v8::internal::Assembler::kInstrSize; |
2337 } | 2346 } |
2338 } | 2347 } |
2339 } | 2348 } |
2340 | 2349 |
2341 #undef __ | 2350 #undef __ |
2342 | 2351 |
2343 } // namespace compiler | 2352 } // namespace compiler |
2344 } // namespace internal | 2353 } // namespace internal |
2345 } // namespace v8 | 2354 } // namespace v8 |
OLD | NEW |