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

Fix table idx resolving in op call_indirect/return_call_indirect #3726

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

wenyongh
Copy link
Contributor

The table index in the call_indirect/return_call_indirect opcode should be
one byte 0x00 when ref-types/GC isn't enabled, and should be treated as
leb u32 when ref-types/GC is enabled.

And make aot compiler bail out if ref-types/GC is disabled by command line
argument while ref-types instructions are used.

@wenyongh wenyongh changed the title Fix table idx resolving for opcode call_indirect/return_call_indirect Fix table idx resolving in op call_indirect/return_call_indirect Aug 16, 2024
Copy link
Collaborator

@lum1n0us lum1n0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenyongh wenyongh merged commit 97c95a2 into bytecodealliance:main Aug 19, 2024
387 checks passed
@wenyongh wenyongh deleted the fix_call_indirec_tblidx branch August 22, 2024 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants