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

Method finalize

winch/codegen/src/isa/x64/asm.rs:330–335  ·  view source on GitHub ↗

Return the emitted code.

(mut self, loc: Option<SourceLoc>)

Source from the content-addressed store, hash-verified

328
329 /// Return the emitted code.
330 pub fn finalize(mut self, loc: Option<SourceLoc>) -> MachBufferFinalized<Final> {
331 let stencil = self
332 .buffer
333 .finish(&self.pool.constants(), self.emit_state.ctrl_plane_mut());
334 stencil.apply_base_srcloc(loc.unwrap_or_default())
335 }
336
337 fn emit(&mut self, inst: Inst) {
338 inst.emit(&mut self.buffer, &self.emit_info, &mut self.emit_state);

Callers 1

compile_functionMethod · 0.45

Calls 7

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

Tested by

no test coverage detected