MCPcopy Index your code
hub / github.com/RustPython/RustPython / jump

Method jump

crates/vm/src/frame.rs:6873–6877  ·  view source on GitHub ↗
(&mut self, label: bytecode::Label)

Source from the content-addressed store, hash-verified

6871
6872 #[inline]
6873 fn jump(&mut self, label: bytecode::Label) {
6874 let target_pc = label.as_u32();
6875 vm_trace!("jump from {:?} to {:?}", self.lasti(), target_pc);
6876 self.update_lasti(|i| *i = target_pc);
6877 }
6878
6879 /// Jump forward by `delta` code units from after instruction + caches.
6880 /// lasti is already at instruction_index + 1, so after = lasti + caches.

Callers 9

compileMethod · 0.80
add_instructionMethod · 0.80
compile_fpowMethod · 0.80
compile_ipowMethod · 0.80
execute_instructionMethod · 0.80
execute_instrumentedMethod · 0.80
unwind_blocksMethod · 0.80
execute_for_iterMethod · 0.80

Calls 2

as_u32Method · 0.80
update_lastiMethod · 0.80

Tested by

no test coverage detected