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

Unified Diff: runtime/vm/raw_object.h

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/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 29272)
+++ runtime/vm/raw_object.h (working copy)
@@ -483,7 +483,7 @@
RawLibrary* library_;
RawTypeArguments* type_parameters_; // Array of TypeParameter.
RawAbstractType* super_type_;
- RawType* mixin_;
+ RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>.
RawClass* patch_class_;
RawFunction* signature_function_; // Associated function for signature class.
RawArray* constants_; // Canonicalized values of this class.
@@ -1203,11 +1203,12 @@
RAW_HEAP_OBJECT_IMPLEMENTATION(MixinAppType);
RawObject** from() {
- return reinterpret_cast<RawObject**>(&ptr()->mixins_);
+ return reinterpret_cast<RawObject**>(&ptr()->super_type_);
}
- RawArray* mixins_; // Array of synthesized mixin application classes.
+ RawAbstractType* super_type_;
+ RawArray* mixin_types_; // Array of AbstractType.
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->mixins_);
+ return reinterpret_cast<RawObject**>(&ptr()->mixin_types_);
}
};
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698