Struct linera_wasmer_compiler::CodeMemory
source · pub struct CodeMemory { /* private fields */ }
Expand description
Memory manager for executable code.
Implementations§
source§impl CodeMemory
impl CodeMemory
sourcepub fn unwind_registry_mut(&mut self) -> &mut UnwindRegistry
pub fn unwind_registry_mut(&mut self) -> &mut UnwindRegistry
Mutably get the UnwindRegistry.
sourcepub fn allocate<'module, 'memory, FunctionBody, CustomSection>(
&'memory mut self,
functions: &'memory [&'module FunctionBody],
executable_sections: &'memory [&'module CustomSection],
data_sections: &'memory [&'module CustomSection],
) -> Result<(Vec<&'memory mut [VMFunctionBody]>, Vec<&'memory mut [u8]>, Vec<&'memory mut [u8]>), String>where
FunctionBody: FunctionBodyLike<'module> + 'module,
CustomSection: CustomSectionLike<'module> + 'module,
pub fn allocate<'module, 'memory, FunctionBody, CustomSection>(
&'memory mut self,
functions: &'memory [&'module FunctionBody],
executable_sections: &'memory [&'module CustomSection],
data_sections: &'memory [&'module CustomSection],
) -> Result<(Vec<&'memory mut [VMFunctionBody]>, Vec<&'memory mut [u8]>, Vec<&'memory mut [u8]>), String>where
FunctionBody: FunctionBodyLike<'module> + 'module,
CustomSection: CustomSectionLike<'module> + 'module,
Allocate a single contiguous block of memory at a fixed virtual address for the functions and custom sections, and copy the data in place.
sourcepub fn register_frame_info(&mut self, frame_info: GlobalFrameInfoRegistration)
pub fn register_frame_info(&mut self, frame_info: GlobalFrameInfoRegistration)
Register the frame info, so it’s free when the mememory gets freed
Auto Trait Implementations§
impl Freeze for CodeMemory
impl RefUnwindSafe for CodeMemory
impl Send for CodeMemory
impl Sync for CodeMemory
impl Unpin for CodeMemory
impl UnwindSafe for CodeMemory
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref