pub struct Compilation { /* private fields */ }
Expand description
The result of compiling a WebAssembly module’s functions.
Implementations§
Source§impl 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>,
trampolines: Option<TrampolinesSection>,
) -> Self
pub fn new( functions: Functions, custom_sections: CustomSections, function_call_trampolines: PrimaryMap<SignatureIndex, FunctionBody>, dynamic_function_trampolines: PrimaryMap<FunctionIndex, FunctionBody>, debug: Option<Dwarf>, trampolines: Option<TrampolinesSection>, ) -> 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_jt_offsets(&self) -> PrimaryMap<LocalFunctionIndex, JumpTableOffsets>
pub fn get_jt_offsets(&self) -> PrimaryMap<LocalFunctionIndex, JumpTableOffsets>
Gets functions jump table offsets.
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.
Sourcepub fn get_trampolines(&self) -> Option<TrampolinesSection>
pub fn get_trampolines(&self) -> Option<TrampolinesSection>
Returns the Trampolines info.
Trait Implementations§
Source§impl Debug for Compilation
impl Debug for Compilation
Source§impl<'a> IntoIterator for &'a Compilation
impl<'a> IntoIterator for &'a Compilation
Source§impl PartialEq for Compilation
impl PartialEq for Compilation
impl Eq for Compilation
impl StructuralPartialEq for Compilation
Auto Trait Implementations§
impl Freeze for Compilation
impl RefUnwindSafe for Compilation
impl Send for Compilation
impl Sync for Compilation
impl Unpin for Compilation
impl UnwindSafe for Compilation
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn 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.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.