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

Function fire_branch_left

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

Source from the content-addressed store, hash-verified

1046}
1047
1048pub fn fire_branch_left(
1049 vm: &VirtualMachine,
1050 code: &PyRef<PyCode>,
1051 offset: u32,
1052 destination: u32,
1053) -> PyResult<()> {
1054 fire(
1055 vm,
1056 EVENT_BRANCH_LEFT,
1057 code,
1058 offset,
1059 &[
1060 vm.ctx.new_int(offset).into(),
1061 vm.ctx.new_int(destination).into(),
1062 ],
1063 )
1064}
1065
1066pub fn fire_branch_right(
1067 vm: &VirtualMachine,

Callers 1

execute_instrumentedMethod · 0.85

Calls 2

fireFunction · 0.85
new_intMethod · 0.45

Tested by

no test coverage detected