summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index 4a5ce416..a60de398 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -137,6 +137,7 @@ class BinaryReaderIR : public BinaryReaderNop {
Result OnBlockExpr(Type sig_type) override;
Result OnBrExpr(Index depth) override;
Result OnBrIfExpr(Index depth) override;
+ Result OnBrOnExnExpr(Index depth, Index event_index) override;
Result OnBrTableExpr(Index num_targets,
Index* target_depths,
Index default_target_depth) override;
@@ -649,6 +650,13 @@ Result BinaryReaderIR::OnBrIfExpr(Index depth) {
return AppendExpr(MakeUnique<BrIfExpr>(Var(depth)));
}
+Result BinaryReaderIR::OnBrOnExnExpr(Index depth, Index event_index) {
+ auto expr = MakeUnique<BrOnExnExpr>();
+ expr->label_var = Var(depth);
+ expr->event_var = Var(event_index);
+ return AppendExpr(std::move(expr));
+}
+
Result BinaryReaderIR::OnBrTableExpr(Index num_targets,
Index* target_depths,
Index default_target_depth) {