summaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-26 23:34:30 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-26 23:34:30 +0100
commit55b69039c954b49cb98f90c30d58187b9741f545 (patch)
tree7d19c89b9f40e96bdb9847d6aa659cb123b0e3ca /benches
parent893e72e93d1739ffa6b9d945a4f1e0ec525f782f (diff)
perf: improve hot interpreter loop
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'benches')
-rw-r--r--benches/selfhosted.rs2
1 files changed, 1 insertions, 1 deletions
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");
}