From b4dee3dc05834ada8bf94e3e925186bc8b430c30 Mon Sep 17 00:00:00 2001 From: Frank Emrich Date: Thu, 11 Jan 2024 21:22:43 +0000 Subject: 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. --- src/parser/parsers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/parser/parsers.h') 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 Result<> makeStringSliceWTF(Ctx&, Index, StringSliceWTFOp op); template Result<> makeStringSliceIter(Ctx&, Index); +template Result<> makeResume(Ctx&, Index); // Modules template MaybeResult maybeTypeidx(Ctx& ctx); @@ -1812,6 +1813,10 @@ template Result<> makeStringSliceIter(Ctx& ctx, Index pos) { return ctx.makeStringSliceIter(pos); } +template Result<> makeResume(Ctx& ctx, Index pos) { + return ctx.in.err("unimplemented instruction"); +} + // ======= // Modules // ======= -- cgit v1.2.3