Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index fd1b6960d094b5b7ec47a20f1996d828737bf949..43a5ca30fa6489ef5e1ee6fde8a38fc720759f42 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -449,9 +449,9 @@ AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info, |
liveness_analyzer_(static_cast<size_t>(info->scope()->num_stack_slots()), |
local_zone), |
frame_state_function_info_(common()->CreateFrameStateFunctionInfo( |
- FrameStateType::kJavaScriptFunction, |
- info->num_parameters_including_this(), |
- info->scope()->num_stack_slots(), info->shared_info())), |
+ FrameStateType::kJavaScriptFunction, info->num_parameters() + 1, |
+ info->scope()->num_stack_slots(), info->shared_info(), |
+ CALL_MAINTAINS_NATIVE_CONTEXT)), |
js_type_feedback_(js_type_feedback) { |
InitializeAstVisitor(info->isolate(), local_zone); |
} |