-
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-Function-References] Improve type printing for reference types
https://bugs.webkit.org/show_bug.cgi?id=247746 Reviewed by Justin Michaud. Print reftypes when typed funcrefs are enabled in (ref null? kind) format where `kind` is either a heap type (e.g., `i31`, `struct`) or a concrete type index (e.g., `<struct:0>`, `<func:3>`). This printing is only used for validation errors for now, as it relies on being able to access the ModuleInformation. * JSTests/wasm/function-references/local_init.js: (async testLocalInit): * JSTests/wasm/function-references/ref_types.js: (async testNonNullExternrefIncompatible): (async testNonNullFuncrefIncompatible): * JSTests/wasm/gc/any.js: (testValidation): (testNullfuncref): (testNullexternref): * JSTests/wasm/gc/arrays.js: (testArrayDeclaration): * JSTests/wasm/gc/casts.js: (testFunctionCasts): (testEqCasts): * JSTests/wasm/gc/const-exprs.js: (async testInvalidConstExprs): * JSTests/wasm/gc/i31.js: (testI31Get): * JSTests/wasm/gc/rec.js: (testRecDeclaration): * JSTests/wasm/gc/structs.js: (testStructDeclaration): * JSTests/wasm/gc/sub.js: (testSubDeclaration): * Source/JavaScriptCore/wasm/WasmFormat.h: (JSC::Wasm::heapTypeKindAsString): * Source/JavaScriptCore/wasm/WasmFunctionParser.h: (JSC::Wasm::FunctionParser::validationFail const): (JSC::Wasm::FunctionParser::validationFailHelper const): (JSC::Wasm::FunctionParser::typeToStringModuleRelative const): Canonical link: https://commits.webkit.org/270988@main
- Loading branch information
Showing
12 changed files
with
104 additions
and
30 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
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