Bump to version 0.4.2 (#99)
* Bump to version 0.4.2 * Remove take-and-replace dance There are no conflicting borrows of `self` anymore.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "regalloc2"
|
name = "regalloc2"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
authors = [
|
authors = [
|
||||||
"Chris Fallin <chris@cfallin.org>",
|
"Chris Fallin <chris@cfallin.org>",
|
||||||
"Mozilla SpiderMonkey Developers",
|
"Mozilla SpiderMonkey Developers",
|
||||||
|
|||||||
@@ -90,10 +90,7 @@ impl<'a, F: Function> Env<'a, F> {
|
|||||||
) {
|
) {
|
||||||
self.spillsets[spillset.index()].slot = spillslot;
|
self.spillsets[spillset.index()].slot = spillslot;
|
||||||
|
|
||||||
// Take `spillsets` to avoid a conflicting borrow of `self`.
|
for vreg in &self.spillsets[spillset.index()].vregs {
|
||||||
let spillsets = std::mem::take(&mut self.spillsets);
|
|
||||||
|
|
||||||
for vreg in &spillsets[spillset.index()].vregs {
|
|
||||||
trace!(
|
trace!(
|
||||||
"spillslot {:?} alloc'ed to spillset {:?}: vreg {:?}",
|
"spillslot {:?} alloc'ed to spillset {:?}: vreg {:?}",
|
||||||
spillslot,
|
spillslot,
|
||||||
@@ -114,10 +111,6 @@ impl<'a, F: Function> Env<'a, F> {
|
|||||||
.insert(LiveRangeKey::from_range(&entry.range), entry.index);
|
.insert(LiveRangeKey::from_range(&entry.range), entry.index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace `spillsets`.
|
|
||||||
let default = std::mem::replace(&mut self.spillsets, spillsets);
|
|
||||||
debug_assert!(default.is_empty());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn allocate_spillslots(&mut self) {
|
pub fn allocate_spillslots(&mut self) {
|
||||||
|
|||||||
Reference in New Issue
Block a user