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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 case IrOpcode::kNumberEqual: | 656 case IrOpcode::kNumberEqual: |
657 return machine()->Float64Equal(); | 657 return machine()->Float64Equal(); |
658 case IrOpcode::kNumberLessThan: | 658 case IrOpcode::kNumberLessThan: |
659 return machine()->Float64LessThan(); | 659 return machine()->Float64LessThan(); |
660 case IrOpcode::kNumberLessThanOrEqual: | 660 case IrOpcode::kNumberLessThanOrEqual: |
661 return machine()->Float64LessThanOrEqual(); | 661 return machine()->Float64LessThanOrEqual(); |
662 case IrOpcode::kNumberAtan: | 662 case IrOpcode::kNumberAtan: |
663 return machine()->Float64Atan(); | 663 return machine()->Float64Atan(); |
664 case IrOpcode::kNumberAtan2: | 664 case IrOpcode::kNumberAtan2: |
665 return machine()->Float64Atan2(); | 665 return machine()->Float64Atan2(); |
| 666 case IrOpcode::kNumberFround: |
| 667 return machine()->TruncateFloat64ToFloat32(); |
666 case IrOpcode::kNumberLog: | 668 case IrOpcode::kNumberLog: |
667 return machine()->Float64Log(); | 669 return machine()->Float64Log(); |
668 case IrOpcode::kNumberLog1p: | 670 case IrOpcode::kNumberLog1p: |
669 return machine()->Float64Log1p(); | 671 return machine()->Float64Log1p(); |
| 672 case IrOpcode::kNumberSqrt: |
| 673 return machine()->Float64Sqrt(); |
670 case IrOpcode::kNumberSilenceNaN: | 674 case IrOpcode::kNumberSilenceNaN: |
671 return machine()->Float64SilenceNaN(); | 675 return machine()->Float64SilenceNaN(); |
672 default: | 676 default: |
673 UNREACHABLE(); | 677 UNREACHABLE(); |
674 return nullptr; | 678 return nullptr; |
675 } | 679 } |
676 } | 680 } |
677 | 681 |
678 | 682 |
679 Node* RepresentationChanger::TypeError(Node* node, | 683 Node* RepresentationChanger::TypeError(Node* node, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 } | 722 } |
719 | 723 |
720 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 724 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
721 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 725 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
722 node); | 726 node); |
723 } | 727 } |
724 | 728 |
725 } // namespace compiler | 729 } // namespace compiler |
726 } // namespace internal | 730 } // namespace internal |
727 } // namespace v8 | 731 } // namespace v8 |
OLD | NEW |