Struct wasmer_compiler::Compilation [−][src]
pub struct Compilation { /* fields omitted */ }
Expand description
The result of compiling a WebAssembly module’s functions.
Implementations
impl Compilation
[src]
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]
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]
pub fn get(&self, func: LocalFunctionIndex) -> &CompiledFunction
[src]Gets the bytes of a single function
pub fn get_relocations(&self) -> PrimaryMap<LocalFunctionIndex, Vec<Relocation>>
[src]
pub fn get_relocations(&self) -> PrimaryMap<LocalFunctionIndex, Vec<Relocation>>
[src]Gets functions relocations.
pub fn get_function_bodies(
&self
) -> PrimaryMap<LocalFunctionIndex, FunctionBody>
[src]
pub fn get_function_bodies(
&self
) -> PrimaryMap<LocalFunctionIndex, FunctionBody>
[src]Gets functions bodies.
pub fn get_jt_offsets(&self) -> PrimaryMap<LocalFunctionIndex, JumpTableOffsets>
[src]
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]
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]
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]
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]
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]
pub fn get_custom_section_relocations(
&self
) -> PrimaryMap<SectionIndex, Vec<Relocation>>
[src]Gets relocations that apply to custom sections.
Trait Implementations
impl Debug for Compilation
[src]
impl Debug for Compilation
[src]impl<'de> Deserialize<'de> for Compilation
[src]
impl<'de> Deserialize<'de> for Compilation
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<'a> IntoIterator for &'a Compilation
[src]
impl<'a> IntoIterator for &'a Compilation
[src]impl PartialEq<Compilation> for Compilation
[src]
impl PartialEq<Compilation> for Compilation
[src]fn eq(&self, other: &Compilation) -> bool
[src]
fn eq(&self, other: &Compilation) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Compilation) -> bool
[src]
fn ne(&self, other: &Compilation) -> bool
[src]This method tests for !=
.
impl Serialize for Compilation
[src]
impl Serialize for Compilation
[src]impl Eq for Compilation
[src]
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> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,