refactor heapview

This commit is contained in:
Mark Thom
2018-01-13 21:50:47 -07:00
parent 20972f18c2
commit 0fb64f412e
7 changed files with 257 additions and 204 deletions

View File

@@ -221,7 +221,7 @@ impl MachineState {
if self.b > 0 { self.or_stack[self.b - 1].global_index } else { 0 }) + 1
}
pub(super) fn store(&self, a: Addr) -> Addr {
pub(crate) fn store(&self, a: Addr) -> Addr {
match a {
Addr::HeapCell(r) => self.heap[r].as_addr(r),
Addr::StackCell(fr, sc) => self.and_stack[fr][sc].clone(),