Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 4ffc1e493948bce4eab8382dc72046519096e9c7..3fcc4010950d1c970891f1d3c7ea3b98bc66bd84 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -3169,7 +3169,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(), |
@@ -3183,7 +3183,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()); |