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

Method mark_var_needs_stack_map

cranelift/frontend/src/ssa.rs:223–231  ·  view source on GitHub ↗

Mark `var` as needing its bindings tracked for stack maps.

(&mut self, var: Variable)

Source from the content-addressed store, hash-verified

221
222 /// Mark `var` as needing its bindings tracked for stack maps.
223 pub fn mark_var_needs_stack_map(&mut self, var: Variable) {
224 debug_assert!(
225 self.variables[var].values().all(|v| v.is_none()),
226 "declare_var_needs_stack_map({var:?}) must be called before any \
227 definition of the variable; otherwise earlier definitions are \
228 silently omitted from stack maps"
229 );
230 self.stack_map_vars.insert(var);
231 }
232
233 /// SSA values that must be included in stack maps.
234 pub fn stack_map_values(&self) -> &EntitySet<Value> {

Callers 1

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected