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

Method verify_func_ref

cranelift/codegen/src/verifier/mod.rs:796–811  ·  view source on GitHub ↗
(
        &self,
        inst: Inst,
        f: FuncRef,
        errors: &mut VerifierErrors,
    )

Source from the content-addressed store, hash-verified

794 }
795
796 fn verify_func_ref(
797 &self,
798 inst: Inst,
799 f: FuncRef,
800 errors: &mut VerifierErrors,
801 ) -> VerifierStepResult {
802 if !self.func.dfg.ext_funcs.is_valid(f) {
803 errors.nonfatal((
804 inst,
805 self.context(inst),
806 format!("invalid function reference {f}"),
807 ))
808 } else {
809 Ok(())
810 }
811 }
812
813 fn verify_stack_slot(
814 &self,

Callers 1

Calls 4

OkFunction · 0.85
nonfatalMethod · 0.80
is_validMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected