| 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::kNumberDivide: | 656 case IrOpcode::kNumberDivide: |
| 657 return machine()->Float64Div(); | 657 return machine()->Float64Div(); |
| 658 case IrOpcode::kNumberModulus: | 658 case IrOpcode::kNumberModulus: |
| 659 return machine()->Float64Mod(); | 659 return machine()->Float64Mod(); |
| 660 case IrOpcode::kNumberEqual: | 660 case IrOpcode::kNumberEqual: |
| 661 return machine()->Float64Equal(); | 661 return machine()->Float64Equal(); |
| 662 case IrOpcode::kNumberLessThan: | 662 case IrOpcode::kNumberLessThan: |
| 663 return machine()->Float64LessThan(); | 663 return machine()->Float64LessThan(); |
| 664 case IrOpcode::kNumberLessThanOrEqual: | 664 case IrOpcode::kNumberLessThanOrEqual: |
| 665 return machine()->Float64LessThanOrEqual(); | 665 return machine()->Float64LessThanOrEqual(); |
| 666 case IrOpcode::kNumberLog: |
| 667 return machine()->Float64Log(); |
| 666 default: | 668 default: |
| 667 UNREACHABLE(); | 669 UNREACHABLE(); |
| 668 return nullptr; | 670 return nullptr; |
| 669 } | 671 } |
| 670 } | 672 } |
| 671 | 673 |
| 672 | 674 |
| 673 Node* RepresentationChanger::TypeError(Node* node, | 675 Node* RepresentationChanger::TypeError(Node* node, |
| 674 MachineRepresentation output_rep, | 676 MachineRepresentation output_rep, |
| 675 Type* output_type, | 677 Type* output_type, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 714 } |
| 713 | 715 |
| 714 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 716 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
| 715 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 717 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
| 716 node); | 718 node); |
| 717 } | 719 } |
| 718 | 720 |
| 719 } // namespace compiler | 721 } // namespace compiler |
| 720 } // namespace internal | 722 } // namespace internal |
| 721 } // namespace v8 | 723 } // namespace v8 |
| OLD | NEW |