diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index d681f3f4b..bd2e31814 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -557,6 +557,7 @@ enum RefAsOp { }; enum BrOnOp { + BrOnNull, BrOnCast, BrOnFunc, BrOnData, @@ -1400,6 +1401,12 @@ public: // BrOnCast has an rtt that is used in the cast. Expression* rtt; + // TODO: BrOnNull also has an optional extra value in the spec, which we do + // not support. See also the discussion on + // https://github.com/WebAssembly/function-references/issues/45 + // - depending on the decision there, we may want to move BrOnNull into + // Break or a new class of its own. + void finalize(); Type getCastType(); |