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