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

Unified Diff: runtime/vm/object.h

Issue 8585004: Support correct factory syntax in the VM as decribed in the spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/class_finalizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 1593)
+++ runtime/vm/object.h (working copy)
@@ -451,13 +451,21 @@
// Asserts that the class of the super type has been resolved.
RawClass* SuperClass() const;
- // The factory type of this interface, null if not specified.
- RawType* factory_type() const { return raw_ptr()->factory_type_; }
- void set_factory_type(const Type& value) const;
+ // Return true if this interface has a factory class.
+ bool HasFactoryClass() const;
- // Asserts that the class of the factory type has been resolved.
+ // Return true if the factory class of this interface is resolved.
+ bool HasResolvedFactoryClass() const;
+
+ // Return the resolved factory class of this interface.
RawClass* FactoryClass() const;
+ // Return the unresolved factory class of this interface.
+ RawUnresolvedClass* UnresolvedFactoryClass() const;
+
+ // Set the resolved or unresolved factory class of this interface.
+ void set_factory_class(const Object& value) const;
+
// Interfaces is an array of Types.
RawArray* interfaces() const { return raw_ptr()->interfaces_; }
void set_interfaces(const Array& value) const;
@@ -644,6 +652,11 @@
RawString* ident() const { return raw_ptr()->ident_; }
intptr_t token_index() const { return raw_ptr()->token_index_; }
+ RawClass* factory_signature_class() const {
+ return raw_ptr()->factory_signature_class_;
+ }
+ void set_factory_signature_class(const Class& value) const;
+
RawString* Name() const;
static intptr_t InstanceSize() {
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698