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

Method call_run

pulley/src/interp.rs:143–152  ·  view source on GitHub ↗

Performs the internal part of [`Vm::call`] where bytecode is actually executed. # Unsafety In addition to all the invariants documented for `call`, you may only invoke `call_run` after invoking `call_start` to initialize this call's arguments.

(&mut self, pc: NonNull<u8>)

Source from the content-addressed store, hash-verified

141 /// may only invoke `call_run` after invoking `call_start` to
142 /// initialize this call's arguments.
143 pub unsafe fn call_run(&mut self, pc: NonNull<u8>) -> DoneReason<()> {
144 self.state.debug_assert_done_reason_none();
145 let interpreter = Interpreter {
146 state: &mut self.state,
147 pc: unsafe { UnsafeBytecodeStream::new(pc) },
148 executing_pc: self.executing_pc.as_ref(),
149 };
150 let done = interpreter.run();
151 self.state.done_decode(done)
152 }
153
154 /// Performs the tail end of [`Vm::call`] by returning the values as
155 /// determined by `rets` according to Pulley's ABI.

Callers 15

callMethod · 0.80
run_command_componentMethod · 0.80
ids_are_threaded_throughFunction · 0.80
mainFunction · 0.80
runFunction · 0.80
mainFunction · 0.80
run_wasiFunction · 0.80
run_testFunction · 0.80
run_testFunction · 0.80
run_wasiFunction · 0.80
executeMethod · 0.80

Calls 5

done_decodeMethod · 0.80
newFunction · 0.50
as_refMethod · 0.45
runMethod · 0.45

Tested by 15

ids_are_threaded_throughFunction · 0.64
run_wasiFunction · 0.64
run_testFunction · 0.64
run_testFunction · 0.64
run_wasiFunction · 0.64
p2_api_timeFunction · 0.64
p2_api_read_onlyFunction · 0.64
runFunction · 0.64
runFunction · 0.64
run_with_builderFunction · 0.64
runFunction · 0.64