OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/representation-change.h" | 5 #include "src/compiler/representation-change.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 case IrOpcode::kNumberAbs: | 690 case IrOpcode::kNumberAbs: |
691 return machine()->Float64Abs(); | 691 return machine()->Float64Abs(); |
692 case IrOpcode::kNumberAtan: | 692 case IrOpcode::kNumberAtan: |
693 return machine()->Float64Atan(); | 693 return machine()->Float64Atan(); |
694 case IrOpcode::kNumberAtan2: | 694 case IrOpcode::kNumberAtan2: |
695 return machine()->Float64Atan2(); | 695 return machine()->Float64Atan2(); |
696 case IrOpcode::kNumberCbrt: | 696 case IrOpcode::kNumberCbrt: |
697 return machine()->Float64Cbrt(); | 697 return machine()->Float64Cbrt(); |
698 case IrOpcode::kNumberCos: | 698 case IrOpcode::kNumberCos: |
699 return machine()->Float64Cos(); | 699 return machine()->Float64Cos(); |
| 700 case IrOpcode::kNumberCosh: |
| 701 return machine()->Float64Cosh(); |
700 case IrOpcode::kNumberExp: | 702 case IrOpcode::kNumberExp: |
701 return machine()->Float64Exp(); | 703 return machine()->Float64Exp(); |
702 case IrOpcode::kNumberExpm1: | 704 case IrOpcode::kNumberExpm1: |
703 return machine()->Float64Expm1(); | 705 return machine()->Float64Expm1(); |
704 case IrOpcode::kNumberFround: | 706 case IrOpcode::kNumberFround: |
705 return machine()->TruncateFloat64ToFloat32(); | 707 return machine()->TruncateFloat64ToFloat32(); |
706 case IrOpcode::kNumberAtanh: | 708 case IrOpcode::kNumberAtanh: |
707 return machine()->Float64Atanh(); | 709 return machine()->Float64Atanh(); |
708 case IrOpcode::kNumberLog: | 710 case IrOpcode::kNumberLog: |
709 return machine()->Float64Log(); | 711 return machine()->Float64Log(); |
710 case IrOpcode::kNumberLog1p: | 712 case IrOpcode::kNumberLog1p: |
711 return machine()->Float64Log1p(); | 713 return machine()->Float64Log1p(); |
712 case IrOpcode::kNumberLog2: | 714 case IrOpcode::kNumberLog2: |
713 return machine()->Float64Log2(); | 715 return machine()->Float64Log2(); |
714 case IrOpcode::kNumberLog10: | 716 case IrOpcode::kNumberLog10: |
715 return machine()->Float64Log10(); | 717 return machine()->Float64Log10(); |
716 case IrOpcode::kNumberPow: | 718 case IrOpcode::kNumberPow: |
717 return machine()->Float64Pow(); | 719 return machine()->Float64Pow(); |
718 case IrOpcode::kNumberSin: | 720 case IrOpcode::kNumberSin: |
719 return machine()->Float64Sin(); | 721 return machine()->Float64Sin(); |
| 722 case IrOpcode::kNumberSinh: |
| 723 return machine()->Float64Sinh(); |
720 case IrOpcode::kNumberSqrt: | 724 case IrOpcode::kNumberSqrt: |
721 return machine()->Float64Sqrt(); | 725 return machine()->Float64Sqrt(); |
722 case IrOpcode::kNumberTan: | 726 case IrOpcode::kNumberTan: |
723 return machine()->Float64Tan(); | 727 return machine()->Float64Tan(); |
| 728 case IrOpcode::kNumberTanh: |
| 729 return machine()->Float64Tanh(); |
724 case IrOpcode::kNumberSilenceNaN: | 730 case IrOpcode::kNumberSilenceNaN: |
725 return machine()->Float64SilenceNaN(); | 731 return machine()->Float64SilenceNaN(); |
726 default: | 732 default: |
727 UNREACHABLE(); | 733 UNREACHABLE(); |
728 return nullptr; | 734 return nullptr; |
729 } | 735 } |
730 } | 736 } |
731 | 737 |
732 | 738 |
733 Node* RepresentationChanger::TypeError(Node* node, | 739 Node* RepresentationChanger::TypeError(Node* node, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 } | 778 } |
773 | 779 |
774 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 780 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
775 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 781 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
776 node); | 782 node); |
777 } | 783 } |
778 | 784 |
779 } // namespace compiler | 785 } // namespace compiler |
780 } // namespace internal | 786 } // namespace internal |
781 } // namespace v8 | 787 } // namespace v8 |
OLD | NEW |