diff options
author | Frank Emrich <git@emrich.io> | 2024-01-11 21:22:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 13:22:43 -0800 |
commit | b4dee3dc05834ada8bf94e3e925186bc8b430c30 (patch) | |
tree | 19d3150e7438803274c1dfc03be56dff83309fe7 /src/parser/parsers.h | |
parent | e5948a939eb6610f1cb7742df8c54f6d17389b83 (diff) | |
download | binaryen-b4dee3dc05834ada8bf94e3e925186bc8b430c30.tar.gz binaryen-b4dee3dc05834ada8bf94e3e925186bc8b430c30.tar.bz2 binaryen-b4dee3dc05834ada8bf94e3e925186bc8b430c30.zip |
Typed continuations: resume instructions (#6083)
This PR is part of a series that adds basic support for the [typed continuations proposal](https://github.com/wasmfx/specfx).
This particular PR adds support for the `resume` instruction. The most notable missing feature is validation, which is not implemented, yet.
Diffstat (limited to 'src/parser/parsers.h')
-rw-r--r-- | src/parser/parsers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/parsers.h b/src/parser/parsers.h index 1ae5cc080..10894a7cf 100644 --- a/src/parser/parsers.h +++ b/src/parser/parsers.h @@ -164,6 +164,7 @@ Result<> makeStringIterMove(Ctx&, Index, StringIterMoveOp op); template<typename Ctx> Result<> makeStringSliceWTF(Ctx&, Index, StringSliceWTFOp op); template<typename Ctx> Result<> makeStringSliceIter(Ctx&, Index); +template<typename Ctx> Result<> makeResume(Ctx&, Index); // Modules template<typename Ctx> MaybeResult<Index> maybeTypeidx(Ctx& ctx); @@ -1812,6 +1813,10 @@ template<typename Ctx> Result<> makeStringSliceIter(Ctx& ctx, Index pos) { return ctx.makeStringSliceIter(pos); } +template<typename Ctx> Result<> makeResume(Ctx& ctx, Index pos) { + return ctx.in.err("unimplemented instruction"); +} + // ======= // Modules // ======= |