Searched refs:hello_func (Results 1 – 6 of 6) sorted by relevance
| /wasmtime-44.0.1/examples/ |
| H A D | threads.cc | 52 Func hello_func = Func::wrap(store, []() { in run_worker() local 57 auto instance_res = Instance::create(store, module, {hello_func}); in run_worker() 78 Func hello_func = Func::wrap(store, []() { in run_worker() local 83 Instance instance = Instance::create(store, module, {hello_func}).unwrap(); in run_worker()
|
| H A D | hello.rs | 40 let hello_func = Func::wrap(&mut store, |mut caller: Caller<'_, MyState>| { in main() localVariable 50 let imports = [hello_func.into()]; in main()
|
| H A D | serialize.rs | 41 let hello_func = Func::wrap(&mut store, || { in deserialize() localVariable 50 let imports = [hello_func.into()]; in deserialize()
|
| H A D | serialize.cc | 56 Func hello_func = Func::wrap(store, []() { in deserialize() local 62 Instance instance = Instance::create(store, module, {hello_func}).unwrap(); in deserialize()
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | coredump.rs | 21 let hello_func = Func::new(&mut store, hello_type, |_, _, _| bail!("test 123")); in coredump_attached_to_error() localVariable 23 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in coredump_attached_to_error()
|
| H A D | traps.rs | 24 let hello_func = Func::new(&mut store, hello_type, |_, _, _| bail!("test 123")); in test_trap_return() localVariable 26 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in test_trap_return() 52 let hello_func = Func::new(&mut store, hello_type, |_, _, _| { in test_format_err_error_return() localVariable 56 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in test_format_err_error_return() 89 let hello_func = Func::new(&mut store, hello_type, |_, _, _| { in test_trap_return_downcast() localVariable 93 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in test_trap_return_downcast()
|