Lines Matching refs:engine
11 let engine = Engine::new(&config)?; in call_exported_func() localVariable
13 &engine, in call_exported_func()
28 let engine = Engine::new(&config)?; in call_exported_func() localVariable
30 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in call_exported_func()
31 let linker = Linker::<()>::new(&engine); in call_exported_func()
35 let mut store = Store::try_new(&engine, ())?; in call_exported_func()
49 let engine = Engine::new(&config)?; in instance_new() localVariable
51 &engine, in instance_new()
59 let engine = Engine::new(&config)?; in instance_new() localVariable
60 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_new()
63 let mut store = Store::try_new(&engine, ())?; in instance_new()
75 let engine = Engine::new(&config)?; in instance_get_export() localVariable
76 Module::new(&engine, "(module (func (export \"f\")))")?.serialize()? in instance_get_export()
81 let engine = Engine::new(&config)?; in instance_get_export() localVariable
82 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_get_export()
83 let linker = Linker::<()>::new(&engine); in instance_get_export()
87 let mut store = Store::try_new(&engine, ())?; in instance_get_export()
99 let engine = Engine::new(&config)?; in instance_exports() localVariable
101 &engine, in instance_exports()
109 let engine = Engine::new(&config)?; in instance_exports() localVariable
110 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_exports()
111 let linker = Linker::<()>::new(&engine); in instance_exports()
115 let mut store = Store::try_new(&engine, ())?; in instance_exports()
128 let engine = Engine::new(&config)?; in instance_get_func() localVariable
130 &engine, in instance_get_func()
138 let engine = Engine::new(&config)?; in instance_get_func() localVariable
139 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_get_func()
140 let linker = Linker::<()>::new(&engine); in instance_get_func()
144 let mut store = Store::try_new(&engine, ())?; in instance_get_func()
157 let engine = Engine::new(&config)?; in instance_get_typed_func() localVariable
159 &engine, in instance_get_typed_func()
167 let engine = Engine::new(&config)?; in instance_get_typed_func() localVariable
168 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_get_typed_func()
169 let linker = Linker::<()>::new(&engine); in instance_get_typed_func()
173 let mut store = Store::try_new(&engine, ())?; in instance_get_typed_func()
185 let engine = Engine::new(&config)?; in instance_get_table() localVariable
186 Module::new(&engine, "(module (table (export \"t\") 1 funcref))")?.serialize()? in instance_get_table()
191 let engine = Engine::new(&config)?; in instance_get_table() localVariable
192 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_get_table()
193 let linker = Linker::<()>::new(&engine); in instance_get_table()
197 let mut store = Store::try_new(&engine, ())?; in instance_get_table()
210 let engine = Engine::new(&config)?; in instance_get_memory() localVariable
211 Module::new(&engine, "(module (memory (export \"m\") 1))")?.serialize()? in instance_get_memory()
216 let engine = Engine::new(&config)?; in instance_get_memory() localVariable
217 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_get_memory()
218 let linker = Linker::<()>::new(&engine); in instance_get_memory()
222 let mut store = Store::try_new(&engine, ())?; in instance_get_memory()
235 let engine = Engine::new(&config)?; in instance_get_global() localVariable
237 &engine, in instance_get_global()
245 let engine = Engine::new(&config)?; in instance_get_global() localVariable
246 let module = unsafe { Module::deserialize(&engine, &module_bytes)? }; in instance_get_global()
247 let linker = Linker::<()>::new(&engine); in instance_get_global()
251 let mut store = Store::try_new(&engine, ())?; in instance_get_global()