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

Method new

crates/tinywasm/src/interpreter/executor.rs:34–38  ·  view source on GitHub ↗
(store: &'store mut Store, cf: CallFrame, call_stack_base: u32)

Source from the content-addressed store, hash-verified

32
33impl<'store, const BUDGETED: bool> Executor<'store, BUDGETED> {
34 pub(crate) fn new(store: &'store mut Store, cf: CallFrame, call_stack_base: u32) -> Self {
35 let wasm_func = store.state.get_wasm_func(cf.func_addr);
36 let module = store.get_module_instance_internal(wasm_func.owner);
37 Self { module, cf, func: wasm_func.func.clone(), store, call_stack_base }
38 }
39
40 #[inline(always)]
41 fn charge_call_fuel(&mut self, total_fuel_cost: u32) {

Callers

nothing calls this directly

Calls 2

get_wasm_funcMethod · 0.80

Tested by

no test coverage detected