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

Method nth_value

crates/vm/src/frame.rs:9573–9579  ·  view source on GitHub ↗
(&self, depth: u32)

Source from the content-addressed store, hash-verified

9571 #[inline]
9572 #[track_caller]
9573 fn nth_value(&self, depth: u32) -> &PyObject {
9574 let idx = self.localsplus.stack_len() - depth as usize - 1;
9575 match self.localsplus.stack_index(idx) {
9576 Some(obj) => obj.as_object(),
9577 None => unsafe { core::hint::unreachable_unchecked() },
9578 }
9579 }
9580
9581 #[cold]
9582 #[inline(never)]

Callers 12

execute_instructionMethod · 0.80
execute_instrumentedMethod · 0.80
collect_ex_argsMethod · 0.80
specialize_binary_opMethod · 0.80
execute_binary_op_intMethod · 0.80
specialize_callMethod · 0.80
specialize_call_kwMethod · 0.80
specialize_sendMethod · 0.80
specialize_compare_opMethod · 0.80

Calls 3

stack_lenMethod · 0.80
stack_indexMethod · 0.80
as_objectMethod · 0.45

Tested by

no test coverage detected