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

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

Issue 1436833002: dart2js cps: Do not propagate expressions into foreign code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add TODO regarding capture of this Created 5 years, 1 month 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 cd688d51ca51e9b5a202130e1f84f9b2f135dc94..bd4baabdded66a78f6c58b845781d5f5b292032c 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
@@ -119,10 +119,8 @@ 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.
+ /// True if an inner JS function might access this variable through a
+ /// [ForeignCode] node.
bool isCaptured = false;
Variable(this.host, this.element) {

Powered by Google App Engine
This is Rietveld 408576698