Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: fd124818fa58bc8e5a9be06c03c1e29ad2564ddd https://github.com/WebKit/WebKit/commit/fd124818fa58bc8e5a9be06c03c1e29ad2564ddd Author: Asumu Takikawa <as...@igalia.com> Date: 2023-11-20 (Mon, 20 Nov 2023)
Changed paths: M JSTests/wasm/function-references/local_init.js M JSTests/wasm/function-references/ref_types.js M JSTests/wasm/gc/any.js M JSTests/wasm/gc/arrays.js M JSTests/wasm/gc/casts.js M JSTests/wasm/gc/const-exprs.js M JSTests/wasm/gc/i31.js M JSTests/wasm/gc/rec.js M JSTests/wasm/gc/structs.js M JSTests/wasm/gc/sub.js M Source/JavaScriptCore/wasm/WasmFormat.h M Source/JavaScriptCore/wasm/WasmFunctionParser.h Log Message: ----------- [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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes