-
Notifications
You must be signed in to change notification settings - Fork 266
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
Complete bulk memory operations proposal #511
Conversation
ok now intepreter passes bulk.wast spectest on my local machine.. other spectests are conflated with ref type proposal (notablely multi tables) so I will defer the complete spec test compatibility test to the ref type proposal impl later. I think that's enough for us to land this. will do the JIT impl and backfill unittests tomorrow |
13db89e
to
e63cf3e
Compare
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
e63cf3e
to
5de256d
Compare
bulkMemoryOperationsWasm []byte | ||
// tableCopyWasm was compiled from testdata/table_copy.wat | ||
//go:embed testdata/table_copy.wasm | ||
tableCopyWasm []byte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: these are derived from https://github.com/WebAssembly/spec/blob/9b4d86fbcd3309c3365c8430a4ac5ef2126c43a8/test/core/bulk.wast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Epic. please in the PR description add a summary of anything interesting you found that others should know about. A brain dump in concise form may come in handy later!
internal/integration_test/post1_0/bulk-memory-operations/testdata/elem_drop.wat
Show resolved
Hide resolved
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
ok resolved all comments! merging! |
This commit implements the rest of unimplemented instructions in the
bulk-memory-operations proposal.
Notably, this adds support for
table.init
,table.copy
andelem.drop
instructions toggled by FeatureBulkMemoryOperations.
Given that, now wazero has the complete support for bulk-memory-operations
proposal as described in https://github.com/WebAssembly/spec/blob/main/proposals/bulk-memory-operations/Overview.md
fixes #321