Stream: git-wasmtime

Topic: wasmtime / PR #4247 Backport #4239 (to_amode fix) to rele...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2022 at 20:47):

cfallin opened PR #4247 from backport-4239-release-0.38 to release-0.38.0:

This is a cherry-pick of "x64 backend: fix to_amode with constant address (no registers). (#4239)"

If an address expression is given to to_amode that is completely
constant (no registers at all), then it will produce an Amode that has
the resulting constant as an offset, and (invalid_reg) as the base.
This is a side-effect of the way we build up the amode step-by-step --
we're waiting to see a register and plug it into the base field. If we
never get a reg though, we need to generate a constant zero into a
register and use that as the base. This PR adds a finalize_amode
helper to do just that.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2022 at 20:47):

cfallin requested alexcrichton for a review on PR #4247.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2022 at 20:48):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2022 at 22:18):

cfallin merged PR #4247.


Last updated: Nov 22 2024 at 17:03 UTC