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

Unified Diff: runtime/vm/dart_api_impl.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_nocore.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 0ebece4473e77acc2c1455e4674c77564d0906e7..d076d643dbd1eb77a82f77389901855b498b88b1 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -19,7 +19,7 @@
#include "vm/dart_entry.h"
#include "vm/debugger.h"
#if !defined(DART_PRECOMPILED_RUNTIME)
-#include "vm/kernel_reader.h"
+#include "vm/kernel_loader.h"
#endif
#include "vm/exceptions.h"
#include "vm/flags.h"
@@ -4977,8 +4977,8 @@ static Dart_Handle LoadKernelProgram(Thread* T,
// NOTE: Now the VM owns the [kernel_program] memory!
// We will promptly delete it when done.
kernel::Program* program = reinterpret_cast<kernel::Program*>(kernel);
- kernel::KernelReader reader(program);
- const Object& tmp = reader.ReadProgram();
+ kernel::KernelLoader loader(program);
+ const Object& tmp = loader.LoadProgram();
delete program;
return Api::NewHandle(T, tmp.raw());
}
@@ -5034,7 +5034,7 @@ DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url,
library ^= Library::LookupLibrary(T, resolved_url_str);
if (library.IsNull()) {
// If the URL string does not match, use the library object
- // returned by the kernel reader.
+ // returned by the kernel loader.
library ^= Api::UnwrapHandle(result);
}
if (library.IsNull()) {
@@ -5162,8 +5162,8 @@ DART_EXPORT Dart_Handle Dart_LoadKernel(void* kernel_program) {
// NOTE: Now the VM owns the [kernel_program] memory!
// We will promptly delete it when done.
kernel::Program* program = reinterpret_cast<kernel::Program*>(kernel_program);
- kernel::KernelReader reader(program);
- const Object& tmp = reader.ReadProgram();
+ kernel::KernelLoader loader(program);
+ const Object& tmp = loader.LoadProgram();
delete program;
if (tmp.IsError()) {
« no previous file with comments | « runtime/vm/bootstrap_nocore.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698