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
@@ -17,9 +17,16 @@ pub enum VmInitError {
ImageLoadFailed(prometeu_bytecode::LoadError),
LoaderPatchFailed(LoaderPatchError),
EntrypointNotFound,
EntrypointArgumentsInvalid { function: u32, slot: u32, trap_code: u32 },
VerificationFailed(crate::verifier::VerifierError),
}
impl From<crate::resource_budget::ResourceFailure> for VmInitError {
fn from(value: crate::resource_budget::ResourceFailure) -> Self {
Self::RuntimeResourceLimit(value)
}
}
impl From<prometeu_bytecode::load_limits::LoadFailure> for VmInitError {
fn from(value: prometeu_bytecode::load_limits::LoadFailure) -> Self {
Self::RegistryLoadFailed(value)