Stream: git-wasmtime

Topic: wasmtime / PR #7721 winch: Add memory instructions


view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera opened PR #7721 from saulecabrera:winch-memory-instructions to bytecodealliance:main:

This commit adds support for the following memory instructions to winch:

In general the implementation is similar to what other instructions via builtins are handled (e.g. table instructions), which involve stack manipulation prior to emitting a builtin function call, with the exception of memory.size, which involves loading the current length from the VMContext pointer.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested alexcrichton for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested wasmtime-fuzz-reviewers for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested abrown for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested wasmtime-compiler-reviewers for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested wasmtime-core-reviewers for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested wasmtime-default-reviewers for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 21 2023 at 22:47):

saulecabrera requested fitzgen for a review on PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 22 2023 at 01:03):

github-actions[bot] commented on PR #7721:

Subscribe to Label Action

cc @fitzgen, @saulecabrera

<details>
This issue or pull request has been labeled: "fuzzing", "winch"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Dec 22 2023 at 14:02):

saulecabrera updated PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 02 2024 at 15:48):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 02 2024 at 15:48):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 02 2024 at 15:48):

alexcrichton created PR review comment:

Given that the page size is a power-of-two could this be hardcoded as a right-shift instead of a division?

view this post on Zulip Wasmtime GitHub notifications bot (Jan 03 2024 at 13:47):

saulecabrera updated PR #7721.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 03 2024 at 13:48):

saulecabrera submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 03 2024 at 13:48):

saulecabrera created PR review comment:

Indeed, fixed! Thanks for the suggestion, using a shift should also help with register pressure (at least for x64).

view this post on Zulip Wasmtime GitHub notifications bot (Jan 03 2024 at 14:34):

saulecabrera merged PR #7721.


Last updated: Nov 22 2024 at 16:03 UTC