Expand description
This module mainly outputs the Compiler trait that custom
compilers will need to implement.
Structs§
- Function
Bucket - 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§
- Compiled
Function - 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.
- Compiler
Config - The compiler configuration options.
- Func
Translator - 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.
- translate_
function_ buckets - Compile function buckets largest-first via the channel (instead of Rayon’s par_iter).