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

Unified Diff: runtime/vm/raw_object.h

Issue 10964058: Support redirecting factory constructors in the VM (issue 3969). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 12790)
+++ runtime/vm/raw_object.h (working copy)
@@ -25,6 +25,7 @@
V(PatchClass) \
V(Function) \
V(ClosureData) \
+ V(RedirectionData) \
V(Field) \
V(LiteralToken) \
V(TokenStream) \
@@ -634,6 +635,22 @@
};
+class RawRedirectionData : public RawObject {
+ private:
+ RAW_HEAP_OBJECT_IMPLEMENTATION(RedirectionData);
+
+ RawObject** from() {
+ return reinterpret_cast<RawObject**>(&ptr()->type_);
+ }
+ RawType* type_;
+ RawString* identifier_;
+ RawFunction* target_;
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->target_);
+ }
+};
+
+
class RawField : public RawObject {
RAW_HEAP_OBJECT_IMPLEMENTATION(Field);

Powered by Google App Engine
This is Rietveld 408576698