Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JSC] SIMD wasm functions should throw TypeError when it is called fr…
…om JS https://bugs.webkit.org/show_bug.cgi?id=248866 Reviewed by Alexey Shvayka. This patch fixes the following two issues related to V128 in JS functions. 1. WebAssemblyWrapperFunction wrapping imported host functions should also throw TypeError when its signature includes V128. 2. WebAssemblyFunction should throw TypeError when V128 is included in return-type too. Previously we are only checking argument types. * JSTests/wasm/v8/regress/regress-9447.js: * Source/JavaScriptCore/wasm/WasmTypeDefinition.cpp: (JSC::Wasm::TypeInformation::TypeInformation): (JSC::Wasm::FunctionParameterTypes::translate): * Source/JavaScriptCore/wasm/WasmTypeDefinition.h: (JSC::Wasm::FunctionSignature::FunctionSignature): (JSC::Wasm::FunctionSignature::argumentsOrResultsIncludeV128 const): (JSC::Wasm::FunctionSignature::setArgumentsOrResultsIncludeV128): * Source/JavaScriptCore/wasm/js/WebAssemblyFunction.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): * Source/JavaScriptCore/wasm/js/WebAssemblyWrapperFunction.cpp: (JSC::WebAssemblyWrapperFunction::create): (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/257494@main
- Loading branch information
1 parent
e9b7bb9
commit ba93223590c879faa09eddc5733531adcdc30df0
Showing
5 changed files
with
31 additions
and
9 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