bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
15.08k stars 1.26k forks source link

Function references unresolved issues #6455

Closed dhil closed 6 months ago

dhil commented 1 year ago

PR #5288 implements the function references proposal modulo a few missing bits. The missing bits are:

At the time of writing the implementation does not take advantage of the static non-null safety to elide null checks when executing call_ref: https://github.com/bytecodealliance/wasmtime/blob/36e9f7e577df11de14f5973308c4b4bd0565eed9/crates/cranelift/src/func_environ.rs#L1744-L1762

fitzgen commented 6 months ago

I've finished support for function references over in https://github.com/bytecodealliance/wasmtime/pull/7943