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

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

Issue 980853002: dart2dart: Bugfix in copy propagator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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_nodes.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
index 7272c896c8ff365de5e08359a62d4e30cd8d4611..9543eb40b6057315e6f0dbea14251a129a77dce1 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
@@ -116,6 +116,12 @@ class Variable extends Node {
/// - catch parameter in a [Try]
int writeCount = 0;
+ /// True if a nested function reads or writes this variable.
+ ///
+ /// Always false in JS-mode because closure conversion eliminated nested
+ /// functions.
+ bool isCaptured = false;
+
Variable(this.host, this.element) {
assert(host != null);
}

Powered by Google App Engine
This is Rietveld 408576698