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

Method lifted_core_func

crates/wasmtime/src/runtime/component/func.rs:364–374  ·  view source on GitHub ↗
(&self, store: &mut StoreOpaque)

Source from the content-addressed store, hash-verified

362 }
363
364 pub(crate) fn lifted_core_func(&self, store: &mut StoreOpaque) -> NonNull<VMFuncRef> {
365 let def = {
366 let instance = self.instance.id().get(store);
367 let (_ty, def, _options) = instance.component().export_lifted_function(self.index);
368 def.clone()
369 };
370 match self.instance.lookup_vmdef(store, &def) {
371 Export::Function(f) => f.vm_func_ref(store),
372 _ => unreachable!(),
373 }
374 }
375
376 pub(crate) fn post_return_core_func(&self, store: &StoreOpaque) -> Option<NonNull<VMFuncRef>> {
377 let instance = self.instance.id().get(store);

Callers 2

call_rawMethod · 0.80
queue_call0Function · 0.80

Calls 7

lookup_vmdefMethod · 0.80
vm_func_refMethod · 0.80
getMethod · 0.45
idMethod · 0.45
componentMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected