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

Method apply_params

cranelift/codegen/src/machinst/mod.rs:611–619  ·  view source on GitHub ↗

Apply function parameters to finalize a stencil into its final form.

(self, params: &FunctionParameters)

Source from the content-addressed store, hash-verified

609impl CompiledCodeStencil {
610 /// Apply function parameters to finalize a stencil into its final form.
611 pub fn apply_params(self, params: &FunctionParameters) -> CompiledCode {
612 CompiledCode {
613 buffer: self.buffer.apply_base_srcloc(params.base_srcloc()),
614 vcode: self.vcode,
615 value_labels_ranges: self.value_labels_ranges,
616 bb_starts: self.bb_starts,
617 bb_edges: self.bb_edges,
618 }
619 }
620}
621
622impl<T: CompilePhase> CompiledCodeBase<T> {

Callers 3

compile_with_cacheMethod · 0.80
try_finish_recompileFunction · 0.80
compileMethod · 0.80

Calls 2

apply_base_srclocMethod · 0.80
base_srclocMethod · 0.80

Tested by

no test coverage detected