chore: cherry-pick 3fdedec45691 from v8 #44977
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merged: [wasm] Remove relative type indexes from canonical types
Those relative types were leaking from the type canonicalizer, which
leads to type confusion in callers.
This CL fully removes the concept of relative type indexes (and thus
removes the
CanonicalRelativeField
bit from the bitfield inValueTypeBase
). During canonicalization we pass the start and end ofthe recursion group into hashing and equality checking, and use this to
compute relative indexes within the recursion group on demand. The
stored version will always have absolute indexes though.
R=jkummerow@chromium.org
Bug: 379009132
(cherry picked from commit 20d9a7f760c018183c836283017a321638b66810)
Change-Id: I9bee6b37b9da36684f8c5b2866725eac79c896ad
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6049645
Commit-Queue: Clemens Backes clemensb@chromium.org
Reviewed-by: Jakob Kummerow jkummerow@chromium.org
Cr-Commit-Position: refs/branch-heads/13.2@{#22}
Cr-Branched-From: 24068c59cedad9ee976ddc05431f5f497b1ebd71-refs/heads/13.2.152@{#1}
Cr-Branched-From: 6054ba94db0969220be4f94dc1677fc4696bdc4f-refs/heads/main@{#97085}
Notes: Backported fix for 379009132.