(
&self,
mmap: crate::runtime::vm::MmapVec,
expected: ObjectKind,
)
| 934 | } |
| 935 | |
| 936 | pub(crate) fn load_code( |
| 937 | &self, |
| 938 | mmap: crate::runtime::vm::MmapVec, |
| 939 | expected: ObjectKind, |
| 940 | ) -> Result<Arc<crate::CodeMemory>> { |
| 941 | self.check_compatible_with_native_host() |
| 942 | .context("compilation settings are not compatible with the native host")?; |
| 943 | |
| 944 | serialization::check_compatible(self, &mmap, expected)?; |
| 945 | let mut code = crate::CodeMemory::new(self, mmap)?; |
| 946 | code.publish()?; |
| 947 | Ok(try_new(code)?) |
| 948 | } |
| 949 | |
| 950 | /// Unload process-related trap/signal handlers and destroy this engine. |
| 951 | /// |
no test coverage detected