Module compiler

Module compiler 

Source
Expand description

This module mainly outputs the Compiler trait that custom compilers will need to implement.

Structs§

CompiledObjects
Holds the sets of compiled object files produced during compilation.
FunctionBucket
A bucket containing a group of functions and their total size, used to balance compilation units for parallel compilation.

Constants§

WASM_LARGE_FUNCTION_THRESHOLD
Byte size threshold for a function that is considered large.
WASM_TRAMPOLINE_ESTIMATED_BODY_SIZE
Estimated byte size of a trampoline (used for progress bar reporting).

Traits§

CompiledFunction
Represents a function that has been compiled by the backend compiler.
Compiler
An implementation of a Compiler from parsed WebAssembly module to Compiled native code.
CompilerConfig
The compiler configuration options.
FuncTranslator
Translates a function from its input representation to a compiled form.

Functions§

build_function_buckets
Build buckets sized by function length to keep compilation units balanced for parallel compilation.
emit_metadata_and_link
Emits Wasmer metadata sections and links backend-generated object files into a shared object.
emit_wasmer_meta_object 🔒
translate_function_buckets
Compile function buckets largest-first via the channel (instead of Rayon’s par_iter).