9759 {
9761
9762 Serializer serializer(thread(), kind_, isolate_snapshot_data_,
9763 isolate_image_writer_, false, profile_writer_);
9764 serializer.set_loading_units(units);
9765 serializer.set_current_loading_unit_id(unit->id());
9766
9767 serializer.ReserveHeader();
9768 serializer.WriteVersionAndFeatures(false);
9769 serializer.Write(program_hash);
9770
9771 UnitSerializationRoots
roots(unit);
9772 unit->set_objects(serializer.Serialize(&
roots));
9773
9774 serializer.FillHeader(serializer.kind());
9775 clustered_isolate_size_ = serializer.bytes_written();
9776
9779 isolate_image_writer_->
Write(serializer.stream(),
false);
9780#if defined(DART_PRECOMPILER)
9782#endif
9783
9784 mapped_data_size_ += isolate_image_writer_->
data_size();
9785 mapped_text_size_ += isolate_image_writer_->
text_size();
9788 }
9789
9790
9791 isolate_snapshot_size_ = serializer.bytes_written();
9792}
void Write(NonStreamingWriteStream *clustered_stream, bool vm)
void SetProfileWriter(V8SnapshotProfileWriter *profile_writer)
void ClearProfileWriter()
intptr_t text_size() const
intptr_t data_size() const
static bool IncludesCode(Kind kind)
#define TIMELINE_DURATION(thread, stream, name)