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

Unified Diff: runtime/bin/isolate_data.cc

Issue 2927493002: Restructure code to enable reloading when a kernel dill file is specified on the command line inste… (Closed)
Patch Set: fix format error. Created 3 years, 6 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/isolate_data.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/isolate_data.cc
diff --git a/runtime/bin/isolate_data.cc b/runtime/bin/isolate_data.cc
index 1cf3ebe3d848ddc6613a0f9c6efdf6cce14e5c4d..f3eafa02bf575b63b4450243ac99e907b7c1002a 100644
--- a/runtime/bin/isolate_data.cc
+++ b/runtime/bin/isolate_data.cc
@@ -5,6 +5,8 @@
#include "bin/isolate_data.h"
#include "bin/snapshot_utils.h"
+#include "vm/kernel.h"
+
namespace dart {
namespace bin {
@@ -16,6 +18,7 @@ IsolateData::IsolateData(const char* url,
package_root(NULL),
packages_file(NULL),
udp_receive_buffer(NULL),
+ kernel_program(NULL),
builtin_lib_(NULL),
loader_(NULL),
app_snapshot_(app_snapshot),
@@ -46,6 +49,10 @@ IsolateData::~IsolateData() {
packages_file = NULL;
free(udp_receive_buffer);
udp_receive_buffer = NULL;
+ if (kernel_program != NULL) {
+ delete reinterpret_cast<kernel::Program*>(kernel_program);
+ kernel_program = NULL;
+ }
delete app_snapshot_;
app_snapshot_ = NULL;
}
« no previous file with comments | « runtime/bin/isolate_data.h ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698