wasm-micro-runtime/core/iwasm
Wenyong Huang 7c7684819d
Register quick call entries to speedup the aot/jit func call process (#2978)
In some scenarios there may be lots of callings to AOT/JIT functions from the
host embedder, which expects good performance for the calling process, while
in the current implementation, runtime calls the wasm_runtime_invoke_native
to prepare the array of registers and stacks for the invokeNative assemble code,
and the latter then puts the elements in the array to physical registers and
native stacks and calls the AOT/JIT function, there may be many data copying
and handlings which impact the performance.

This PR registers some quick AOT/JIT entries for some simple wasm signatures,
and let runtime call the entry to directly invoke the AOT/JIT function instead of
calling wasm_runtime_invoke_native, which speedups the calling process.

We may extend the mechanism next to allow the developer to register his quick
AOT/JIT entries to speedup the calling process of invoking the AOT/JIT functions
for some specific signatures.
2024-01-10 16:44:09 +08:00
..
aot Register quick call entries to speedup the aot/jit func call process (#2978) 2024-01-10 16:44:09 +08:00
common Register quick call entries to speedup the aot/jit func call process (#2978) 2024-01-10 16:44:09 +08:00
compilation aot compiler: Some updates for LLVM 18 (#2981) 2024-01-08 10:15:31 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit fast-jit: Fix const shift and const i64 compare issues (#2969) 2024-01-02 17:56:34 +08:00
include Allow to set segue flags for wasm-c-api JIT (#2926) 2024-01-02 19:34:18 +08:00
interpreter Register quick call entries to speedup the aot/jit func call process (#2978) 2024-01-10 16:44:09 +08:00
libraries Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00