feat(runtime): add optional pause and resume lifecycle hooks
Intrepid/Prometeu/Runtime/pipeline/pr-master Build started...
Intrepid/Prometeu/Runtime/pipeline/pr-master Build started...
This commit is contained in:
@@ -89,6 +89,7 @@ pub fn bytes_with_syscalls(
|
||||
for (source, signature, captures) in bodies {
|
||||
let body = assemble(source).unwrap();
|
||||
functions.push(FunctionDecl {
|
||||
lifecycle_role: Default::default(),
|
||||
signature: signature.clone(),
|
||||
captures: captures.clone(),
|
||||
code_offset: code.len() as u32,
|
||||
|
||||
@@ -60,6 +60,7 @@ pub fn declarations(code_len: usize) -> RegistryDeclarations {
|
||||
RegistryDeclarations {
|
||||
types,
|
||||
functions: vec![FunctionDecl {
|
||||
lifecycle_role: Default::default(),
|
||||
code_len: code_len as u32,
|
||||
local_slots: 0,
|
||||
max_stack_slots: 32,
|
||||
|
||||
@@ -50,6 +50,7 @@ pub fn bytes(bodies: &[Body<'_>]) -> Vec<u8> {
|
||||
for (text, signature, captures, locals) in bodies {
|
||||
let body = assemble(text).unwrap();
|
||||
functions.push(FunctionDecl {
|
||||
lifecycle_role: Default::default(),
|
||||
signature: signature.clone(),
|
||||
captures: captures.clone(),
|
||||
local_slots: *locals,
|
||||
|
||||
Reference in New Issue
Block a user