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

Method exec_call_direct

crates/tinywasm/src/interpreter/executor.rs:989–996  ·  view source on GitHub ↗
(&mut self, v: u32)

Source from the content-addressed store, hash-verified

987 }
988
989 fn exec_call_direct(&mut self, v: u32) -> Result<(), Trap> {
990 self.charge_call_fuel(FUEL_COST_CALL_TOTAL);
991 let addr = self.module.resolve_func_addr(v);
992 match self.store.state.get_func(addr) {
993 crate::FunctionInstance::Wasm(wasm_func) => self.exec_call(wasm_func.clone(), addr),
994 crate::FunctionInstance::Host(host_func) => self.exec_call_host(host_func.clone()),
995 }
996 }
997
998 fn exec_return_call_direct(&mut self, v: u32) -> Result<(), Trap> {
999 self.charge_call_fuel(FUEL_COST_CALL_TOTAL);

Callers 1

execMethod · 0.80

Calls 5

charge_call_fuelMethod · 0.80
resolve_func_addrMethod · 0.80
get_funcMethod · 0.80
exec_callMethod · 0.80
exec_call_hostMethod · 0.80

Tested by

no test coverage detected