| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/unix/ |
| H A D | signals.rs | 164 handler(signum, siginfo, context) in trap_handler() 182 TrapTest::Trap(handler) => { in trap_handler() 348 cx.uc_mcontext.pc = handler.pc as _; in store_handler_in_ucontext() 349 cx.uc_mcontext.sp = handler.sp as _; in store_handler_in_ucontext() 363 cx.__ss.__rip = handler.pc as _; in store_handler_in_ucontext() 373 cx.__ss.__pc = handler.pc as _; in store_handler_in_ucontext() 374 cx.__ss.__sp = handler.sp as _; in store_handler_in_ucontext() 375 cx.__ss.__fp = handler.fp as _; in store_handler_in_ucontext() 395 cx.sc_rip = handler.pc as _; in store_handler_in_ucontext() 396 cx.sc_rbp = handler.fp as _; in store_handler_in_ucontext() [all …]
|
| H A D | machports.rs | 103 let mut handler: libc::sigaction = mem::zeroed(); in new() localVariable 104 handler.sa_flags = libc::SA_SIGINFO | libc::SA_ONSTACK; in new() 105 handler.sa_sigaction = (sigbus_handler as *const ()).addr(); in new() 106 libc::sigemptyset(&mut handler.sa_mask); in new() 107 if libc::sigaction(libc::SIGBUS, &handler, &raw mut PREV_SIGBUS) != 0 { in new() 460 let handler = tls::with(|state| { in unwind() localVariable 472 handler.resume_tailcc(0, 0); in unwind()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/windows/ |
| H A D | vectored_exceptions.rs | 234 match info.test_if_trap(regs, faulting_addr, |handler| handler(exception_info)) { in exception_handler() 237 TrapTest::Trap(handler) => { in exception_handler() 239 LAST_EXCEPTION_PC.with(|s| s.set(handler.pc)); in exception_handler() 242 context.Rip = handler.pc as _; in exception_handler() 243 context.Rbp = handler.fp as _; in exception_handler() 244 context.Rsp = handler.sp as _; in exception_handler() 248 context.Pc = handler.pc as _; in exception_handler() 249 context.Sp = handler.sp as _; in exception_handler() 250 context.Anonymous.Anonymous.Fp = handler.fp as _; in exception_handler()
|
| /wasmtime-44.0.1/crates/wasi-http/src/ |
| H A D | handler.rs | 229 handler: ProxyHandler<S>, field 241 self.handler.0.worker_count.fetch_add(1, Relaxed); in set_available() 254 self.handler.start_worker(None, None); in set_available() 262 self.handler.0.state.handle_worker_error(error); in run() 301 let handler = &self.handler.0; in run_() localVariable 306 } = handler.state.new_store(req_id)?; in run_() 308 let request_timeout = handler.state.request_timeout(); in run_() 312 handler.state.max_instance_concurrent_reuse_count(); in run_() 353 let handler = self.handler.clone(); in run_() localVariable 370 handler.0.task_queue.pop() in run_() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | windows.rs | 26 unsafe fn set_signal_handler<H>(&mut self, handler: H) in set_signal_handler() 33 unsafe fn set_signal_handler<H>(&mut self, handler: H) in set_signal_handler() 39 .set_signal_handler(Some(Box::new(handler))); in set_signal_handler()
|
| H A D | unix.rs | 24 unsafe fn set_signal_handler<H>(&mut self, handler: H) in set_signal_handler() 34 unsafe fn set_signal_handler<H>(&mut self, handler: H) in set_signal_handler() 43 .set_signal_handler(Some(Box::new(handler))); in set_signal_handler()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | throw.rs | 61 for handler in handlers { in compute_handler() 63 let is_match = match handler.tag { in compute_handler() 71 handler in compute_handler() 114 + usize::try_from(handler.handler_offset) in compute_handler()
|
| H A D | interpreter.rs | 438 handler: &Handler, in resume_to_exception_handler() 446 vm[XReg::sp].set_ptr(core::ptr::with_exposed_provenance_mut::<u8>(handler.sp)); in resume_to_exception_handler() 447 vm.set_fp(core::ptr::with_exposed_provenance_mut(handler.fp)); in resume_to_exception_handler() 451 self.vm_state().resume_at_pc = Some(handler.pc); in resume_to_exception_handler() 462 let handler = tls::with(|s| { in trap() localVariable 491 TrapTest::Trap(handler) => handler, in trap() 497 self.resume_to_exception_handler(&handler, 0, 0); in trap()
|
| H A D | traphandlers.rs | 782 let handler = unsafe { compute_handler(store) }; in record_unwind() localVariable 783 match handler { in record_unwind() 784 Some(handler) => UnwindState::UnwindToWasm(handler), in record_unwind() 913 let handler = self.entry_trap_handler(); in unwind() localVariable 919 &handler, in unwind() 926 UnwindState::UnwindToWasm(handler) => { in unwind() 941 &handler, in unwind() 966 handler: &Handler, in resume_to_exception_handler() 973 r.resume_to_exception_handler(handler, payload1, payload2) in resume_to_exception_handler() 1032 if let Some(handler) = self.signal_handler { in test_if_trap() [all …]
|
| /wasmtime-44.0.1/tests/disas/ |
| H A D | pulley-entry-trampoline.wat | 18 ;; ╰─╼ exception handler: default handler, no dynamic context, handler=0x40
|
| H A D | x64-entry-trampoline.wat | 25 ;; ╰─╼ exception handler: default handler, no dynamic context, handler=0x71
|
| H A D | s390x-entry-trampoline.wat | 29 ;; ╰─╼ exception handler: default handler, no dynamic context, handler=0xbe
|
| H A D | aarch64-entry-trampoline.wat | 30 ;; ╰─╼ exception handler: default handler, no dynamic context, handler=0x94
|
| H A D | riscv64-entry-trampoline.wat | 47 ;; ╰─╼ exception handler: default handler, no dynamic context, handler=0x12c
|
| /wasmtime-44.0.1/pulley/src/interp/ |
| H A D | tail_loop.rs | 94 let handler = OPCODE_HANDLER_TABLE[opcode as usize]; in dispatch() localVariable 95 tail_call!(handler(debug.0.state, debug.0.pc, debug.0.executing_pc)); in dispatch() 106 let handler = EXTENDED_OPCODE_HANDLER_TABLE[opcode as usize]; in run_extended() localVariable 107 tail_call!(handler(i.0.state, i.0.pc, i.0.executing_pc)); in run_extended()
|
| /wasmtime-44.0.1/crates/unwinder/src/ |
| H A D | throw.rs | 75 ControlFlow::Break(handler) => Some(handler), in find()
|
| H A D | exception_table.rs | 145 for handler in call_site.exception_handlers { in add_func() 146 match handler { in add_func() 388 .map(|((tag, context), handler)| { in handlers_for_callsite() 391 let handler = handler.get(LittleEndian); in handlers_for_callsite() localVariable 395 handler_offset: handler, in handlers_for_callsite()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/ |
| H A D | traphandlers.rs | 41 TrapTest::Trap(handler) => unsafe { handler.resume_tailcc(0, 0) }, in handle_trap()
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | debug.rs | 638 let (handler, counter) = D::new_and_counter(); in uncaught_exception_events() 639 store.set_debug_handler(handler); in uncaught_exception_events() 692 store.set_debug_handler(handler); in caught_exception_events() 735 store.set_debug_handler(handler); in hostcall_trap_events() 774 store.set_debug_handler(handler); in hostcall_error_events() 827 store.set_debug_handler(handler); in breakpoint_events() 896 store.set_debug_handler(handler); in breakpoint_events() 918 store.set_debug_handler(handler); in breakpoint_events() 965 store.set_debug_handler(handler); in breakpoints_in_inlined_code() 1019 store.set_debug_handler(handler); in epoch_events() [all …]
|
| /wasmtime-44.0.1/crates/unwinder/ |
| H A D | README.md | 11 been invoked from Wasmcode, can find a handler; and a "resume" stub 13 handler.
|
| /wasmtime-44.0.1/tests/disas/gc/ |
| H A D | issue-11753.wat | 59 ;; ╰─╼ exception handler: default handler, context at [SP+0x8], handler=0x86
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p3_http_middleware.rs | 9 handler, 21 "wasi:http/[email protected]": test_programs::p3::wasi::http::handler, 41 impl exports::wasi::http::handler::Guest for Component { 123 let response = handler::handle(my_request).await?; in handle()
|
| H A D | p3_cli_serve_sleep.rs | 9 impl service::exports::wasi::http::handler::Guest for T {
|
| /wasmtime-44.0.1/crates/wasi-http/src/p3/host/ |
| H A D | mod.rs | 1 mod handler; module
|
| /wasmtime-44.0.1/examples/min-platform/embedding/src/ |
| H A D | panic.rs | 6 fn handler(_info: &PanicInfo) -> ! { in handler() function
|