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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart

Issue 57873002: Build new IR for functions returning a constant (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
index 46170e47836b245439a545a4ce83907fd841968b..d048f9e617d6a5dd2a10bb8529351a5066f2f198 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
@@ -582,7 +582,14 @@ abstract class InferrerVisitor
super(compiler.enqueuer.resolution.getCachedElements(analyzedElement),
compiler) {
if (handler != null) return;
- Node node = analyzedElement.parseNode(compiler);
+ Node node;
+ try {
+ // @lry debug
+ node = analyzedElement.parseNode(compiler);
+ } catch (e) {
+ print(0);
kasperl 2013/11/06 08:30:04 I guess you're going to get rid of this before sub
lukas 2013/11/06 11:36:08 yes, stuff annotated with "@lry" will be removed
+ throw e;
kasperl 2013/11/06 08:30:04 rethrow.
+ }
FieldInitializationScope<T> fieldScope =
analyzedElement.isGenerativeConstructor()
? new FieldInitializationScope<T>(types)

Powered by Google App Engine
This is Rietveld 408576698