wasm-micro-runtime/core/iwasm/common
Wenyong Huang a182926a73
Refactor interpreter/AOT module instance layout (#1559)
Refactor the layout of interpreter and AOT module instance:
- Unify the interp/AOT module instance, use the same WASMModuleInstance/
  WASMMemoryInstance/WASMTableInstance data structures for both interpreter
  and AOT
- Make the offset of most fields the same in module instance for both interpreter
  and AOT, append memory instance structure, global data and table instances to
  the end of module instance for interpreter mode (like AOT mode)
- For extra fields in WASM module instance, use WASMModuleInstanceExtra to
  create a field `e` for interpreter
- Change the LLVM JIT module instance creating process, LLVM JIT uses the WASM
  module and module instance same as interpreter/Fast-JIT mode. So that Fast JIT
  and LLVM JIT can access the same data structures, and make it possible to
  implement the Multi-tier JIT (tier-up from Fast JIT to LLVM JIT) in the future
- Unify some APIs: merge some APIs for module instance and memory instance's
  related operations (only implement one copy)

Note that the AOT ABI is same, the AOT file format, AOT relocation types, how AOT
code accesses the AOT module instance and so on are kept unchanged.

Refer to:
https://github.com/bytecodealliance/wasm-micro-runtime/issues/1384
2022-10-18 10:59:28 +08:00
..
arch Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
iwasm_common.cmake Implement XIP feature and enable ARC target support (#694) 2021-08-12 17:44:39 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c Fix multi-module and some other issues (#1435) 2022-08-31 17:38:38 +08:00
wasm_c_api_internal.h Add more checks for wasm-c-api interfaces (#1121) 2022-04-27 13:28:27 +08:00
wasm_c_api.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_exec_env.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_exec_env.h Import WAMR Fast JIT (#1343) 2022-08-02 16:03:50 +08:00
wasm_memory.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_memory.h Enlarge max pool size and fix bh_memcpy_s dest max size check (#1151) 2022-05-07 16:09:16 +08:00
wasm_native.c Integrate WASI-NN into WAMR (#1521) 2022-10-12 12:09:29 +08:00
wasm_native.h Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
wasm_runtime_common.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_runtime_common.h Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_shared_memory.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_shared_memory.h Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00