MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / get

Method get

crates/tinywasm/src/interpreter/stack/value_stack.rs:66–71  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

64
65 #[inline(always)]
66 pub(crate) fn get(&self, index: usize) -> &T {
67 self.data.get(index).unwrap_or_else(|| {
68 cold_path();
69 unreachable!("Stack index out of bounds, this is a bug");
70 })
71 }
72
73 #[inline(always)]
74 pub(crate) fn set(&mut self, index: usize, value: T) {

Callers 5

execMethod · 0.45
exec_branch_tableMethod · 0.45
exec_call_indirectMethod · 0.45
exec_memory_initMethod · 0.45
exec_table_initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected