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

Unified Diff: runtime/vm/raw_object.h

Issue 10967052: Support for show/hide combinators (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 12785)
+++ runtime/vm/raw_object.h (working copy)
@@ -31,6 +31,7 @@
V(Script) \
V(Library) \
V(LibraryPrefix) \
+ V(Namespace) \
V(Code) \
V(Instructions) \
V(PcDescriptors) \
@@ -722,8 +723,7 @@
RawString* private_key_;
RawArray* dictionary_; // Top-level names in this library.
RawArray* anonymous_classes_; // Classes containing top-level elements.
- RawArray* imports_; // List of libraries imported without prefix.
- // is imported into without a prefix.
+ RawArray* imports_; // List of Namespaces imported without prefix.
RawArray* loaded_scripts_; // Array of scripts loaded in this library.
RawObject** to() {
return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
@@ -746,14 +746,29 @@
RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
RawString* name_; // library prefix name.
- RawArray* libraries_; // libraries imported with this prefix.
+ RawArray* imports_; // libraries imported with this prefix.
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->libraries_);
+ return reinterpret_cast<RawObject**>(&ptr()->imports_);
}
- intptr_t num_libs_; // Number of library entries in libraries_.
+ intptr_t num_imports_; // Number of library entries in libraries_.
};
+class RawNamespace : public RawObject {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace);
+
+ RawObject** from() {
+ return reinterpret_cast<RawObject**>(&ptr()->library_);
+ }
+ RawLibrary* library_; // library with name dictionary.
+ RawArray* show_names_; // list of names that are exported.
+ RawArray* hide_names_; // blacklist of names that are not exported.
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->hide_names_);
+ }
+};
+
+
class RawCode : public RawObject {
RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698