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

Unified Diff: runtime/vm/bootstrap_nocore.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 | « runtime/vm/bootstrap.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap_nocore.cc
diff --git a/runtime/vm/bootstrap_nocore.cc b/runtime/vm/bootstrap_nocore.cc
index 192ec678eea3e988797165dc5a747eab58c19da0..0ce23803717231ee1924fb1a4296b7a50449e25e 100644
--- a/runtime/vm/bootstrap_nocore.cc
+++ b/runtime/vm/bootstrap_nocore.cc
@@ -9,7 +9,7 @@
#if !defined(DART_PRECOMPILED_RUNTIME)
#include "vm/class_finalizer.h"
#include "vm/compiler.h"
-#include "vm/kernel_reader.h"
+#include "vm/kernel_loader.h"
#endif
#include "vm/object.h"
#if !defined(DART_PRECOMPILED_RUNTIME)
@@ -70,7 +70,7 @@ void Finish(Thread* thread, bool from_kernel) {
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
// adding classes to the list more than once.
@@ -90,9 +90,9 @@ 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;
}
@@ -104,7 +104,7 @@ 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 | « runtime/vm/bootstrap.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698