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

Unified Diff: runtime/vm/object_store.h

Issue 1955453002: - Use a map to lookup libraries by URL. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix precompiler handling. Created 4 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
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 534e51683aa5a17859d8f4c12d0a3fd06dfe29fc..83f47d51f3ba3f0d07b94979ebfb7b8cc9b30186 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -332,6 +332,11 @@ class ObjectStore {
libraries_ = value.raw();
}
+ RawArray* libraries_map() const { return libraries_map_; }
+ void set_libraries_map(const Array& value) {
+ libraries_map_ = value.raw();
+ }
+
RawGrowableObjectArray* closure_functions() const {
return closure_functions_;
}
@@ -548,6 +553,7 @@ class ObjectStore {
RawLibrary* typed_data_library_;
RawLibrary* vmservice_library_;
RawGrowableObjectArray* libraries_;
+ RawArray* libraries_map_;
RawGrowableObjectArray* closure_functions_;
RawGrowableObjectArray* pending_classes_;
RawGrowableObjectArray* pending_deferred_loads_;
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698