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

Unified Diff: runtime/vm/object.h

Issue 189843003: Reapply "Access to imports in the VM's runtime mirrors. Extend test coverage of the source mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/bootstrap_natives.h ('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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index b1c89e85e6df1c4ba5898e1ecba77fc351d99399..8d3ddbee7343a019d3ca18ebc72f691b0b5e62d3 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2553,6 +2553,8 @@ class Library : public Object {
RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; }
// Library imports.
+ RawArray* imports() const { return raw_ptr()->imports_; }
+ RawArray* exports() const { return raw_ptr()->exports_; }
void AddImport(const Namespace& ns) const;
intptr_t num_imports() const { return raw_ptr()->num_imports_; }
RawNamespace* ImportAt(intptr_t index) const;
@@ -2644,8 +2646,6 @@ class Library : public Object {
void set_num_imports(intptr_t value) const {
raw_ptr()->num_imports_ = value;
}
- RawArray* imports() const { return raw_ptr()->imports_; }
- 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_; }
@@ -2729,6 +2729,9 @@ class Namespace : public Object {
RawArray* show_names() const { return raw_ptr()->show_names_; }
RawArray* hide_names() const { return raw_ptr()->hide_names_; }
+ void AddMetadata(intptr_t token_pos, const Class& owner_class);
+ RawObject* GetMetadata() const;
+
static intptr_t InstanceSize() {
return RoundedAllocationSize(sizeof(RawNamespace));
}
@@ -2743,6 +2746,9 @@ class Namespace : public Object {
private:
static RawNamespace* New();
+ RawField* metadata_field() const { return raw_ptr()->metadata_field_; }
+ void set_metadata_field(const Field& value) const;
+
FINAL_HEAP_OBJECT_IMPLEMENTATION(Namespace, Object);
friend class Class;
};
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698