Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 2db91d5b72c8fd8df980a88c7cf7456906e03f86..e3124e3c9ffdb14235fac64a0d0282005c8bad8e 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -3172,7 +3172,7 @@ Node* AstGraphBuilder::BuildLocalScriptContext(Scope* scope) { |
DCHECK(scope->is_script_scope()); |
// Allocate a new local context. |
- Handle<ScopeInfo> scope_info = scope->GetScopeInfo(isolate()); |
+ Handle<ScopeInfo> scope_info = scope->scope_info(); |
const Operator* op = javascript()->CreateScriptContext(scope_info); |
Node* local_context = NewNode(op, GetFunctionClosure()); |
PrepareFrameState(local_context, BailoutId::ScriptContext(), |
@@ -3186,7 +3186,7 @@ Node* AstGraphBuilder::BuildLocalBlockContext(Scope* scope) { |
DCHECK(scope->is_block_scope()); |
// Allocate a new local context. |
- Handle<ScopeInfo> scope_info = scope->GetScopeInfo(isolate()); |
+ Handle<ScopeInfo> scope_info = scope->scope_info(); |
const Operator* op = javascript()->CreateBlockContext(scope_info); |
Node* local_context = NewNode(op, GetFunctionClosureForContext()); |