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

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

Issue 10559031: Don't try to resolve in the builder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 8 years, 6 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 | tests/language/resolution_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index e600b99e0eb41258a52d40638a0e84df2d49758e..4abba9ad1f258c5ee19d06a2f8c227cc4a13124e 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -2355,7 +2355,9 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
Selector selector = elements.getSelector(node);
Element element = elements[node];
- compiler.resolver.resolveMethodElement(element);
+ if (compiler.enqueuer.resolution.getCachedElements(element) === null) {
+ compiler.internalError("Unresolved element: $element", node: node);
+ }
FunctionElement functionElement = element;
element = functionElement.defaultImplementation;
HInstruction target = new HStatic(element);
« no previous file with comments | « no previous file | tests/language/resolution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698