pub struct CompiledFunction {
pub name: String,
pub code: Vec<u8>,
pub wasm_ops: Vec<WasmOp>,
pub relocations: Vec<CodeRelocation>,
pub line_map: LineMap,
}Expand description
A single compiled function
Fields§
§name: StringFunction name (from WASM export or generated)
code: Vec<u8>Raw machine code bytes
wasm_ops: Vec<WasmOp>Original WASM ops (retained for verification)
relocations: Vec<CodeRelocation>Relocations for external symbol references (BL to bridge functions)
line_map: LineMapVCR-DBG-001: per-instruction source map for DWARF .debug_line emission —
(machine_offset_within_code, wasm_op_index) captured at encode time, one
entry per emitted machine instruction. A None op-index marks an
instruction with no originating wasm op (prologue/epilogue, literal-pool
word). This is purely additive metadata: it is never serialized unless
.debug_line emission is requested, so the emitted .text is
byte-identical with or without it. Empty for backends/paths that do not
yet produce a source map (RISC-V, the optimized ARM path).
Trait Implementations§
Source§impl Clone for CompiledFunction
impl Clone for CompiledFunction
Source§fn clone(&self) -> CompiledFunction
fn clone(&self) -> CompiledFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledFunction
impl RefUnwindSafe for CompiledFunction
impl Send for CompiledFunction
impl Sync for CompiledFunction
impl Unpin for CompiledFunction
impl UnsafeUnpin for CompiledFunction
impl UnwindSafe for CompiledFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more