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

Unified Diff: runtime/vm/object.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.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 640af8fe6c8309eaf494fd567cc6ba7ae83cec1b..57ab51d96d37d8c108bc107c0eb19d6da693fede 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3632,7 +3632,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_;
@@ -3654,7 +3656,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);
@@ -3738,7 +3740,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;

Powered by Google App Engine
This is Rietveld 408576698