wasm-micro-runtime/core/iwasm/common
YAMAMOTO Takashi 5d48cfdbc0
introduce wasm_runtime_instantiate_ex2 (#4444)
* introduce wasm_runtime_instantiate_ex2

at this point, just a slightly inefficiant functionality
equivalent of wasm_runtime_instantiate_ex.
however, unlike wasm_runtime_instantiate_ex, this one is designed
to be extendable without breaking the user-visible ABI.
because the definition of InstantiationArgs2 is not exposed to
users, we can safely add new members to it.

this commit also makes wasm_runtime_instantiate_ex a wrapper
of wasm_runtime_instantiate_ex2.

if this goes well, maybe it's a good idea to apply a similar
pattern to RuntimeInitArgs, LoadArgs, SharedHeapInitArgs, etc.
i started with InstantiationArgs just because i happen to have
a need to extend it for wasi-nn.

cf.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4364
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4331

* product-mini/platforms/posix: use wasm_runtime_instantiate_ex2
2025-07-14 13:06:23 +08:00
..
arch fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
gc Collective fix for typos and minor bugs (#4369) 2025-06-17 09:26:00 +08:00
iwasm_common.cmake Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
SConscript Refactor SConscript and add file checks in iwasm.c (#3945) 2024-12-06 14:54:37 +08:00
wasm_application.c fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
wasm_blocking_op.c Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasm_c_api_internal.h Fix some spelling issues (#3385) 2024-05-06 07:56:48 +08:00
wasm_c_api.c fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
wasm_exec_env.c feat: Add instruction metering for interpreter (#4122) 2025-05-26 16:16:42 +08:00
wasm_exec_env.h feat: Add instruction metering for interpreter (#4122) 2025-05-26 16:16:42 +08:00
wasm_loader_common.c Support extended constant expressions (#4432) 2025-07-07 13:34:02 +08:00
wasm_loader_common.h Support extended constant expressions (#4432) 2025-07-07 13:34:02 +08:00
wasm_memory.c Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wasm_memory.h Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wasm_native.c Implement a first version of shared heap feature (#3789) 2024-09-14 10:51:42 +08:00
wasm_native.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_runtime_common.c introduce wasm_runtime_instantiate_ex2 (#4444) 2025-07-14 13:06:23 +08:00
wasm_runtime_common.h introduce wasm_runtime_instantiate_ex2 (#4444) 2025-07-14 13:06:23 +08:00
wasm_shared_memory.c Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
wasm_shared_memory.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_suspend_flags.h Do not inherit WASM_SUSPEND_FLAG_BLOCKING from the parent thread (#3051) 2024-01-19 09:55:01 +08:00