alexcrichton opened PR #13407 from alexcrichton:refactor-table-copy to bytecodealliance:main:
This commit is the dual of https://github.com/bytecodealliance/wasmtime/pull/13382 but for tables. The goal here is to
move the copying operation into WebAssembly to enable fuel/epoch
checking during larger copies (https://github.com/bytecodealliance/wasmtime/issues/13387). This additionally enables
removing quite a lot of library code to implement this in the host.
Finally, most of the code to do this was already implemented for
compilation, so much of this PR focuses on refactoring all of that to
reuse all of the existing logic in a way that table support "falls out
by default".Note: the first commit here comes from #13394 for now.
alexcrichton requested cfallin for a review on PR #13407.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #13407.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13407.
github-actions[bot] added the label cranelift on PR #13407.
github-actions[bot] added the label wasmtime:api on PR #13407.
github-actions[bot] added the label wasmtime:ref-types on PR #13407.
github-actions[bot] commented on PR #13407:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "wasmtime:api", "wasmtime:ref-types"Thus the following users have been cc'd because of the following labels:
- fitzgen: wasmtime:ref-types
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:thumbs_up: fitzgen submitted PR review:
Looks great!
alexcrichton updated PR #13407.
alexcrichton has enabled auto merge for PR #13407.
alexcrichton added PR #13407 Move table.copy implementation to compiled code to the merge queue.
github-merge-queue[bot] removed PR #13407 Move table.copy implementation to compiled code from the merge queue.
alexcrichton updated PR #13407.
alexcrichton has enabled auto merge for PR #13407.
alexcrichton added PR #13407 Move table.copy implementation to compiled code to the merge queue.
:check: alexcrichton merged PR #13407.
alexcrichton removed PR #13407 Move table.copy implementation to compiled code from the merge queue.
Last updated: Jun 01 2026 at 09:49 UTC