@@ -36,6 +36,34 @@ function caml_binaryen_set_debug_info(on) {
3636 return Binaryen . _BinaryenSetDebugInfo ( on ) ;
3737}
3838
39+ //Provides: caml_binaryen_get_traps_never_happen
40+ //Requires: Binaryen
41+ function caml_binaryen_get_traps_never_happen ( ) {
42+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
43+ return Binaryen . _BinaryenGetTrapsNeverHappen ( ) ;
44+ }
45+
46+ //Provides: caml_binaryen_set_traps_never_happen
47+ //Requires: Binaryen
48+ function caml_binaryen_set_traps_never_happen ( on ) {
49+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
50+ return Binaryen . _BinaryenSetTrapsNeverHappen ( on ) ;
51+ }
52+
53+ //Provides: caml_binaryen_get_closed_world
54+ //Requires: Binaryen
55+ function caml_binaryen_get_closed_world ( ) {
56+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
57+ return Binaryen . _BinaryenGetClosedWorld ( ) ;
58+ }
59+
60+ //Provides: caml_binaryen_set_closed_world
61+ //Requires: Binaryen
62+ function caml_binaryen_set_closed_world ( on ) {
63+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
64+ return Binaryen . _BinaryenSetClosedWorld ( on ) ;
65+ }
66+
3967//Provides: caml_binaryen_get_low_memory_unused
4068//Requires: Binaryen
4169function caml_binaryen_get_low_memory_unused ( ) {
@@ -50,6 +78,62 @@ function caml_binaryen_set_low_memory_unused(on) {
5078 return Binaryen . _BinaryenSetLowMemoryUnused ( on ) ;
5179}
5280
81+ //Provides: caml_binaryen_get_zero_filled_memory
82+ //Requires: Binaryen
83+ function caml_binaryen_get_zero_filled_memory ( ) {
84+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
85+ return Binaryen . _BinaryenGetZeroFilledMemory ( ) ;
86+ }
87+
88+ //Provides: caml_binaryen_set_zero_filled_memory
89+ //Requires: Binaryen
90+ function caml_binaryen_set_zero_filled_memory ( on ) {
91+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
92+ return Binaryen . _BinaryenSetZeroFilledMemory ( on ) ;
93+ }
94+
95+ //Provides: caml_binaryen_get_fast_math
96+ //Requires: Binaryen
97+ function caml_binaryen_get_fast_math ( ) {
98+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
99+ return Binaryen . _BinaryenGetFastMath ( ) ;
100+ }
101+
102+ //Provides: caml_binaryen_set_fast_math
103+ //Requires: Binaryen
104+ function caml_binaryen_set_fast_math ( on ) {
105+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
106+ return Binaryen . _BinaryenSetFastMath ( on ) ;
107+ }
108+
109+ //Provides: caml_binaryen_get_generate_stack_ir
110+ //Requires: Binaryen
111+ function caml_binaryen_get_generate_stack_ir ( ) {
112+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
113+ return Binaryen . _BinaryenGetGenerateStackIR ( ) ;
114+ }
115+
116+ //Provides: caml_binaryen_set_generate_stack_ir
117+ //Requires: Binaryen
118+ function caml_binaryen_set_generate_stack_ir ( on ) {
119+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
120+ return Binaryen . _BinaryenSetGenerateStackIR ( on ) ;
121+ }
122+
123+ //Provides: caml_binaryen_get_optimize_stack_ir
124+ //Requires: Binaryen
125+ function caml_binaryen_get_optimize_stack_ir ( ) {
126+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
127+ return Binaryen . _BinaryenGetOptimizeStackIR ( ) ;
128+ }
129+
130+ //Provides: caml_binaryen_set_optimize_stack_ir
131+ //Requires: Binaryen
132+ function caml_binaryen_set_optimize_stack_ir ( on ) {
133+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
134+ return Binaryen . _BinaryenSetOptimizeStackIR ( on ) ;
135+ }
136+
53137//Provides: caml_binaryen_get_pass_argument
54138//Requires: Binaryen
55139//Requires: caml_jsstring_of_string
@@ -70,6 +154,39 @@ function caml_binaryen_set_pass_argument(name, value) {
70154 ) ;
71155}
72156
157+ //Provides: caml_binaryen_clear_pass_arguments
158+ //Requires: Binaryen
159+ function caml_binaryen_clear_pass_arguments ( ) {
160+ return Binaryen . clearPassArguments ( ) ;
161+ }
162+
163+ //Provides: caml_binaryen_has_pass_to_skip
164+ //Requires: Binaryen
165+ //Requires: caml_jsstring_of_string
166+ //Requires: caml_js_to_bool
167+ function caml_binaryen_has_pass_to_skip ( pass ) {
168+ return caml_js_to_bool (
169+ Binaryen . hasPassToSkip (
170+ caml_jsstring_of_string ( pass )
171+ )
172+ ) ;
173+ }
174+
175+ //Provides: caml_binaryen_add_pass_to_skip
176+ //Requires: Binaryen
177+ //Requires: caml_jsstring_of_string
178+ function caml_binaryen_add_pass_to_skip ( pass ) {
179+ return Binaryen . addPassToSkip (
180+ caml_jsstring_of_string ( pass )
181+ ) ;
182+ }
183+
184+ //Provides: caml_binaryen_clear_passes_to_skip
185+ //Requires: Binaryen
186+ function caml_binaryen_clear_passes_to_skip ( pass ) {
187+ return Binaryen . clearPassesToSkip ( ) ;
188+ }
189+
73190//Provides: caml_binaryen_get_always_inline_max_size
74191//Requires: Binaryen
75192function caml_binaryen_get_always_inline_max_size ( ) {
@@ -106,6 +223,20 @@ function caml_binaryen_set_one_caller_inline_max_size(size) {
106223 return Binaryen . setOneCallerInlineMaxSize ( size ) ;
107224}
108225
226+ //Provides: caml_binaryen_get_allow_inlining_functions_with_loops
227+ //Requires: Binaryen
228+ function caml_binaryen_get_allow_inlining_functions_with_loops ( ) {
229+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
230+ return Binaryen . _BinaryenGetAllowInliningFunctionsWithLoops ( ) ;
231+ }
232+
233+ //Provides: caml_binaryen_set_allow_inlining_functions_with_loops
234+ //Requires: Binaryen
235+ function caml_binaryen_set_allow_inlining_functions_with_loops ( on ) {
236+ // Uses the `_Binaryen` function because then we are working with ints which are also booleans to JSOO
237+ return Binaryen . _BinaryenSetAllowInliningFunctionsWithLoops ( on ) ;
238+ }
239+
109240//Provides: caml_binaryen_set_colors_enabled
110241//Requires: Binaryen
111242function caml_binaryen_set_colors_enabled ( on ) {
0 commit comments