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

Method set

cranelift/interpreter/src/frame.rs:69–73  ·  view source on GitHub ↗
(&mut self, name: ValueRef, value: DataValue)

Source from the content-addressed store, hash-verified

67 /// Assign `value` to the SSA reference `name`.
68 #[inline]
69 pub fn set(&mut self, name: ValueRef, value: DataValue) -> Option<DataValue> {
70 assert!(name.index() < self.registers.len());
71 trace!("Set {name} -> {value}");
72 std::mem::replace(&mut self.registers[name.index()], Some(value))
73 }
74
75 /// Assign to multiple SSA references; see `set`.
76 pub fn set_all(&mut self, names: &[ValueRef], values: Vec<DataValue>) {

Callers 15

build_host_isaFunction · 0.45
compile_testfileFunction · 0.45
update_atMethod · 0.45
callMethod · 0.45
set_allMethod · 0.45
assignment_and_retrievalFunction · 0.45
invalid_assignmentFunction · 0.45
add_constantMethod · 0.45
parse_target_specsMethod · 0.45
parse_instructionMethod · 0.45
parse_optionFunction · 0.45

Calls 2

replaceFunction · 0.50
indexMethod · 0.45

Tested by 8

build_host_isaFunction · 0.36
compile_testfileFunction · 0.36
assignment_and_retrievalFunction · 0.36
parse_optionFunction · 0.36
isaFunction · 0.36
module_forFunction · 0.36