wasmfx / wasmfxtime

A fork of wasmtime (a fast and secure runtime for WebAssembly) supporting the WasmFX instruction set
https://wasmfx.dev/
Apache License 2.0
19 stars 1 forks source link

Linking tags #215

Closed dhil closed 2 months ago

dhil commented 2 months ago

This patch implements support for importing and exporting tags in the virtual machine. As a consequence tags are now unique to their origin instance, meaning that two different instantiations of the same module yields distinct tags.

The runtime representation of a tag has changed from an u32 to a usize (or native pointer). The identity of a tag is given by its address in the vmcontext.

Resolves https://github.com/wasmfx/wasmfxtime/issues/25.

dhil commented 2 months ago

I haven't implemented the proper runtime representation of tags in the baseline implementation yet. I am planning to defer that to a separate patch.