MCPcopy Index your code
hub / github.com/endbasic/endbasic / get_reg

Method get_reg

core/src/vm/context.rs:232–235  ·  view source on GitHub ↗

Gets the value of register `reg`. Panics if the register is invalid.

(&self, reg: Register)

Source from the content-addressed store, hash-verified

230 ///
231 /// Panics if the register is invalid.
232 fn get_reg(&self, reg: Register) -> u64 {
233 let index = self.reg_index(reg);
234 self.regs.get(index).copied().unwrap_or(0)
235 }
236
237 /// Sets the value of register `reg` to `value`.
238 ///

Callers 15

deref_stringMethod · 0.80
resolve_array_indexMethod · 0.80
do_binary_double_opMethod · 0.80
do_binary_integer_opMethod · 0.80
do_binary_boolean_opMethod · 0.80
do_alloc_arrayMethod · 0.80
do_bitwise_notMethod · 0.80
do_double_to_integerMethod · 0.80
do_endMethod · 0.80
do_integer_to_doubleMethod · 0.80

Calls 2

reg_indexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected