[−][src]Struct wasmer_compiler::Compilation
The result of compiling a WebAssembly module's functions.
Implementations
impl Compilation
[src][−]
pub fn new(
functions: Functions,
custom_sections: CustomSections,
function_call_trampolines: PrimaryMap<SignatureIndex, FunctionBody>,
dynamic_function_trampolines: PrimaryMap<FunctionIndex, FunctionBody>,
debug: Option<Dwarf>
) -> Self
[src][−]
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
pub fn get(&self, func: LocalFunctionIndex) -> &CompiledFunction
[src][−]
Gets the bytes of a single function
pub fn len(&self) -> usize
[src][−]
Gets the number of functions defined.
pub fn is_empty(&self) -> bool
[src][−]
Returns whether there are no functions defined.
pub fn get_relocations(&self) -> PrimaryMap<LocalFunctionIndex, Vec<Relocation>>
[src][−]
Gets functions relocations.
pub fn get_function_bodies(
&self
) -> PrimaryMap<LocalFunctionIndex, FunctionBody>
[src][−]
&self
) -> PrimaryMap<LocalFunctionIndex, FunctionBody>
Gets functions bodies.
pub fn get_jt_offsets(&self) -> PrimaryMap<LocalFunctionIndex, JumpTableOffsets>
[src][−]
Gets functions jump table offsets.
pub fn get_frame_info(
&self
) -> PrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>
[src][−]
&self
) -> PrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>
Gets functions frame info.
pub fn get_function_call_trampolines(
&self
) -> PrimaryMap<SignatureIndex, FunctionBody>
[src][−]
&self
) -> PrimaryMap<SignatureIndex, FunctionBody>
Gets function call trampolines.
pub fn get_dynamic_function_trampolines(
&self
) -> PrimaryMap<FunctionIndex, FunctionBody>
[src][−]
&self
) -> PrimaryMap<FunctionIndex, FunctionBody>
Gets function call trampolines.
pub fn get_custom_sections(&self) -> PrimaryMap<SectionIndex, CustomSection>
[src][−]
Gets custom section data.
pub fn get_custom_section_relocations(
&self
) -> PrimaryMap<SectionIndex, Vec<Relocation>>
[src][−]
&self
) -> PrimaryMap<SectionIndex, Vec<Relocation>>
Gets relocations that apply to custom sections.
pub fn get_debug(&self) -> Option<Dwarf>
[src][−]
Returns the Dwarf info.
Trait Implementations
impl Debug for Compilation
[src][+]
impl<'de> Deserialize<'de> for Compilation
[src][+]
impl Eq for Compilation
[src]
impl<'a> IntoIterator for &'a Compilation
[src][+]
impl PartialEq<Compilation> for Compilation
[src][+]
impl Serialize for Compilation
[src][+]
impl StructuralEq for Compilation
[src]
impl StructuralPartialEq for Compilation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Compilation
[src]
impl Send for Compilation
[src]
impl Sync for Compilation
[src]
impl Unpin for Compilation
[src]
impl UnwindSafe for Compilation
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src][+]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,