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

Unified Diff: runtime/bin/dfe.cc

Issue 2990833002: Fix for issue 29819 (Closed)
Patch Set: Created 3 years, 5 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/bin/dfe.h ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dfe.cc
diff --git a/runtime/bin/dfe.cc b/runtime/bin/dfe.cc
index 6fb9e0a5fd209a2bd66952f06997d76529530c0c..bc83f5be15b0d359463df83e3aba4a39cb96850b 100644
--- a/runtime/bin/dfe.cc
+++ b/runtime/bin/dfe.cc
@@ -20,7 +20,8 @@ DFE::DFE()
platform_binary_filename_(NULL),
vmservice_io_binary_filename_(NULL),
kernel_platform_(NULL),
- kernel_vmservice_io_(NULL) {}
+ kernel_vmservice_io_(NULL),
+ kernel_file_specified_(false) {}
DFE::~DFE() {
frontend_filename_ = NULL;
@@ -77,9 +78,7 @@ Dart_Handle DFE::ReloadScript(Dart_Isolate isolate, const char* url_string) {
}
void* kernel_program = Dart_ReadKernelBinary(kernel_ir, kernel_ir_size);
ASSERT(kernel_program != NULL);
- Dart_Handle url = Dart_NewStringFromCString(url_string);
- Dart_Handle result = Dart_LoadScript(
- url, Dart_Null(), reinterpret_cast<Dart_Handle>(kernel_program), 0, 0);
+ Dart_Handle result = Dart_LoadKernel(kernel_program);
if (Dart_IsError(result)) {
return result;
}
« no previous file with comments | « runtime/bin/dfe.h ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698