From a4e352ba0dc8787d412462f32cc388354f15dc88 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Thu, 12 Dec 2019 20:34:50 -0700 Subject: [PATCH] use Addr::StackCell(0,0) to indicate non-live local variables --- src/prolog/machine/stack.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prolog/machine/stack.rs b/src/prolog/machine/stack.rs index 17ca25ef..2de3582d 100644 --- a/src/prolog/machine/stack.rs +++ b/src/prolog/machine/stack.rs @@ -242,7 +242,7 @@ impl Stack { for idx in 0 .. num_cells { let offset = prelude_size::() + idx * mem::size_of::(); - ptr::write((self.top as usize + offset) as *mut Addr, Addr::HeapCell(0)); + ptr::write((self.top as usize + offset) as *mut Addr, Addr::StackCell(0,0)); } let and_frame = &mut *(self.top as *mut AndFrame); @@ -264,7 +264,7 @@ impl Stack { for idx in 0 .. num_cells { let offset = prelude_size::() + idx * mem::size_of::(); - ptr::write((self.top as usize + offset) as *mut Addr, Addr::HeapCell(0)); + ptr::write((self.top as usize + offset) as *mut Addr, Addr::StackCell(0,0)); } let or_frame = &mut *(self.top as *mut OrFrame); -- 2.54.0