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

Method create_sized_stack_slot

cranelift/codegen/src/ir/function.rs:240–242  ·  view source on GitHub ↗

Creates a sized stack slot in the function, to be used by `stack_load`, `stack_store` and `stack_addr` instructions.

(&mut self, data: StackSlotData)

Source from the content-addressed store, hash-verified

238 /// Creates a sized stack slot in the function, to be used by `stack_load`, `stack_store`
239 /// and `stack_addr` instructions.
240 pub fn create_sized_stack_slot(&mut self, data: StackSlotData) -> StackSlot {
241 self.sized_stack_slots.push(data)
242 }
243
244 /// Creates a dynamic stack slot in the function, to be used by `dynamic_stack_load`,
245 /// `dynamic_stack_store` and `dynamic_stack_addr` instructions.

Callers 2

basicFunction · 0.45
stack_slotFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 2

basicFunction · 0.36
stack_slotFunction · 0.36