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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 case IrOpcode::kPhi: { | 870 case IrOpcode::kPhi: { |
871 MachineRepresentation rep = PhiRepresentationOf(node->op()); | 871 MachineRepresentation rep = PhiRepresentationOf(node->op()); |
872 MarkAsRepresentation(rep, node); | 872 MarkAsRepresentation(rep, node); |
873 return VisitPhi(node); | 873 return VisitPhi(node); |
874 } | 874 } |
875 case IrOpcode::kProjection: | 875 case IrOpcode::kProjection: |
876 return VisitProjection(node); | 876 return VisitProjection(node); |
877 case IrOpcode::kInt32Constant: | 877 case IrOpcode::kInt32Constant: |
878 case IrOpcode::kInt64Constant: | 878 case IrOpcode::kInt64Constant: |
879 case IrOpcode::kExternalConstant: | 879 case IrOpcode::kExternalConstant: |
| 880 case IrOpcode::kRelocatableInt32Constant: |
| 881 case IrOpcode::kRelocatableInt64Constant: |
880 return VisitConstant(node); | 882 return VisitConstant(node); |
881 case IrOpcode::kFloat32Constant: | 883 case IrOpcode::kFloat32Constant: |
882 return MarkAsFloat32(node), VisitConstant(node); | 884 return MarkAsFloat32(node), VisitConstant(node); |
883 case IrOpcode::kFloat64Constant: | 885 case IrOpcode::kFloat64Constant: |
884 return MarkAsFloat64(node), VisitConstant(node); | 886 return MarkAsFloat64(node), VisitConstant(node); |
885 case IrOpcode::kHeapConstant: | 887 case IrOpcode::kHeapConstant: |
886 return MarkAsReference(node), VisitConstant(node); | 888 return MarkAsReference(node), VisitConstant(node); |
887 case IrOpcode::kNumberConstant: { | 889 case IrOpcode::kNumberConstant: { |
888 double value = OpParameter<double>(node); | 890 double value = OpParameter<double>(node); |
889 if (!IsSmiDouble(value)) MarkAsReference(node); | 891 if (!IsSmiDouble(value)) MarkAsReference(node); |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 return new (instruction_zone()) FrameStateDescriptor( | 1787 return new (instruction_zone()) FrameStateDescriptor( |
1786 instruction_zone(), state_info.type(), state_info.bailout_id(), | 1788 instruction_zone(), state_info.type(), state_info.bailout_id(), |
1787 state_info.state_combine(), parameters, locals, stack, | 1789 state_info.state_combine(), parameters, locals, stack, |
1788 state_info.shared_info(), outer_state); | 1790 state_info.shared_info(), outer_state); |
1789 } | 1791 } |
1790 | 1792 |
1791 | 1793 |
1792 } // namespace compiler | 1794 } // namespace compiler |
1793 } // namespace internal | 1795 } // namespace internal |
1794 } // namespace v8 | 1796 } // namespace v8 |
OLD | NEW |