-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wasm element segment vector items should allow more constant expressions
https://bugs.webkit.org/show_bug.cgi?id=260542 Reviewed by Justin Michaud. This patch enables the test cases in the extended constant expression proposal spec tests that were blocked by the item limitation. It also fixes a bug uncovered by these tests, which is that the function table initialization path for global/constant expression cases needs to be handled explicitly. The spec test tests the global.get case. The constant expression case is difficult to test in practice, because currently you can only get a function result from a constant expression via ref.null, ref.func, and global.get which are all fast-path special cases and avoid the full constant expression parsing. * JSTests/wasm/extended-const-spec-tests/elem.wast.js: * Source/JavaScriptCore/wasm/WasmInstance.cpp: (JSC::Wasm::Instance::initElementSegment): Canonical link: https://commits.webkit.org/273002@main
- Loading branch information
Showing
2 changed files
with
23 additions
and
14 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