Skip to main content

Crate wasmtime_internal_cranelift

Crate wasmtime_internal_cranelift 

Source
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§

isa_builder

Structs§

CompiledFunction
Compiled function: machine code body, jump table offsets, and unwind information.
CompiledFunctionMetadata
The metadata for the compiled function.
FunctionAddressMap
Metadata to translate from binary offsets back to the original location found in the wasm input.
ModuleTextBuilder
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.