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

Unified Diff: runtime/vm/object.h

Issue 10447045: Introduce library ids and info in the wire protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/debugger_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 8073)
+++ runtime/vm/object.h (working copy)
@@ -1757,6 +1757,9 @@
// Library imports.
void AddImport(const Library& library) const;
RawLibrary* LookupImport(const String& url) const;
+ intptr_t num_imports() const { return raw_ptr()->num_imports_; }
+ RawLibrary* ImportAt(intptr_t index) const;
+ RawLibraryPrefix* ImportPrefixAt(intptr_t index) const;
RawFunction* LookupFunctionInSource(const String& script_url,
intptr_t line_number) const;
@@ -1773,6 +1776,11 @@
RawString* PrivateName(const String& name) const;
+ intptr_t index() const { return raw_ptr()->index_; }
+ void set_index(intptr_t value) const {
+ raw_ptr()->index_ = value;
+ }
+
void Register() const;
RawString* DuplicateDefineErrorString(const String& entry_name,
@@ -1804,7 +1812,6 @@
static const int kImportedIntoCapacityIncrement = 2;
static RawLibrary* New();
- intptr_t num_imports() const { return raw_ptr()->num_imports_; }
void set_num_imports(intptr_t value) const {
raw_ptr()->num_imports_ = value;
}
@@ -1842,6 +1849,7 @@
RawArray* libraries() const { return raw_ptr()->libraries_; }
intptr_t num_libs() const { return raw_ptr()->num_libs_; }
+ bool ContainsLibrary(const Library& library) const;
RawLibrary* GetLibrary(int index) const;
void AddLibrary(const Library& library) const;
RawClass* LookupLocalClass(const String& class_name) const;
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698