@@ -26,7 +26,7 @@ export type FunctionRef = Ref;
26
26
export type ImportRef = Ref ;
27
27
export type ExportRef = Ref ;
28
28
export type GlobalRef = Ref ;
29
- export type EventRef = Ref ;
29
+ export type TagRef = Ref ;
30
30
export type TableRef = Ref ;
31
31
export type ElementSegmentRef = Ref ;
32
32
export type RelooperRef = Ref ;
@@ -410,18 +410,18 @@ export declare function _BinaryenRefEqSetLeft(expr: ExpressionRef, leftExpr: Exp
410
410
export declare function _BinaryenRefEqGetRight ( expr : ExpressionRef ) : ExpressionRef ;
411
411
export declare function _BinaryenRefEqSetRight ( expr : ExpressionRef , rightExpr : ExpressionRef ) : void ;
412
412
413
- export declare function _BinaryenTry ( module : ModuleRef , name : StringRef , bodyExpr : ExpressionRef , catchEvents : ArrayRef < StringRef > , numCatchEvents : Index , catchBodies : ArrayRef < ExpressionRef > , numCatchBodies : Index , delegateTarget : StringRef ) : ExpressionRef ;
413
+ export declare function _BinaryenTry ( module : ModuleRef , name : StringRef , bodyExpr : ExpressionRef , catchTags : ArrayRef < StringRef > , numCatchTags : Index , catchBodies : ArrayRef < ExpressionRef > , numCatchBodies : Index , delegateTarget : StringRef ) : ExpressionRef ;
414
414
export declare function _BinaryenTryGetName ( expr : ExpressionRef ) : StringRef ;
415
415
export declare function _BinaryenTrySetName ( expr : ExpressionRef , name : StringRef ) : void ;
416
416
export declare function _BinaryenTryGetBody ( expr : ExpressionRef ) : ExpressionRef ;
417
417
export declare function _BinaryenTrySetBody ( expr : ExpressionRef , bodyExpr : ExpressionRef ) : void ;
418
- export declare function _BinaryenTryGetNumCatchEvents ( expr : ExpressionRef ) : Index ;
418
+ export declare function _BinaryenTryGetNumCatchTags ( expr : ExpressionRef ) : Index ;
419
419
export declare function _BinaryenTryGetNumCatchBodies ( expr : ExpressionRef ) : Index ;
420
- export declare function _BinaryenTryGetCatchEventAt ( expr : ExpressionRef , index : Index ) : StringRef ;
421
- export declare function _BinaryenTrySetCatchEventAt ( expr : ExpressionRef , index : Index , catchEvent : StringRef ) : void ;
422
- export declare function _BinaryenTryAppendCatchEvent ( expr : ExpressionRef , catchEvent : StringRef ) : Index ;
423
- export declare function _BinaryenTryInsertCatchEventAt ( expr : ExpressionRef , index : Index , catchEvent : StringRef ) : void ;
424
- export declare function _BinaryenTryRemoveCatchEventAt ( expr : ExpressionRef , index : Index ) : StringRef ;
420
+ export declare function _BinaryenTryGetCatchTagAt ( expr : ExpressionRef , index : Index ) : StringRef ;
421
+ export declare function _BinaryenTrySetCatchTagAt ( expr : ExpressionRef , index : Index , catchTag : StringRef ) : void ;
422
+ export declare function _BinaryenTryAppendCatchTag ( expr : ExpressionRef , catchTag : StringRef ) : Index ;
423
+ export declare function _BinaryenTryInsertCatchTagAt ( expr : ExpressionRef , index : Index , catchTag : StringRef ) : void ;
424
+ export declare function _BinaryenTryRemoveCatchTagAt ( expr : ExpressionRef , index : Index ) : StringRef ;
425
425
export declare function _BinaryenTryGetCatchBodyAt ( expr : ExpressionRef , index : Index ) : ExpressionRef ;
426
426
export declare function _BinaryenTrySetCatchBodyAt ( expr : ExpressionRef , index : Index , catchExpr : ExpressionRef ) : void ;
427
427
export declare function _BinaryenTryAppendCatchBody ( expr : ExpressionRef , catchExpr : ExpressionRef ) : Index ;
@@ -432,9 +432,9 @@ export declare function _BinaryenTryGetDelegateTarget(expr: ExpressionRef): Stri
432
432
export declare function _BinaryenTrySetDelegateTarget ( expr : ExpressionRef , delegateTarget : StringRef ) : void ;
433
433
export declare function _BinaryenTryIsDelegate ( expr : ExpressionRef ) : bool ;
434
434
435
- export declare function _BinaryenThrow ( module : ModuleRef , eventName : StringRef , operands : ArrayRef < ExpressionRef > , numOperands : Index ) : ExpressionRef ;
436
- export declare function _BinaryenThrowGetEvent ( expr : ExpressionRef ) : StringRef ;
437
- export declare function _BinaryenThrowSetEvent ( expr : ExpressionRef , eventName : StringRef ) : void ;
435
+ export declare function _BinaryenThrow ( module : ModuleRef , tagName : StringRef , operands : ArrayRef < ExpressionRef > , numOperands : Index ) : ExpressionRef ;
436
+ export declare function _BinaryenThrowGetTag ( expr : ExpressionRef ) : StringRef ;
437
+ export declare function _BinaryenThrowSetTag ( expr : ExpressionRef , tagName : StringRef ) : void ;
438
438
export declare function _BinaryenThrowGetNumOperands ( expr : ExpressionRef ) : Index ;
439
439
export declare function _BinaryenThrowGetOperandAt ( expr : ExpressionRef , index : Index ) : ExpressionRef ;
440
440
export declare function _BinaryenThrowSetOperandAt ( expr : ExpressionRef , index : Index , operandExpr : ExpressionRef ) : void ;
@@ -497,13 +497,13 @@ export declare function _BinaryenAddFunctionImport(module: ModuleRef, internalNa
497
497
export declare function _BinaryenAddTableImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef ) : void ;
498
498
export declare function _BinaryenAddMemoryImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , shared :bool ) : void ;
499
499
export declare function _BinaryenAddGlobalImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , globalType : TypeRef , mutable : bool ) : void ;
500
- export declare function _BinaryenAddEventImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , attribute : u32 , params : TypeRef , results : TypeRef ) : void ;
500
+ export declare function _BinaryenAddTagImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , params : TypeRef , results : TypeRef ) : void ;
501
501
502
502
export declare function _BinaryenAddFunctionExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
503
503
export declare function _BinaryenAddTableExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
504
504
export declare function _BinaryenAddMemoryExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
505
505
export declare function _BinaryenAddGlobalExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
506
- export declare function _BinaryenAddEventExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
506
+ export declare function _BinaryenAddTagExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
507
507
export declare function _BinaryenGetExport ( module : ModuleRef , externalName : StringRef ) : ExportRef ;
508
508
export declare function _BinaryenRemoveExport ( module : ModuleRef , externalName : StringRef ) : void ;
509
509
export declare function _BinaryenGetNumExports ( module : ModuleRef ) : Index ;
@@ -523,14 +523,13 @@ export declare function _BinaryenGlobalGetType(global: GlobalRef): TypeRef;
523
523
export declare function _BinaryenGlobalIsMutable ( global : GlobalRef ) : bool ;
524
524
export declare function _BinaryenGlobalGetInitExpr ( global : GlobalRef ) : ExpressionRef ;
525
525
526
- export declare function _BinaryenAddEvent ( module : ModuleRef , name : StringRef , attribute : u32 , params : TypeRef , results : TypeRef ) : EventRef ;
527
- export declare function _BinaryenGetEvent ( module : ModuleRef , name : StringRef ) : EventRef ;
528
- export declare function _BinaryenRemoveEvent ( module : ModuleRef , name : StringRef ) : void ;
526
+ export declare function _BinaryenAddTag ( module : ModuleRef , name : StringRef , params : TypeRef , results : TypeRef ) : TagRef ;
527
+ export declare function _BinaryenGetTag ( module : ModuleRef , name : StringRef ) : TagRef ;
528
+ export declare function _BinaryenRemoveTag ( module : ModuleRef , name : StringRef ) : void ;
529
529
530
- export declare function _BinaryenEventGetName ( event : EventRef ) : StringRef ;
531
- export declare function _BinaryenEventGetAttribute ( event : EventRef ) : u32 ;
532
- export declare function _BinaryenEventGetParams ( event : EventRef ) : TypeRef ;
533
- export declare function _BinaryenEventGetResults ( event : EventRef ) : TypeRef ;
530
+ export declare function _BinaryenTagGetName ( tag : TagRef ) : StringRef ;
531
+ export declare function _BinaryenTagGetParams ( tag : TagRef ) : TypeRef ;
532
+ export declare function _BinaryenTagGetResults ( tag : TagRef ) : TypeRef ;
534
533
535
534
export declare function _BinaryenAddTable ( module : ModuleRef , name : StringRef , initial : Index , maximum : Index ) : TableRef ;
536
535
export declare function _BinaryenRemoveTable ( module : ModuleRef , table : StringRef ) : void ;
0 commit comments