Stream: git-wasmtime

Topic: wasmtime / PR #1882 wasmtime-runtime: Allow tables to int...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 18:41):

fitzgen opened PR #1882 from tables-can-hold-externref to master:

This commit enables wasmtime_runtime::Table to internally hold elements of
either funcref (all that is currently supported) or externref (newly
introduced in this commit).

This commit updates Table's API, but does NOT generally propagate those
changes outwards all the way through the Wasmtime embedding API. It only does
enough to get everything compiling and the current test suite passing. It is
expected that as we implement more of the reference types spec, we will bubble
these changes out and expose them to the embedding API.

cc #929

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 18:41):

fitzgen requested yurydelendik for a review on PR #1882.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 21:55):

alexcrichton merged PR #1882.

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

yurydelendik submitted PR Review.

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

yurydelendik created PR Review Comment:

We are exposing Option<VMExternRef> elements to the CL or other low level compiler. It is hard to guess what type of binary representation we will be dealing with here. For comparison, I see #[repr(C)] near VMCallerCheckedAnyfunc.

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

yurydelendik submitted PR Review.

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

fitzgen submitted PR Review.

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

fitzgen created PR Review Comment:

VMExternRef is repr(transparent) around a NonNull which is repr(transparent) around a pointer. Additionally, Option<NonNull<...>> is guaranteed to have the same representation as a pointer. So we should be good as far as binary representation goes.


Last updated: Dec 23 2024 at 12:05 UTC