[snapshot] Avoid second checksum after off-thread deserialize
Add a SerializedCodeData constructor which skips all sanity checks aside from the source hash check, to be used after off-thread deserialization (which does these other checks already). In particular, this skips doing the checksum again, which would otherwise require a second walk over the serialized data. This requires saving the off-thread sanity check result (in the case of a failure), since it is no longer recomputed. Change-Id: I664c309c9cb8dca94a74b4293c84ceb353f37ed4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3240402 Commit-Queue: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/main@{#77537}
Showing
Please
register
or
sign in
to comment