summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
authorFrank Emrich <git@emrich.io>2023-10-25 00:16:12 +0100
committerGitHub <noreply@github.com>2023-10-24 16:16:12 -0700
commit02e5b160a1625ca8e2bf24bff9b4e06d012cf417 (patch)
tree0763490e387856d2cc62eb9a93d3a8d01996b3ec /src/wasm/wasm.cpp
parentec8220f4aa556ce39145db13eddd84855b11f76c (diff)
downloadbinaryen-02e5b160a1625ca8e2bf24bff9b4e06d012cf417.tar.gz
binaryen-02e5b160a1625ca8e2bf24bff9b4e06d012cf417.tar.bz2
binaryen-02e5b160a1625ca8e2bf24bff9b4e06d012cf417.zip
Typed Continuations: Add cont type (#5998)
This PR is part of a series that adds basic support for the [typed continuations proposal](https://github.com/wasmfx/specfx). This PR adds continuation types, of the form `(cont $foo)` for some function type `$foo`. The only notable changes affecting existing code are the following: - This is the first `HeapType` which has another `HeapType` (rather than, say, a `Type`) as its immediate child. This required fixes to certain traversals that have a flag for being at the toplevel of a type. - Some shared logic for parsing `HeapType`s has been factored out.
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index e5f3deb33..fef613cd2 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -60,6 +60,7 @@ Name MODULE("module");
Name START("start");
Name GLOBAL("global");
Name FUNC("func");
+Name CONT("cont");
Name PARAM("param");
Name RESULT("result");
Name MEMORY("memory");