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

Unified Diff: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart

Issue 1055243006: tree-ir: Do not merge captured parameters with other variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
index 3f2d1331409f1e097ed6d373ab28e3edbeac41b9..0683911c095fc46bf697f617d93745040fc4257f 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
@@ -156,7 +156,8 @@ class Builder implements cps_ir.Visitor<Node> {
if (variable is cps_ir.Parameter) {
return getVariable(variable);
} else {
- return addMutableVariable(variable as cps_ir.MutableVariable);
+ return addMutableVariable(variable as cps_ir.MutableVariable)
+ ..isCaptured = true;
asgerf 2015/04/15 10:43:39 This is for parameters accessed by initializers.
}
}

Powered by Google App Engine
This is Rietveld 408576698