| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 case IrOpcode::kNumberModulus: | 654 case IrOpcode::kNumberModulus: |
| 655 return machine()->Float64Mod(); | 655 return machine()->Float64Mod(); |
| 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::kNumberLog: | 662 case IrOpcode::kNumberLog: |
| 663 return machine()->Float64Log(); | 663 return machine()->Float64Log(); |
| 664 case IrOpcode::kNumberLog1p: |
| 665 return machine()->Float64Log1p(); |
| 664 default: | 666 default: |
| 665 UNREACHABLE(); | 667 UNREACHABLE(); |
| 666 return nullptr; | 668 return nullptr; |
| 667 } | 669 } |
| 668 } | 670 } |
| 669 | 671 |
| 670 | 672 |
| 671 Node* RepresentationChanger::TypeError(Node* node, | 673 Node* RepresentationChanger::TypeError(Node* node, |
| 672 MachineRepresentation output_rep, | 674 MachineRepresentation output_rep, |
| 673 Type* output_type, | 675 Type* output_type, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 } | 712 } |
| 711 | 713 |
| 712 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 714 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
| 713 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 715 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
| 714 node); | 716 node); |
| 715 } | 717 } |
| 716 | 718 |
| 717 } // namespace compiler | 719 } // namespace compiler |
| 718 } // namespace internal | 720 } // namespace internal |
| 719 } // namespace v8 | 721 } // namespace v8 |
| OLD | NEW |