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

Unified Diff: runtime/vm/raw_object.h

Issue 12779008: Mixins with Generics (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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') | runtime/vm/raw_object.cc » ('j') | 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 20082)
+++ runtime/vm/raw_object.h (working copy)
@@ -52,6 +52,7 @@
V(Type) \
V(TypeParameter) \
V(BoundedType) \
+ V(MixinAppType) \
V(Number) \
V(Integer) \
V(Smi) \
@@ -1174,6 +1175,21 @@
};
+class RawMixinAppType : public RawAbstractType {
+ private:
+ RAW_HEAP_OBJECT_IMPLEMENTATION(MixinAppType);
+
+ RawObject** from() {
+ return reinterpret_cast<RawObject**>(&ptr()->super_type_);
+ }
+ RawAbstractType* super_type_;
+ RawArray* mixin_types_;
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->mixin_types_);
+ }
+};
+
+
class RawNumber : public RawInstance {
RAW_OBJECT_IMPLEMENTATION(Number);
};
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698