Binary 0xc: Remove arity on return instruction#740
Conversation
Also skip binary roundtrip on stacky spec tests
|
Wait, why did you add skipping here? Those aren't "stacky" tests, there should only be stacky stuff in |
|
func.wast has and return.wast has Are my tests out of date? |
|
The tests look up to date, and yes they have the "stack" comment on them, but they were not "too" stacky before - I guess that now they are, after removing return arity? I'm ok to skip these then, for now, but the proper thing is to move them to |
|
Yeah the problem now is that e.g. Previously the return was encoded by binaryen with arity 1, and parsed with arity 1 which consumed the const. Now the return is inferred as arity 0 (because the function is void), and the const is left on the stack after parsing. |
|
@dschuff That function would be invalid AST because the number of arguments to the |
Also skip binary roundtrip on stacky spec tests