Struct wasmtime_runtime::StackMapRegistry
source · [−]pub struct StackMapRegistry { /* private fields */ }
Expand description
A registry of stack maps for currently active Wasm modules.
Implementations
sourceimpl StackMapRegistry
impl StackMapRegistry
sourcepub fn register_stack_maps<'a>(
&self,
stack_maps: impl IntoIterator<Item = (Range<usize>, &'a [StackMapInformation])>
)
pub fn register_stack_maps<'a>(
&self,
stack_maps: impl IntoIterator<Item = (Range<usize>, &'a [StackMapInformation])>
)
Register the stack maps for a given module.
The stack maps should be given as an iterator over a function’s PC range in memory (that is, where the JIT actually allocated and emitted the function’s code at), and the stack maps and code offsets within that range for each of its GC safepoints.
Trait Implementations
sourceimpl Default for StackMapRegistry
impl Default for StackMapRegistry
sourcefn default() -> StackMapRegistry
fn default() -> StackMapRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for StackMapRegistry
impl !Send for StackMapRegistry
impl !Sync for StackMapRegistry
impl Unpin for StackMapRegistry
impl UnwindSafe for StackMapRegistry
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