Searched refs:call_hook (Results 1 – 13 of 13) sorted by relevance
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | call_hook.rs | 4 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 D | call_hook.rs | 13 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 D | main.rs | 7 mod call_hook; module
|
| H A D | component_model.rs | 14 mod call_hook; module
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | store.rs | 247 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 D | func.rs | 1450 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 D | profiling.rs | 220 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 D | async_.rs | 88 self.inner.call_hook = Some(crate::store::CallHookInner::Async(Box::new(hook))); in call_hook_async()
|
| /wasmtime-44.0.1/benches/ |
| H A D | call.rs | 121 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 D | host.rs | 351 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 D | serve.rs | 946 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 D | run.rs | 629 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 D | Cargo.toml | 355 # Enables support for the `Store::call_hook` API which enables injecting custom
|