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

Method verify_dynamic_stack_slot

cranelift/codegen/src/verifier/mod.rs:826–841  ·  view source on GitHub ↗
(
        &self,
        inst: Inst,
        ss: DynamicStackSlot,
        errors: &mut VerifierErrors,
    )

Source from the content-addressed store, hash-verified

824 }
825
826 fn verify_dynamic_stack_slot(
827 &self,
828 inst: Inst,
829 ss: DynamicStackSlot,
830 errors: &mut VerifierErrors,
831 ) -> VerifierStepResult {
832 if !self.func.dynamic_stack_slots.is_valid(ss) {
833 errors.nonfatal((
834 inst,
835 self.context(inst),
836 format!("invalid dynamic stack slot {ss}"),
837 ))
838 } else {
839 Ok(())
840 }
841 }
842
843 fn verify_global_value(
844 &self,

Callers 1

Calls 4

OkFunction · 0.85
nonfatalMethod · 0.80
is_validMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected