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

Method clear

cranelift/codegen/src/ir/constant.rs:209–212  ·  view source on GitHub ↗

Empty the constant pool of all data.

(&mut self)

Source from the content-addressed store, hash-verified

207
208 /// Empty the constant pool of all data.
209 pub fn clear(&mut self) {
210 self.handles_to_values.clear();
211 self.values_to_handles.clear();
212 }
213
214 /// Insert constant data into the pool, returning a handle for later referencing; when constant
215 /// data is inserted that is a duplicate of previous constant data, the existing handle will be

Callers 1

clearFunction · 0.45

Calls

no outgoing calls

Tested by 1

clearFunction · 0.36