wasm-micro-runtime/core/iwasm/aot
Marcin Kolny cbc2078898
AOT call stack optimizations (#3773)
- Implement TINY / STANDARD frame modes - tiny mode is only able to keep track on the IP
  and func idx, STANDARD mode provides more capabilities (parameters, stack pointer etc.).
- Implement FRAME_PER_FUNCTION / FRAME_PER_CALL modes - frame per function adds
  code at the beginning and at the end of each function for allocating / deallocating stack frame,
  whereas in per-call mode the frame is allocated before each call. The exception is call to
  the imported function, where frame-per-function mode also allocates the stack before the
  `call` instruction (as it can't instrument the imported function).

At the moment TINY + FRAME_PER_FUNCTION is automatically enabled in case GC and perf
profiling are disabled and `values` call stack feature is not requested. In all the other cases
STANDARD + FRAME_PER_CALL is used.

STANDARD + FRAME_PER_FUNCTION and TINY + FRAME_PER_CALL are currently not
implemented but possible, and might be enabled in the future.

ps. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3758
2024-09-10 09:05:23 +08:00
..
arch Fix arm64 issues on mac (#3688) 2024-08-23 09:49:06 +08:00
debug Fix aot debugger compilation error on windows (#3370) 2024-04-29 10:38:43 +08:00
aot_intrinsic.c Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
aot_intrinsic.h Add cmake flag to control aot intrinsics (#3261) 2024-04-01 11:26:05 +08:00
aot_loader.c AOT call stack optimizations (#3773) 2024-09-10 09:05:23 +08:00
aot_perf_map.c Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_perf_map.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_reloc.h Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
aot_runtime.c AOT call stack optimizations (#3773) 2024-09-10 09:05:23 +08:00
aot_runtime.h AOT call stack optimizations (#3773) 2024-09-10 09:05:23 +08:00
iwasm_aot.cmake Fix windows AOT hw bound check (#2475) 2023-08-18 10:16:03 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00