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

Unified Diff: pkg/compiler/lib/src/js_model/closure_visitors.dart

Issue 2985683002: Remove KernelScopeInfo.localsMap (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/js_model/closure.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_model/closure_visitors.dart
diff --git a/pkg/compiler/lib/src/js_model/closure_visitors.dart b/pkg/compiler/lib/src/js_model/closure_visitors.dart
index 2f378426de11c91a56b7975b58f1d58d8f170cd4..8589ff25e038eb8306e8852d481948b8c1b606ec 100644
--- a/pkg/compiler/lib/src/js_model/closure_visitors.dart
+++ b/pkg/compiler/lib/src/js_model/closure_visitors.dart
@@ -97,7 +97,6 @@ class CapturedScopeBuilder extends ir.Visitor {
_currentLocalFunction,
from.localsUsedInTryOrSync,
from.freeVariables,
- from.localsMap,
_thisLocal);
}
}
@@ -207,7 +206,6 @@ class CapturedScopeBuilder extends ir.Visitor {
scope.context,
scope.localsUsedInTryOrSync,
scope.freeVariables,
- _localsMap,
scope.thisLocal);
}
@@ -222,7 +220,7 @@ class CapturedScopeBuilder extends ir.Visitor {
_isInsideClosure = _outermostNode != null;
_executableContext = node;
- _currentScopeInfo = new KernelScopeInfo(_thisLocal, _localsMap);
+ _currentScopeInfo = new KernelScopeInfo(_thisLocal);
if (_isInsideClosure) {
_closuresToGenerate[node] = _currentScopeInfo;
_currentLocalFunction = _localsMap.getLocalFunction(node.parent);
« no previous file with comments | « pkg/compiler/lib/src/js_model/closure.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698