Index: runtime/vm/snapshot.cc |
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc |
index 2f2ca6a533b9cde0fe76207cfeb337ca676946b6..e31c35e0eadb21c376750155a48672de88e56e1d 100644 |
--- a/runtime/vm/snapshot.cc |
+++ b/runtime/vm/snapshot.cc |
@@ -625,7 +625,7 @@ RawApiError* SnapshotReader::ReadFullSnapshot() { |
} |
} |
- if (Snapshot::IncludesCode(kind_)) { |
+ if (kind_ == Snapshot::kAppNoJIT) { |
ICData& ic = ICData::Handle(thread->zone()); |
Object& funcOrCode = Object::Handle(thread->zone()); |
Code& code = Code::Handle(thread->zone()); |
@@ -1764,7 +1764,7 @@ IsolateSnapshotReader::IsolateSnapshotReader(Snapshot::Kind kind, |
new ZoneGrowableArray<BackRefNode>( |
kNumInitialReferencesInFullSnapshot), |
thread) { |
- isolate()->set_compilation_allowed(instructions_buffer_ == NULL); |
+ isolate()->set_compilation_allowed(kind != Snapshot::kAppNoJIT); |
ASSERT(Snapshot::IsFull(kind)); |
} |
@@ -2188,23 +2188,6 @@ void FullSnapshotWriter::WriteFullSnapshot() { |
} |
-PrecompiledSnapshotWriter::PrecompiledSnapshotWriter( |
- uint8_t** vm_isolate_snapshot_buffer, |
- uint8_t** isolate_snapshot_buffer, |
- ReAlloc alloc, |
- InstructionsWriter* instructions_writer) |
- : FullSnapshotWriter(Snapshot::kAppNoJIT, |
- vm_isolate_snapshot_buffer, |
- isolate_snapshot_buffer, |
- alloc, |
- instructions_writer, |
- false /* vm_isolate_is_symbolic */) { |
-} |
- |
- |
-PrecompiledSnapshotWriter::~PrecompiledSnapshotWriter() {} |
- |
- |
ForwardList::ForwardList(Thread* thread, intptr_t first_object_id) |
: thread_(thread), |
first_object_id_(first_object_id), |