File tree Expand file tree Collapse file tree 7 files changed +9
-0
lines changed Expand file tree Collapse file tree 7 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,9 @@ BinaryenFeatures BinaryenFeatureGC(void) {
246
246
BinaryenFeatures BinaryenFeatureMemory64 (void ) {
247
247
return static_cast <BinaryenFeatures>(FeatureSet::Memory64);
248
248
}
249
+ BinaryenFeatures BinaryenFeatureTypedFunctionReferences (void ) {
250
+ return static_cast <BinaryenFeatures>(FeatureSet::TypedFunctionReferences);
251
+ }
249
252
BinaryenFeatures BinaryenFeatureAll (void ) {
250
253
return static_cast <BinaryenFeatures>(FeatureSet::All);
251
254
}
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ BINARYEN_API BinaryenFeatures BinaryenFeatureReferenceTypes(void);
159
159
BINARYEN_API BinaryenFeatures BinaryenFeatureMultivalue (void );
160
160
BINARYEN_API BinaryenFeatures BinaryenFeatureGC (void );
161
161
BINARYEN_API BinaryenFeatures BinaryenFeatureMemory64 (void );
162
+ BINARYEN_API BinaryenFeatures BinaryenFeatureTypedFunctionReferences (void );
162
163
BINARYEN_API BinaryenFeatures BinaryenFeatureAll (void );
163
164
164
165
// Modules
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ function initializeConstants() {
141
141
'Multivalue' ,
142
142
'GC' ,
143
143
'Memory64' ,
144
+ 'TypedFunctionReferences' ,
144
145
'All'
145
146
] . forEach ( name => {
146
147
Module [ 'Features' ] [ name ] = Module [ '_BinaryenFeature' + name ] ( ) ;
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ function test_features() {
114
114
console . log ( "Features.Multivalue: " + binaryen . Features . Multivalue ) ;
115
115
console . log ( "Features.GC: " + binaryen . Features . GC ) ;
116
116
console . log ( "Features.Memory64: " + binaryen . Features . Memory64 ) ;
117
+ console . log ( "Features.TypedFunctionReferences: " + binaryen . Features . TypedFunctionReferences ) ;
117
118
console . log ( "Features.All: " + binaryen . Features . All ) ;
118
119
}
119
120
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Features.ReferenceTypes: 256
41
41
Features.Multivalue: 512
42
42
Features.GC: 1024
43
43
Features.Memory64: 2048
44
+ Features.TypedFunctionReferences: 4096
44
45
Features.All: 8191
45
46
InvalidId: 0
46
47
BlockId: 1
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ void test_features() {
261
261
printf ("BinaryenFeatureMultivalue: %d\n" , BinaryenFeatureMultivalue ());
262
262
printf ("BinaryenFeatureGC: %d\n" , BinaryenFeatureGC ());
263
263
printf ("BinaryenFeatureMemory64: %d\n" , BinaryenFeatureMemory64 ());
264
+ printf ("BinaryenFeatureTypedFunctionReferences: %d\n" , BinaryenFeatureTypedFunctionReferences ());
264
265
printf ("BinaryenFeatureAll: %d\n" , BinaryenFeatureAll ());
265
266
}
266
267
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ BinaryenFeatureReferenceTypes: 256
25
25
BinaryenFeatureMultivalue: 512
26
26
BinaryenFeatureGC: 1024
27
27
BinaryenFeatureMemory64: 2048
28
+ BinaryenFeatureTypedFunctionReferences: 4096
28
29
BinaryenFeatureAll: 8191
29
30
(f32.neg
30
31
(f32.const -33.61199951171875)
You can’t perform that action at this time.
0 commit comments