Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Unified Diff: runtime/vm/scopes.cc

Issue 1323813004: Changes to prepare for allowing script snapshots to be taken after running the main application (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix-long-line Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/scopes.cc
diff --git a/runtime/vm/scopes.cc b/runtime/vm/scopes.cc
index 637e9b72bfa92fa9e1a9a19be20e4290c0722e7c..f0c5080b8e4a5a384c68a2098d14d3687d504ba2 100644
--- a/runtime/vm/scopes.cc
+++ b/runtime/vm/scopes.cc
@@ -548,7 +548,7 @@ RawContextScope* LocalScope::PreserveOuterScope(int current_context_level)
// Create a ContextScope with space for num_captured_vars descriptors.
const ContextScope& context_scope =
- ContextScope::Handle(ContextScope::New(num_captured_vars));
+ ContextScope::Handle(ContextScope::New(num_captured_vars, false));
// Create a descriptor for each referenced captured variable of enclosing
// functions to preserve its name and its context allocation information.
@@ -638,7 +638,7 @@ RawContextScope* LocalScope::CreateImplicitClosureScope(const Function& func) {
// Create a ContextScope with space for kNumCapturedVars descriptors.
const ContextScope& context_scope =
- ContextScope::Handle(ContextScope::New(kNumCapturedVars));
+ ContextScope::Handle(ContextScope::New(kNumCapturedVars, true));
// Create a descriptor for 'this' variable.
context_scope.SetTokenIndexAt(0, func.token_pos());

Powered by Google App Engine
This is Rietveld 408576698