Bug 222779

Summary: [WASM-Function-References] Update ref.func to produce (ref $t)
Product: WebKit Reporter: Dmitry <dbezhetskov>
Component: WebAssemblyAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 247393    
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Description Dmitry 2021-03-04 22:05:48 PST
[WASM-Function-References] Update ref.func to produce (ref $t)
Comment 1 Dmitry 2021-03-04 22:11:28 PST
Created attachment 422337 [details]
Patch
Comment 2 EWS Watchlist 2021-03-04 22:12:29 PST
This patch modifies one of the wasm.json files. Please ensure that any changes in one have been mirrored to the other. You can find the wasm.json files at "Source/JavaScriptCore/wasm/wasm.json" and "JSTests/wasm/wasm.json".
Comment 3 Yusuke Suzuki 2021-03-05 00:52:19 PST
Comment on attachment 422337 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=422337&action=review

r=me with comments.

> Source/JavaScriptCore/wasm/generateWasmOpsHeader.py:217
> +    uint64_t index;

Use SignatureIndex instead.
Comment 4 Dmitry 2021-03-05 01:12:11 PST
Using SignatureIndex will create a cycle dependency:
WasmSignature.h includes WasmOps.h that includes WasmSignature.h

But I did the "forward declaration" of SignatureIndex in WasmOps.h so this should work well.
Comment 5 Dmitry 2021-03-05 01:14:30 PST
Created attachment 422348 [details]
Patch
Comment 6 Dmitry 2021-03-05 01:58:27 PST
Created attachment 422354 [details]
Patch
Comment 7 Dmitry 2021-03-05 02:31:42 PST
Created attachment 422358 [details]
Patch
Comment 8 Yusuke Suzuki 2021-03-05 03:45:00 PST
Comment on attachment 422358 [details]
Patch

r=me
Comment 9 EWS 2021-03-05 04:16:54 PST
Committed r273962: <https://commits.webkit.org/r273962>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 422358 [details].
Comment 10 Radar WebKit Bug Importer 2021-03-05 04:17:18 PST
<rdar://problem/75089479>