1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#![allow(clippy::cast_possible_truncation)] use core::ops::Range; use super::*; impl OwnershipRegisters { pub fn test(stack: Range<u64>, heap: Range<u64>) -> Self { Self { sp: stack.end, ssp: stack.start, hp: heap.start, prev_hp: heap.end, } } }