| 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 case IrOpcode::kNumberLessThan: | 664 case IrOpcode::kNumberLessThan: |
| 665 case IrOpcode::kSpeculativeNumberLessThan: | 665 case IrOpcode::kSpeculativeNumberLessThan: |
| 666 return machine()->Float64LessThan(); | 666 return machine()->Float64LessThan(); |
| 667 case IrOpcode::kNumberLessThanOrEqual: | 667 case IrOpcode::kNumberLessThanOrEqual: |
| 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::kNumberCos: |
| 675 return machine()->Float64Cos(); |
| 674 case IrOpcode::kNumberExp: | 676 case IrOpcode::kNumberExp: |
| 675 return machine()->Float64Exp(); | 677 return machine()->Float64Exp(); |
| 676 case IrOpcode::kNumberFround: | 678 case IrOpcode::kNumberFround: |
| 677 return machine()->TruncateFloat64ToFloat32(); | 679 return machine()->TruncateFloat64ToFloat32(); |
| 678 case IrOpcode::kNumberAtanh: | 680 case IrOpcode::kNumberAtanh: |
| 679 return machine()->Float64Atanh(); | 681 return machine()->Float64Atanh(); |
| 680 case IrOpcode::kNumberLog: | 682 case IrOpcode::kNumberLog: |
| 681 return machine()->Float64Log(); | 683 return machine()->Float64Log(); |
| 682 case IrOpcode::kNumberLog1p: | 684 case IrOpcode::kNumberLog1p: |
| 683 return machine()->Float64Log1p(); | 685 return machine()->Float64Log1p(); |
| 684 case IrOpcode::kNumberLog2: | 686 case IrOpcode::kNumberLog2: |
| 685 return machine()->Float64Log2(); | 687 return machine()->Float64Log2(); |
| 686 case IrOpcode::kNumberLog10: | 688 case IrOpcode::kNumberLog10: |
| 687 return machine()->Float64Log10(); | 689 return machine()->Float64Log10(); |
| 690 case IrOpcode::kNumberSin: |
| 691 return machine()->Float64Sin(); |
| 688 case IrOpcode::kNumberSqrt: | 692 case IrOpcode::kNumberSqrt: |
| 689 return machine()->Float64Sqrt(); | 693 return machine()->Float64Sqrt(); |
| 690 case IrOpcode::kNumberCbrt: | 694 case IrOpcode::kNumberCbrt: |
| 691 return machine()->Float64Cbrt(); | 695 return machine()->Float64Cbrt(); |
| 692 case IrOpcode::kNumberExpm1: | 696 case IrOpcode::kNumberExpm1: |
| 693 return machine()->Float64Expm1(); | 697 return machine()->Float64Expm1(); |
| 694 case IrOpcode::kNumberSilenceNaN: | 698 case IrOpcode::kNumberSilenceNaN: |
| 695 return machine()->Float64SilenceNaN(); | 699 return machine()->Float64SilenceNaN(); |
| 696 default: | 700 default: |
| 697 UNREACHABLE(); | 701 UNREACHABLE(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 } | 746 } |
| 743 | 747 |
| 744 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 748 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
| 745 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 749 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
| 746 node); | 750 node); |
| 747 } | 751 } |
| 748 | 752 |
| 749 } // namespace compiler | 753 } // namespace compiler |
| 750 } // namespace internal | 754 } // namespace internal |
| 751 } // namespace v8 | 755 } // namespace v8 |
| OLD | NEW |