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 state_info.state_combine(), parameters, locals, stack, | 1089 state_info.state_combine(), parameters, locals, stack, |
1090 state_info.shared_info(), outer_state); | 1090 state_info.shared_info(), outer_state); |
1091 } | 1091 } |
1092 | 1092 |
1093 | 1093 |
1094 InstructionOperand InstructionSelector::OperandForDeopt( | 1094 InstructionOperand InstructionSelector::OperandForDeopt( |
1095 OperandGenerator* g, Node* input, FrameStateInputKind kind) { | 1095 OperandGenerator* g, Node* input, FrameStateInputKind kind) { |
1096 switch (input->opcode()) { | 1096 switch (input->opcode()) { |
1097 case IrOpcode::kInt32Constant: | 1097 case IrOpcode::kInt32Constant: |
1098 case IrOpcode::kNumberConstant: | 1098 case IrOpcode::kNumberConstant: |
| 1099 case IrOpcode::kFloat32Constant: |
1099 case IrOpcode::kFloat64Constant: | 1100 case IrOpcode::kFloat64Constant: |
1100 case IrOpcode::kHeapConstant: | 1101 case IrOpcode::kHeapConstant: |
1101 return g->UseImmediate(input); | 1102 return g->UseImmediate(input); |
1102 default: | 1103 default: |
1103 switch (kind) { | 1104 switch (kind) { |
1104 case FrameStateInputKind::kStackSlot: | 1105 case FrameStateInputKind::kStackSlot: |
1105 return g->UseUniqueSlot(input); | 1106 return g->UseUniqueSlot(input); |
1106 case FrameStateInputKind::kAny: | 1107 case FrameStateInputKind::kAny: |
1107 return g->UseAny(input); | 1108 return g->UseAny(input); |
1108 } | 1109 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { | 1158 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { |
1158 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); | 1159 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); |
1159 descriptor->SetType(value_index++, input_node.type); | 1160 descriptor->SetType(value_index++, input_node.type); |
1160 } | 1161 } |
1161 DCHECK(value_index == descriptor->GetSize()); | 1162 DCHECK(value_index == descriptor->GetSize()); |
1162 } | 1163 } |
1163 | 1164 |
1164 } // namespace compiler | 1165 } // namespace compiler |
1165 } // namespace internal | 1166 } // namespace internal |
1166 } // namespace v8 | 1167 } // namespace v8 |
OLD | NEW |