[][src]Struct wasmer_compiler::Compilation

pub struct Compilation { /* fields omitted */ }

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]

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]

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]

Gets functions frame info.

pub fn get_function_call_trampolines(
    &self
) -> PrimaryMap<SignatureIndex, FunctionBody>
[src]

Gets function call trampolines.

pub fn get_dynamic_function_trampolines(
    &self
) -> PrimaryMap<FunctionIndex, FunctionBody>
[src]

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]

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]

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?

type Item = <Self::IntoIter as Iterator>::Item

The type of the elements being iterated over.

impl PartialEq<Compilation> for Compilation[src]

impl Serialize for Compilation[src]

impl StructuralEq for Compilation[src]

impl StructuralPartialEq for Compilation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.