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

Method add_user_stack_map

cranelift/codegen/src/machinst/vcode.rs:594–602  ·  view source on GitHub ↗

Add a user stack map for the associated instruction.

(
        &mut self,
        inst: BackwardsInsnIndex,
        entries: &[ir::UserStackMapEntry],
    )

Source from the content-addressed store, hash-verified

592
593 /// Add a user stack map for the associated instruction.
594 pub fn add_user_stack_map(
595 &mut self,
596 inst: BackwardsInsnIndex,
597 entries: &[ir::UserStackMapEntry],
598 ) {
599 let stack_map = ir::UserStackMap::new(entries, self.vcode.abi.sized_stackslot_offsets());
600 let old_entry = self.vcode.user_stack_maps.insert(inst, stack_map);
601 debug_assert!(old_entry.is_none());
602 }
603
604 /// Add debug tags for the associated instruction.
605 pub fn add_debug_tags(&mut self, inst: BackwardsInsnIndex, entries: &[ir::DebugTag]) {

Callers 2

lower_clif_blockMethod · 0.80
lowerMethod · 0.80

Calls 3

newFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected