summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 197b8bd84..0c7b2a9ad 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -630,6 +630,7 @@ public:
TableGetId,
TableSetId,
TableSizeId,
+ TableGrowId,
TryId,
ThrowId,
RethrowId,
@@ -1312,6 +1313,18 @@ public:
void finalize();
};
+class TableGrow : public SpecificExpression<Expression::TableGrowId> {
+public:
+ TableGrow() { type = Type::i32; }
+ TableGrow(MixedArena& allocator) : TableGrow() {}
+
+ Name table;
+ Expression* value;
+ Expression* delta;
+
+ void finalize();
+};
+
class Try : public SpecificExpression<Expression::TryId> {
public:
Try(MixedArena& allocator) : catchTags(allocator), catchBodies(allocator) {}