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

LibWasm: Improve table support #24492

Merged
merged 1 commit into from
Jun 1, 2024
Merged

LibWasm: Improve table support #24492

merged 1 commit into from
Jun 1, 2024

Conversation

dzfrias
Copy link
Contributor

@dzfrias dzfrias commented May 31, 2024

Implements table.get, table.set, elem.drop, table.size, and table.grow. Also fixes a few issues when generating ref-related spectests. Also changes the TableInstance type to use Vector<Reference> instead of Vector<Optional<Reference>>, because the ability to be null is already encoded in the Reference type.

This makes a few hundred more spectests pass!

@dzfrias dzfrias requested a review from alimpfard as a code owner May 31, 2024 02:13
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 31, 2024
@dzfrias
Copy link
Contributor Author

dzfrias commented May 31, 2024

Ok, should be ready to merge now! table.js now fully passes!

Implements `table.get`, `table.set`, `elem.drop`, `table.size`,
and `table.grow`. Also fixes a few issues when generating ref-related
spectests. Also changes the `TableInstance` type to use
`Vector<Reference>` instead of `Vector<Optional<Reference>>`, because
the ability to be null is already encoded in the `Reference` type.
@alimpfard alimpfard merged commit d906255 into SerenityOS:master Jun 1, 2024
11 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Jun 1, 2024
@dzfrias dzfrias deleted the wasm-better-tables branch June 1, 2024 19:59
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