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

Method function

crates/cranelift/src/debug.rs:168–175  ·  view source on GitHub ↗

Returns the symbol and metadata associated with a specific function.

(
        &self,
        module: StaticModuleIndex,
        func: DefinedFuncIndex,
    )

Source from the content-addressed store, hash-verified

166
167 /// Returns the symbol and metadata associated with a specific function.
168 fn function(
169 &self,
170 module: StaticModuleIndex,
171 func: DefinedFuncIndex,
172 ) -> (usize, &'a CompiledFunctionMetadata) {
173 let (sym, func) = (self.get_func)(module, func);
174 (self.symbol_id_to_index[&sym].0, func)
175 }
176
177 /// Maps a `usize`-based symbol used by gimli to the object-based
178 /// `SymbolId`.

Callers 6

functionsMethod · 0.45
function_frame_infoMethod · 0.45
clone_unitFunction · 0.45
generate_simulated_dwarfFunction · 0.45
build_function_addr_mapFunction · 0.45
newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected