WebAssembly / stack-switching

A repository for the stack switching proposal.
Other
146 stars 13 forks source link

Implement the `switch` instruction #82

Closed dhil closed 3 months ago

dhil commented 3 months ago

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.

Resolves #78.