From 979b86d50258c160fe58fcae0ba2b02c7793bb1e Mon Sep 17 00:00:00 2001 From: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com> Date: Wed, 2 Mar 2022 13:44:26 +0800 Subject: [PATCH] Fixes build after 76c0bfc33f721b8e2de1b41b0f50ae4a27621349 Signed-off-by: Adrian Cole --- README.md | 2 +- config_supported.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8eeac9a5..b065cffb 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ There are two runtime configurations supported in wazero, where _JIT_ is default 1. _Interpreter_: a naive interpreter-based implementation of Wasm virtual machine. Its implementation doesn't have any platform (GOARCH, GOOS) specific code, therefore _interpreter_ engine can be used for any compilation target available for Go (such as `riscv64`). 2. _JIT_: compiles WebAssembly modules, generates the machine code, and executing it all at runtime. Currently wazero implements the JIT compiler for `amd64` and `arm64` target. Generally speaking, _JIT engine_ is faster than _Interpreter_ by order of magnitude. However, the implementation is immature and has a bunch of aspects that could be improved (for example, it just does a singlepass compilation and doesn't do any optimizations, etc.). Please refer to [internal/wasm/jit/RATIONALE.md](internal/wasm/jit/RATIONALE.md) for the design choices and considerations in our JIT engine. -Both of configurations passes 100% of [WebAssembly spec test suites]((https://github.com/WebAssembly/spec/tree/wg-1.0/test/core)) (on supported platforms). +Both configurations pass 100% of [WebAssembly spec test suites]((https://github.com/WebAssembly/spec/tree/wg-1.0/test/core)) (on supported platforms). | Engine | Usage| amd64 | arm64 | others | |:---:|:---:|:---:|:---:|:---:| diff --git a/config_supported.go b/config_supported.go index 5e4adf86..31135fd0 100644 --- a/config_supported.go +++ b/config_supported.go @@ -3,7 +3,8 @@ package wazero -// NewRuntimeConfig returns NewRuntimeConfigJIT +// NewRuntimeConfig returns NewRuntimeConfigInterpreter +// TODO: switch back to NewRuntimeConfigJIT https://github.com/tetratelabs/wazero/issues/308 func NewRuntimeConfig() *RuntimeConfig { - return NewRuntimeConfigJIT() + return NewRuntimeConfigInterpreter() }