927c59104f
Fixes the case where the Image name and type was not written to the v8 snapshot profile in non-precompiled mode. Adds core-jit snapshot tests to the v8 snapshot profile writer test. In core-jit and app-aot-elf modes, verify that all bytes in the snapshot sections are accounted for in the profile. Bug: https://github.com/dart-lang/sdk/issues/45787 TEST=vm/dart{,_2}/v8_snapshot_profile_writer_test Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-linux-debug-x64-try Change-Id: I88be309cdea6293d768e2fa458492387d70fde22 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196323 Commit-Queue: Tess Strickland <sstrickl@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>