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

Method exec_table_size

crates/tinywasm/src/interpreter/executor.rs:1489–1492  ·  view source on GitHub ↗
(&mut self, table_index: u32)

Source from the content-addressed store, hash-verified

1487 }
1488
1489 fn exec_table_size(&mut self, table_index: u32) -> Result<(), Trap> {
1490 let table = self.store.state.get_table(self.module.resolve_table_addr(table_index));
1491 self.store.value_stack.push(table.size())
1492 }
1493
1494 fn exec_table_init(&mut self, elem_index: u32, table_index: u32) -> Result<(), Trap> {
1495 let size = i32::stack_pop(&mut self.store.value_stack); // n

Callers 1

execMethod · 0.80

Calls 4

get_tableMethod · 0.80
resolve_table_addrMethod · 0.80
pushMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected