Expand description
Support for compiling with Cranelift.
This crate provides an implementation of the wasmtime_environ::Compiler
and wasmtime_environ::CompilerBuilder traits.
⚠️ Warning ⚠️: this crate is an internal-only crate for the Wasmtime project and is not intended for general use. APIs are not strictly reviewed for safety and usage outside of Wasmtime may have bugs. If you’re interested in using this feel free to file an issue on the Wasmtime repository to start a discussion about doing so, but otherwise be aware that your usage of this crate is not supported.
Modules§
Structs§
- Compiled
Function - Compiled function: machine code body, jump table offsets, and unwind information.
- Compiled
Function Metadata - The metadata for the compiled function.
- Function
Address Map - Metadata to translate from binary offsets back to the original location found in the wasm input.
- Module
Text Builder - A helper structure used to assemble the final text section of an executable, plus unwinding information and other related details.
- Relocation
- A record of a relocation to perform.
Constants§
- TRAP_
ALLOCATION_ TOO_ LARGE - TRAP_
ARRAY_ OUT_ OF_ BOUNDS - TRAP_
BAD_ SIGNATURE - TRAP_
CANNOT_ LEAVE_ COMPONENT - TRAP_
CAST_ FAILURE - TRAP_
CONTINUATION_ ALREADY_ CONSUMED - TRAP_
HEAP_ MISALIGNED - TRAP_
INDIRECT_ CALL_ TO_ NULL - TRAP_
NULL_ REFERENCE - TRAP_
TABLE_ OUT_ OF_ BOUNDS - TRAP_
UNHANDLED_ TAG - TRAP_
UNREACHABLE
Functions§
- builder
- clif_
flags_ to_ wasmtime - Converts cranelift_codegen settings to the wasmtime_environ equivalent.
- mach_
trap_ to_ trap - Converts machine traps to trap information.