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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove lazy bailout initializers. Created 8 years, 3 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: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index babe22f3ad7b2bebbba343c9e12096a9f5782d1e..a8d10cb61dcc99dac555876c8415d6ef5bdc7deb 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -193,6 +193,10 @@ class ResolverTask extends CompilerTask {
Node tree = element.parseNode(compiler);
ResolverVisitor visitor = new ResolverVisitor(compiler, element);
initializerDo(tree, visitor.visit);
+ if (!element.isInstanceMember()) {
+ compiler.enqueuer.resolution.registerStaticUse(
+ compiler.cyclicThrowHelper);
+ }
return visitor.mapping;
}

Powered by Google App Engine
This is Rietveld 408576698