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

Unified Diff: pkg/compiler/lib/src/js_emitter/program_builder.dart

Issue 881363006: Store the aliasName of a method in the model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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: pkg/compiler/lib/src/js_emitter/program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder.dart
index 9f517342b513efb7ccabbbe7257a53eb0316ae5e..05e89929360536625a4cc361bf49aa8d1a7669a2 100644
--- a/pkg/compiler/lib/src/js_emitter/program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/program_builder.dart
@@ -418,7 +418,9 @@ class ProgramBuilder {
final bool needsStubs = _methodNeedsStubs(element);
floitsch 2015/01/29 15:24:36 no need for final (here and other locals).
herhut 2015/02/03 10:20:17 Done.
final bool canBeApplied = _methodCanBeApplied(element);
- final bool hasSuperAlias = backend.isAliasedSuperMember(element);
+
+ final String aliasName = backend.isAliasedSuperMember(element) ?
+ namer.getNameOfAliasedSuperMember(element) : null;
zarah 2015/01/29 15:15:11 Personal taste: if it can't fit on one line I thin
herhut 2015/02/03 10:20:17 Done.
if (isNotApplyTarget) {
canTearOff = false;
@@ -443,7 +445,7 @@ class ProgramBuilder {
return new InstanceMethod(element, name, code, needsTearOff: canTearOff,
tearOffName: tearOffName, isClosure: isClosure,
- hasSuperAlias: hasSuperAlias, canBeApplied: canBeApplied,
+ aliasName: aliasName, canBeApplied: canBeApplied,
needsStubs: needsStubs);
}

Powered by Google App Engine
This is Rietveld 408576698