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

Method clear

cranelift/codegen/src/ir/jumptable.rs:82–84  ·  view source on GitHub ↗

Clears all entries in this jump table, except for the default block.

(&mut self)

Source from the content-addressed store, hash-verified

80
81 /// Clears all entries in this jump table, except for the default block.
82 pub fn clear(&mut self) {
83 self.table.drain(1..);
84 }
85
86 /// Return a value that can display the contents of this jump table.
87 pub fn display<'a>(&'a self, pool: &'a ValueListPool) -> DisplayJumpTable<'a> {

Callers

nothing calls this directly

Calls 1

drainMethod · 0.45

Tested by

no test coverage detected