Struct wasmtime_jit::CodeMemory
source · [−]pub struct CodeMemory { /* private fields */ }
Expand description
Memory manager for executable code.
Implementations
sourceimpl CodeMemory
impl CodeMemory
sourcepub fn allocate_for_function<'a>(
&mut self,
func: &'a CompiledFunction
) -> Result<&mut [VMFunctionBody], String>
pub fn allocate_for_function<'a>(
&mut self,
func: &'a CompiledFunction
) -> Result<&mut [VMFunctionBody], String>
Allocate a continuous memory block for a single compiled function. TODO: Reorganize the code that calls this to emit code directly into the mmap region rather than into a Vec that we need to copy in.
Auto Trait Implementations
impl RefUnwindSafe for CodeMemory
impl Send for CodeMemory
impl Sync for CodeMemory
impl Unpin for CodeMemory
impl UnwindSafe for CodeMemory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more