Stream: git-wasmtime

Topic: wasmtime / PR #4206 Add trampoline compilation support fo...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 01 2022 at 21:58):

alexcrichton opened PR #4206 from component-trampolines to main:

This commit adds support to the component model implementation for
compiling trampolines suitable for calling host imports. Currently this
is purely just the compilation side of things, modifying the
wasmtime-cranelift crate and additionally filling out a new
VMComponentOffsets type (similar to VMOffsets). The actual creation
of a VMComponentContext is still not performed and will be a
subsequent PR.

Internally though some tests are actually possible with this where we at
least assert that compilation of a component and creation of everything
in-memory doesn't panic or trip any assertions, so some tests are added
here for that as well.

<!--

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 01 2022 at 21:58):

alexcrichton requested fitzgen for a review on PR #4206.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 12:51):

alexcrichton updated PR #4206 from component-trampolines to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 21:12):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 21:12):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 21:12):

fitzgen created PR review comment:

Aside: should this be VMStringEncoding since we pass it to JIT code?

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 21:12):

fitzgen created PR review comment:

I guess the same goes for ValRaw, although this is relatively long-standing at this point.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2022 at 15:00):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2022 at 15:00):

alexcrichton created PR review comment:

Hm perhaps yeah, although this is defined in wasmtime-environ which doesn't have VM* things in general. I did leave documentation there explaining the repr(u8) as well, so I think I'll leave this as-is to avoid too many definitions of the same thing, but we can always tweak in the future of course.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2022 at 15:01):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2022 at 15:01):

alexcrichton created PR review comment:

True yeah, although I sort of just invented the ValRaw name as it was the raw version of wasmtime::Val. We don't otherwise export VM* types to the outside world which wasmtime::ValRaw is, though. One way to solve this perhaps would be a struct ValRaw(VMValRaw) or similar, but I'm not sure if it's worth it per se.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2022 at 15:01):

alexcrichton merged PR #4206.


Last updated: Dec 23 2024 at 12:05 UTC