| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
| 10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 case IrOpcode::kPhi: { | 867 case IrOpcode::kPhi: { |
| 868 MachineRepresentation rep = PhiRepresentationOf(node->op()); | 868 MachineRepresentation rep = PhiRepresentationOf(node->op()); |
| 869 MarkAsRepresentation(rep, node); | 869 MarkAsRepresentation(rep, node); |
| 870 return VisitPhi(node); | 870 return VisitPhi(node); |
| 871 } | 871 } |
| 872 case IrOpcode::kProjection: | 872 case IrOpcode::kProjection: |
| 873 return VisitProjection(node); | 873 return VisitProjection(node); |
| 874 case IrOpcode::kInt32Constant: | 874 case IrOpcode::kInt32Constant: |
| 875 case IrOpcode::kInt64Constant: | 875 case IrOpcode::kInt64Constant: |
| 876 case IrOpcode::kExternalConstant: | 876 case IrOpcode::kExternalConstant: |
| 877 case IrOpcode::kRelocatableInt32Constant: |
| 878 case IrOpcode::kRelocatableInt64Constant: |
| 877 return VisitConstant(node); | 879 return VisitConstant(node); |
| 878 case IrOpcode::kFloat32Constant: | 880 case IrOpcode::kFloat32Constant: |
| 879 return MarkAsFloat32(node), VisitConstant(node); | 881 return MarkAsFloat32(node), VisitConstant(node); |
| 880 case IrOpcode::kFloat64Constant: | 882 case IrOpcode::kFloat64Constant: |
| 881 return MarkAsFloat64(node), VisitConstant(node); | 883 return MarkAsFloat64(node), VisitConstant(node); |
| 882 case IrOpcode::kHeapConstant: | 884 case IrOpcode::kHeapConstant: |
| 883 return MarkAsReference(node), VisitConstant(node); | 885 return MarkAsReference(node), VisitConstant(node); |
| 884 case IrOpcode::kNumberConstant: { | 886 case IrOpcode::kNumberConstant: { |
| 885 double value = OpParameter<double>(node); | 887 double value = OpParameter<double>(node); |
| 886 if (!IsSmiDouble(value)) MarkAsReference(node); | 888 if (!IsSmiDouble(value)) MarkAsReference(node); |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1725 return new (instruction_zone()) FrameStateDescriptor( | 1727 return new (instruction_zone()) FrameStateDescriptor( |
| 1726 instruction_zone(), state_info.type(), state_info.bailout_id(), | 1728 instruction_zone(), state_info.type(), state_info.bailout_id(), |
| 1727 state_info.state_combine(), parameters, locals, stack, | 1729 state_info.state_combine(), parameters, locals, stack, |
| 1728 state_info.shared_info(), outer_state); | 1730 state_info.shared_info(), outer_state); |
| 1729 } | 1731 } |
| 1730 | 1732 |
| 1731 | 1733 |
| 1732 } // namespace compiler | 1734 } // namespace compiler |
| 1733 } // namespace internal | 1735 } // namespace internal |
| 1734 } // namespace v8 | 1736 } // namespace v8 |
| OLD | NEW |