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

Method set_all

cranelift/interpreter/src/frame.rs:76–81  ·  view source on GitHub ↗

Assign to multiple SSA references; see `set`.

(&mut self, names: &[ValueRef], values: Vec<DataValue>)

Source from the content-addressed store, hash-verified

74
75 /// Assign to multiple SSA references; see `set`.
76 pub fn set_all(&mut self, names: &[ValueRef], values: Vec<DataValue>) {
77 assert_eq!(names.len(), values.len());
78 for (n, v) in names.iter().zip(values) {
79 self.set(*n, v);
80 }
81 }
82
83 /// Rename all of the SSA references in `old_names` to those in `new_names`. This will remove
84 /// any old references that are not in `old_names`. TODO This performs an extra allocation that

Callers 5

callMethod · 0.80
blockMethod · 0.80
renameFunction · 0.80

Calls 2

iterMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected