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

Function create_stack_slots

cranelift/codegen/src/inline.rs:1553–1564  ·  view source on GitHub ↗

Copy stack slots from the callee into the caller.

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

Source from the content-addressed store, hash-verified

1551
1552/// Copy stack slots from the callee into the caller.
1553fn create_stack_slots(func: &mut ir::Function, callee: &ir::Function) -> u32 {
1554 let offset = func.sized_stack_slots.len();
1555 let offset = u32::try_from(offset).unwrap();
1556
1557 func.sized_stack_slots
1558 .reserve(callee.sized_stack_slots.len());
1559 for slot in callee.sized_stack_slots.values() {
1560 func.sized_stack_slots.push(slot.clone());
1561 }
1562
1563 offset
1564}
1565
1566/// Copy dynamic types from the callee into the caller.
1567fn create_dynamic_types(

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