wasmtime: Initial, partial support for externref
This is enough to get an `externref -> externref` identity function passing. However, `externref`s that are dropped by compiled Wasm code are (safely) leaked. Follow up work will leverage cranelift's stack maps to resolve this issue.
This commit is contained in:
@@ -93,7 +93,7 @@ impl<'data> RawCompiledModule<'data> {
|
||||
.local
|
||||
.signatures
|
||||
.values()
|
||||
.map(|sig| signature_registry.register(sig))
|
||||
.map(|(wasm, native)| signature_registry.register(wasm.clone(), native.clone()))
|
||||
.collect::<PrimaryMap<_, _>>()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user