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

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

Issue 10454005: Make sure [this] is available for super sends. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test case Created 8 years, 7 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 | dart/tests/language/closure_with_super_send_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/ssa/closure.dart
diff --git a/dart/lib/compiler/implementation/ssa/closure.dart b/dart/lib/compiler/implementation/ssa/closure.dart
index 12523fd6cda88082fd5fe351c3cfb6645d411c35..4a4c5415bc44f1095f15e00e919462ace3c6ed8f 100644
--- a/dart/lib/compiler/implementation/ssa/closure.dart
+++ b/dart/lib/compiler/implementation/ssa/closure.dart
@@ -255,6 +255,8 @@ class ClosureTranslator extends AbstractVisitor {
} else if (node.receiver === null &&
Elements.isInstanceSend(node, elements)) {
useLocal(closureData.thisElement);
+ } else if (node.isSuperCall) {
+ useLocal(closureData.thisElement);
}
node.visitChildren(this);
}
« no previous file with comments | « no previous file | dart/tests/language/closure_with_super_send_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698