MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / finalize

Method finalize

winch/codegen/src/isa/aarch64/asm.rs:128–133  ·  view source on GitHub ↗

Return the emitted code.

(mut self, loc: Option<SourceLoc>)

Source from the content-addressed store, hash-verified

126impl Assembler {
127 /// Return the emitted code.
128 pub fn finalize(mut self, loc: Option<SourceLoc>) -> MachBufferFinalized<Final> {
129 let stencil = self
130 .buffer
131 .finish(&self.pool.constants(), self.emit_state.ctrl_plane_mut());
132 stencil.apply_base_srcloc(loc.unwrap_or_default())
133 }
134
135 fn emit(&mut self, inst: Inst) {
136 self.emit_with_island(inst, Inst::worst_case_size());

Callers 1

compile_functionMethod · 0.45

Calls 6

apply_base_srclocMethod · 0.80
finishMethod · 0.45
constantsMethod · 0.45
ctrl_plane_mutMethod · 0.45
patchMethod · 0.45
copy_from_sliceMethod · 0.45

Tested by

no test coverage detected