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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 IrOpcode::Value opcode) { | 620 IrOpcode::Value opcode) { |
621 switch (opcode) { | 621 switch (opcode) { |
622 case IrOpcode::kSpeculativeNumberAdd: | 622 case IrOpcode::kSpeculativeNumberAdd: |
623 return simplified()->CheckedInt32Add(); | 623 return simplified()->CheckedInt32Add(); |
624 case IrOpcode::kSpeculativeNumberSubtract: | 624 case IrOpcode::kSpeculativeNumberSubtract: |
625 return simplified()->CheckedInt32Sub(); | 625 return simplified()->CheckedInt32Sub(); |
626 case IrOpcode::kSpeculativeNumberDivide: | 626 case IrOpcode::kSpeculativeNumberDivide: |
627 return simplified()->CheckedInt32Div(); | 627 return simplified()->CheckedInt32Div(); |
628 case IrOpcode::kSpeculativeNumberModulus: | 628 case IrOpcode::kSpeculativeNumberModulus: |
629 return simplified()->CheckedInt32Mod(); | 629 return simplified()->CheckedInt32Mod(); |
| 630 case IrOpcode::kSpeculativeNumberMultiply: |
| 631 return simplified()->CheckedInt32Mul(); |
630 default: | 632 default: |
631 UNREACHABLE(); | 633 UNREACHABLE(); |
632 return nullptr; | 634 return nullptr; |
633 } | 635 } |
634 } | 636 } |
635 | 637 |
636 const Operator* RepresentationChanger::Uint32OperatorFor( | 638 const Operator* RepresentationChanger::Uint32OperatorFor( |
637 IrOpcode::Value opcode) { | 639 IrOpcode::Value opcode) { |
638 switch (opcode) { | 640 switch (opcode) { |
639 case IrOpcode::kNumberAdd: | 641 case IrOpcode::kNumberAdd: |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 } | 809 } |
808 | 810 |
809 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 811 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
810 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 812 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
811 node); | 813 node); |
812 } | 814 } |
813 | 815 |
814 } // namespace compiler | 816 } // namespace compiler |
815 } // namespace internal | 817 } // namespace internal |
816 } // namespace v8 | 818 } // namespace v8 |
OLD | NEW |