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

Method verify_sig_ref

cranelift/codegen/src/verifier/mod.rs:779–794  ·  view source on GitHub ↗
(
        &self,
        inst: Inst,
        s: SigRef,
        errors: &mut VerifierErrors,
    )

Source from the content-addressed store, hash-verified

777 }
778
779 fn verify_sig_ref(
780 &self,
781 inst: Inst,
782 s: SigRef,
783 errors: &mut VerifierErrors,
784 ) -> VerifierStepResult {
785 if !self.func.dfg.signatures.is_valid(s) {
786 errors.fatal((
787 inst,
788 self.context(inst),
789 format!("invalid signature reference {s}"),
790 ))
791 } else {
792 Ok(())
793 }
794 }
795
796 fn verify_func_ref(
797 &self,

Callers 2

Calls 4

OkFunction · 0.85
fatalMethod · 0.80
is_validMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected