unc_vm_compiler/trap.rs
1use crate::CodeOffset;
2use unc_vm_vm::TrapCode;
3
4/// Information about trap.
5#[derive(rkyv::Serialize, rkyv::Deserialize, rkyv::Archive, Clone, Debug, PartialEq, Eq)]
6pub struct TrapInformation {
7 /// The offset of the trapping instruction in native code. It is relative to the beginning of the function.
8 pub code_offset: CodeOffset,
9 /// Code of the trap.
10 pub trap_code: TrapCode,
11}