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

Function fire_jump

crates/vm/src/stdlib/sys/monitoring.rs:1030–1046  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    code: &PyRef<PyCode>,
    offset: u32,
    destination: u32,
)

Source from the content-addressed store, hash-verified

1028}
1029
1030pub fn fire_jump(
1031 vm: &VirtualMachine,
1032 code: &PyRef<PyCode>,
1033 offset: u32,
1034 destination: u32,
1035) -> PyResult<()> {
1036 fire(
1037 vm,
1038 EVENT_JUMP,
1039 code,
1040 offset,
1041 &[
1042 vm.ctx.new_int(offset).into(),
1043 vm.ctx.new_int(destination).into(),
1044 ],
1045 )
1046}
1047
1048pub fn fire_branch_left(
1049 vm: &VirtualMachine,

Callers 1

execute_instrumentedMethod · 0.85

Calls 2

fireFunction · 0.85
new_intMethod · 0.45

Tested by

no test coverage detected