restore [o|i]ip zeroing to trust and fix '$get_clause_p'/3 (#2238)

This commit is contained in:
Mark
2023-12-20 20:45:11 -07:00
parent 44a61fa72c
commit 46e432c4d9
5 changed files with 86 additions and 75 deletions

View File

@@ -203,6 +203,12 @@ impl Stack {
}
}
pub(crate) fn top(&self) -> usize {
unsafe {
(*self.buf.ptr.get()) as usize - self.buf.base as usize
}
}
pub(crate) fn allocate_or_frame(&mut self, num_cells: usize) -> usize {
let frame_size = OrFrame::size_of(num_cells);