| 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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 case IrOpcode::kInt32Constant: | 1089 case IrOpcode::kInt32Constant: |
| 1090 case IrOpcode::kNumberConstant: | 1090 case IrOpcode::kNumberConstant: |
| 1091 case IrOpcode::kFloat64Constant: | 1091 case IrOpcode::kFloat64Constant: |
| 1092 case IrOpcode::kHeapConstant: | 1092 case IrOpcode::kHeapConstant: |
| 1093 return g->UseImmediate(input); | 1093 return g->UseImmediate(input); |
| 1094 default: | 1094 default: |
| 1095 switch (kind) { | 1095 switch (kind) { |
| 1096 case FrameStateInputKind::kStackSlot: | 1096 case FrameStateInputKind::kStackSlot: |
| 1097 return g->UseUniqueSlot(input); | 1097 return g->UseUniqueSlot(input); |
| 1098 case FrameStateInputKind::kAny: | 1098 case FrameStateInputKind::kAny: |
| 1099 return g->Use(input); | 1099 return g->UseAny(input); |
| 1100 } | 1100 } |
| 1101 UNREACHABLE(); | 1101 UNREACHABLE(); |
| 1102 return InstructionOperand(); | 1102 return InstructionOperand(); |
| 1103 } | 1103 } |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 | 1106 |
| 1107 void InstructionSelector::AddFrameStateInputs(Node* state, | 1107 void InstructionSelector::AddFrameStateInputs(Node* state, |
| 1108 InstructionOperandVector* inputs, | 1108 InstructionOperandVector* inputs, |
| 1109 FrameStateDescriptor* descriptor, | 1109 FrameStateDescriptor* descriptor, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { | 1149 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { |
| 1150 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); | 1150 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); |
| 1151 descriptor->SetType(value_index++, input_node.type); | 1151 descriptor->SetType(value_index++, input_node.type); |
| 1152 } | 1152 } |
| 1153 DCHECK(value_index == descriptor->GetSize()); | 1153 DCHECK(value_index == descriptor->GetSize()); |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 } // namespace compiler | 1156 } // namespace compiler |
| 1157 } // namespace internal | 1157 } // namespace internal |
| 1158 } // namespace v8 | 1158 } // namespace v8 |
| OLD | NEW |