| Index: runtime/vm/bootstrap_nocore.cc
|
| diff --git a/runtime/vm/bootstrap_nocore.cc b/runtime/vm/bootstrap_nocore.cc
|
| index a05eeaf7316a6d7cbd3b8eb0fd7e4e85625bd7ff..f3dd693d2fa046251b7ecb61d627c96ee175ad35 100644
|
| --- a/runtime/vm/bootstrap_nocore.cc
|
| +++ b/runtime/vm/bootstrap_nocore.cc
|
| @@ -93,12 +93,10 @@ 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.LibraryUri(j);
|
| if (kernel_name.Equals(dart_name)) {
|
| - reader.ReadLibrary(kernel_library->kernel_offset());
|
| + reader.ReadLibrary(reader.library_offset(j));
|
| library.SetLoaded();
|
| break;
|
| }
|
|
|