Index: src/compiler/js-inlining.cc |
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc |
index 13bb0f903240a873678ea65fc7cb0dd7a6e7a1ad..1d7a9b755e48a1271b335f228b0dba4c9716066c 100644 |
--- a/src/compiler/js-inlining.cc |
+++ b/src/compiler/js-inlining.cc |
@@ -214,9 +214,13 @@ Reduction JSInliner::InlineCall(Node* call, Node* frame_state, Node* start, |
Node* JSInliner::CreateArgumentsAdaptorFrameState( |
JSCallFunctionAccessor* call, Handle<SharedFunctionInfo> shared_info, |
Zone* temp_zone) { |
+ const FrameStateFunctionInfo* state_info = |
+ jsgraph_->common()->CreateFrameStateFunctionInfo( |
+ FrameStateType::kArgumentsAdaptor, |
+ static_cast<int>(call->formal_arguments()) + 1, 0, shared_info); |
+ |
const Operator* op = jsgraph_->common()->FrameState( |
- FrameStateType::ARGUMENTS_ADAPTOR, BailoutId(-1), |
- OutputFrameStateCombine::Ignore(), shared_info); |
+ BailoutId(-1), OutputFrameStateCombine::Ignore(), state_info); |
const Operator* op0 = jsgraph_->common()->StateValues(0); |
Node* node0 = jsgraph_->graph()->NewNode(op0); |
NodeVector params(temp_zone); |