pub struct ModuleTranslationState {
pub import_map: HashMap<FunctionIndex, String>,
/* private fields */
}
Expand description
Contains information decoded from the Wasm module that must be referenced during each Wasm function’s translation.
This is only for data that is maintained by unc-vm-compiler
itself, as
opposed to being maintained by the embedder. Data that is maintained by the
embedder is represented with ModuleEnvironment
.
Fields§
§import_map: HashMap<FunctionIndex, String>
Imported functions names map.
Implementations§
Source§impl ModuleTranslationState
impl ModuleTranslationState
Sourcepub fn build_import_map(&mut self, module: &ModuleInfo)
pub fn build_import_map(&mut self, module: &ModuleInfo)
Build map of imported functions names for intrinsification.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleTranslationState
impl RefUnwindSafe for ModuleTranslationState
impl Send for ModuleTranslationState
impl Sync for ModuleTranslationState
impl Unpin for ModuleTranslationState
impl UnwindSafe for ModuleTranslationState
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more