Skip to content

Commit e5c97c0

Browse files
committed
fixups
1 parent 6a3a615 commit e5c97c0

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/fastalloc/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ impl<'a, F: Function> Env<'a, F> {
453453
OperandConstraint::Reuse(_) => {
454454
unreachable!()
455455
}
456+
457+
OperandConstraint::Stack => {
458+
panic!("Stack constraints not supported in fastalloc");
459+
}
456460
}
457461
}
458462

@@ -576,6 +580,10 @@ impl<'a, F: Function> Env<'a, F> {
576580
// This is handled elsewhere.
577581
unreachable!();
578582
}
583+
584+
OperandConstraint::Stack => {
585+
panic!("Stack operand constraints not supported in fastalloc");
586+
}
579587
};
580588
self.allocs[(inst.index(), op_idx)] = new_alloc;
581589
Ok(new_alloc)

src/ion/data_structures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ impl LiveBundle {
265265

266266
#[inline(always)]
267267
pub fn cached_spill_weight(&self) -> u32 {
268-
self.spill_weight_and_props & ((1 << 28) - 1)
268+
self.spill_weight_and_props & BUNDLE_MAX_SPILL_WEIGHT
269269
}
270270
}
271271

src/ion/process.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,8 @@ impl<'a, F: Function> Env<'a, F> {
10461046
Requirement::Stack => {
10471047
// If we must be on the stack, mark our spillset
10481048
// as required immediately.
1049-
self.spillsets[self.bundles[bundle].spillset].required = true;
1049+
let spillset = self.bundles[bundle].spillset;
1050+
self.spillsets[spillset].required = true;
10501051
return Ok(());
10511052
}
10521053

0 commit comments

Comments
 (0)