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

Add support for ref.test instruction #2529

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoodmane
Copy link

@hoodmane hoodmane commented Jan 13, 2025

Work in progress. This makes wasm2wat and wat2wasm able to support the ref.test instruction. Also, it doesn't implement the grammar for the absheaptype correctly:
https://webassembly.github.io/gc/core/text/types.html#text-absheaptype
so it won't work on the test file third_party/testsuite/proposals/gc/ref_test.wast. But the code this emits runs as expected in the browser.

@hoodmane hoodmane force-pushed the ref-test branch 2 times, most recently from e083bbe to bcb1b72 Compare January 13, 2025 12:41
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.

1 participant