Home
last modified time | relevance | path

Searched refs:call_hook (Results 1 – 13 of 13) sorted by relevance

/wasmtime-44.0.1/tests/all/component_model/
H A Dcall_hook.rs4 use crate::call_hook::{Context, State, sync_call_hook};
52 store.call_hook(sync_call_hook); in call_wrapped_func()
114 store.call_hook(sync_call_hook); in call_func_with_realloc()
162 store.call_hook(sync_call_hook); in call_func_with_post_return()
226 store.call_hook(sync_call_hook); in call_wrapped_async_func()
312 store.call_hook(sync_call_hook); in trapping()
/wasmtime-44.0.1/tests/all/
H A Dcall_hook.rs13 store.call_hook(sync_call_hook); in call_wrapped_func()
121 store.call_hook(sync_call_hook); in call_wrapped_async_func()
176 store.call_hook(sync_call_hook); in call_linked_func()
242 store.call_hook(sync_call_hook); in call_linked_func_async()
312 store.call_hook(sync_call_hook); in instantiate()
331 store.call_hook(sync_call_hook); in instantiate_async()
352 store.call_hook(sync_call_hook); in recursion()
471 store.call_hook(sync_call_hook); in trapping()
850 fn call_hook(&mut self, s: CallHook) -> Result<()> { in call_hook() method
898 ctx.data_mut().call_hook(transition) in sync_call_hook()
H A Dmain.rs7 mod call_hook; module
H A Dcomponent_model.rs14 mod call_hook; module
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dstore.rs247 call_hook: Option<CallHookInner<T>>, field
785 call_hook: None, in try_new()
985 pub fn call_hook( in call_hook() method
989 self.inner.call_hook = Some(CallHookInner::Sync(Box::new(hook))); in call_hook()
1511 pub fn call_hook(&mut self, s: CallHook) -> Result<()> { in call_hook() method
1512 if self.inner.pkey.is_none() && self.call_hook.is_none() { in call_hook()
1532 if let Some(mut call_hook) = self.call_hook.take() { in call_hook_slow_path()
1533 let result = self.invoke_call_hook(&mut call_hook, s); in call_hook_slow_path()
1534 self.call_hook = Some(call_hook); in call_hook_slow_path()
1541 fn invoke_call_hook(&mut self, call_hook: &mut CallHookInner<T>, s: CallHook) -> Result<()> { in invoke_call_hook()
[all …]
H A Dfunc.rs1450 if let Err(trap) = store.0.call_hook(CallHook::CallingWasm) { in invoke_wasm_and_catch_traps()
1460 store.0.call_hook(CallHook::ReturningFromWasm)?; in invoke_wasm_and_catch_traps()
2349 store.0.call_hook(CallHook::CallingHost)?; in array_call_trampoline()
2390 store.0.call_hook(CallHook::ReturningFromHost)?; in array_call_trampoline()
H A Dprofiling.rs220 pub fn call_hook(&mut self, store: impl AsContext, kind: CallHook) { in call_hook() method
/wasmtime-44.0.1/crates/wasmtime/src/runtime/store/
H A Dasync_.rs88 self.inner.call_hook = Some(crate::store::CallHookInner::Async(Box::new(hook))); in call_hook_async()
/wasmtime-44.0.1/benches/
H A Dcall.rs121 store.call_hook(|_, _| Ok(())); in host_to_wasm()
262 store.call_hook(|_, _| Ok(())); in wasm_to_host()
606 store.call_hook(|_, _| Ok(())); in host_to_wasm()
751 store.call_hook(|_, _| Ok(())); in wasm_to_host()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/
H A Dhost.rs351 store.0.call_hook(CallHook::CallingHost)?; in cabi_entrypoint()
353 store.0.call_hook(CallHook::ReturningFromHost)?; in cabi_entrypoint()
/wasmtime-44.0.1/src/commands/
H A Dserve.rs946 store.call_hook(|store, kind| { in setup_guest_profiler()
947 sample(store, |profiler, store| profiler.call_hook(store, kind)); in setup_guest_profiler()
H A Drun.rs629 store.call_hook(|store, kind| { in setup_guest_profiler()
630 sample(store, |profiler, store| profiler.call_hook(store, kind)); in setup_guest_profiler()
/wasmtime-44.0.1/crates/wasmtime/
H A DCargo.toml355 # Enables support for the `Store::call_hook` API which enables injecting custom