diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index a4d41530e..c2a771a7d 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1027,6 +1027,7 @@ enum ASTNodes { Try = 0x06, Catch = 0x07, CatchAll = 0x05, + Delegate = 0x18, Throw = 0x08, Rethrow = 0x09, @@ -1417,6 +1418,8 @@ public: // the names that breaks target. this lets us know if a block has breaks to it // or not. std::unordered_set<Name> breakTargetNames; + // the names that delegates target. + std::unordered_set<Name> delegateTargetNames; std::vector<Expression*> expressionStack; @@ -1521,6 +1524,7 @@ public: Expression* getBlockOrSingleton(Type type); BreakTarget getBreakTarget(int32_t offset); + Name getDelegateTargetName(int32_t offset); void readMemoryAccess(Address& alignment, Address& offset); |