This commit makes it possible for functions to be compiled before instantiation. Notably, this adds CompileModule method on Engine interface where we pass wasm.Module (which is the decoded module) to engines, and engines compile all the module functions and caches them keyed on *wasm.Module. In order to achieve that, this stops the compiled native code from embedding typeID which is assigned for all the function types in a store. Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
14 KiB
14 KiB