(
mmap: Arc<CodeMemory>,
signatures: TypeCollection,
types: Types,
)
| 126 | |
| 127 | impl EngineCode { |
| 128 | pub fn new( |
| 129 | mmap: Arc<CodeMemory>, |
| 130 | signatures: TypeCollection, |
| 131 | types: Types, |
| 132 | ) -> Result<EngineCode, OutOfMemory> { |
| 133 | // The corresponding unregister for this is below in `Drop for |
| 134 | // EngineCode`. |
| 135 | crate::module::register_code(&mmap, mmap.raw_addr_range())?; |
| 136 | |
| 137 | Ok(EngineCode { |
| 138 | original_code: mmap, |
| 139 | signatures, |
| 140 | types, |
| 141 | }) |
| 142 | } |
| 143 | |
| 144 | #[cfg(feature = "component-model")] |
| 145 | pub fn types(&self) -> &Types { |
nothing calls this directly
no test coverage detected