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

Method get_function

cranelift/interpreter/src/interpreter.rs:241–244  ·  view source on GitHub ↗
(&self, func_ref: FuncRef)

Source from the content-addressed store, hash-verified

239
240impl<'a> State<'a> for InterpreterState<'a> {
241 fn get_function(&self, func_ref: FuncRef) -> Option<&'a Function> {
242 self.functions
243 .get_from_func_ref(func_ref, self.frame_stack.last().unwrap().function())
244 }
245 fn get_current_function(&self) -> &'a Function {
246 self.current_frame().function()
247 }

Callers 1

stepFunction · 0.80

Calls 4

get_from_func_refMethod · 0.80
functionMethod · 0.45
unwrapMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected