feat(vm): enforce typed CALL RET and native entry boundaries for PLN-0176 step 26
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user