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

Unified Diff: runtime/vm/object.h

Issue 154733003: 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: sync Created 6 years, 10 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 3ee81df899cd06db9d6605fdac05360ef6973e5f..5543123d7b94de81cb54fa828c48a75fa2ee1278 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2555,6 +2555,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;
@@ -2646,8 +2648,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_; }
@@ -2731,6 +2731,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));
}
@@ -2745,6 +2748,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