Struct wasmer_compiler::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<'de> Deserialize<'de> for Compilation
impl<'de> Deserialize<'de> for Compilation
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Compilation) -> bool
fn ne(&self, other: &Compilation) -> bool
This method tests for !=
.
sourceimpl Serialize for Compilation
impl Serialize for Compilation
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
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.