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
@@ -78,9 +78,7 @@ impl VirtualMachineRuntime {
) -> Option<CrashReport> {
if vm.call_stack_is_empty() {
if let Err(error) = vm.prepare_boot_call() {
let report = CrashReport::VmInit {
error: prometeu_vm::VmInitError::RuntimeResourceLimit(error),
};
let report = CrashReport::VmInit { error };
self.last_crash_report = Some(report.clone());
return Some(report);
}
@@ -175,9 +173,7 @@ impl VirtualMachineRuntime {
if self.needs_prepare_entry_call || vm.call_stack_is_empty() {
if let Err(error) = vm.prepare_boot_call() {
let report = CrashReport::VmInit {
error: prometeu_vm::VmInitError::RuntimeResourceLimit(error),
};
let report = CrashReport::VmInit { error };
self.last_crash_report = Some(report.clone());
return Some(report);
}