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

Unified Diff: pkg/kernel/lib/transformations/closure/context.dart

Issue 3008923002: Improve the performance of closure-converted code. (Closed)
Patch Set: Additional bug fixes. Created 3 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
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/closure/rewriter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/closure/context.dart
diff --git a/pkg/kernel/lib/transformations/closure/context.dart b/pkg/kernel/lib/transformations/closure/context.dart
index 3e4ed1790904785fa56979252c480ee6682998b1..ee8fc6751b24fac9ac69000eeb37bf93f1c16c2c 100644
--- a/pkg/kernel/lib/transformations/closure/context.dart
+++ b/pkg/kernel/lib/transformations/closure/context.dart
@@ -7,6 +7,7 @@ library kernel.transformations.closure.context;
import '../../ast.dart'
show
Expression,
+ FunctionNode,
NullLiteral,
StringLiteral,
Throw,
@@ -137,6 +138,9 @@ class LocalContext extends Context {
value.parent = initializer;
converter.rewriter.insertExtendContext(initializer);
+ if (variable.parent is FunctionNode) {
+ converter.rewriter.insertZeroOutParameter(variable);
+ }
++vectorCreation.length;
variables.add(variable);
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/closure/rewriter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698