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

Method register_constants

cranelift/codegen/src/machinst/buffer.rs:660–664  ·  view source on GitHub ↗

Registers metadata in this `MachBuffer` about the `constants` provided. This will record the size/alignment of all constants which will prepare them for emission later on.

(&mut self, constants: &VCodeConstants)

Source from the content-addressed store, hash-verified

658 /// This will record the size/alignment of all constants which will prepare
659 /// them for emission later on.
660 pub fn register_constants(&mut self, constants: &VCodeConstants) {
661 for (c, val) in constants.iter() {
662 self.register_constant(&c, val);
663 }
664 }
665
666 /// Similar to [`MachBuffer::register_constants`] but registers a
667 /// single constant metadata. This function is useful in

Callers 3

emitMethod · 0.80

Calls 2

register_constantMethod · 0.80
iterMethod · 0.45

Tested by 2