feat(vm): publish validated shared PBX v1 images for PLN-0176 step 14
This commit is contained in:
@@ -17,7 +17,7 @@ pub struct ProgramImage {
|
||||
pub rom: Arc<[u8]>,
|
||||
pub constant_pool: Arc<[Value]>,
|
||||
pub functions: Arc<[FunctionMeta]>,
|
||||
pub debug_info: Option<DebugInfo>,
|
||||
pub debug_info: Option<Arc<DebugInfo>>,
|
||||
pub exports: Arc<HashMap<String, u32>>,
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ impl ProgramImage {
|
||||
rom: Arc::from(rom),
|
||||
constant_pool: Arc::from(constant_pool),
|
||||
functions: Arc::from(functions),
|
||||
debug_info,
|
||||
debug_info: debug_info.map(Arc::new),
|
||||
exports: Arc::new(exports),
|
||||
}
|
||||
}
|
||||
@@ -116,7 +116,7 @@ impl From<ProgramImage> for BytecodeModule {
|
||||
const_pool,
|
||||
functions: program.functions.as_ref().to_vec(),
|
||||
code: program.rom.as_ref().to_vec(),
|
||||
debug_info: program.debug_info.clone(),
|
||||
debug_info: program.debug_info.as_deref().cloned(),
|
||||
exports,
|
||||
syscalls: Vec::new(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user