| 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(); | |
| 632 default: | 630 default: |
| 633 UNREACHABLE(); | 631 UNREACHABLE(); |
| 634 return nullptr; | 632 return nullptr; |
| 635 } | 633 } |
| 636 } | 634 } |
| 637 | 635 |
| 638 const Operator* RepresentationChanger::Uint32OperatorFor( | 636 const Operator* RepresentationChanger::Uint32OperatorFor( |
| 639 IrOpcode::Value opcode) { | 637 IrOpcode::Value opcode) { |
| 640 switch (opcode) { | 638 switch (opcode) { |
| 641 case IrOpcode::kNumberAdd: | 639 case IrOpcode::kNumberAdd: |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 } | 807 } |
| 810 | 808 |
| 811 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 809 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
| 812 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 810 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
| 813 node); | 811 node); |
| 814 } | 812 } |
| 815 | 813 |
| 816 } // namespace compiler | 814 } // namespace compiler |
| 817 } // namespace internal | 815 } // namespace internal |
| 818 } // namespace v8 | 816 } // namespace v8 |
| OLD | NEW |