Lines Matching refs:Box

29 ) -> Option<Box<wasm_trap_t>>;
35 ) -> Option<Box<wasm_trap_t>>;
56 func: impl Fn(*const wasm_val_vec_t, *mut wasm_val_vec_t) -> Option<Box<wasm_trap_t>> in create_function()
60 ) -> Box<wasm_func_t> { in create_function()
85 Box::new(wasm_func_t { in create_function()
98 ) -> Box<wasm_func_t> { in wasm_func_new()
109 ) -> Box<wasm_func_t> { in wasm_func_new_with_env()
160 Ok(Err(err)) => Box::into_raw(Box::new(wasm_trap_t::new(err))), in wasm_func_call()
163 let trap = Box::new(wasm_trap_t::new(err)); in wasm_func_call()
164 Box::into_raw(trap) in wasm_func_call()
169 fn error_from_panic(panic: Box<dyn Any + Send>) -> Error { in error_from_panic()
180 pub unsafe extern "C" fn wasm_func_type(f: &wasm_func_t) -> Box<wasm_functype_t> { in wasm_func_type()
181 Box::new(wasm_functype_t::new(f.func().ty(f.ext.store.context()))) in wasm_func_type()
230 ) -> Option<Box<wasm_trap_t>>;
237 ) -> Option<Box<wasm_trap_t>>;
353 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_func_call()
384 *trap_ret = Box::into_raw(Box::new(wasm_trap_t::new(err))); in wasmtime_func_call()
397 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_func_call_unchecked()
405 fn store_err(err: Error, trap_ret: &mut *mut wasm_trap_t) -> Option<Box<wasmtime_error_t>> { in store_err()
407 *trap_ret = Box::into_raw(Box::new(wasm_trap_t::new(err))); in store_err()
410 Some(Box::new(wasmtime_error_t::from(err))) in store_err()
418 ) -> Box<wasm_functype_t> { in wasmtime_func_type()
419 Box::new(wasm_functype_t::new(func.ty(store))) in wasmtime_func_type()