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

Unified Diff: runtime/vm/object.h

Issue 16780008: Reified metadata in the VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/dart_api_impl.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 23883)
+++ runtime/vm/object.h (working copy)
@@ -2251,6 +2251,11 @@
void AddExport(const Namespace& ns) const;
+ void AddClassMetadata(const Class& cls, intptr_t token_pos) const;
+ void AddFieldMetadata(const Field& field, intptr_t token_pos) const;
+ void AddFunctionMetadata(const Function& func, intptr_t token_pos) const;
+ RawObject* GetMetadata(const Object& obj) const;
+
// Library imports.
void AddImport(const Namespace& ns) const;
intptr_t num_imports() const { return raw_ptr()->num_imports_; }
@@ -2333,6 +2338,7 @@
RawArray* exports() const { return raw_ptr()->exports_; }
bool HasExports() const;
RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; }
+ RawGrowableObjectArray* metadata() const { return raw_ptr()->metadata_; }
RawArray* dictionary() const { return raw_ptr()->dictionary_; }
void InitClassDictionary() const;
void InitImportList() const;
@@ -2341,6 +2347,12 @@
bool import_core_lib);
RawObject* LookupEntry(const String& name, intptr_t *index) const;
+ RawString* MakeMetadataName(const Object& obj) const;
+ RawField* GetMetadataField(const String& metaname) const;
+ void AddMetadata(const Class& cls,
+ const String& name,
+ intptr_t token_pos) const;
+
FINAL_HEAP_OBJECT_IMPLEMENTATION(Library, Object);
friend class Bootstrap;
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698