-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement fast-path validation of MVP types (#1930)
* Add a benchmark for validating with older features Benchmark the "fast path" in type interning. * Reimplement fast-path validation of MVP types This commit fixes an issue from #1906 which is preventing the upgrade of wasm-tools in Wasmtime. That commit implemented a fast path by skipping a function and reimplementing parts of it internally, but that then caused Wasmtime to panic when other data structures weren't filled out. The intention was that the user-facing interface doesn't change depending on features, so this is an attempt at fixing the mistake in that commit. The fix here is to remove the fast path added and restructure it differently. Instead now the fast and normal paths have much less divergence which should prevent this issue from re-surfacing. This is 15% slower than `main` but it doesn't have the same bug as `main` so for now that may be the best that can be done. * Fix dead code warning
- Loading branch information
1 parent
95a3882
commit f51bdbb
Showing
9 changed files
with
166 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters