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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 case IrOpcode::kSpeculativeNumberLessThanOrEqual: | 668 case IrOpcode::kSpeculativeNumberLessThanOrEqual: |
669 return machine()->Float64LessThanOrEqual(); | 669 return machine()->Float64LessThanOrEqual(); |
670 case IrOpcode::kNumberAtan: | 670 case IrOpcode::kNumberAtan: |
671 return machine()->Float64Atan(); | 671 return machine()->Float64Atan(); |
672 case IrOpcode::kNumberAtan2: | 672 case IrOpcode::kNumberAtan2: |
673 return machine()->Float64Atan2(); | 673 return machine()->Float64Atan2(); |
674 case IrOpcode::kNumberExp: | 674 case IrOpcode::kNumberExp: |
675 return machine()->Float64Exp(); | 675 return machine()->Float64Exp(); |
676 case IrOpcode::kNumberFround: | 676 case IrOpcode::kNumberFround: |
677 return machine()->TruncateFloat64ToFloat32(); | 677 return machine()->TruncateFloat64ToFloat32(); |
| 678 case IrOpcode::kNumberAtanh: |
| 679 return machine()->Float64Atanh(); |
678 case IrOpcode::kNumberLog: | 680 case IrOpcode::kNumberLog: |
679 return machine()->Float64Log(); | 681 return machine()->Float64Log(); |
680 case IrOpcode::kNumberLog1p: | 682 case IrOpcode::kNumberLog1p: |
681 return machine()->Float64Log1p(); | 683 return machine()->Float64Log1p(); |
682 case IrOpcode::kNumberLog2: | 684 case IrOpcode::kNumberLog2: |
683 return machine()->Float64Log2(); | 685 return machine()->Float64Log2(); |
684 case IrOpcode::kNumberLog10: | 686 case IrOpcode::kNumberLog10: |
685 return machine()->Float64Log10(); | 687 return machine()->Float64Log10(); |
686 case IrOpcode::kNumberSqrt: | 688 case IrOpcode::kNumberSqrt: |
687 return machine()->Float64Sqrt(); | 689 return machine()->Float64Sqrt(); |
| 690 case IrOpcode::kNumberCbrt: |
| 691 return machine()->Float64Cbrt(); |
| 692 case IrOpcode::kNumberExpm1: |
| 693 return machine()->Float64Expm1(); |
688 case IrOpcode::kNumberSilenceNaN: | 694 case IrOpcode::kNumberSilenceNaN: |
689 return machine()->Float64SilenceNaN(); | 695 return machine()->Float64SilenceNaN(); |
690 default: | 696 default: |
691 UNREACHABLE(); | 697 UNREACHABLE(); |
692 return nullptr; | 698 return nullptr; |
693 } | 699 } |
694 } | 700 } |
695 | 701 |
696 | 702 |
697 Node* RepresentationChanger::TypeError(Node* node, | 703 Node* RepresentationChanger::TypeError(Node* node, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 } | 742 } |
737 | 743 |
738 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 744 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
739 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 745 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
740 node); | 746 node); |
741 } | 747 } |
742 | 748 |
743 } // namespace compiler | 749 } // namespace compiler |
744 } // namespace internal | 750 } // namespace internal |
745 } // namespace v8 | 751 } // namespace v8 |
OLD | NEW |