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

Unified Diff: runtime/vm/bootstrap.cc

Issue 3010543002: Rename the class "KernelReader" to "KernelLoader". (Closed)
Patch Set: Fix alphabetical order in vm_sources.gni. Created 3 years, 4 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 | « no previous file | runtime/vm/bootstrap_nocore.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 c6e8d633007e315dc030431fbbca2e4528c2a054..b83af65d8c12b08b2fad94d7e32b8b09911a146e 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -12,7 +12,7 @@
#include "vm/dart_api_impl.h"
#if !defined(DART_PRECOMPILED_RUNTIME)
#include "vm/kernel.h"
-#include "vm/kernel_reader.h"
+#include "vm/kernel_loader.h"
#endif
#include "vm/object.h"
#include "vm/object_store.h"
@@ -303,7 +303,7 @@ static RawError* BootstrapFromSource(Thread* thread) {
#if !defined(DART_PRECOMPILED_RUNTIME)
static RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) {
Zone* zone = thread->zone();
- kernel::KernelReader reader(program);
+ kernel::KernelLoader loader(program);
Isolate* isolate = thread->isolate();
// Mark the already-pending classes. This mark bit will be used to avoid
@@ -324,9 +324,9 @@ static RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) {
library = isolate->object_store()->bootstrap_library(id);
dart_name = library.url();
for (intptr_t j = 0; j < program->library_count(); ++j) {
- const String& kernel_name = reader.LibraryUri(j);
+ const String& kernel_name = loader.LibraryUri(j);
if (kernel_name.Equals(dart_name)) {
- reader.ReadLibrary(reader.library_offset(j));
+ loader.LoadLibrary(loader.library_offset(j));
library.SetLoaded();
break;
}
@@ -338,7 +338,7 @@ static RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) {
// The platform binary may contain other libraries (e.g., dart:_builtin or
// dart:io) that will not be bundled with application. Load them now.
- reader.ReadProgram();
+ loader.LoadProgram();
// The builtin library should be registered with the VM.
dart_name = String::New("dart:_builtin");
« no previous file with comments | « no previous file | runtime/vm/bootstrap_nocore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698