Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler] Add temporary merge validation code
It looks like we have crashes caused by compiling functions whose scripts have an empty string as the source. The most likely reason for this is a bad merge with an existing isolate-cached script after streaming script compilation (streamed scripts have their source set to empty string until finalization). If there is a merge, we would expect all merged SFIs that end up in the output to point to the old script (with source), not the new script (without source). This includes SFIs referenced via bytecode constant pools (for closure creation). Add some temporary verification code for debugging cases where this doesn't hold. Bug: 355575275 Change-Id: Id42198ad15b8126da1feae6af29d5beedbef2b66 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/ /5766375 Auto-Submit: Leszek Swirski <[email protected]> Reviewed-by: Patrick Thier <[email protected]> Commit-Queue: Leszek Swirski <[email protected]> Cr-Commit-Position: refs/heads/main@{#95517}
- Loading branch information