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

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

Issue 2951923002: Rearranging the deck chairs on the titanic. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | 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 b7afc131e2b69c8467613eb2789a9060ae322970..889270f448362c5fa1e6f3eedab002916240d0d1 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -223,13 +223,13 @@ class LocalsHandler {
enterScope(scopeData,
forGenerativeConstructorBody: isGenerativeConstructorBody);
- // If the freeVariableMapping is not empty, then this function was a
- // nested closure that captures variables. Redirect the captured
- // variables to fields in the closure.
- closureData.forEachFreeVariable((Local from, FieldEntity to) {
- redirectElement(from, to);
- });
if (closureData.isClosure) {
+ // If the freeVariableMapping is not empty, then this function was a
+ // nested closure that captures variables. Redirect the captured
+ // variables to fields in the closure.
+ closureData.forEachFreeVariable((Local from, FieldEntity to) {
+ redirectElement(from, to);
+ });
// Inside closure redirect references to itself to [:this:].
HThis thisInstruction =
new HThis(closureData.thisLocal, commonMasks.nonNullType);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698