This patch implements the switch instruction as outlined in the explainer document.
In addition it includes a few bug fixes too (in particular we didn't capture Handler-frames in continuations leading to bugs in the presence of exception handlers).
Note, I have not thoroughly tested this implementation yet. I have only tested it on the example in the explainer document.
Note, I am targetting this patch to the wasmfx branch. I think after this patch, we should clean up this branch and move the reference interpreter into the main branch.
This patch implements the
switch
instruction as outlined in the explainer document.In addition it includes a few bug fixes too (in particular we didn't capture
Handler
-frames in continuations leading to bugs in the presence of exception handlers).Note, I have not thoroughly tested this implementation yet. I have only tested it on the example in the explainer document.
Note, I am targetting this patch to the
wasmfx
branch. I think after this patch, we should clean up this branch and move the reference interpreter into themain
branch.Resolves #78.