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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 11273121: Support closures inside initializers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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: lib/compiler/implementation/ssa/codegen.dart
===================================================================
--- lib/compiler/implementation/ssa/codegen.dart (revision 14321)
+++ lib/compiler/implementation/ssa/codegen.dart (working copy)
@@ -159,6 +159,11 @@
addBackendParameter(checkResultElement, parameters, parameterNames);
}
});
+ // Put the box parameter.
ahe 2012/11/06 15:14:22 What does this comment mean?
+ ClosureScope scopeData = closureData.capturingScopes[node];
+ if (scopeData != null) {
+ addBackendParameter(scopeData.boxElement, parameters, parameterNames);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698