File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,16 @@ export declare function _BinaryenHeapTypeNofunc(): HeapTypeRef;
82
82
83
83
export declare function _BinaryenHeapTypeIsBottom ( heapType : HeapTypeRef ) : bool ;
84
84
export declare function _BinaryenHeapTypeGetBottom ( heapType : HeapTypeRef ) : HeapTypeRef ;
85
+ export declare function _BinaryenHeapTypeIsSubType ( left : HeapTypeRef , right : HeapTypeRef ) : bool ;
86
+ export declare function _BinaryenStructTypeGetNumFields ( heapType : HeapTypeRef ) : Index ;
87
+ export declare function _BinaryenStructTypeGetFieldType ( heapType : HeapTypeRef , index : Index ) : TypeRef ;
88
+ export declare function _BinaryenStructTypeGetFieldPackedType ( heapType : HeapTypeRef , index : Index ) : PackedType ;
89
+ export declare function _BinaryenStructTypeIsFieldMutable ( heapType : HeapTypeRef , index : Index ) : bool ;
90
+ export declare function _BinaryenArrayTypeGetElementType ( heapType : HeapTypeRef ) : TypeRef ;
91
+ export declare function _BinaryenArrayTypeGetElementPackedType ( heapType : HeapTypeRef ) : PackedType ;
92
+ export declare function _BinaryenArrayTypeIsElementMutable ( heapType : HeapTypeRef ) : bool ;
93
+ export declare function _BinaryenSignatureTypeGetParams ( heapType : HeapTypeRef ) : TypeRef ;
94
+ export declare function _BinaryenSignatureTypeGetResults ( heapType : HeapTypeRef ) : TypeRef ;
85
95
86
96
export declare function _BinaryenModuleCreate ( ) : ModuleRef ;
87
97
export declare function _BinaryenModuleDispose ( module : ModuleRef ) : void ;
Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ export const {
45
45
46
46
_BinaryenHeapTypeIsBottom,
47
47
_BinaryenHeapTypeGetBottom,
48
+ _BinaryenHeapTypeIsSubType,
49
+ _BinaryenStructTypeGetNumFields,
50
+ _BinaryenStructTypeGetFieldType,
51
+ _BinaryenStructTypeGetFieldPackedType,
52
+ _BinaryenStructTypeIsFieldMutable,
53
+ _BinaryenArrayTypeGetElementType,
54
+ _BinaryenArrayTypeGetElementPackedType,
55
+ _BinaryenArrayTypeIsElementMutable,
56
+ _BinaryenSignatureTypeGetParams,
57
+ _BinaryenSignatureTypeGetResults,
48
58
49
59
_BinaryenModuleCreate,
50
60
_BinaryenModuleDispose,
Original file line number Diff line number Diff line change @@ -124,6 +124,10 @@ export namespace HeapTypeRef {
124
124
export function getBottom ( ht : HeapTypeRef ) : HeapTypeRef {
125
125
return binaryen . _BinaryenHeapTypeGetBottom ( ht ) ;
126
126
}
127
+
128
+ export function isSubtype ( ht : HeapTypeRef , superHt : HeapTypeRef ) : bool {
129
+ return binaryen . _BinaryenHeapTypeIsSubType ( ht , superHt ) ;
130
+ }
127
131
}
128
132
129
133
/** Packed array element respectively struct field types. */
You can’t perform that action at this time.
0 commit comments