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

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

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

Powered by Google App Engine
This is Rietveld 408576698