Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the case of wasmGC, the encoding of the ref is incorrect. such as test/dump/typed_func_refds_params #2393

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/dump/typed_func_refs_params.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
; func type 1
0000010: 60 ; func
0000011: 03 ; num params
0000012: 6b ; (ref 0)
0000012: 64 ; (ref 0)
0000013: 00 ; (ref 0)
0000014: 7d ; f32
0000015: 7d ; f32
Expand Down
10 changes: 5 additions & 5 deletions test/dump/typed_func_refs_results.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
; func type 1
0000010: 60 ; func
0000011: 03 ; num params
0000012: 6b ; (ref 0)
0000012: 64 ; (ref 0)
0000013: 00 ; (ref 0)
0000014: 6b ; (ref 0)
0000014: 64 ; (ref 0)
0000015: 00 ; (ref 0)
0000016: 7f ; i32
0000017: 01 ; num results
0000018: 6b ; (ref 0)
0000018: 64 ; (ref 0)
0000019: 00 ; (ref 0)
; func type 2
000001a: 60 ; func
Expand Down Expand Up @@ -114,7 +114,7 @@
000003f: 01 ; i32 literal
0000040: 46 ; i32.eq
0000041: 04 ; if
0000042: 6b ; (ref 0)
0000042: 64 ; (ref 0)
0000043: 00 ; (ref 0)
0000044: 20 ; local.get
0000045: 00 ; local index
Expand Down Expand Up @@ -172,7 +172,7 @@ Code Disassembly:
00003c: 20 02 | local.get 2
00003e: 41 01 | i32.const 1
000040: 46 | i32.eq
000041: 04 6b 00 | if (ref 0)
000041: 04 64 00 | if (ref 0)
000044: 20 00 | local.get 0
000046: 05 | else
000047: 20 01 | local.get 1
Expand Down
Loading