forked from AbleOS/holey-bytes
well?
This commit is contained in:
parent
37dd13cab2
commit
becd5c4b7f
|
@ -301,10 +301,11 @@ impl HbvmBackend {
|
||||||
let bundle_count = self.ralloc.bundles.len() + (reg_offset as usize);
|
let bundle_count = self.ralloc.bundles.len() + (reg_offset as usize);
|
||||||
(
|
(
|
||||||
if tail {
|
if tail {
|
||||||
|
debug_assert!(bundle_count >= reg::RET_ADDR as _);
|
||||||
|
bundle_count.saturating_sub(reg::RET_ADDR as _)
|
||||||
|
} else {
|
||||||
assert!(bundle_count < reg::STACK_PTR as usize, "TODO: spill memory");
|
assert!(bundle_count < reg::STACK_PTR as usize, "TODO: spill memory");
|
||||||
self.ralloc.bundles.len()
|
self.ralloc.bundles.len()
|
||||||
} else {
|
|
||||||
bundle_count.saturating_sub(reg::RET_ADDR as _)
|
|
||||||
},
|
},
|
||||||
tail,
|
tail,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue