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

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

Issue 10947024: Made dart2js constructor lookup logic "private"-aware, fixed 4740 bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed indentation. 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/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index bf79a1efc38e9aadf92f818c9b8e3981c3e9d666..1e996008e8d2d9c6c8237f8203cc6e8ca1ff3d55 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -1143,9 +1143,10 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
if (enclosingClass != compiler.objectClass) {
assert(superClass !== null);
assert(superClass.resolutionState == STATE_DONE);
- Selector selector =
- new Selector.call(superClass.name, enclosingClass.getLibrary(), 0);
- FunctionElement target = superClass.lookupConstructor(superClass.name);
+ Selector selector = new Selector.callConstructor(
+ new SelectorName.namedClass(superClass.name),
+ enclosingClass.getLibrary());
+ FunctionElement target = superClass.lookupConstructor(selector);
if (target === null) {
compiler.internalError("no default constructor available");
}

Powered by Google App Engine
This is Rietveld 408576698