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

Function from

cranelift/interpreter/src/environment.rs:99–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98 #[test]
99 fn from() {
100 let name = UserFuncName::testcase("test");
101 let signature = Signature::new(CallConv::Fast);
102 let func = &Function::with_name_signature(name, signature);
103 let env: FunctionStore = func.into();
104 assert_eq!(env.index_of("%test"), Some(FuncIndex::from_u32(0)));
105 }
106}

Callers 15

from_sliceMethod · 0.85
nopFunction · 0.85
fromMethod · 0.85
switch_to_blockMethod · 0.85
emit_small_memsetMethod · 0.85
def_varMethod · 0.85
use_var_nonlocalMethod · 0.85
find_varMethod · 0.85
seal_one_blockMethod · 0.85
convertMethod · 0.85
stepFunction · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected