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

Unified Diff: runtime/vm/object.cc

Issue 2692223002: Teach gen_snapshot how to create script snapshots if given a core snapshot to create them against. (Closed)
Patch Set: . Created 3 years, 10 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/tools/create_snapshot_bin.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index cbe17ae5d47a035b10c9b58916d465dc8f074d09..1f8a4ece50170aea093e703d387b00f44915597c 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1177,7 +1177,7 @@ RawError* Object::Init(Isolate* isolate, kernel::Program* kernel_program) {
"Object::Init");)
#if defined(DART_NO_SNAPSHOT)
- bool bootstrapping = true;
+ bool bootstrapping = Dart::vm_snapshot_kind() == Snapshot::kNone;
#elif defined(DART_PRECOMPILED_RUNTIME)
bool bootstrapping = false;
#else
« no previous file with comments | « runtime/tools/create_snapshot_bin.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698