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

Unified Diff: runtime/vm/object.h

Issue 1947393003: - Use a map to lookup libraries by URL. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « runtime/vm/method_recognizer.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 01b9c07f6bcb00e197132b7dff1acef4be27f662..a2f8d2143204ac0b8207e82621fffedec0c3fcd6 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3633,7 +3633,9 @@ class Library : public Object {
StoreNonPointer(&raw_ptr()->index_, value);
}
- void Register() const;
+ void Register(Thread* thread) const;
+ static void RegisterLibraries(Thread* thread,
+ const GrowableObjectArray& libs);
bool IsDebuggable() const {
return raw_ptr()->debuggable_;
@@ -3655,7 +3657,7 @@ class Library : public Object {
inline intptr_t UrlHash() const;
- static RawLibrary* LookupLibrary(const String& url);
+ static RawLibrary* LookupLibrary(Thread* thread, const String& url);
static RawLibrary* GetLibrary(intptr_t index);
static void InitCoreLibrary(Isolate* isolate);
@@ -3739,7 +3741,6 @@ class Library : public Object {
bool import_core_lib);
RawObject* LookupEntry(const String& name, intptr_t *index) const;
- static bool IsKeyUsed(intptr_t key);
void AllocatePrivateKey() const;
RawString* MakeMetadataName(const Object& obj) const;
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698