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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 42723003: Register synthesized mixin application classes in the library and reuse them (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « runtime/lib/mirrors.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_impl.dart
===================================================================
--- runtime/lib/mirrors_impl.dart (revision 29272)
+++ runtime/lib/mirrors_impl.dart (working copy)
@@ -574,14 +574,11 @@
ClassMirror get mixin {
if (_mixin == null) {
if (_isMixinTypedef) {
- Type mixinType = isOriginalDeclaration
- ? _nativeMixin(_trueSuperclass._reflectedType)
- : _nativeMixinInstantiated(_trueSuperclass._reflectedType, _instantiator);
+ Type mixinType = _nativeMixinInstantiated(_trueSuperclass._reflectedType,
+ _instantiator);
_mixin = reflectType(mixinType);
} else {
- Type mixinType = isOriginalDeclaration
- ? _nativeMixin(_reflectedType)
- : _nativeMixinInstantiated(_reflectedType, _instantiator);
+ Type mixinType = _nativeMixinInstantiated(_reflectedType, _instantiator);
if (mixinType == null) {
// The reflectee is not a mixin application.
_mixin = this;
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698