wasm-micro-runtime/core/iwasm
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
..
aot appease a few compiler warnings (-Wstrict-prototypes) (#4465) 2025-07-10 08:28:00 +08:00
common introduce wasm_runtime_instantiate_ex2 (#4444) 2025-07-14 13:06:23 +08:00
compilation fix a wamrc debug mode compile issue (#4470) 2025-07-10 08:29:31 +08:00
doc Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
fast-jit Support extended constant expressions (#4432) 2025-07-07 13:34:02 +08:00
include introduce wasm_runtime_instantiate_ex2 (#4444) 2025-07-14 13:06:23 +08:00
interpreter add validation for recursive type count in loader (#4440) 2025-07-14 13:06:08 +08:00
libraries wasi-nn: do not pretend to support legacy abi in openvino and llamacpp (#4468) 2025-07-10 08:28:08 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00