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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 return machine()->Float64Mod(); | 680 return machine()->Float64Mod(); |
681 case IrOpcode::kNumberEqual: | 681 case IrOpcode::kNumberEqual: |
682 case IrOpcode::kSpeculativeNumberEqual: | 682 case IrOpcode::kSpeculativeNumberEqual: |
683 return machine()->Float64Equal(); | 683 return machine()->Float64Equal(); |
684 case IrOpcode::kNumberLessThan: | 684 case IrOpcode::kNumberLessThan: |
685 case IrOpcode::kSpeculativeNumberLessThan: | 685 case IrOpcode::kSpeculativeNumberLessThan: |
686 return machine()->Float64LessThan(); | 686 return machine()->Float64LessThan(); |
687 case IrOpcode::kNumberLessThanOrEqual: | 687 case IrOpcode::kNumberLessThanOrEqual: |
688 case IrOpcode::kSpeculativeNumberLessThanOrEqual: | 688 case IrOpcode::kSpeculativeNumberLessThanOrEqual: |
689 return machine()->Float64LessThanOrEqual(); | 689 return machine()->Float64LessThanOrEqual(); |
| 690 case IrOpcode::kNumberAbs: |
| 691 return machine()->Float64Abs(); |
690 case IrOpcode::kNumberAtan: | 692 case IrOpcode::kNumberAtan: |
691 return machine()->Float64Atan(); | 693 return machine()->Float64Atan(); |
692 case IrOpcode::kNumberAtan2: | 694 case IrOpcode::kNumberAtan2: |
693 return machine()->Float64Atan2(); | 695 return machine()->Float64Atan2(); |
694 case IrOpcode::kNumberCos: | 696 case IrOpcode::kNumberCos: |
695 return machine()->Float64Cos(); | 697 return machine()->Float64Cos(); |
696 case IrOpcode::kNumberExp: | 698 case IrOpcode::kNumberExp: |
697 return machine()->Float64Exp(); | 699 return machine()->Float64Exp(); |
698 case IrOpcode::kNumberFround: | 700 case IrOpcode::kNumberFround: |
699 return machine()->TruncateFloat64ToFloat32(); | 701 return machine()->TruncateFloat64ToFloat32(); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 } | 770 } |
769 | 771 |
770 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 772 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
771 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 773 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
772 node); | 774 node); |
773 } | 775 } |
774 | 776 |
775 } // namespace compiler | 777 } // namespace compiler |
776 } // namespace internal | 778 } // namespace internal |
777 } // namespace v8 | 779 } // namespace v8 |
OLD | NEW |