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

Unified Diff: runtime/vm/bootstrap.cc

Issue 1870343002: - Refactor Symbol allocation to expect a thread parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review feedback. Created 4 years, 8 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/ast_transformer.cc ('k') | runtime/vm/cha_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap.cc
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc
index f9f418be79e33effa49d44afd0f93500d26ef0ec..9bde826d7d505d05aee7b74c134730cf0c65705a 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -300,7 +300,7 @@ RawError* Bootstrap::LoadandCompileScripts() {
continue;
}
#endif // !PRODUCT
- uri = Symbols::New(bootstrap_libraries[i].uri_);
+ uri = Symbols::New(thread, bootstrap_libraries[i].uri_);
lib = Library::LookupLibrary(uri);
if (lib.IsNull()) {
lib = Library::NewLibraryHelper(uri, false);
@@ -320,7 +320,7 @@ RawError* Bootstrap::LoadandCompileScripts() {
continue;
}
#endif // PRODUCT
- uri = Symbols::New(bootstrap_libraries[i].uri_);
+ uri = Symbols::New(thread, bootstrap_libraries[i].uri_);
lib = Library::LookupLibrary(uri);
ASSERT(!lib.IsNull());
source = GetLibrarySource(lib, uri, false);
@@ -338,7 +338,7 @@ RawError* Bootstrap::LoadandCompileScripts() {
}
// If a patch exists, load and patch the script.
if (bootstrap_libraries[i].patch_paths_ != NULL) {
- patch_uri = Symbols::New(bootstrap_libraries[i].patch_uri_);
+ patch_uri = Symbols::New(thread, bootstrap_libraries[i].patch_uri_);
error = LoadPatchFiles(zone,
lib,
patch_uri,
« no previous file with comments | « runtime/vm/ast_transformer.cc ('k') | runtime/vm/cha_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698