Commit Graph

3 Commits

Author SHA1 Message Date
Takeshi Yoneda
490f830096 jit(arm64): restore callee-saved registers on exits from native code (#311)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-03-02 20:51:05 +09:00
Crypt Keeper
979b86d502 Fixes build after 76c0bfc33f
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-03-02 13:44:26 +08:00
Adrian Cole
76c0bfc33f Combines Store+Engine into Runtime
This simplifies state management and the amount of terminology end-users
need to learn by using one concept `Runtime` instead of two: `Engine`
and `Store`. This bridges the concepts to the specification by still
having `wazero.Runtime` implement `wasm.Store`.

The net result is that we can know for sure which "engine" is used when
decoding. This allows us a lot of flexibility especially pre-compilation
when JIT is possible.

This also changes the default to JIT based on compiler flags so that
downstream projects like wapc-go don't have to do this individually
(including tracking of which OS+Arch have JIT).

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-03-02 12:29:13 +08:00