Struct wasmer_compiler_singlepass::SinglepassCompiler [−][src]
A compiler that compiles a WebAssembly module with Singlepass. It does the compilation in one pass
Implementations
impl SinglepassCompiler
[src]
pub fn new(config: Singlepass) -> Self
[src]
Creates a new Singlepass compiler
Trait Implementations
impl Compiler for SinglepassCompiler
[src]
fn compile_module(
&self,
target: &Target,
compile_info: &mut CompileModuleInfo,
_module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'_>>
) -> Result<Compilation, CompileError>
[src]
&self,
target: &Target,
compile_info: &mut CompileModuleInfo,
_module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'_>>
) -> Result<Compilation, CompileError>
Compile the module using Singlepass, producing a compilation result with associated relocations.
pub fn validate_module(
&self,
features: &Features,
data: &'data [u8]
) -> Result<(), CompileError>
[src]
&self,
features: &Features,
data: &'data [u8]
) -> Result<(), CompileError>
pub fn experimental_native_compile_module(
&self,
_target: &Target,
_module: &'module mut CompileModuleInfo,
_module_translation: &ModuleTranslationState,
_function_body_inputs: &PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>,
_symbol_registry: &dyn SymbolRegistry,
_wasmer_metadata: &[u8]
) -> Option<Result<Vec<u8, Global>, CompileError>>
[src]
&self,
_target: &Target,
_module: &'module mut CompileModuleInfo,
_module_translation: &ModuleTranslationState,
_function_body_inputs: &PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>,
_symbol_registry: &dyn SymbolRegistry,
_wasmer_metadata: &[u8]
) -> Option<Result<Vec<u8, Global>, CompileError>>
Auto Trait Implementations
impl !RefUnwindSafe for SinglepassCompiler
[src]
impl Send for SinglepassCompiler
[src]
impl Sync for SinglepassCompiler
[src]
impl Unpin for SinglepassCompiler
[src]
impl !UnwindSafe for SinglepassCompiler
[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,
pub fn borrow_mut(&mut self) -> &mut T
[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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,