add Addr::AttVar to address ordering
This commit is contained in:
@@ -747,7 +747,7 @@ impl PartialOrd<Ref> for Addr {
|
|||||||
Some(Ordering::Less)
|
Some(Ordering::Less)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&Addr::HeapCell(h) =>
|
&Addr::HeapCell(h) | &Addr::AttrVar(h, _) =>
|
||||||
match r {
|
match r {
|
||||||
&Ref::StackCell(..) => Some(Ordering::Less),
|
&Ref::StackCell(..) => Some(Ordering::Less),
|
||||||
&Ref::HeapCell(h1) => h.partial_cmp(&h1)
|
&Ref::HeapCell(h1) => h.partial_cmp(&h1)
|
||||||
|
|||||||
@@ -429,7 +429,8 @@ impl Machine {
|
|||||||
let mut heap_locs = HashMap::new();
|
let mut heap_locs = HashMap::new();
|
||||||
|
|
||||||
self.code_repo.cached_query = code;
|
self.code_repo.cached_query = code;
|
||||||
self.machine_st.run_query(&mut self.indices, &mut self.policies, &self.code_repo, &alloc_locs, &mut heap_locs);
|
self.machine_st.run_query(&mut self.indices, &mut self.policies, &self.code_repo,
|
||||||
|
&alloc_locs, &mut heap_locs);
|
||||||
|
|
||||||
if self.machine_st.fail {
|
if self.machine_st.fail {
|
||||||
self.fail(&heap_locs)
|
self.fail(&heap_locs)
|
||||||
|
|||||||
Reference in New Issue
Block a user