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

Method push_stackref_opt

crates/vm/src/frame.rs:9308–9313  ·  view source on GitHub ↗
(&mut self, obj: Option<PyStackRef>)

Source from the content-addressed store, hash-verified

9306 #[inline]
9307 #[track_caller]
9308 fn push_stackref_opt(&mut self, obj: Option<PyStackRef>) {
9309 match self.localsplus.stack_try_push(obj) {
9310 Ok(()) => {}
9311 Err(_e) => self.fatal("tried to push value onto stack but overflowed max_stackdepth"),
9312 }
9313 }
9314
9315 #[inline]
9316 #[track_caller] // not a real track_caller but push_value is less useful for debugging

Callers 5

execute_instructionMethod · 0.80
push_value_optMethod · 0.80
push_valueMethod · 0.80
push_borrowedMethod · 0.80
push_nullMethod · 0.80

Calls 2

stack_try_pushMethod · 0.80
fatalMethod · 0.45

Tested by

no test coverage detected