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

Unified Diff: pkg/compiler/lib/src/ssa/locals_handler.dart

Issue 2975323002: Renamed some scoping classes to make their usage clearer. (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/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/loop_handler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/locals_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/locals_handler.dart b/pkg/compiler/lib/src/ssa/locals_handler.dart
index c2e770d90efb58c3d18f717f5b421a91104359d6..81af015f00ba57ca3a22d81fc90a03daaaae0e3d 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -136,7 +136,7 @@ class LocalsHandler {
/// If the scope (function or loop) [node] has captured variables then this
/// method creates a box and sets up the redirections.
- void enterScope(ClosureScope closureInfo,
+ void enterScope(CapturedScope closureInfo,
{bool forGenerativeConstructorBody: false}) {
// See if any variable in the top-scope of the function is captured. If yes
// we need to create a box-object.
@@ -198,7 +198,7 @@ class LocalsHandler {
///
/// Invariant: [function] must be an implementation element.
void startFunction(MemberEntity element, ScopeInfo scopeInfo,
- ClosureScope scopeData, Map<Local, TypeMask> parameters,
+ CapturedScope scopeData, Map<Local, TypeMask> parameters,
{bool isGenerativeConstructorBody}) {
assert(!(element is MemberElement && !element.isImplementation),
failedAt(element));
@@ -476,7 +476,7 @@ class LocalsHandler {
/// <updates>
/// goto loop-entry;
/// loop-exit:
- void startLoop(LoopClosureScope loopInfo) {
+ void startLoop(CapturedLoopScope loopInfo) {
if (loopInfo.hasBoxedLoopVariables) {
// If there are boxed loop variables then we set up the box and
// redirections already now. This way the initializer can write its
@@ -509,7 +509,7 @@ class LocalsHandler {
});
}
- void enterLoopBody(LoopClosureScope loopInfo) {
+ void enterLoopBody(CapturedLoopScope loopInfo) {
// If there are no declared boxed loop variables then we did not create the
// box before the initializer and we have to create the box now.
if (!loopInfo.hasBoxedLoopVariables) {
@@ -517,7 +517,7 @@ class LocalsHandler {
}
}
- void enterLoopUpdates(LoopClosureScope loopInfo) {
+ void enterLoopUpdates(CapturedLoopScope loopInfo) {
// If there are declared boxed loop variables then the updates might have
// access to the box and we must switch to a new box before executing the
// updates.
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/loop_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698