MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / with_stack

Method with_stack

pulley/src/interp.rs:40–45  ·  view source on GitHub ↗

Create a new virtual machine with the given stack.

(stack_size: usize)

Source from the content-addressed store, hash-verified

38
39 /// Create a new virtual machine with the given stack.
40 pub fn with_stack(stack_size: usize) -> Result<Self, OutOfMemory> {
41 Ok(Self {
42 state: MachineState::with_stack(stack_size)?,
43 executing_pc: ExecutingPc::default(),
44 })
45 }
46
47 /// Get a shared reference to this VM's machine state.
48 pub fn state(&self) -> &MachineState {

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
newFunction · 0.50
topMethod · 0.45

Tested by

no test coverage detected