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

Function function

cranelift/interpreter/src/frame.rs:119–121  ·  view source on GitHub ↗

Helper to create a function from CLIF IR.

(code: &str)

Source from the content-addressed store, hash-verified

117
118 /// Helper to create a function from CLIF IR.
119 fn function(code: &str) -> Function {
120 parse_functions(code).unwrap().into_iter().next().unwrap()
121 }
122
123 /// Build an empty function with a single return.
124 fn empty_function() -> Function {

Callers 7

assignment_and_retrievalFunction · 0.85
invalid_assignmentFunction · 0.85
renameFunction · 0.85
wasmMethod · 0.85

Calls 4

parse_functionsFunction · 0.85
unwrapMethod · 0.45
nextMethod · 0.45
into_iterMethod · 0.45

Tested by 2

assignment_and_retrievalFunction · 0.68