This notably changes NewRuntimeJIT to NewRuntimeCompiler as well renames packages from jit to compiler. This clarifies the implementation is AOT, not JIT, at least when clarified to where it occurs (Runtime.CompileModule). In doing so, we reduce any concern that compilation will happen during function execution. We also free ourselves to create a JIT option without confusion in the future via CompileConfig or otherwise. Fixes #560 Signed-off-by: Adrian Cole <adrian@tetrate.io>
9 lines
469 B
Go
9 lines
469 B
Go
// Package wazeroir is a pkg to compile down the standard Wasm binary to wazero's specific IR (wazeroir).
|
|
// The wazeroir is inspired by microwasm format (a.k.a. LightbeamIR), previously used
|
|
// in the lightbeam compiler in Wasmtime, though it is not specified and only exists
|
|
// in the previous codebase of wasmtime
|
|
// e.g. https://github.com/bytecodealliance/wasmtime/blob/v0.29.0/crates/lightbeam/src/microwasm.rs
|
|
//
|
|
// See RATIONALE.md for detail.
|
|
package wazeroir
|