Alon Zakai
Alon Zakai
To do this, refactor the table scanning code out of Directize into TableUtils. Then when we see a CallIndirect in RemoveUnusedModuleElements, we no longer automatically assume it could call anything...
CallRef gets an isReturn param https://github.com/WebAssembly/binaryen/blob/93f40ae40a8f373fce9da8e20997eafdd618fd0b/src/binaryen-c.h#L1014-L1020 while Call/CallIndirect have two variants instead, `BinaryenCall, BinaryenReturnCall`. We should probably standardize on one. Noticed in https://github.com/WebAssembly/binaryen/pull/8103/
Rather than recompute the entire map of Call instructions to each target, keep it around between iterations, and just update the changed part. This requires us to track the origin...
In projects that merge files, many of the exports in the intermediate files may be meant for the others they are merged with, and not for the final binary. Having...
After discussions with @dschuff and @tlively I realized I might be able to explain the stack switching approach better, so I wrote this PR.
Uploading this just for future reference and discussion. Our current interpreter is pretty efficient, it turns out: It interprets the IR in-place, without constructing any new IR, and while doing...
This pass find Binary instructions where the children have effects, and moves them to locals. This is meant to help with the situation in #7557 (see details there, but basically,...