alexcrichton opened PR #2115 from expose-module-linking-types
to main
:
This commit adds lots of plumbing to get the type section from the
module linking proposal plumbed all the way through to thewasmtime
crate and thewasmtime-c-api
crate. This isn't all that useful right
now because Wasmtime doesn't support imported/exported
modules/instances, but this is all necessary groundwork to getting that
exported at some point. I've added some light tests but I suspect the
bulk of the testing will come in a future commit.One major change in this commit is that
SignatureIndex
no longer
follows type type index space in a wasm module. Instead a new
TypeIndex
type is used to track that. Function signatures, still
indexed bySignatureIndex
, are then packed together tightly.
alexcrichton updated PR #2115 from expose-module-linking-types
to main
:
This commit adds lots of plumbing to get the type section from the
module linking proposal plumbed all the way through to thewasmtime
crate and thewasmtime-c-api
crate. This isn't all that useful right
now because Wasmtime doesn't support imported/exported
modules/instances, but this is all necessary groundwork to getting that
exported at some point. I've added some light tests but I suspect the
bulk of the testing will come in a future commit.One major change in this commit is that
SignatureIndex
no longer
follows type type index space in a wasm module. Instead a new
TypeIndex
type is used to track that. Function signatures, still
indexed bySignatureIndex
, are then packed together tightly.
alexcrichton updated PR #2115 from expose-module-linking-types
to main
:
This commit adds lots of plumbing to get the type section from the
module linking proposal plumbed all the way through to thewasmtime
crate and thewasmtime-c-api
crate. This isn't all that useful right
now because Wasmtime doesn't support imported/exported
modules/instances, but this is all necessary groundwork to getting that
exported at some point. I've added some light tests but I suspect the
bulk of the testing will come in a future commit.One major change in this commit is that
SignatureIndex
no longer
follows type type index space in a wasm module. Instead a new
TypeIndex
type is used to track that. Function signatures, still
indexed bySignatureIndex
, are then packed together tightly.
alexcrichton updated PR #2115 from expose-module-linking-types
to main
:
This commit adds lots of plumbing to get the type section from the
module linking proposal plumbed all the way through to thewasmtime
crate and thewasmtime-c-api
crate. This isn't all that useful right
now because Wasmtime doesn't support imported/exported
modules/instances, but this is all necessary groundwork to getting that
exported at some point. I've added some light tests but I suspect the
bulk of the testing will come in a future commit.One major change in this commit is that
SignatureIndex
no longer
follows type type index space in a wasm module. Instead a new
TypeIndex
type is used to track that. Function signatures, still
indexed bySignatureIndex
, are then packed together tightly.
fitzgen submitted PR Review.
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
Was the
allow(missing_docs)
intended to be temporary while getting something up and running?
fitzgen created PR Review Comment:
Commented out code?
Also, is getting the
ty
so perf sensitive that we have to use potentially-UB-inducingunreachable_unchecked
over regularunreachable
?
fitzgen created PR Review Comment:
ditto
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
I guess this is going into an FFI language boundary... Did the auto-abort on unwind across FFI stuff re-merge? If so, then we should use
unreachable!()
, if not then we should abort ourselves I think.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Oh I figured the docs wouldn't really go much beyond what the code already says here, but I can add some strings.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Oh this was copied from the other types in the C API, but I think it makes more sense to just add this back in as necessary later on.
Also yeah I doubt that
unreachable_unchecked
is really worth it here, and anunreachable!()
should be fine.
alexcrichton updated PR #2115 from expose-module-linking-types
to main
:
This commit adds lots of plumbing to get the type section from the
module linking proposal plumbed all the way through to thewasmtime
crate and thewasmtime-c-api
crate. This isn't all that useful right
now because Wasmtime doesn't support imported/exported
modules/instances, but this is all necessary groundwork to getting that
exported at some point. I've added some light tests but I suspect the
bulk of the testing will come in a future commit.One major change in this commit is that
SignatureIndex
no longer
follows type type index space in a wasm module. Instead a new
TypeIndex
type is used to track that. Function signatures, still
indexed bySignatureIndex
, are then packed together tightly.
alexcrichton merged PR #2115.
Last updated: Dec 23 2024 at 12:05 UTC