Struct wasmer_types::compilation::function::Compilation
source · pub struct Compilation { /* private fields */ }
Expand description
The result of compiling a WebAssembly module’s functions.
Implementations
sourceimpl Compilation
impl Compilation
sourcepub fn new(
functions: Functions,
custom_sections: CustomSections,
function_call_trampolines: PrimaryMap<SignatureIndex, FunctionBody>,
dynamic_function_trampolines: PrimaryMap<FunctionIndex, FunctionBody>,
debug: Option<Dwarf>
) -> Self
pub fn new(
functions: Functions,
custom_sections: CustomSections,
function_call_trampolines: PrimaryMap<SignatureIndex, FunctionBody>,
dynamic_function_trampolines: PrimaryMap<FunctionIndex, FunctionBody>,
debug: Option<Dwarf>
) -> Self
Creates a compilation artifact from a contiguous function buffer and a set of ranges
sourcepub fn get(&self, func: LocalFunctionIndex) -> &CompiledFunction
pub fn get(&self, func: LocalFunctionIndex) -> &CompiledFunction
Gets the bytes of a single function
sourcepub fn get_relocations(&self) -> PrimaryMap<LocalFunctionIndex, Vec<Relocation>>
pub fn get_relocations(&self) -> PrimaryMap<LocalFunctionIndex, Vec<Relocation>>
Gets functions relocations.
sourcepub fn get_function_bodies(
&self
) -> PrimaryMap<LocalFunctionIndex, FunctionBody>
pub fn get_function_bodies(
&self
) -> PrimaryMap<LocalFunctionIndex, FunctionBody>
Gets functions bodies.
sourcepub fn get_frame_info(
&self
) -> PrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>
pub fn get_frame_info(
&self
) -> PrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>
Gets functions frame info.
sourcepub fn get_function_call_trampolines(
&self
) -> PrimaryMap<SignatureIndex, FunctionBody>
pub fn get_function_call_trampolines(
&self
) -> PrimaryMap<SignatureIndex, FunctionBody>
Gets function call trampolines.
sourcepub fn get_dynamic_function_trampolines(
&self
) -> PrimaryMap<FunctionIndex, FunctionBody>
pub fn get_dynamic_function_trampolines(
&self
) -> PrimaryMap<FunctionIndex, FunctionBody>
Gets function call trampolines.
sourcepub fn get_custom_sections(&self) -> PrimaryMap<SectionIndex, CustomSection>
pub fn get_custom_sections(&self) -> PrimaryMap<SectionIndex, CustomSection>
Gets custom section data.
sourcepub fn get_custom_section_relocations(
&self
) -> PrimaryMap<SectionIndex, Vec<Relocation>>
pub fn get_custom_section_relocations(
&self
) -> PrimaryMap<SectionIndex, Vec<Relocation>>
Gets relocations that apply to custom sections.
Trait Implementations
sourceimpl Debug for Compilation
impl Debug for Compilation
sourceimpl<'a> IntoIterator for &'a Compilation
impl<'a> IntoIterator for &'a Compilation
sourceimpl PartialEq<Compilation> for Compilation
impl PartialEq<Compilation> for Compilation
sourcefn eq(&self, other: &Compilation) -> bool
fn eq(&self, other: &Compilation) -> bool
impl Eq for Compilation
impl StructuralEq for Compilation
impl StructuralPartialEq for Compilation
Auto Trait Implementations
impl RefUnwindSafe for Compilation
impl Send for Compilation
impl Sync for Compilation
impl Unpin for Compilation
impl UnwindSafe for Compilation
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.