feat(vm): enforce typed CALL RET and native entry boundaries for PLN-0176 step 26

This commit is contained in:
2026-10-07 20:32:09 +01:00
parent a9d91be39e
commit ba603ce64a
9 changed files with 477 additions and 24 deletions
@@ -199,8 +199,7 @@ fn late_work_refusal_releases_all_new_owners() {
let bytes = fixture(&[1, 0], 0, &[K::String("abc".into())], None, &[]);
let mut full = budget();
ValidatedProgramImage::load(&bytes, &mut full, caps::NONE).unwrap();
let mut b =
LoadBudget::new(LoadLimits { work: full.used(Q::Work) - 1, ..Default::default() });
let mut b = LoadBudget::new(LoadLimits { work: full.used(Q::Work) - 1, ..Default::default() });
b.charge(Q::TemporaryBytes, 7).unwrap();
b.charge(Q::RegistryBytes, 3).unwrap();
let VmInitError::RegistryLoadFailed(error) =