From 55b69039c954b49cb98f90c30d58187b9741f545 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Fri, 26 Jan 2024 23:34:30 +0100 Subject: perf: improve hot interpreter loop Signed-off-by: Henry Gressmann --- benches/selfhosted.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benches') diff --git a/benches/selfhosted.rs b/benches/selfhosted.rs index 700e3f6..78ea48b 100644 --- a/benches/selfhosted.rs +++ b/benches/selfhosted.rs @@ -9,7 +9,7 @@ fn run_tinywasm(module: TinyWasmModule) { let mut store = Store::default(); let mut imports = Imports::default(); imports.define("env", "printi32", Extern::typed_func(|_: FuncContext<'_>, _: i32| Ok(()))).expect("define"); - let instance = module.instantiate(&mut store, Some(imports)).expect("instantiate"); + let instance = ModuleInstance::instantiate(&mut store, module, Some(imports)).expect("instantiate"); let hello = instance.exported_func::<(), ()>(&mut store, "hello").expect("exported_func"); hello.call(&mut store, ()).expect("call"); } -- cgit v1.3.1