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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 StateValuesAccess(state->InputAt(kFrameStateStackInput)).size()); | 1045 StateValuesAccess(state->InputAt(kFrameStateStackInput)).size()); |
1046 | 1046 |
1047 FrameStateDescriptor* outer_state = NULL; | 1047 FrameStateDescriptor* outer_state = NULL; |
1048 Node* outer_node = state->InputAt(kFrameStateOuterStateInput); | 1048 Node* outer_node = state->InputAt(kFrameStateOuterStateInput); |
1049 if (outer_node->opcode() == IrOpcode::kFrameState) { | 1049 if (outer_node->opcode() == IrOpcode::kFrameState) { |
1050 outer_state = GetFrameStateDescriptor(outer_node); | 1050 outer_state = GetFrameStateDescriptor(outer_node); |
1051 } | 1051 } |
1052 | 1052 |
1053 return new (instruction_zone()) FrameStateDescriptor( | 1053 return new (instruction_zone()) FrameStateDescriptor( |
1054 instruction_zone(), state_info.type(), state_info.bailout_id(), | 1054 instruction_zone(), state_info.type(), state_info.bailout_id(), |
1055 state_info.state_combine(), parameters, locals, stack, outer_state); | 1055 state_info.state_combine(), parameters, locals, stack, |
| 1056 state_info.shared_info(), outer_state); |
1056 } | 1057 } |
1057 | 1058 |
1058 | 1059 |
1059 static InstructionOperand SlotOrImmediate(OperandGenerator* g, Node* input) { | 1060 static InstructionOperand SlotOrImmediate(OperandGenerator* g, Node* input) { |
1060 switch (input->opcode()) { | 1061 switch (input->opcode()) { |
1061 case IrOpcode::kInt32Constant: | 1062 case IrOpcode::kInt32Constant: |
1062 case IrOpcode::kNumberConstant: | 1063 case IrOpcode::kNumberConstant: |
1063 case IrOpcode::kFloat64Constant: | 1064 case IrOpcode::kFloat64Constant: |
1064 case IrOpcode::kHeapConstant: | 1065 case IrOpcode::kHeapConstant: |
1065 return g->UseImmediate(input); | 1066 return g->UseImmediate(input); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 MachineOperatorBuilder::Flags | 1154 MachineOperatorBuilder::Flags |
1154 InstructionSelector::SupportedMachineOperatorFlags() { | 1155 InstructionSelector::SupportedMachineOperatorFlags() { |
1155 return MachineOperatorBuilder::Flag::kNoFlags; | 1156 return MachineOperatorBuilder::Flag::kNoFlags; |
1156 } | 1157 } |
1157 | 1158 |
1158 #endif // !V8_TURBOFAN_BACKEND | 1159 #endif // !V8_TURBOFAN_BACKEND |
1159 | 1160 |
1160 } // namespace compiler | 1161 } // namespace compiler |
1161 } // namespace internal | 1162 } // namespace internal |
1162 } // namespace v8 | 1163 } // namespace v8 |
OLD | NEW |