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

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

Issue 858433005: dart2js: Don't reference mixins when they are only used for RTI. (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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb7669f6e37f3586688692ced75a54b816f45805..f1144e586093e1be2dfc7a4a83674818ce66dae0 100644
--- a/pkg/compiler/lib/src/js_emitter/program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/program_builder.dart
@@ -88,9 +88,8 @@ class ProgramBuilder {
if (element.superclass != null) {
c.setSuperclass(_classes[element.superclass]);
}
- if (element.isMixinApplication) {
- MixinApplication mixinApplication = c;
- mixinApplication.setMixinClass(_classes[computeMixinClass(element)]);
+ if (c is MixinApplication) {
+ c.setMixinClass(_classes[computeMixinClass(element)]);
}
});
@@ -299,7 +298,7 @@ class ProgramBuilder {
_compiler.codegenWorld.directlyInstantiatedClasses.contains(element);
Class result;
- if (element.isMixinApplication) {
+ if (element.isMixinApplication && !onlyForRti) {
result = new MixinApplication(element,
name, holder, methods, fields,
isDirectlyInstantiated: isInstantiated,
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698