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

Method top_value

crates/vm/src/frame.rs:9563–9569  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

9561 #[inline]
9562 #[track_caller]
9563 fn top_value(&self) -> &PyObject {
9564 match self.localsplus.stack_last() {
9565 Some(Some(last)) => last.as_object(),
9566 Some(None) => self.fatal("tried to get top of stack but got NULL"),
9567 None => self.fatal("tried to get top of stack but stack is empty"),
9568 }
9569 }
9570
9571 #[inline]
9572 #[track_caller]

Callers 15

yield_from_targetMethod · 0.80
execute_instructionMethod · 0.80
import_fromMethod · 0.80
execute_for_iterMethod · 0.80
specialize_load_attrMethod · 0.80
specialize_binary_opMethod · 0.80
execute_binary_op_intMethod · 0.80
specialize_compare_opMethod · 0.80
specialize_to_boolMethod · 0.80

Calls 3

stack_lastMethod · 0.80
as_objectMethod · 0.45
fatalMethod · 0.45

Tested by

no test coverage detected