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

Method check_sig

cranelift/reader/src/parser.rs:365–371  ·  view source on GitHub ↗

Resolve a reference to a signature.

(&self, sig: SigRef, loc: Location)

Source from the content-addressed store, hash-verified

363
364 // Resolve a reference to a signature.
365 fn check_sig(&self, sig: SigRef, loc: Location) -> ParseResult<()> {
366 if !self.map.contains_sig(sig) {
367 err!(loc, "undefined signature {}", sig)
368 } else {
369 Ok(())
370 }
371 }
372
373 // Allocate a new external function.
374 fn add_fn(&mut self, fn_: FuncRef, data: ExtFuncData, loc: Location) -> ParseResult<()> {

Callers 2

parse_function_declMethod · 0.80
parse_inst_operandsMethod · 0.80

Calls 2

OkFunction · 0.85
contains_sigMethod · 0.80

Tested by

no test coverage detected