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

Function create_sig_refs

cranelift/codegen/src/inline.rs:1490–1500  ·  view source on GitHub ↗

Copy `ir::SigRef`s from the callee into the caller.

(func: &mut ir::Function, callee: &ir::Function)

Source from the content-addressed store, hash-verified

1488
1489/// Copy `ir::SigRef`s from the callee into the caller.
1490fn create_sig_refs(func: &mut ir::Function, callee: &ir::Function) -> u32 {
1491 let offset = func.dfg.signatures.len();
1492 let offset = u32::try_from(offset).unwrap();
1493
1494 func.dfg.signatures.reserve(callee.dfg.signatures.len());
1495 for sig in callee.dfg.signatures.values() {
1496 func.dfg.signatures.push(sig.clone());
1497 }
1498
1499 offset
1500}
1501
1502fn create_user_external_name_refs(
1503 allocs: &mut InliningAllocs,

Callers 1

create_entitiesFunction · 0.85

Calls 6

lenMethod · 0.45
unwrapMethod · 0.45
reserveMethod · 0.45
valuesMethod · 0.45
pushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected