[−][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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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.
pub fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Compilation> for Compilation
[src]
pub fn eq(&self, other: &Compilation) -> bool
[src]
pub fn ne(&self, other: &Compilation) -> bool
[src]
impl Serialize for Compilation
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Compilation
[src]
impl StructuralPartialEq for Compilation
[src]
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
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
pub fn equivalent(&self, key: &K) -> bool
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,