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

Function push_value

crates/vm/src/builtins/frame.rs:60–66  ·  view source on GitHub ↗
(stack: i64, kind: i64)

Source from the content-addressed store, hash-verified

58 }
59
60 pub fn push_value(stack: i64, kind: i64) -> i64 {
61 if (stack as u64) >= WILL_OVERFLOW {
62 OVERFLOWED
63 } else {
64 (stack << BITS_PER_BLOCK) | kind
65 }
66 }
67
68 pub fn pop_value(stack: i64) -> i64 {
69 stack >> BITS_PER_BLOCK

Callers 1

mark_stacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected