summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r--src/wasm-builder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 03fddb178..eb1874c3b 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -1198,6 +1198,18 @@ public:
return ret;
}
+ ContBind* makeContBind(HeapType contTypeBefore,
+ HeapType contTypeAfter,
+ const std::vector<Expression*>& operands,
+ Expression* cont) {
+ auto* ret = wasm.allocator.alloc<ContBind>();
+ ret->contTypeBefore = contTypeBefore;
+ ret->contTypeAfter = contTypeAfter;
+ ret->operands.set(operands);
+ ret->cont = cont;
+ ret->finalize();
+ return ret;
+ }
ContNew* makeContNew(HeapType contType, Expression* func) {
auto* ret = wasm.allocator.alloc<ContNew>();
ret->contType = contType;