diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index c87b8c197..197b8bd84 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -629,6 +629,7 @@ public: RefEqId, TableGetId, TableSetId, + TableSizeId, TryId, ThrowId, RethrowId, @@ -1301,6 +1302,16 @@ public: void finalize(); }; +class TableSize : public SpecificExpression<Expression::TableSizeId> { +public: + TableSize() { type = Type::i32; } + TableSize(MixedArena& allocator) : TableSize() {} + + Name table; + + void finalize(); +}; + class Try : public SpecificExpression<Expression::TryId> { public: Try(MixedArena& allocator) : catchTags(allocator), catchBodies(allocator) {} |