You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JSStats No, that's wrong. AIUI, the spec was updated before the demo to add blocks to the then and else branches, in preparation for the transition to the postorder format. But the binary format was not similarly updated. I modified sexpr-wasm-prototype so it could take this discrepancy into account (AFAIK the other binary translators don't bother).
Activity
wanderer commentedon Mar 31, 2016
thanks @JSStats. There is no special
if-thenblock in the binary spec, so it must be getting converted to thisBut why is it inserting a block? Shouldn't the s-expressions be 1-1 with the binary?
wanderer commentedon Mar 31, 2016
@JSStats I think i see that. I'm picking it apart with the sexpr-wasm-prototype. So something like
Gets no block inserted. But
gets turned into
Which is annoying because there must be some rules to decide whether or not to insert a block. Also it means s-expressions are not 1-1 with the binary
wanderer commentedon Mar 31, 2016
thanks @JSStats for taking time to explain
binji commentedon Mar 31, 2016
@JSStats No, that's wrong. AIUI, the spec was updated before the demo to add blocks to the
thenandelsebranches, in preparation for the transition to the postorder format. But the binary format was not similarly updated. I modified sexpr-wasm-prototype so it could take this discrepancy into account (AFAIK the other binary translators don't bother).Implement v128 boolean operations (WebAssembly#270)
Fix arrayref opcode (WebAssembly#270)
Test breaking out of a try (#270)