379: Fix small return types. r=syrusakbary a=lachlansneff
This fixes returning integers smaller than 32bits from imported functions. Also some work on fixing returning errors from functions.
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
Co-authored-by: Syrus <me@syrusakbary.com>
371: Add more Debug impl for WASI types r=bjfish a=bjfish
Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
Co-authored-by: Brandon Fish <bjfish@users.noreply.github.com>
370: Fix WASI by using u32 everywhere instead of u16 r=syrusakbary a=syrusakbary
Long story short: we were seeing some undeterministic behavior when running wasmer with WASI on Linux.
It turned out we are doing some bad conversions from u16 to the inner type in the trampolines (or func type?), and this only showed up in certain systems.
This PR is a quick fix to get things running quickly, but we will proceed with a proper fix soon and revert this PR.
Note: the discovery of the bug was done by @bjfish, and this PR is just a very simple way to address it.
cc @lachlansneff
Co-authored-by: Syrus <me@syrusakbary.com>
367: Add caching support to llvm backend r=lachlansneff a=lachlansneff
This changes the `CacheGen` trait a little, since it was weird.
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
366: Remove UserTrapper trait r=lachlansneff a=lachlansneff
This removes the `UserTrapper` trait and the thread_local EARLY_TRAPPER variable.
Fixes bug reported in #365.
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
348: Internal runtime ↔️ backend abstraction refactor. r=lachlansneff a=lachlansneff
This replaces the `ProtectedCaller` and `FuncResolver` traits with a combined `RunnableModule` trait. I'd like to get this merged, since it's standalone, but there are follow-up PRs I'd like to make that will further change the abstraction
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>