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

Method current_frame_mut

cranelift/interpreter/src/interpreter.rs:277–283  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

275 }
276
277 fn current_frame_mut(&mut self) -> &mut Frame<'a> {
278 let num_frames = self.frame_stack.len();
279 match num_frames {
280 0 => panic!("unable to retrieve the current frame because no frames were pushed"),
281 _ => &mut self.frame_stack[num_frames - 1],
282 }
283 }
284
285 fn current_frame(&self) -> &Frame<'a> {
286 let num_frames = self.frame_stack.len();

Callers 2

callMethod · 0.80
blockMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected