Conversation
|
The latest failures looks a bit scary and they only happens for weval build, but so far I was able to rule out that this is related to partial evaluation by just patching weval and skipping evaluation step -- I got the same errors. The simplest test (integers) failure looks like import dispatch is just wrong for weval build, which may suggest some codegen assumptions in the splicer has changed -- the wasi-sdk jump is pretty significant: from |
|
Hm... OK, interesting -- it looks like splicer only works on the module that was optimized with |
|
So it looks like indeed Before wasm-opt: After wasm-opt -O3: So the fix is to handle both: store idx so that it doesn't get overwritten and then check if global index is referenced and include that in final base calculation: It seems a bit fragile, but we should soon switch to This also suggests there are some further optimization opportunities for weval build: we could run the |
|
Another fix was to increase the |
|
I think next steps to integrate the changes should be:
|
I will keep it as a draft until we have StarlingMonkey release.