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

Unified Diff: runtime/vm/bootstrap.cc

Issue 2931773005: [kernel] Delete most of the AST (Closed)
Patch Set: Remove getMainClosure handeling as it no longer exists Created 3 years, 6 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/bootstrap.cc
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc
index d6c28e372ef561ac1ac0023f3d030f9800f50a31..d5b0bd1c54a0ea124fe8564849ec7fc5a9f64f13 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -334,12 +334,10 @@ static RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) {
ObjectStore::BootstrapLibraryId id = bootstrap_libraries[i].index;
library = isolate->object_store()->bootstrap_library(id);
dart_name = library.url();
- for (intptr_t j = 0; j < program->libraries().length(); ++j) {
- kernel::Library* kernel_library = program->libraries()[j];
- kernel::StringIndex uri_index = kernel_library->import_uri();
- const String& kernel_name = reader.DartSymbol(uri_index);
+ for (intptr_t j = 0; j < program->library_count(); ++j) {
+ const String& kernel_name = reader.DartSymbolForLib(j);
Kevin Millikin (Google) 2017/06/29 12:27:36 DartSymbolForLib ==> LibraryUri or something like
jensj 2017/06/30 05:51:17 Done.
if (kernel_name.Equals(dart_name)) {
- reader.ReadLibrary(kernel_library->kernel_offset());
+ reader.ReadLibrary(reader.library_offset(j));
library.SetLoaded();
break;
}

Powered by Google App Engine
This is Rietveld 408576698