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

Unified Diff: runtime/vm/raw_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/parser.cc ('k') | tests/language/language.status » ('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 1593)
+++ runtime/vm/raw_object.h (working copy)
@@ -199,7 +199,7 @@
RawArray* type_parameters_; // Array of String.
RawTypeArray* type_parameter_extends_; // DynamicType if no extends clause.
RawType* super_type_;
- RawType* factory_type_;
+ RawObject* factory_class_; // UnresolvedClass (until finalization) or Class.
RawFunction* signature_function_; // Associated function for signature class.
RawArray* functions_cache_; // See class FunctionsCache.
RawArray* constants_; // Canonicalized values of this class.
@@ -231,8 +231,11 @@
return reinterpret_cast<RawObject**>(&ptr()->qualifier_);
}
RawString* qualifier_; // Qualifier for the identifier.
- RawString* ident_; // name of the unresolved identifier.
- RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->ident_); }
+ RawString* ident_; // Name of the unresolved identifier.
+ RawClass* factory_signature_class_; // Expected type parameters for factory.
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->factory_signature_class_);
+ }
intptr_t token_index_;
};
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698