Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 0144104e39a780e2788b71d78b38ba894dfdb200..4a024f3f8d74cb55a2eb8a382ce53cb21f134f41 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -86,7 +86,8 @@ bool AstGraphBuilder::CreateGraph() { |
VisitDeclarations(scope->declarations()); |
// TODO(mstarzinger): This should do an inlined stack check. |
- NewNode(javascript()->Runtime(Runtime::kStackGuard, 0)); |
+ Node* node = NewNode(javascript()->Runtime(Runtime::kStackGuard, 0)); |
+ PrepareFrameState(node, BailoutId::FunctionEntry()); |
// Visit statements in the function body. |
VisitStatements(info()->function()->body()); |