@grain/binaryen.ml 0.17.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. binaryen-archive/CHANGELOG.md +38 -0
  2. binaryen-archive/binaryen.opam +2 -2
  3. binaryen-archive/esy.lock/index.json +355 -346
  4. binaryen-archive/esy.lock/opam/camlp-streams.5.0.1/opam +59 -0
  5. binaryen-archive/esy.lock/opam/chrome-trace.3.5.0/opam +39 -0
  6. binaryen-archive/esy.lock/opam/{dune-build-info.3.2.0 → dune-build-info.3.5.0}/opam +5 -6
  7. binaryen-archive/esy.lock/opam/{dune-configurator.3.2.0 → dune-configurator.3.5.0}/opam +6 -6
  8. binaryen-archive/esy.lock/opam/{dune-rpc.3.2.0 → dune-rpc.3.5.0}/opam +5 -6
  9. binaryen-archive/esy.lock/opam/{dune.3.2.0 → dune.3.5.0}/opam +4 -5
  10. binaryen-archive/esy.lock/opam/{dyn.3.2.0 → dyn.3.5.0}/opam +5 -6
  11. binaryen-archive/esy.lock/opam/{fiber.3.2.0 → fiber.3.5.0}/opam +5 -6
  12. binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.11.6 → ocaml-lsp-server.1.14.1}/opam +9 -8
  13. binaryen-archive/esy.lock/opam/{ocaml-version.3.4.0 → ocaml-version.3.5.0}/opam +4 -4
  14. binaryen-archive/esy.lock/opam/{ocamlbuild.0.14.1 → ocamlbuild.0.14.2}/opam +3 -3
  15. binaryen-archive/esy.lock/opam/ocamlfind.1.9.5/files/0001-Fix-bug-when-installing-with-a-system-compiler.patch +26 -0
  16. binaryen-archive/esy.lock/opam/{ocamlfind.1.9.3 → ocamlfind.1.9.5}/opam +6 -3
  17. binaryen-archive/esy.lock/opam/{ocamlformat-rpc-lib.0.22.4 → ocamlformat-rpc-lib.0.24.1}/opam +4 -4
  18. binaryen-archive/esy.lock/opam/ocamlformat.0.20.1/opam +1 -1
  19. binaryen-archive/esy.lock/opam/{odoc-parser.1.0.0 → odoc-parser.1.0.1}/opam +5 -4
  20. binaryen-archive/esy.lock/opam/omd.1.3.2/opam +50 -0
  21. binaryen-archive/esy.lock/opam/{ordering.3.2.0 → ordering.3.5.0}/opam +5 -6
  22. binaryen-archive/esy.lock/opam/{ppxlib.0.26.0 → ppxlib.0.28.0}/opam +7 -7
  23. binaryen-archive/esy.lock/opam/sexplib0.v0.14.0/opam +1 -1
  24. binaryen-archive/esy.lock/opam/{stdune.3.2.0 → stdune.3.5.0}/opam +6 -6
  25. binaryen-archive/esy.lock/opam/uucp.15.0.0/opam +55 -0
  26. binaryen-archive/esy.lock/opam/{uuseg.14.0.0 → uuseg.15.0.0}/opam +39 -25
  27. binaryen-archive/esy.lock/opam/{xdg.3.2.0 → xdg.3.5.0}/opam +5 -6
  28. binaryen-archive/esy.lock/opam/{yojson.1.7.0 → yojson.2.0.2}/opam +14 -14
  29. binaryen-archive/esy.lock/overrides/{opam__s__ocamlbuild_opam__c__0.14.1_opam_override → opam__s__ocamlbuild_opam__c__0.14.2_opam_override}/files/winpatch.patch +0 -0
  30. binaryen-archive/esy.lock/overrides/{opam__s__ocamlbuild_opam__c__0.14.1_opam_override → opam__s__ocamlbuild_opam__c__0.14.2_opam_override}/package.json +0 -0
  31. binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.9.3_opam_override → opam__s__ocamlfind_opam__c__1.9.5_opam_override}/files/findlib.patch +0 -0
  32. binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.9.3_opam_override → opam__s__ocamlfind_opam__c__1.9.5_opam_override}/package.json +0 -0
  33. binaryen-archive/package.json +2 -2
  34. binaryen-archive/src/binaryen_stubs_exports.js +36 -20
  35. binaryen-archive/src/binaryen_stubs_expressions.c +101 -0
  36. binaryen-archive/src/binaryen_stubs_expressions.js +543 -508
  37. binaryen-archive/src/binaryen_stubs_features.js +34 -34
  38. binaryen-archive/src/binaryen_stubs_functions.js +45 -19
  39. binaryen-archive/src/binaryen_stubs_globals.js +8 -8
  40. binaryen-archive/src/binaryen_stubs_imports.c +14 -0
  41. binaryen-archive/src/binaryen_stubs_imports.js +67 -14
  42. binaryen-archive/src/binaryen_stubs_memory.c +40 -0
  43. binaryen-archive/src/binaryen_stubs_memory.js +45 -2
  44. binaryen-archive/src/binaryen_stubs_modules.c +20 -0
  45. binaryen-archive/src/binaryen_stubs_modules.js +26 -8
  46. binaryen-archive/src/binaryen_stubs_ops.js +632 -632
  47. binaryen-archive/src/binaryen_stubs_settings.js +36 -38
  48. binaryen-archive/src/binaryen_stubs_tables.js +18 -12
  49. binaryen-archive/src/binaryen_stubs_types.c +23 -2
  50. binaryen-archive/src/binaryen_stubs_types.js +44 -26
  51. binaryen-archive/src/expression.ml +27 -0
  52. binaryen-archive/src/expression.mli +18 -0
  53. binaryen-archive/src/import.ml +4 -0
  54. binaryen-archive/src/import.mli +2 -0
  55. binaryen-archive/src/memory.ml +25 -12
  56. binaryen-archive/src/memory.mli +12 -6
  57. binaryen-archive/src/module.ml +2 -0
  58. binaryen-archive/src/module.mli +2 -0
  59. binaryen-archive/src/passes.ml +6 -0
  60. binaryen-archive/src/passes.mli +6 -0
  61. binaryen-archive/src/type.ml +14 -2
  62. binaryen-archive/src/type.mli +4 -1
  63. binaryen-archive/test/test.expected +49 -12
  64. binaryen-archive/test/test.ml +49 -12
  65. binaryen-archive/esy.lock/opam/biniou.1.2.1/opam +0 -45
  66. binaryen-archive/esy.lock/opam/easy-format.1.3.4/opam +0 -56
  67. binaryen-archive/esy.lock/opam/omd.1.3.1/opam +0 -39
  68. binaryen-archive/esy.lock/opam/uucp.14.0.0/opam +0 -41
@@ -8,9 +8,9 @@ function to_option(x) {
8
8
  }
9
9
 
10
10
  //Provides: caml_binaryen_expression_get_id
11
- //Requires: binaryen
11
+ //Requires: Binaryen
12
12
  function caml_binaryen_expression_get_id(expr) {
13
- return binaryen.getExpressionId(expr);
13
+ return Binaryen.getExpressionId(expr);
14
14
  }
15
15
 
16
16
  //Provides: caml_binaryen_null_expression
@@ -37,20 +37,13 @@ function caml_binaryen_if(wasm_mod, cond, if_true, if_false) {
37
37
  //Provides: caml_binaryen_loop
38
38
  //Requires: caml_jsstring_of_string
39
39
  function caml_binaryen_loop(wasm_mod, name, body) {
40
- return wasm_mod.loop(
41
- caml_jsstring_of_string(name),
42
- body
43
- );
40
+ return wasm_mod.loop(caml_jsstring_of_string(name), body);
44
41
  }
45
42
 
46
43
  //Provides: caml_binaryen_break
47
44
  //Requires: caml_jsstring_of_string
48
45
  function caml_binaryen_break(wasm_mod, name, cond, res) {
49
- return wasm_mod.br(
50
- caml_jsstring_of_string(name),
51
- cond,
52
- res
53
- );
46
+ return wasm_mod.br(caml_jsstring_of_string(name), cond, res);
54
47
  }
55
48
 
56
49
  //Provides: caml_binaryen_switch
@@ -79,7 +72,14 @@ function caml_binaryen_call(wasm_mod, name, params, return_typ) {
79
72
  //Provides: caml_binaryen_call_indirect
80
73
  //Requires: caml_jsstring_of_string
81
74
  //Requires: caml_list_to_js_array
82
- function caml_binaryen_call_indirect(wasm_mod, table, target, params, params_typ, return_typ) {
75
+ function caml_binaryen_call_indirect(
76
+ wasm_mod,
77
+ table,
78
+ target,
79
+ params,
80
+ params_typ,
81
+ return_typ
82
+ ) {
83
83
  return wasm_mod.call_indirect(
84
84
  caml_jsstring_of_string(table),
85
85
  target,
@@ -91,7 +91,14 @@ function caml_binaryen_call_indirect(wasm_mod, table, target, params, params_typ
91
91
  //Provides: caml_binaryen_call_indirect__bytecode
92
92
  //Requires: caml_binaryen_call_indirect
93
93
  function caml_binaryen_call_indirect__bytecode() {
94
- return caml_binaryen_call_indirect(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
94
+ return caml_binaryen_call_indirect(
95
+ arguments[0],
96
+ arguments[1],
97
+ arguments[2],
98
+ arguments[3],
99
+ arguments[4],
100
+ arguments[5]
101
+ );
95
102
  }
96
103
 
97
104
  //Provides: caml_binaryen_return_call
@@ -108,7 +115,14 @@ function caml_binaryen_return_call(wasm_mod, name, params, return_typ) {
108
115
  //Provides: caml_binaryen_return_call_indirect
109
116
  //Requires: caml_jsstring_of_string
110
117
  //Requires: caml_list_to_js_array
111
- function caml_binaryen_return_call_indirect(wasm_mod, table, target, params, params_typ, return_typ) {
118
+ function caml_binaryen_return_call_indirect(
119
+ wasm_mod,
120
+ table,
121
+ target,
122
+ params,
123
+ params_typ,
124
+ return_typ
125
+ ) {
112
126
  return wasm_mod.return_call_indirect(
113
127
  caml_jsstring_of_string(table),
114
128
  target,
@@ -120,7 +134,14 @@ function caml_binaryen_return_call_indirect(wasm_mod, table, target, params, par
120
134
  //Provides: caml_binaryen_return_call_indirect__bytecode
121
135
  //Requires: caml_binaryen_return_call_indirect
122
136
  function caml_binaryen_return_call_indirect__bytecode() {
123
- return caml_binaryen_return_call_indirect(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
137
+ return caml_binaryen_return_call_indirect(
138
+ arguments[0],
139
+ arguments[1],
140
+ arguments[2],
141
+ arguments[3],
142
+ arguments[4],
143
+ arguments[5]
144
+ );
124
145
  }
125
146
 
126
147
  //Provides: caml_binaryen_local_get
@@ -141,25 +162,19 @@ function caml_binaryen_local_tee(wasm_mod, slot, value, typ) {
141
162
  //Provides: caml_binaryen_global_get
142
163
  //Requires: caml_jsstring_of_string
143
164
  function caml_binaryen_global_get(wasm_mod, name, typ) {
144
- return wasm_mod.global.get(
145
- caml_jsstring_of_string(name),
146
- typ
147
- );
165
+ return wasm_mod.global.get(caml_jsstring_of_string(name), typ);
148
166
  }
149
167
 
150
168
  //Provides: caml_binaryen_global_set
151
169
  //Requires: caml_jsstring_of_string
152
170
  function caml_binaryen_global_set(wasm_mod, name, value) {
153
- return wasm_mod.global.set(
154
- caml_jsstring_of_string(name),
155
- value
156
- );
171
+ return wasm_mod.global.set(caml_jsstring_of_string(name), value);
157
172
  }
158
173
 
159
174
  //Provides: caml_binaryen_load
160
- //Requires: binaryen
175
+ //Requires: Binaryen
161
176
  function caml_binaryen_load(wasm_mod, bytes, signed, offset, align, typ, ptr) {
162
- return binaryen._BinaryenLoad(
177
+ return Binaryen._BinaryenLoad(
163
178
  wasm_mod,
164
179
  bytes,
165
180
  signed,
@@ -172,13 +187,21 @@ function caml_binaryen_load(wasm_mod, bytes, signed, offset, align, typ, ptr) {
172
187
  //Provides: caml_binaryen_load__bytecode
173
188
  //Requires: caml_binaryen_load
174
189
  function caml_binaryen_load__bytecode() {
175
- return caml_binaryen_load(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
190
+ return caml_binaryen_load(
191
+ arguments[0],
192
+ arguments[1],
193
+ arguments[2],
194
+ arguments[3],
195
+ arguments[4],
196
+ arguments[5],
197
+ arguments[6]
198
+ );
176
199
  }
177
200
 
178
201
  //Provides: caml_binaryen_store
179
- //Requires: binaryen
202
+ //Requires: Binaryen
180
203
  function caml_binaryen_store(wasm_mod, bytes, offset, align, ptr, value, typ) {
181
- return binaryen._BinaryenStore(
204
+ return Binaryen._BinaryenStore(
182
205
  wasm_mod,
183
206
  bytes,
184
207
  offset,
@@ -191,52 +214,60 @@ function caml_binaryen_store(wasm_mod, bytes, offset, align, ptr, value, typ) {
191
214
  //Provides: caml_binaryen_store__bytecode
192
215
  //Requires: caml_binaryen_store
193
216
  function caml_binaryen_store__bytecode() {
194
- return caml_binaryen_store(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
217
+ return caml_binaryen_store(
218
+ arguments[0],
219
+ arguments[1],
220
+ arguments[2],
221
+ arguments[3],
222
+ arguments[4],
223
+ arguments[5],
224
+ arguments[6]
225
+ );
195
226
  }
196
227
 
197
228
  //Provides: caml_binaryen_const
198
229
  //Requires: caml_int64_lo32, caml_int64_hi32
199
230
  //Requires: caml_failwith
200
231
  function caml_binaryen_const(wasm_mod, lit) {
201
- if (lit.type === 'int32') {
232
+ if (lit.type === "int32") {
202
233
  return wasm_mod.i32.const(lit.value);
203
234
  }
204
235
 
205
- if (lit.type === 'int64') {
236
+ if (lit.type === "int64") {
206
237
  return wasm_mod.i64.const(
207
238
  caml_int64_lo32(lit.value),
208
239
  caml_int64_hi32(lit.value)
209
240
  );
210
241
  }
211
242
 
212
- if (lit.type === 'float64') {
243
+ if (lit.type === "float64") {
213
244
  return wasm_mod.f64.const(lit.value);
214
245
  }
215
246
 
216
- if (lit.type === 'float32_bits') {
247
+ if (lit.type === "float32_bits") {
217
248
  return wasm_mod.f32.const_bits(lit.value);
218
249
  }
219
250
 
220
- if (lit.type === 'float64_bits') {
251
+ if (lit.type === "float64_bits") {
221
252
  return wasm_mod.f64.const_bits(
222
253
  caml_int64_lo32(lit.value),
223
254
  caml_int64_hi32(lit.value)
224
255
  );
225
256
  }
226
257
 
227
- caml_failwith('invalid Literal for Binaryen.Const.make');
258
+ caml_failwith("invalid Literal for Binaryen.Const.make");
228
259
  }
229
260
 
230
261
  //Provides: caml_binaryen_unary
231
- //Requires: binaryen
262
+ //Requires: Binaryen
232
263
  function caml_binaryen_unary(wasm_mod, op, p) {
233
- return binaryen._BinaryenUnary(wasm_mod, op, p);
264
+ return Binaryen._BinaryenUnary(wasm_mod, op, p);
234
265
  }
235
266
 
236
267
  //Provides: caml_binaryen_binary
237
- //Requires: binaryen
268
+ //Requires: Binaryen
238
269
  function caml_binaryen_binary(wasm_mod, op, p1, p2) {
239
- return binaryen._BinaryenBinary(wasm_mod, op, p1, p2);
270
+ return Binaryen._BinaryenBinary(wasm_mod, op, p1, p2);
240
271
  }
241
272
 
242
273
  //Provides: caml_binaryen_select
@@ -274,6 +305,16 @@ function caml_binaryen_unreachable(wasm_mod) {
274
305
  return wasm_mod.unreachable();
275
306
  }
276
307
 
308
+ //Provides: caml_binaryen_memory_init
309
+ function caml_binaryen_memory_init(wasm_mod, segment, dest, offset, size) {
310
+ return wasm_mod.memory.init(segment, dest, offset, size);
311
+ }
312
+
313
+ //Provides: caml_binaryen_data_drop
314
+ function caml_binaryen_data_drop(wasm_mod, segment) {
315
+ return wasm_mod.data.drop(segment);
316
+ }
317
+
277
318
  //Provides: caml_binaryen_memory_copy
278
319
  function caml_binaryen_memory_copy(wasm_mod, dest, source, size) {
279
320
  return wasm_mod.memory.copy(dest, source, size);
@@ -296,360 +337,360 @@ function caml_binaryen_tuple_extract(wasm_mod, tuple, index) {
296
337
  }
297
338
 
298
339
  //Provides: caml_binaryen_pop
299
- //Requires: binaryen
340
+ //Requires: Binaryen
300
341
  function caml_binaryen_pop(wasm_mod, typ) {
301
- return binaryen._BinaryenPop(wasm_mod, typ);
342
+ return Binaryen._BinaryenPop(wasm_mod, typ);
302
343
  }
303
344
 
304
345
  //Provides: caml_binaryen_expression_id_invalid
305
- //Requires: binaryen
346
+ //Requires: Binaryen
306
347
  function caml_binaryen_expression_id_invalid() {
307
- return binaryen.InvalidId;
348
+ return Binaryen.InvalidId;
308
349
  }
309
350
 
310
351
  //Provides: caml_binaryen_expression_id_nop
311
- //Requires: binaryen
352
+ //Requires: Binaryen
312
353
  function caml_binaryen_expression_id_nop() {
313
- return binaryen.NopId;
354
+ return Binaryen.NopId;
314
355
  }
315
356
  //Provides: caml_binaryen_expression_id_block
316
- //Requires: binaryen
357
+ //Requires: Binaryen
317
358
  function caml_binaryen_expression_id_block() {
318
- return binaryen.BlockId;
359
+ return Binaryen.BlockId;
319
360
  }
320
361
  //Provides: caml_binaryen_expression_id_if
321
- //Requires: binaryen
362
+ //Requires: Binaryen
322
363
  function caml_binaryen_expression_id_if() {
323
- return binaryen.IfId;
364
+ return Binaryen.IfId;
324
365
  }
325
366
  //Provides: caml_binaryen_expression_id_loop
326
- //Requires: binaryen
367
+ //Requires: Binaryen
327
368
  function caml_binaryen_expression_id_loop() {
328
- return binaryen.LoopId;
369
+ return Binaryen.LoopId;
329
370
  }
330
371
  //Provides: caml_binaryen_expression_id_break
331
- //Requires: binaryen
372
+ //Requires: Binaryen
332
373
  function caml_binaryen_expression_id_break() {
333
- return binaryen.BreakId;
374
+ return Binaryen.BreakId;
334
375
  }
335
376
  //Provides: caml_binaryen_expression_id_switch
336
- //Requires: binaryen
377
+ //Requires: Binaryen
337
378
  function caml_binaryen_expression_id_switch() {
338
- return binaryen.SwitchId;
379
+ return Binaryen.SwitchId;
339
380
  }
340
381
  //Provides: caml_binaryen_expression_id_call
341
- //Requires: binaryen
382
+ //Requires: Binaryen
342
383
  function caml_binaryen_expression_id_call() {
343
- return binaryen.CallId;
384
+ return Binaryen.CallId;
344
385
  }
345
386
  //Provides: caml_binaryen_expression_id_call_indirect
346
- //Requires: binaryen
387
+ //Requires: Binaryen
347
388
  function caml_binaryen_expression_id_call_indirect() {
348
- return binaryen.CallIndirectId;
389
+ return Binaryen.CallIndirectId;
349
390
  }
350
391
  //Provides: caml_binaryen_expression_id_local_get
351
- //Requires: binaryen
392
+ //Requires: Binaryen
352
393
  function caml_binaryen_expression_id_local_get() {
353
- return binaryen.LocalGetId;
394
+ return Binaryen.LocalGetId;
354
395
  }
355
396
  //Provides: caml_binaryen_expression_id_local_set
356
- //Requires: binaryen
397
+ //Requires: Binaryen
357
398
  function caml_binaryen_expression_id_local_set() {
358
- return binaryen.LocalSetId;
399
+ return Binaryen.LocalSetId;
359
400
  }
360
401
  //Provides: caml_binaryen_expression_id_global_get
361
- //Requires: binaryen
402
+ //Requires: Binaryen
362
403
  function caml_binaryen_expression_id_global_get() {
363
- return binaryen.GlobalGetId;
404
+ return Binaryen.GlobalGetId;
364
405
  }
365
406
  //Provides: caml_binaryen_expression_id_global_set
366
- //Requires: binaryen
407
+ //Requires: Binaryen
367
408
  function caml_binaryen_expression_id_global_set() {
368
- return binaryen.GlobalSetId;
409
+ return Binaryen.GlobalSetId;
369
410
  }
370
411
  //Provides: caml_binaryen_expression_id_load
371
- //Requires: binaryen
412
+ //Requires: Binaryen
372
413
  function caml_binaryen_expression_id_load() {
373
- return binaryen.LoadId;
414
+ return Binaryen.LoadId;
374
415
  }
375
416
  //Provides: caml_binaryen_expression_id_store
376
- //Requires: binaryen
417
+ //Requires: Binaryen
377
418
  function caml_binaryen_expression_id_store() {
378
- return binaryen.StoreId;
419
+ return Binaryen.StoreId;
379
420
  }
380
421
  //Provides: caml_binaryen_expression_id_atomic_rmw
381
- //Requires: binaryen
422
+ //Requires: Binaryen
382
423
  function caml_binaryen_expression_id_atomic_rmw() {
383
- return binaryen.AtomicRMWId;
424
+ return Binaryen.AtomicRMWId;
384
425
  }
385
426
  //Provides: caml_binaryen_expression_id_atomic_cmpxchg
386
- //Requires: binaryen
427
+ //Requires: Binaryen
387
428
  function caml_binaryen_expression_id_atomic_cmpxchg() {
388
- return binaryen.AtomicCmpxchgId;
429
+ return Binaryen.AtomicCmpxchgId;
389
430
  }
390
431
  //Provides: caml_binaryen_expression_id_atomic_wait
391
- //Requires: binaryen
432
+ //Requires: Binaryen
392
433
  function caml_binaryen_expression_id_atomic_wait() {
393
- return binaryen.AtomicWaitId;
434
+ return Binaryen.AtomicWaitId;
394
435
  }
395
436
  //Provides: caml_binaryen_expression_id_atomic_notify
396
- //Requires: binaryen
437
+ //Requires: Binaryen
397
438
  function caml_binaryen_expression_id_atomic_notify() {
398
- return binaryen.AtomicNotifyId;
439
+ return Binaryen.AtomicNotifyId;
399
440
  }
400
441
  //Provides: caml_binaryen_expression_id_atomic_fence
401
- //Requires: binaryen
442
+ //Requires: Binaryen
402
443
  function caml_binaryen_expression_id_atomic_fence() {
403
- return binaryen.AtomicFenceId;
444
+ return Binaryen.AtomicFenceId;
404
445
  }
405
446
  //Provides: caml_binaryen_expression_id_simd_extract
406
- //Requires: binaryen
447
+ //Requires: Binaryen
407
448
  function caml_binaryen_expression_id_simd_extract() {
408
- return binaryen.SIMDExtractId;
449
+ return Binaryen.SIMDExtractId;
409
450
  }
410
451
  //Provides: caml_binaryen_expression_id_simd_replace
411
- //Requires: binaryen
452
+ //Requires: Binaryen
412
453
  function caml_binaryen_expression_id_simd_replace() {
413
- return binaryen.SIMDReplaceId;
454
+ return Binaryen.SIMDReplaceId;
414
455
  }
415
456
  //Provides: caml_binaryen_expression_id_simd_shuffle
416
- //Requires: binaryen
457
+ //Requires: Binaryen
417
458
  function caml_binaryen_expression_id_simd_shuffle() {
418
- return binaryen.SIMDShuffleId;
459
+ return Binaryen.SIMDShuffleId;
419
460
  }
420
461
  //Provides: caml_binaryen_expression_id_simd_ternary
421
- //Requires: binaryen
462
+ //Requires: Binaryen
422
463
  function caml_binaryen_expression_id_simd_ternary() {
423
- return binaryen.SIMDTernaryId;
464
+ return Binaryen.SIMDTernaryId;
424
465
  }
425
466
  //Provides: caml_binaryen_expression_id_simd_shift
426
- //Requires: binaryen
467
+ //Requires: Binaryen
427
468
  function caml_binaryen_expression_id_simd_shift() {
428
- return binaryen.SIMDShiftId;
469
+ return Binaryen.SIMDShiftId;
429
470
  }
430
471
  //Provides: caml_binaryen_expression_id_simd_load
431
- //Requires: binaryen
472
+ //Requires: Binaryen
432
473
  function caml_binaryen_expression_id_simd_load() {
433
- return binaryen.SIMDLoadId;
474
+ return Binaryen.SIMDLoadId;
434
475
  }
435
476
  //Provides: caml_binaryen_expression_id_simd_load_store_lane
436
- //Requires: binaryen
477
+ //Requires: Binaryen
437
478
  function caml_binaryen_expression_id_simd_load_store_lane() {
438
- return binaryen.SIMDLoadStoreLaneId;
479
+ return Binaryen.SIMDLoadStoreLaneId;
439
480
  }
440
481
  //Provides: caml_binaryen_expression_id_memory_init
441
- //Requires: binaryen
482
+ //Requires: Binaryen
442
483
  function caml_binaryen_expression_id_memory_init() {
443
- return binaryen.MemoryInitId;
484
+ return Binaryen.MemoryInitId;
444
485
  }
445
486
  //Provides: caml_binaryen_expression_id_data_drop
446
- //Requires: binaryen
487
+ //Requires: Binaryen
447
488
  function caml_binaryen_expression_id_data_drop() {
448
- return binaryen.DataDropId;
489
+ return Binaryen.DataDropId;
449
490
  }
450
491
  //Provides: caml_binaryen_expression_id_memory_copy
451
- //Requires: binaryen
492
+ //Requires: Binaryen
452
493
  function caml_binaryen_expression_id_memory_copy() {
453
- return binaryen.MemoryCopyId;
494
+ return Binaryen.MemoryCopyId;
454
495
  }
455
496
  //Provides: caml_binaryen_expression_id_memory_fill
456
- //Requires: binaryen
497
+ //Requires: Binaryen
457
498
  function caml_binaryen_expression_id_memory_fill() {
458
- return binaryen.MemoryFillId;
499
+ return Binaryen.MemoryFillId;
459
500
  }
460
501
  //Provides: caml_binaryen_expression_id_const
461
- //Requires: binaryen
502
+ //Requires: Binaryen
462
503
  function caml_binaryen_expression_id_const() {
463
- return binaryen.ConstId;
504
+ return Binaryen.ConstId;
464
505
  }
465
506
  //Provides: caml_binaryen_expression_id_unary
466
- //Requires: binaryen
507
+ //Requires: Binaryen
467
508
  function caml_binaryen_expression_id_unary() {
468
- return binaryen.UnaryId;
509
+ return Binaryen.UnaryId;
469
510
  }
470
511
  //Provides: caml_binaryen_expression_id_binary
471
- //Requires: binaryen
512
+ //Requires: Binaryen
472
513
  function caml_binaryen_expression_id_binary() {
473
- return binaryen.BinaryId;
514
+ return Binaryen.BinaryId;
474
515
  }
475
516
  //Provides: caml_binaryen_expression_id_select
476
- //Requires: binaryen
517
+ //Requires: Binaryen
477
518
  function caml_binaryen_expression_id_select() {
478
- return binaryen.SelectId;
519
+ return Binaryen.SelectId;
479
520
  }
480
521
  //Provides: caml_binaryen_expression_id_drop
481
- //Requires: binaryen
522
+ //Requires: Binaryen
482
523
  function caml_binaryen_expression_id_drop() {
483
- return binaryen.DropId;
524
+ return Binaryen.DropId;
484
525
  }
485
526
  //Provides: caml_binaryen_expression_id_return
486
- //Requires: binaryen
527
+ //Requires: Binaryen
487
528
  function caml_binaryen_expression_id_return() {
488
- return binaryen.ReturnId;
529
+ return Binaryen.ReturnId;
489
530
  }
490
531
  //Provides: caml_binaryen_expression_id_memory_size
491
- //Requires: binaryen
532
+ //Requires: Binaryen
492
533
  function caml_binaryen_expression_id_memory_size() {
493
- return binaryen.MemorySizeId;
534
+ return Binaryen.MemorySizeId;
494
535
  }
495
536
  //Provides: caml_binaryen_expression_id_memory_grow
496
- //Requires: binaryen
537
+ //Requires: Binaryen
497
538
  function caml_binaryen_expression_id_memory_grow() {
498
- return binaryen.MemoryGrowId;
539
+ return Binaryen.MemoryGrowId;
499
540
  }
500
541
  //Provides: caml_binaryen_expression_id_unreachable
501
- //Requires: binaryen
542
+ //Requires: Binaryen
502
543
  function caml_binaryen_expression_id_unreachable() {
503
- return binaryen.UnreachableId;
544
+ return Binaryen.UnreachableId;
504
545
  }
505
546
  //Provides: caml_binaryen_expression_id_pop
506
- //Requires: binaryen
547
+ //Requires: Binaryen
507
548
  function caml_binaryen_expression_id_pop() {
508
- return binaryen.PopId;
549
+ return Binaryen.PopId;
509
550
  }
510
551
  //Provides: caml_binaryen_expression_id_ref_null
511
- //Requires: binaryen
552
+ //Requires: Binaryen
512
553
  function caml_binaryen_expression_id_ref_null() {
513
- return binaryen.RefNullId;
554
+ return Binaryen.RefNullId;
514
555
  }
515
556
  //Provides: caml_binaryen_expression_id_ref_is
516
- //Requires: binaryen
557
+ //Requires: Binaryen
517
558
  function caml_binaryen_expression_id_ref_is() {
518
- return binaryen.RefIsId;
559
+ return Binaryen.RefIsId;
519
560
  }
520
561
  //Provides: caml_binaryen_expression_id_ref_as
521
- //Requires: binaryen
562
+ //Requires: Binaryen
522
563
  function caml_binaryen_expression_id_ref_as() {
523
- return binaryen.RefAsId;
564
+ return Binaryen.RefAsId;
524
565
  }
525
566
  //Provides: caml_binaryen_expression_id_ref_func
526
- //Requires: binaryen
567
+ //Requires: Binaryen
527
568
  function caml_binaryen_expression_id_ref_func() {
528
- return binaryen.RefFuncId;
569
+ return Binaryen.RefFuncId;
529
570
  }
530
571
  //Provides: caml_binaryen_expression_id_ref_eq
531
- //Requires: binaryen
572
+ //Requires: Binaryen
532
573
  function caml_binaryen_expression_id_ref_eq() {
533
- return binaryen.RefEqId;
574
+ return Binaryen.RefEqId;
534
575
  }
535
576
  //Provides: caml_binaryen_expression_id_try
536
- //Requires: binaryen
577
+ //Requires: Binaryen
537
578
  function caml_binaryen_expression_id_try() {
538
- return binaryen.TryId;
579
+ return Binaryen.TryId;
539
580
  }
540
581
  //Provides: caml_binaryen_expression_id_throw
541
- //Requires: binaryen
582
+ //Requires: Binaryen
542
583
  function caml_binaryen_expression_id_throw() {
543
- return binaryen.ThrowId;
584
+ return Binaryen.ThrowId;
544
585
  }
545
586
  //Provides: caml_binaryen_expression_id_rethrow
546
- //Requires: binaryen
587
+ //Requires: Binaryen
547
588
  function caml_binaryen_expression_id_rethrow() {
548
- return binaryen.RethrowId;
589
+ return Binaryen.RethrowId;
549
590
  }
550
591
  //Provides: caml_binaryen_expression_id_tuple_make
551
- //Requires: binaryen
592
+ //Requires: Binaryen
552
593
  function caml_binaryen_expression_id_tuple_make() {
553
- return binaryen.TupleMakeId;
594
+ return Binaryen.TupleMakeId;
554
595
  }
555
596
  //Provides: caml_binaryen_expression_id_tuple_extract
556
- //Requires: binaryen
597
+ //Requires: Binaryen
557
598
  function caml_binaryen_expression_id_tuple_extract() {
558
- return binaryen.TupleExtractId;
599
+ return Binaryen.TupleExtractId;
559
600
  }
560
601
  //Provides: caml_binaryen_expression_id_i31_new
561
- //Requires: binaryen
602
+ //Requires: Binaryen
562
603
  function caml_binaryen_expression_id_i31_new() {
563
- return binaryen.I31NewId;
604
+ return Binaryen.I31NewId;
564
605
  }
565
606
  //Provides: caml_binaryen_expression_id_i31_get
566
- //Requires: binaryen
607
+ //Requires: Binaryen
567
608
  function caml_binaryen_expression_id_i31_get() {
568
- return binaryen.I31GetId;
609
+ return Binaryen.I31GetId;
569
610
  }
570
611
  //Provides: caml_binaryen_expression_id_call_ref
571
- //Requires: binaryen
612
+ //Requires: Binaryen
572
613
  function caml_binaryen_expression_id_call_ref() {
573
- return binaryen.CallRefId;
614
+ return Binaryen.CallRefId;
574
615
  }
575
616
  //Provides: caml_binaryen_expression_id_ref_test
576
- //Requires: binaryen
617
+ //Requires: Binaryen
577
618
  function caml_binaryen_expression_id_ref_test() {
578
- return binaryen.RefTestId;
619
+ return Binaryen.RefTestId;
579
620
  }
580
621
  //Provides: caml_binaryen_expression_id_ref_cast
581
- //Requires: binaryen
622
+ //Requires: Binaryen
582
623
  function caml_binaryen_expression_id_ref_cast() {
583
- return binaryen.RefCastId;
624
+ return Binaryen.RefCastId;
584
625
  }
585
626
  //Provides: caml_binaryen_expression_id_br_on
586
- //Requires: binaryen
627
+ //Requires: Binaryen
587
628
  function caml_binaryen_expression_id_br_on() {
588
- return binaryen.BrOnId;
629
+ return Binaryen.BrOnId;
589
630
  }
590
631
  //Provides: caml_binaryen_expression_id_rtt_canon
591
- //Requires: binaryen
632
+ //Requires: Binaryen
592
633
  function caml_binaryen_expression_id_rtt_canon() {
593
- return binaryen.RttCanonId;
634
+ return Binaryen.RttCanonId;
594
635
  }
595
636
  //Provides: caml_binaryen_expression_id_rtt_sub
596
- //Requires: binaryen
637
+ //Requires: Binaryen
597
638
  function caml_binaryen_expression_id_rtt_sub() {
598
- return binaryen.RttSubId;
639
+ return Binaryen.RttSubId;
599
640
  }
600
641
  //Provides: caml_binaryen_expression_id_struct_new
601
- //Requires: binaryen
642
+ //Requires: Binaryen
602
643
  function caml_binaryen_expression_id_struct_new() {
603
- return binaryen.StructNewId;
644
+ return Binaryen.StructNewId;
604
645
  }
605
646
  //Provides: caml_binaryen_expression_id_struct_get
606
- //Requires: binaryen
647
+ //Requires: Binaryen
607
648
  function caml_binaryen_expression_id_struct_get() {
608
- return binaryen.StructGetId;
649
+ return Binaryen.StructGetId;
609
650
  }
610
651
  //Provides: caml_binaryen_expression_id_struct_set
611
- //Requires: binaryen
652
+ //Requires: Binaryen
612
653
  function caml_binaryen_expression_id_struct_set() {
613
- return binaryen.StructSetId;
654
+ return Binaryen.StructSetId;
614
655
  }
615
656
  //Provides: caml_binaryen_expression_id_array_new
616
- //Requires: binaryen
657
+ //Requires: Binaryen
617
658
  function caml_binaryen_expression_id_array_new() {
618
- return binaryen.ArrayNewId;
659
+ return Binaryen.ArrayNewId;
619
660
  }
620
661
  //Provides: caml_binaryen_expression_id_array_get
621
- //Requires: binaryen
662
+ //Requires: Binaryen
622
663
  function caml_binaryen_expression_id_array_get() {
623
- return binaryen.ArrayGetId;
664
+ return Binaryen.ArrayGetId;
624
665
  }
625
666
  //Provides: caml_binaryen_expression_id_array_set
626
- //Requires: binaryen
667
+ //Requires: Binaryen
627
668
  function caml_binaryen_expression_id_array_set() {
628
- return binaryen.ArraySetId;
669
+ return Binaryen.ArraySetId;
629
670
  }
630
671
  //Provides: caml_binaryen_expression_id_array_len
631
- //Requires: binaryen
672
+ //Requires: Binaryen
632
673
  function caml_binaryen_expression_id_array_len() {
633
- return binaryen.ArrayLenId;
674
+ return Binaryen.ArrayLenId;
634
675
  }
635
676
 
636
677
  // Expression operations
637
678
 
638
679
  //Provides: caml_binaryen_expression_print
639
- //Requires: binaryen
680
+ //Requires: Binaryen
640
681
  //Requires: caml_string_of_jsstring
641
682
  //Requires: caml_ml_output, caml_ml_string_length
642
683
  function caml_binaryen_expression_print(expr) {
643
- var text = binaryen.emitText(expr);
684
+ var text = Binaryen.emitText(expr);
644
685
  var chanid = 1; // stdout
645
686
  var s = caml_string_of_jsstring(text);
646
687
  caml_ml_output(chanid, s, 0, caml_ml_string_length(s));
647
688
  }
648
689
 
649
690
  //Provides: caml_binaryen_expression_finalize
650
- //Requires: binaryen
691
+ //Requires: Binaryen
651
692
  function caml_binaryen_expression_finalize(exp) {
652
- binaryen.Expression.finalize(exp);
693
+ Binaryen.Expression.finalize(exp);
653
694
  }
654
695
 
655
696
  //Provides: caml_binaryen_expression_copy
@@ -660,217 +701,201 @@ function caml_binaryen_expression_copy(exp, wasm_mod) {
660
701
  // Block operations
661
702
 
662
703
  //Provides: caml_binaryen_block_get_name
663
- //Requires: binaryen
704
+ //Requires: Binaryen
664
705
  //Requires: to_option
665
706
  //Requires: caml_string_of_jsstring
666
707
  function caml_binaryen_block_get_name(exp) {
667
- var name = binaryen.Block.getName(exp);
708
+ var name = Binaryen.Block.getName(exp);
668
709
  var str = name != null ? caml_string_of_jsstring(name) : null;
669
710
  return to_option(str);
670
711
  }
671
712
 
672
713
  //Provides: caml_binaryen_block_set_name
673
- //Requires: binaryen
714
+ //Requires: Binaryen
674
715
  //Requires: caml_jsstring_of_string
675
716
  function caml_binaryen_block_set_name(exp, name) {
676
- return binaryen.Block.setName(
677
- exp,
678
- caml_jsstring_of_string(name)
679
- );
717
+ return Binaryen.Block.setName(exp, caml_jsstring_of_string(name));
680
718
  }
681
719
 
682
720
  //Provides: caml_binaryen_block_get_num_children
683
- //Requires: binaryen
721
+ //Requires: Binaryen
684
722
  function caml_binaryen_block_get_num_children(exp) {
685
- return binaryen.Block.getNumChildren(exp);
723
+ return Binaryen.Block.getNumChildren(exp);
686
724
  }
687
725
 
688
726
  //Provides: caml_binaryen_block_get_child_at
689
- //Requires: binaryen
727
+ //Requires: Binaryen
690
728
  function caml_binaryen_block_get_child_at(exp, index) {
691
- return binaryen.Block.getChildAt(exp, index);
729
+ return Binaryen.Block.getChildAt(exp, index);
692
730
  }
693
731
 
694
732
  //Provides: caml_binaryen_block_set_child_at
695
- //Requires: binaryen
733
+ //Requires: Binaryen
696
734
  function caml_binaryen_block_set_child_at(exp, index, child) {
697
- return binaryen.Block.setChildAt(exp, index, child);
735
+ return Binaryen.Block.setChildAt(exp, index, child);
698
736
  }
699
737
 
700
738
  //Provides: caml_binaryen_block_append_child
701
- //Requires: binaryen
739
+ //Requires: Binaryen
702
740
  function caml_binaryen_block_append_child(exp, child) {
703
- return binaryen.Block.appendChild(exp, child);
741
+ return Binaryen.Block.appendChild(exp, child);
704
742
  }
705
743
 
706
744
  //Provides: caml_binaryen_block_insert_child_at
707
- //Requires: binaryen
745
+ //Requires: Binaryen
708
746
  function caml_binaryen_block_insert_child_at(exp, index, child) {
709
- return binaryen.Block.insertChildAt(exp, index, child);
747
+ return Binaryen.Block.insertChildAt(exp, index, child);
710
748
  }
711
749
 
712
750
  //Provides: caml_binaryen_block_remove_child_at
713
- //Requires: binaryen
751
+ //Requires: Binaryen
714
752
  function caml_binaryen_block_remove_child_at(exp, index) {
715
- return binaryen.Block.removeChildAt(exp, index);
753
+ return Binaryen.Block.removeChildAt(exp, index);
716
754
  }
717
755
 
718
756
  // If operations
719
757
 
720
758
  //Provides: caml_binaryen_if_get_condition
721
- //Requires: binaryen
759
+ //Requires: Binaryen
722
760
  function caml_binaryen_if_get_condition(exp) {
723
- return binaryen.If.getCondition(exp);
761
+ return Binaryen.If.getCondition(exp);
724
762
  }
725
763
 
726
764
  //Provides: caml_binaryen_if_set_condition
727
- //Requires: binaryen
765
+ //Requires: Binaryen
728
766
  function caml_binaryen_if_set_condition(exp, cond) {
729
- return binaryen.If.setCondition(exp, cond);
767
+ return Binaryen.If.setCondition(exp, cond);
730
768
  }
731
769
 
732
770
  //Provides: caml_binaryen_if_get_if_true
733
- //Requires: binaryen
771
+ //Requires: Binaryen
734
772
  function caml_binaryen_if_get_if_true(exp) {
735
- return binaryen.If.getIfTrue(exp);
773
+ return Binaryen.If.getIfTrue(exp);
736
774
  }
737
775
 
738
776
  //Provides: caml_binaryen_if_set_if_true
739
- //Requires: binaryen
777
+ //Requires: Binaryen
740
778
  function caml_binaryen_if_set_if_true(exp, child) {
741
- return binaryen.If.setIfTrue(exp, child);
779
+ return Binaryen.If.setIfTrue(exp, child);
742
780
  }
743
781
 
744
782
  //Provides: caml_binaryen_if_get_if_false
745
- //Requires: binaryen
783
+ //Requires: Binaryen
746
784
  //Requires: to_option
747
785
  function caml_binaryen_if_get_if_false(exp) {
748
- return to_option(binaryen.If.getIfFalse(exp));
786
+ return to_option(Binaryen.If.getIfFalse(exp));
749
787
  }
750
788
 
751
789
  //Provides: caml_binaryen_if_set_if_false
752
- //Requires: binaryen
790
+ //Requires: Binaryen
753
791
  function caml_binaryen_if_set_if_false(exp, child) {
754
- return binaryen.If.setIfFalse(exp, child);
792
+ return Binaryen.If.setIfFalse(exp, child);
755
793
  }
756
794
 
757
795
  // Loop operations
758
796
 
759
797
  //Provides: caml_binaryen_loop_get_name
760
- //Requires: binaryen
798
+ //Requires: Binaryen
761
799
  //Requires: caml_string_of_jsstring
762
800
  function caml_binaryen_loop_get_name(exp) {
763
- return caml_string_of_jsstring(binaryen.Loop.getName(exp));
801
+ return caml_string_of_jsstring(Binaryen.Loop.getName(exp));
764
802
  }
765
803
 
766
804
  //Provides: caml_binaryen_loop_set_name
767
- //Requires: binaryen
805
+ //Requires: Binaryen
768
806
  //Requires: caml_jsstring_of_string
769
807
  function caml_binaryen_loop_set_name(exp, name) {
770
- return binaryen.Loop.setName(
771
- exp,
772
- caml_jsstring_of_string(name)
773
- );
808
+ return Binaryen.Loop.setName(exp, caml_jsstring_of_string(name));
774
809
  }
775
810
 
776
811
  //Provides: caml_binaryen_loop_get_body
777
- //Requires: binaryen
812
+ //Requires: Binaryen
778
813
  function caml_binaryen_loop_get_body(exp) {
779
- return binaryen.Loop.getBody(exp);
814
+ return Binaryen.Loop.getBody(exp);
780
815
  }
781
816
 
782
817
  //Provides: caml_binaryen_loop_set_body
783
- //Requires: binaryen
818
+ //Requires: Binaryen
784
819
  function caml_binaryen_loop_set_body(exp, child) {
785
- return binaryen.Loop.setBody(exp, child);
820
+ return Binaryen.Loop.setBody(exp, child);
786
821
  }
787
822
 
788
823
  // Break operations
789
824
 
790
825
  //Provides: caml_binaryen_break_get_name
791
- //Requires: binaryen
826
+ //Requires: Binaryen
792
827
  //Requires: caml_string_of_jsstring
793
828
  function caml_binaryen_break_get_name(exp) {
794
- return caml_string_of_jsstring(binaryen.Break.getName(exp));
829
+ return caml_string_of_jsstring(Binaryen.Break.getName(exp));
795
830
  }
796
831
 
797
832
  //Provides: caml_binaryen_break_set_name
798
- //Requires: binaryen
833
+ //Requires: Binaryen
799
834
  //Requires: caml_jsstring_of_string
800
835
  function caml_binaryen_break_set_name(exp, name) {
801
- return binaryen.Break.setName(
802
- exp,
803
- caml_jsstring_of_string(name)
804
- );
836
+ return Binaryen.Break.setName(exp, caml_jsstring_of_string(name));
805
837
  }
806
838
 
807
839
  //Provides: caml_binaryen_break_get_condition
808
- //Requires: binaryen
840
+ //Requires: Binaryen
809
841
  //Requires: to_option
810
842
  function caml_binaryen_break_get_condition(exp) {
811
- return to_option(binaryen.Break.getCondition(exp))
843
+ return to_option(Binaryen.Break.getCondition(exp));
812
844
  }
813
845
 
814
846
  //Provides: caml_binaryen_break_set_condition
815
- //Requires: binaryen
847
+ //Requires: Binaryen
816
848
  function caml_binaryen_break_set_condition(exp, child) {
817
- return binaryen.Break.setCondition(exp, child);
849
+ return Binaryen.Break.setCondition(exp, child);
818
850
  }
819
851
 
820
852
  //Provides: caml_binaryen_break_get_value
821
- //Requires: binaryen
853
+ //Requires: Binaryen
822
854
  //Requires: to_option
823
855
  function caml_binaryen_break_get_value(exp) {
824
- return to_option(binaryen.Break.getValue(exp));
856
+ return to_option(Binaryen.Break.getValue(exp));
825
857
  }
826
858
 
827
859
  //Provides: caml_binaryen_break_set_value
828
- //Requires: binaryen
860
+ //Requires: Binaryen
829
861
  function caml_binaryen_break_set_value(exp, child) {
830
- return binaryen.Break.setValue(exp, child);
862
+ return Binaryen.Break.setValue(exp, child);
831
863
  }
832
864
 
833
865
  // Switch operations
834
866
 
835
867
  //Provides: caml_binaryen_switch_get_num_names
836
- //Requires: binaryen
868
+ //Requires: Binaryen
837
869
  function caml_binaryen_switch_get_num_names(exp) {
838
- return binaryen.Switch.getNumNames(exp);
870
+ return Binaryen.Switch.getNumNames(exp);
839
871
  }
840
872
 
841
873
  //Provides: caml_binaryen_switch_get_name_at
842
- //Requires: binaryen
874
+ //Requires: Binaryen
843
875
  //Requires: caml_string_of_jsstring
844
876
  function caml_binaryen_switch_get_name_at(exp, index) {
845
- return caml_string_of_jsstring(binaryen.Switch.getNameAt(exp, index));
877
+ return caml_string_of_jsstring(Binaryen.Switch.getNameAt(exp, index));
846
878
  }
847
879
 
848
880
  //Provides: caml_binaryen_switch_set_name_at
849
- //Requires: binaryen
881
+ //Requires: Binaryen
850
882
  //Requires: caml_jsstring_of_string
851
883
  function caml_binaryen_switch_set_name_at(exp, index, name) {
852
- return binaryen.Switch.setNameAt(
853
- exp,
854
- index,
855
- caml_jsstring_of_string(name)
856
- )
884
+ return Binaryen.Switch.setNameAt(exp, index, caml_jsstring_of_string(name));
857
885
  }
858
886
 
859
887
  //Provides: caml_binaryen_switch_append_name
860
- //Requires: binaryen
888
+ //Requires: Binaryen
861
889
  //Requires: caml_jsstring_of_string
862
890
  function caml_binaryen_switch_append_name(exp, name) {
863
- return binaryen.Switch.appendName(
864
- exp,
865
- caml_jsstring_of_string(name)
866
- );
891
+ return Binaryen.Switch.appendName(exp, caml_jsstring_of_string(name));
867
892
  }
868
893
 
869
894
  //Provides: caml_binaryen_switch_insert_name_at
870
- //Requires: binaryen
895
+ //Requires: Binaryen
871
896
  //Requires: caml_jsstring_of_string
872
897
  function caml_binaryen_switch_insert_name_at(exp, index, name) {
873
- return binaryen.Switch.insertNameAt(
898
+ return Binaryen.Switch.insertNameAt(
874
899
  exp,
875
900
  index,
876
901
  caml_jsstring_of_string(name)
@@ -878,530 +903,569 @@ function caml_binaryen_switch_insert_name_at(exp, index, name) {
878
903
  }
879
904
 
880
905
  //Provides: caml_binaryen_switch_remove_name_at
881
- //Requires: binaryen
906
+ //Requires: Binaryen
882
907
  //Requires: caml_string_of_jsstring
883
908
  function caml_binaryen_switch_remove_name_at(exp, index) {
884
- return caml_string_of_jsstring(binaryen.Switch.removeNameAt(exp, index));
909
+ return caml_string_of_jsstring(Binaryen.Switch.removeNameAt(exp, index));
885
910
  }
886
911
 
887
912
  //Provides: caml_binaryen_switch_get_default_name
888
- //Requires: binaryen
913
+ //Requires: Binaryen
889
914
  //Requires: to_option
890
915
  //Requires: caml_string_of_jsstring
891
916
  function caml_binaryen_switch_get_default_name(exp) {
892
- var name = binaryen.Switch.getDefaultName(exp);
917
+ var name = Binaryen.Switch.getDefaultName(exp);
893
918
  var str = name != null ? caml_string_of_jsstring(name) : null;
894
919
  return to_option(str);
895
920
  }
896
921
 
897
922
  //Provides: caml_binaryen_switch_set_default_name
898
- //Requires: binaryen
923
+ //Requires: Binaryen
899
924
  //Requires: caml_jsstring_of_string
900
925
  function caml_binaryen_switch_set_default_name(exp, name) {
901
- return binaryen.Switch.setDefaultName(
902
- exp,
903
- caml_jsstring_of_string(name)
904
- );
926
+ return Binaryen.Switch.setDefaultName(exp, caml_jsstring_of_string(name));
905
927
  }
906
928
 
907
929
  //Provides: caml_binaryen_switch_get_condition
908
- //Requires: binaryen
930
+ //Requires: Binaryen
909
931
  function caml_binaryen_switch_get_condition(exp) {
910
- return binaryen.Switch.getCondition(exp);
932
+ return Binaryen.Switch.getCondition(exp);
911
933
  }
912
934
 
913
935
  //Provides: caml_binaryen_switch_set_condition
914
- //Requires: binaryen
936
+ //Requires: Binaryen
915
937
  function caml_binaryen_switch_set_condition(exp, child) {
916
- return binaryen.Switch.setCondition(exp, child);
938
+ return Binaryen.Switch.setCondition(exp, child);
917
939
  }
918
940
 
919
941
  //Provides: caml_binaryen_switch_get_value
920
- //Requires: binaryen
942
+ //Requires: Binaryen
921
943
  //Requires: to_option
922
944
  function caml_binaryen_switch_get_value(exp) {
923
- return to_option(binaryen.Switch.getValue(exp));
945
+ return to_option(Binaryen.Switch.getValue(exp));
924
946
  }
925
947
 
926
948
  //Provides: caml_binaryen_switch_set_value
927
- //Requires: binaryen
949
+ //Requires: Binaryen
928
950
  function caml_binaryen_switch_set_value(exp, child) {
929
- return binaryen.Switch.setValue(exp, child);
951
+ return Binaryen.Switch.setValue(exp, child);
930
952
  }
931
953
 
932
954
  //Provides: caml_binaryen_call_get_target
933
- //Requires: binaryen
955
+ //Requires: Binaryen
934
956
  //Requires: caml_string_of_jsstring
935
957
  function caml_binaryen_call_get_target(exp) {
936
- return caml_string_of_jsstring(binaryen.Call.getTarget(exp));
958
+ return caml_string_of_jsstring(Binaryen.Call.getTarget(exp));
937
959
  }
938
960
 
939
961
  //Provides: caml_binaryen_call_set_target
940
- //Requires: binaryen
962
+ //Requires: Binaryen
941
963
  //Requires: caml_jsstring_of_string
942
964
  function caml_binaryen_call_set_target(exp, name) {
943
- return binaryen.Call.setTarget(
944
- exp,
945
- caml_jsstring_of_string(name)
946
- );
965
+ return Binaryen.Call.setTarget(exp, caml_jsstring_of_string(name));
947
966
  }
948
967
 
949
968
  //Provides: caml_binaryen_call_get_num_operands
950
- //Requires: binaryen
969
+ //Requires: Binaryen
951
970
  function caml_binaryen_call_get_num_operands(exp) {
952
- return binaryen.Call.getNumOperands(exp);
971
+ return Binaryen.Call.getNumOperands(exp);
953
972
  }
954
973
 
955
974
  //Provides: caml_binaryen_call_get_operand_at
956
- //Requires: binaryen
975
+ //Requires: Binaryen
957
976
  function caml_binaryen_call_get_operand_at(exp, index) {
958
- return binaryen.Call.getOperandAt(exp, index);
977
+ return Binaryen.Call.getOperandAt(exp, index);
959
978
  }
960
979
 
961
980
  //Provides: caml_binaryen_call_set_operand_at
962
- //Requires: binaryen
981
+ //Requires: Binaryen
963
982
  function caml_binaryen_call_set_operand_at(exp, index, operand) {
964
- return binaryen.Call.setOperandAt(exp, index, operand);
983
+ return Binaryen.Call.setOperandAt(exp, index, operand);
965
984
  }
966
985
 
967
986
  //Provides: caml_binaryen_call_append_operand
968
- //Requires: binaryen
987
+ //Requires: Binaryen
969
988
  function caml_binaryen_call_append_operand(exp, operand) {
970
- return binaryen.Call.appendOperand(exp, operand);
989
+ return Binaryen.Call.appendOperand(exp, operand);
971
990
  }
972
991
 
973
992
  //Provides: caml_binaryen_call_insert_operand_at
974
- //Requires: binaryen
993
+ //Requires: Binaryen
975
994
  function caml_binaryen_call_insert_operand_at(exp, index, operand) {
976
- return binaryen.Call.insertOperandAt(exp, index, operand);
995
+ return Binaryen.Call.insertOperandAt(exp, index, operand);
977
996
  }
978
997
 
979
998
  //Provides: caml_binaryen_call_remove_operand_at
980
- //Requires: binaryen
999
+ //Requires: Binaryen
981
1000
  function caml_binaryen_call_remove_operand_at(exp, index) {
982
- return binaryen.Call.removeOperandAt(exp, index);
1001
+ return Binaryen.Call.removeOperandAt(exp, index);
983
1002
  }
984
1003
 
985
1004
  //Provides: caml_binaryen_call_is_return
986
- //Requires: binaryen
1005
+ //Requires: Binaryen
987
1006
  //Requires: caml_js_to_bool
988
1007
  function caml_binaryen_call_is_return(exp) {
989
- return caml_js_to_bool(binaryen.Call.isReturn(exp));
1008
+ return caml_js_to_bool(Binaryen.Call.isReturn(exp));
990
1009
  }
991
1010
 
992
1011
  //Provides: caml_binaryen_call_set_return
993
- //Requires: binaryen
1012
+ //Requires: Binaryen
994
1013
  //Requires: caml_js_from_bool
995
1014
  function caml_binaryen_call_set_return(exp, isReturn) {
996
- return binaryen.Call.setReturn(
997
- exp,
998
- caml_js_from_bool(isReturn)
999
- );
1015
+ return Binaryen.Call.setReturn(exp, caml_js_from_bool(isReturn));
1000
1016
  }
1001
1017
 
1002
1018
  //Provides: caml_binaryen_call_indirect_get_target
1003
- //Requires: binaryen
1019
+ //Requires: Binaryen
1004
1020
  function caml_binaryen_call_indirect_get_target(exp) {
1005
- return binaryen.CallIndirect.getTarget(exp);
1021
+ return Binaryen.CallIndirect.getTarget(exp);
1006
1022
  }
1007
1023
 
1008
1024
  //Provides: caml_binaryen_call_indirect_set_target
1009
- //Requires: binaryen
1025
+ //Requires: Binaryen
1010
1026
  function caml_binaryen_call_indirect_set_target(exp, target) {
1011
- return binaryen.CallIndirect.setTarget(exp, target);
1027
+ return Binaryen.CallIndirect.setTarget(exp, target);
1012
1028
  }
1013
1029
 
1014
1030
  //Provides: caml_binaryen_call_indirect_get_table
1015
- //Requires: binaryen
1031
+ //Requires: Binaryen
1016
1032
  //Requires: caml_string_of_jsstring
1017
1033
  function caml_binaryen_call_indirect_get_table(exp) {
1018
- return caml_string_of_jsstring(binaryen.CallIndirect.getTable(exp));
1034
+ return caml_string_of_jsstring(Binaryen.CallIndirect.getTable(exp));
1019
1035
  }
1020
1036
 
1021
1037
  //Provides: caml_binaryen_call_indirect_set_table
1022
- //Requires: binaryen
1038
+ //Requires: Binaryen
1023
1039
  //Requires: caml_jsstring_of_string
1024
1040
  function caml_binaryen_call_indirect_set_table(exp, name) {
1025
- return binaryen.CallIndirect.setTable(
1026
- exp,
1027
- caml_jsstring_of_string(name)
1028
- );
1041
+ return Binaryen.CallIndirect.setTable(exp, caml_jsstring_of_string(name));
1029
1042
  }
1030
1043
 
1031
1044
  //Provides: caml_binaryen_call_indirect_get_num_operands
1032
- //Requires: binaryen
1045
+ //Requires: Binaryen
1033
1046
  function caml_binaryen_call_indirect_get_num_operands(exp) {
1034
- return binaryen.CallIndirect.getNumOperands(exp);
1047
+ return Binaryen.CallIndirect.getNumOperands(exp);
1035
1048
  }
1036
1049
 
1037
1050
  //Provides: caml_binaryen_call_indirect_get_operand_at
1038
- //Requires: binaryen
1051
+ //Requires: Binaryen
1039
1052
  function caml_binaryen_call_indirect_get_operand_at(exp, index) {
1040
- return binaryen.CallIndirect.getOperandAt(exp, index);
1053
+ return Binaryen.CallIndirect.getOperandAt(exp, index);
1041
1054
  }
1042
1055
 
1043
1056
  //Provides: caml_binaryen_call_indirect_set_operand_at
1044
- //Requires: binaryen
1057
+ //Requires: Binaryen
1045
1058
  function caml_binaryen_call_indirect_set_operand_at(exp, index, operand) {
1046
- return binaryen.CallIndirect.setOperandAt(exp, index, operand);
1059
+ return Binaryen.CallIndirect.setOperandAt(exp, index, operand);
1047
1060
  }
1048
1061
 
1049
1062
  //Provides: caml_binaryen_call_indirect_append_operand
1050
- //Requires: binaryen
1063
+ //Requires: Binaryen
1051
1064
  function caml_binaryen_call_indirect_append_operand(exp, operand) {
1052
- return binaryen.CallIndirect.appendOperand(exp, operand);
1065
+ return Binaryen.CallIndirect.appendOperand(exp, operand);
1053
1066
  }
1054
1067
 
1055
1068
  //Provides: caml_binaryen_call_indirect_insert_operand_at
1056
- //Requires: binaryen
1069
+ //Requires: Binaryen
1057
1070
  function caml_binaryen_call_indirect_insert_operand_at(exp, index, operand) {
1058
- return binaryen.CallIndirect.insertOperandAt(exp, index, operand);
1071
+ return Binaryen.CallIndirect.insertOperandAt(exp, index, operand);
1059
1072
  }
1060
1073
 
1061
1074
  //Provides: caml_binaryen_call_indirect_remove_operand_at
1062
- //Requires: binaryen
1075
+ //Requires: Binaryen
1063
1076
  function caml_binaryen_call_indirect_remove_operand_at(exp, index) {
1064
- return binaryen.CallIndirect.removeOperandAt(exp, index);
1077
+ return Binaryen.CallIndirect.removeOperandAt(exp, index);
1065
1078
  }
1066
1079
 
1067
1080
  //Provides: caml_binaryen_call_indirect_is_return
1068
- //Requires: binaryen
1081
+ //Requires: Binaryen
1069
1082
  //Requires: caml_js_to_bool
1070
1083
  function caml_binaryen_call_indirect_is_return(exp) {
1071
- return caml_js_to_bool(binaryen.CallIndirect.isReturn(exp));
1084
+ return caml_js_to_bool(Binaryen.CallIndirect.isReturn(exp));
1072
1085
  }
1073
1086
 
1074
1087
  //Provides: caml_binaryen_call_indirect_set_return
1075
- //Requires: binaryen
1088
+ //Requires: Binaryen
1076
1089
  //Requires: caml_js_from_bool
1077
1090
  function caml_binaryen_call_indirect_set_return(exp, isReturn) {
1078
- return binaryen.CallIndirect.setReturn(
1079
- exp,
1080
- caml_js_from_bool(isReturn)
1081
- );
1091
+ return Binaryen.CallIndirect.setReturn(exp, caml_js_from_bool(isReturn));
1082
1092
  }
1083
1093
 
1084
1094
  //Provides: caml_binaryen_local_set_get_value
1085
- //Requires: binaryen
1095
+ //Requires: Binaryen
1086
1096
  function caml_binaryen_local_set_get_value(exp) {
1087
- return binaryen.LocalSet.getValue(exp);
1097
+ return Binaryen.LocalSet.getValue(exp);
1088
1098
  }
1089
1099
 
1090
1100
  //Provides: caml_binaryen_local_set_set_value
1091
- //Requires: binaryen
1101
+ //Requires: Binaryen
1092
1102
  function caml_binaryen_local_set_set_value(exp, value) {
1093
- return binaryen.LocalSet.setValue(exp, value);
1103
+ return Binaryen.LocalSet.setValue(exp, value);
1094
1104
  }
1095
1105
 
1096
1106
  //Provides: caml_binaryen_global_get_get_name
1097
- //Requires: binaryen
1107
+ //Requires: Binaryen
1098
1108
  //Requires: caml_string_of_jsstring
1099
1109
  function caml_binaryen_global_get_get_name(exp) {
1100
- return caml_string_of_jsstring(binaryen.GlobalGet.getName(exp));
1110
+ return caml_string_of_jsstring(Binaryen.GlobalGet.getName(exp));
1101
1111
  }
1102
1112
 
1103
1113
  //Provides: caml_binaryen_global_get_set_name
1104
- //Requires: binaryen
1114
+ //Requires: Binaryen
1105
1115
  //Requires: caml_jsstring_of_string
1106
1116
  function caml_binaryen_global_get_set_name(exp, name) {
1107
- return binaryen.GlobalGet.setName(
1108
- exp,
1109
- caml_jsstring_of_string(name)
1110
- );
1117
+ return Binaryen.GlobalGet.setName(exp, caml_jsstring_of_string(name));
1111
1118
  }
1112
1119
 
1113
1120
  //Provides: caml_binaryen_global_set_get_name
1114
- //Requires: binaryen
1121
+ //Requires: Binaryen
1115
1122
  //Requires: caml_string_of_jsstring
1116
1123
  function caml_binaryen_global_set_get_name(exp) {
1117
- return caml_string_of_jsstring(binaryen.GlobalSet.getName(exp));
1124
+ return caml_string_of_jsstring(Binaryen.GlobalSet.getName(exp));
1118
1125
  }
1119
1126
 
1120
1127
  //Provides: caml_binaryen_global_set_set_name
1121
- //Requires: binaryen
1128
+ //Requires: Binaryen
1122
1129
  //Requires: caml_jsstring_of_string
1123
1130
  function caml_binaryen_global_set_set_name(exp, name) {
1124
- return binaryen.GlobalSet.setName(
1125
- exp,
1126
- caml_jsstring_of_string(name)
1127
- );
1131
+ return Binaryen.GlobalSet.setName(exp, caml_jsstring_of_string(name));
1128
1132
  }
1129
1133
 
1130
1134
  //Provides: caml_binaryen_global_set_get_value
1131
- //Requires: binaryen
1135
+ //Requires: Binaryen
1132
1136
  function caml_binaryen_global_set_get_value(exp) {
1133
- return binaryen.GlobalSet.getValue(exp);
1137
+ return Binaryen.GlobalSet.getValue(exp);
1134
1138
  }
1135
1139
 
1136
1140
  //Provides: caml_binaryen_global_set_set_value
1137
- //Requires: binaryen
1141
+ //Requires: Binaryen
1138
1142
  function caml_binaryen_global_set_set_value(exp, value) {
1139
- return binaryen.GlobalSet.setValue(exp, value);
1143
+ return Binaryen.GlobalSet.setValue(exp, value);
1140
1144
  }
1141
1145
 
1142
1146
  //Provides: caml_binaryen_memory_grow_get_delta
1143
- //Requires: binaryen
1147
+ //Requires: Binaryen
1144
1148
  function caml_binaryen_memory_grow_get_delta(exp) {
1145
- return binaryen.MemoryGrow.getDelta(exp);
1149
+ return Binaryen.MemoryGrow.getDelta(exp);
1146
1150
  }
1147
1151
 
1148
1152
  //Provides: caml_binaryen_memory_grow_set_delta
1149
- //Requires: binaryen
1153
+ //Requires: Binaryen
1150
1154
  function caml_binaryen_memory_grow_set_delta(exp, delta) {
1151
- return binaryen.MemoryGrow.setDelta(exp, delta);
1155
+ return Binaryen.MemoryGrow.setDelta(exp, delta);
1152
1156
  }
1153
1157
 
1154
1158
  //Provides: caml_binaryen_load_get_ptr
1155
- //Requires: binaryen
1159
+ //Requires: Binaryen
1156
1160
  function caml_binaryen_load_get_ptr(exp) {
1157
- return binaryen.Load.getPtr(exp);
1161
+ return Binaryen.Load.getPtr(exp);
1158
1162
  }
1159
1163
 
1160
1164
  //Provides: caml_binaryen_load_set_ptr
1161
- //Requires: binaryen
1165
+ //Requires: Binaryen
1162
1166
  function caml_binaryen_load_set_ptr(exp, ptr) {
1163
- return binaryen.Load.setPtr(exp, ptr);
1167
+ return Binaryen.Load.setPtr(exp, ptr);
1164
1168
  }
1165
1169
 
1166
1170
  //Provides: caml_binaryen_store_get_ptr
1167
- //Requires: binaryen
1171
+ //Requires: Binaryen
1168
1172
  function caml_binaryen_store_get_ptr(exp) {
1169
- return binaryen.Store.getPtr(exp);
1173
+ return Binaryen.Store.getPtr(exp);
1170
1174
  }
1171
1175
 
1172
1176
  //Provides: caml_binaryen_store_set_ptr
1173
- //Requires: binaryen
1177
+ //Requires: Binaryen
1174
1178
  function caml_binaryen_store_set_ptr(exp, ptr) {
1175
- return binaryen.Store.setPtr(exp, ptr);
1179
+ return Binaryen.Store.setPtr(exp, ptr);
1176
1180
  }
1177
1181
 
1178
1182
  //Provides: caml_binaryen_store_get_value
1179
- //Requires: binaryen
1183
+ //Requires: Binaryen
1180
1184
  function caml_binaryen_store_get_value(exp) {
1181
- return binaryen.Store.getValue(exp);
1185
+ return Binaryen.Store.getValue(exp);
1182
1186
  }
1183
1187
 
1184
1188
  //Provides: caml_binaryen_store_set_value
1185
- //Requires: binaryen
1189
+ //Requires: Binaryen
1186
1190
  function caml_binaryen_store_set_value(exp, value) {
1187
- return binaryen.Store.setValue(exp, value);
1191
+ return Binaryen.Store.setValue(exp, value);
1188
1192
  }
1189
1193
 
1190
1194
  //Provides: caml_binaryen_unary_get_value
1191
- //Requires: binaryen
1195
+ //Requires: Binaryen
1192
1196
  function caml_binaryen_unary_get_value(exp) {
1193
- return binaryen.Unary.getValue(exp);
1197
+ return Binaryen.Unary.getValue(exp);
1194
1198
  }
1195
1199
 
1196
1200
  //Provides: caml_binaryen_unary_set_value
1197
- //Requires: binaryen
1201
+ //Requires: Binaryen
1198
1202
  function caml_binaryen_unary_set_value(exp, value) {
1199
- return binaryen.Unary.setValue(exp, value);
1203
+ return Binaryen.Unary.setValue(exp, value);
1200
1204
  }
1201
1205
 
1202
1206
  //Provides: caml_binaryen_binary_get_left
1203
- //Requires: binaryen
1207
+ //Requires: Binaryen
1204
1208
  function caml_binaryen_binary_get_left(exp) {
1205
- return binaryen.Binary.getLeft(exp);
1209
+ return Binaryen.Binary.getLeft(exp);
1206
1210
  }
1207
1211
 
1208
1212
  //Provides: caml_binaryen_binary_set_left
1209
- //Requires: binaryen
1213
+ //Requires: Binaryen
1210
1214
  function caml_binaryen_binary_set_left(exp, value) {
1211
- return binaryen.Binary.setLeft(exp, value);
1215
+ return Binaryen.Binary.setLeft(exp, value);
1212
1216
  }
1213
1217
 
1214
1218
  //Provides: caml_binaryen_binary_get_right
1215
- //Requires: binaryen
1219
+ //Requires: Binaryen
1216
1220
  function caml_binaryen_binary_get_right(exp) {
1217
- return binaryen.Binary.getRight(exp);
1221
+ return Binaryen.Binary.getRight(exp);
1218
1222
  }
1219
1223
 
1220
1224
  //Provides: caml_binaryen_binary_set_right
1221
- //Requires: binaryen
1225
+ //Requires: Binaryen
1222
1226
  function caml_binaryen_binary_set_right(exp, value) {
1223
- return binaryen.Binary.setRight(exp, value);
1227
+ return Binaryen.Binary.setRight(exp, value);
1224
1228
  }
1225
1229
 
1226
1230
  //Provides: caml_binaryen_select_get_if_true
1227
- //Requires: binaryen
1231
+ //Requires: Binaryen
1228
1232
  function caml_binaryen_select_get_if_true(exp) {
1229
- return binaryen.Select.getIfTrue(exp);
1233
+ return Binaryen.Select.getIfTrue(exp);
1230
1234
  }
1231
1235
 
1232
1236
  //Provides: caml_binaryen_select_set_if_true
1233
- //Requires: binaryen
1237
+ //Requires: Binaryen
1234
1238
  function caml_binaryen_select_set_if_true(exp, value) {
1235
- return binaryen.Select.setIfTrue(exp, value);
1239
+ return Binaryen.Select.setIfTrue(exp, value);
1236
1240
  }
1237
1241
 
1238
1242
  //Provides: caml_binaryen_select_get_if_false
1239
- //Requires: binaryen
1243
+ //Requires: Binaryen
1240
1244
  function caml_binaryen_select_get_if_false(exp) {
1241
- return binaryen.Select.getIfFalse(exp);
1245
+ return Binaryen.Select.getIfFalse(exp);
1242
1246
  }
1243
1247
 
1244
1248
  //Provides: caml_binaryen_select_set_if_false
1245
- //Requires: binaryen
1249
+ //Requires: Binaryen
1246
1250
  function caml_binaryen_select_set_if_false(exp, value) {
1247
- return binaryen.Select.setIfFalse(exp, value);
1251
+ return Binaryen.Select.setIfFalse(exp, value);
1248
1252
  }
1249
1253
 
1250
1254
  //Provides: caml_binaryen_select_get_condition
1251
- //Requires: binaryen
1255
+ //Requires: Binaryen
1252
1256
  function caml_binaryen_select_get_condition(exp) {
1253
- return binaryen.Select.getCondition(exp);
1257
+ return Binaryen.Select.getCondition(exp);
1254
1258
  }
1255
1259
 
1256
1260
  //Provides: caml_binaryen_select_set_condition
1257
- //Requires: binaryen
1261
+ //Requires: Binaryen
1258
1262
  function caml_binaryen_select_set_condition(exp, value) {
1259
- return binaryen.Select.setCondition(exp, value);
1263
+ return Binaryen.Select.setCondition(exp, value);
1260
1264
  }
1261
1265
 
1262
1266
  //Provides: caml_binaryen_drop_get_value
1263
- //Requires: binaryen
1267
+ //Requires: Binaryen
1264
1268
  function caml_binaryen_drop_get_value(exp) {
1265
- return binaryen.Drop.getValue(exp);
1269
+ return Binaryen.Drop.getValue(exp);
1266
1270
  }
1267
1271
 
1268
1272
  //Provides: caml_binaryen_drop_set_value
1269
- //Requires: binaryen
1273
+ //Requires: Binaryen
1270
1274
  function caml_binaryen_drop_set_value(exp, value) {
1271
- return binaryen.Drop.setValue(exp, value);
1275
+ return Binaryen.Drop.setValue(exp, value);
1272
1276
  }
1273
1277
 
1274
1278
  //Provides: caml_binaryen_return_get_value
1275
- //Requires: binaryen
1279
+ //Requires: Binaryen
1276
1280
  //Requires: to_option
1277
1281
  function caml_binaryen_return_get_value(exp) {
1278
- return to_option(binaryen.Return.getValue(exp));
1282
+ return to_option(Binaryen.Return.getValue(exp));
1279
1283
  }
1280
1284
 
1281
1285
  //Provides: caml_binaryen_return_set_value
1282
- //Requires: binaryen
1286
+ //Requires: Binaryen
1283
1287
  function caml_binaryen_return_set_value(exp, value) {
1284
- return binaryen.Return.setValue(exp, value);
1288
+ return Binaryen.Return.setValue(exp, value);
1289
+ }
1290
+
1291
+ //Provides: caml_binaryen_memory_init_get_segment
1292
+ //Requires: Binaryen
1293
+ function caml_binaryen_memory_init_get_segment(exp) {
1294
+ return Binaryen.MemoryInit.getSegment(exp);
1295
+ }
1296
+
1297
+ //Provides: caml_binaryen_memory_init_set_segment
1298
+ //Requires: Binaryen
1299
+ function caml_binaryen_memory_init_set_segment(exp, value) {
1300
+ return Binaryen.MemoryInit.setSegment(exp, value);
1301
+ }
1302
+
1303
+ //Provides: caml_binaryen_memory_init_get_dest
1304
+ //Requires: Binaryen
1305
+ function caml_binaryen_memory_init_get_dest(exp) {
1306
+ return Binaryen.MemoryInit.getDest(exp);
1307
+ }
1308
+
1309
+ //Provides: caml_binaryen_memory_init_set_dest
1310
+ //Requires: Binaryen
1311
+ function caml_binaryen_memory_init_set_dest(exp, value) {
1312
+ return Binaryen.MemoryInit.setDest(exp, value);
1313
+ }
1314
+
1315
+ //Provides: caml_binaryen_memory_init_get_offset
1316
+ //Requires: Binaryen
1317
+ function caml_binaryen_memory_init_get_offset(exp) {
1318
+ return Binaryen.MemoryInit.getOffset(exp);
1319
+ }
1320
+
1321
+ //Provides: caml_binaryen_memory_init_set_offset
1322
+ //Requires: Binaryen
1323
+ function caml_binaryen_memory_init_set_offset(exp, value) {
1324
+ return Binaryen.MemoryInit.setOffset(exp, value);
1325
+ }
1326
+
1327
+ //Provides: caml_binaryen_memory_init_get_size
1328
+ //Requires: Binaryen
1329
+ function caml_binaryen_memory_init_get_size(exp) {
1330
+ return Binaryen.MemoryInit.getSize(exp);
1331
+ }
1332
+
1333
+ //Provides: caml_binaryen_memory_init_set_size
1334
+ //Requires: Binaryen
1335
+ function caml_binaryen_memory_init_set_size(exp, value) {
1336
+ return Binaryen.MemoryInit.setSize(exp, value);
1337
+ }
1338
+
1339
+ //Provides: caml_binaryen_data_drop_get_segment
1340
+ //Requires: Binaryen
1341
+ function caml_binaryen_data_drop_get_segment(exp) {
1342
+ return Binaryen.DataDrop.getSegment(exp);
1343
+ }
1344
+
1345
+ //Provides: caml_binaryen_data_drop_set_segment
1346
+ //Requires: Binaryen
1347
+ function caml_binaryen_data_drop_set_segment(exp, value) {
1348
+ return Binaryen.DataDrop.setSegment(exp, value);
1285
1349
  }
1286
1350
 
1287
1351
  //Provides: caml_binaryen_memory_copy_get_dest
1288
- //Requires: binaryen
1352
+ //Requires: Binaryen
1289
1353
  function caml_binaryen_memory_copy_get_dest(exp) {
1290
- return binaryen.MemoryCopy.getDest(exp);
1354
+ return Binaryen.MemoryCopy.getDest(exp);
1291
1355
  }
1292
1356
 
1293
1357
  //Provides: caml_binaryen_memory_copy_set_dest
1294
- //Requires: binaryen
1358
+ //Requires: Binaryen
1295
1359
  function caml_binaryen_memory_copy_set_dest(exp, value) {
1296
- return binaryen.MemoryCopy.setDest(exp, value);
1360
+ return Binaryen.MemoryCopy.setDest(exp, value);
1297
1361
  }
1298
1362
 
1299
1363
  //Provides: caml_binaryen_memory_copy_get_source
1300
- //Requires: binaryen
1364
+ //Requires: Binaryen
1301
1365
  function caml_binaryen_memory_copy_get_source(exp) {
1302
- return binaryen.MemoryCopy.getSource(exp);
1366
+ return Binaryen.MemoryCopy.getSource(exp);
1303
1367
  }
1304
1368
 
1305
1369
  //Provides: caml_binaryen_memory_copy_set_source
1306
- //Requires: binaryen
1370
+ //Requires: Binaryen
1307
1371
  function caml_binaryen_memory_copy_set_source(exp, value) {
1308
- return binaryen.MemoryCopy.setSource(exp, value);
1372
+ return Binaryen.MemoryCopy.setSource(exp, value);
1309
1373
  }
1310
1374
 
1311
1375
  //Provides: caml_binaryen_memory_copy_get_size
1312
- //Requires: binaryen
1376
+ //Requires: Binaryen
1313
1377
  function caml_binaryen_memory_copy_get_size(exp) {
1314
- return binaryen.MemoryCopy.getSize(exp);
1378
+ return Binaryen.MemoryCopy.getSize(exp);
1315
1379
  }
1316
1380
 
1317
1381
  //Provides: caml_binaryen_memory_copy_set_size
1318
- //Requires: binaryen
1382
+ //Requires: Binaryen
1319
1383
  function caml_binaryen_memory_copy_set_size(exp, value) {
1320
- return binaryen.MemoryCopy.setSize(exp, value);
1384
+ return Binaryen.MemoryCopy.setSize(exp, value);
1321
1385
  }
1322
1386
 
1323
1387
  //Provides: caml_binaryen_memory_fill_get_dest
1324
- //Requires: binaryen
1388
+ //Requires: Binaryen
1325
1389
  function caml_binaryen_memory_fill_get_dest(exp) {
1326
- return binaryen.MemoryFill.getDest(exp);
1390
+ return Binaryen.MemoryFill.getDest(exp);
1327
1391
  }
1328
1392
 
1329
1393
  //Provides: caml_binaryen_memory_fill_set_dest
1330
- //Requires: binaryen
1394
+ //Requires: Binaryen
1331
1395
  function caml_binaryen_memory_fill_set_dest(exp, value) {
1332
- return binaryen.MemoryFill.setDest(exp, value);
1396
+ return Binaryen.MemoryFill.setDest(exp, value);
1333
1397
  }
1334
1398
 
1335
1399
  //Provides: caml_binaryen_memory_fill_get_value
1336
- //Requires: binaryen
1400
+ //Requires: Binaryen
1337
1401
  function caml_binaryen_memory_fill_get_value(exp) {
1338
- return binaryen.MemoryFill.getValue(exp);
1402
+ return Binaryen.MemoryFill.getValue(exp);
1339
1403
  }
1340
1404
 
1341
1405
  //Provides: caml_binaryen_memory_fill_set_value
1342
- //Requires: binaryen
1406
+ //Requires: Binaryen
1343
1407
  function caml_binaryen_memory_fill_set_value(exp, value) {
1344
- return binaryen.MemoryFill.setValue(exp, value);
1408
+ return Binaryen.MemoryFill.setValue(exp, value);
1345
1409
  }
1346
1410
 
1347
1411
  //Provides: caml_binaryen_memory_fill_get_size
1348
- //Requires: binaryen
1412
+ //Requires: Binaryen
1349
1413
  function caml_binaryen_memory_fill_get_size(exp) {
1350
- return binaryen.MemoryFill.getSize(exp);
1414
+ return Binaryen.MemoryFill.getSize(exp);
1351
1415
  }
1352
1416
 
1353
1417
  //Provides: caml_binaryen_memory_fill_set_size
1354
- //Requires: binaryen
1418
+ //Requires: Binaryen
1355
1419
  function caml_binaryen_memory_fill_set_size(exp, value) {
1356
- return binaryen.MemoryFill.setSize(exp, value);
1420
+ return Binaryen.MemoryFill.setSize(exp, value);
1357
1421
  }
1358
1422
 
1359
1423
  //Provides: caml_binaryen_tuple_make_get_num_operands
1360
- //Requires: binaryen
1424
+ //Requires: Binaryen
1361
1425
  function caml_binaryen_tuple_make_get_num_operands(exp) {
1362
- return binaryen.TupleMake.getNumOperands(exp);
1426
+ return Binaryen.TupleMake.getNumOperands(exp);
1363
1427
  }
1364
1428
 
1365
1429
  //Provides: caml_binaryen_tuple_make_get_operand_at
1366
- //Requires: binaryen
1430
+ //Requires: Binaryen
1367
1431
  function caml_binaryen_tuple_make_get_operand_at(exp, index) {
1368
- return binaryen.TupleMake.getOperandAt(exp, index);
1432
+ return Binaryen.TupleMake.getOperandAt(exp, index);
1369
1433
  }
1370
1434
 
1371
1435
  //Provides: caml_binaryen_tuple_make_set_operand_at
1372
- //Requires: binaryen
1436
+ //Requires: Binaryen
1373
1437
  function caml_binaryen_tuple_make_set_operand_at(exp, index, operand) {
1374
- return binaryen.TupleMake.setOperandAt(exp, index, operand);
1438
+ return Binaryen.TupleMake.setOperandAt(exp, index, operand);
1375
1439
  }
1376
1440
 
1377
1441
  //Provides: caml_binaryen_tuple_make_append_operand
1378
- //Requires: binaryen
1442
+ //Requires: Binaryen
1379
1443
  function caml_binaryen_tuple_make_append_operand(exp, operand) {
1380
- return binaryen.TupleMake.appendOperand(exp, operand);
1444
+ return Binaryen.TupleMake.appendOperand(exp, operand);
1381
1445
  }
1382
1446
 
1383
1447
  //Provides: caml_binaryen_tuple_make_insert_operand_at
1384
- //Requires: binaryen
1448
+ //Requires: Binaryen
1385
1449
  function caml_binaryen_tuple_make_insert_operand_at(exp, index, operand) {
1386
- return binaryen.TupleMake.insertOperandAt(exp, index, operand);
1450
+ return Binaryen.TupleMake.insertOperandAt(exp, index, operand);
1387
1451
  }
1388
1452
 
1389
1453
  //Provides: caml_binaryen_tuple_make_remove_operand_at
1390
- //Requires: binaryen
1454
+ //Requires: Binaryen
1391
1455
  function caml_binaryen_tuple_make_remove_operand_at(exp, index) {
1392
- return binaryen.TupleMake.removeOperandAt(exp, index);
1456
+ return Binaryen.TupleMake.removeOperandAt(exp, index);
1393
1457
  }
1394
1458
 
1395
1459
  //Provides: caml_binaryen_tuple_extract_get_tuple
1396
- //Requires: binaryen
1460
+ //Requires: Binaryen
1397
1461
  function caml_binaryen_tuple_extract_get_tuple(exp) {
1398
- return binaryen.TupleExtract.getTuple(exp);
1462
+ return Binaryen.TupleExtract.getTuple(exp);
1399
1463
  }
1400
1464
 
1401
1465
  //Provides: caml_binaryen_tuple_extract_set_tuple
1402
- //Requires: binaryen
1466
+ //Requires: Binaryen
1403
1467
  function caml_binaryen_tuple_extract_set_tuple(exp, value) {
1404
- return binaryen.TupleExtract.setTuple(exp, value);
1468
+ return Binaryen.TupleExtract.setTuple(exp, value);
1405
1469
  }
1406
1470
 
1407
1471
  // Ref operations
@@ -1412,24 +1476,21 @@ function caml_binaryen_ref_null(wasm_mod, typ) {
1412
1476
  }
1413
1477
 
1414
1478
  //Provides: caml_binaryen_ref_is
1415
- //Requires: binaryen
1479
+ //Requires: Binaryen
1416
1480
  function caml_binaryen_ref_is(wasm_mod, op, value) {
1417
- return binaryen._BinaryenRefIs(wasm_mod, op, value);
1481
+ return Binaryen._BinaryenRefIs(wasm_mod, op, value);
1418
1482
  }
1419
1483
 
1420
1484
  //Provides: caml_binaryen_ref_as
1421
- //Requires: binaryen
1485
+ //Requires: Binaryen
1422
1486
  function caml_binaryen_ref_as(wasm_mod, op, value) {
1423
- return binaryen._BinaryenRefAs(wasm_mod, op, value);
1487
+ return Binaryen._BinaryenRefAs(wasm_mod, op, value);
1424
1488
  }
1425
1489
 
1426
1490
  //Provides: caml_binaryen_ref_func
1427
1491
  //Requires: caml_jsstring_of_string
1428
1492
  function caml_binaryen_ref_func(wasm_mod, name, typ) {
1429
- return wasm_mod.ref.func(
1430
- caml_jsstring_of_string(name),
1431
- typ
1432
- );
1493
+ return wasm_mod.ref.func(caml_jsstring_of_string(name), typ);
1433
1494
  }
1434
1495
 
1435
1496
  //Provides: caml_binaryen_ref_eq
@@ -1442,173 +1503,147 @@ function caml_binaryen_ref_eq(wasm_mod, left, right) {
1442
1503
  //Provides: caml_binaryen_table_get
1443
1504
  //Requires: caml_jsstring_of_string
1444
1505
  function caml_binaryen_table_get(wasm_mod, name, index, typ) {
1445
- return wasm_mod.table.get(
1446
- caml_jsstring_of_string(name),
1447
- index,
1448
- typ
1449
- );
1506
+ return wasm_mod.table.get(caml_jsstring_of_string(name), index, typ);
1450
1507
  }
1451
1508
 
1452
1509
  //Provides: caml_binaryen_table_set
1453
1510
  //Requires: caml_jsstring_of_string
1454
1511
  function caml_binaryen_table_set(wasm_mod, name, index, value) {
1455
- return wasm_mod.table.set(
1456
- caml_jsstring_of_string(name),
1457
- index,
1458
- value
1459
- );
1512
+ return wasm_mod.table.set(caml_jsstring_of_string(name), index, value);
1460
1513
  }
1461
1514
 
1462
1515
  //Provides: caml_binaryen_table_size
1463
1516
  //Requires: caml_jsstring_of_string
1464
1517
  function caml_binaryen_table_size(wasm_mod, name) {
1465
- return wasm_mod.table.size(
1466
- caml_jsstring_of_string(name)
1467
- );
1518
+ return wasm_mod.table.size(caml_jsstring_of_string(name));
1468
1519
  }
1469
1520
 
1470
1521
  //Provides: caml_binaryen_table_grow
1471
1522
  //Requires: caml_jsstring_of_string
1472
1523
  function caml_binaryen_table_grow(wasm_mod, name, value, delta) {
1473
- return wasm_mod.table.grow(
1474
- caml_jsstring_of_string(name),
1475
- value,
1476
- delta
1477
- );
1524
+ return wasm_mod.table.grow(caml_jsstring_of_string(name), value, delta);
1478
1525
  }
1479
1526
 
1480
1527
  // TableGet operations
1481
1528
 
1482
1529
  //Provides: caml_binaryen_tableget_get_table
1483
- //Requires: binaryen
1530
+ //Requires: Binaryen
1484
1531
  //Requires: caml_string_of_jsstring
1485
1532
  function caml_binaryen_tableget_get_table(exp) {
1486
- return caml_string_of_jsstring(binaryen.TableGet.getTable(exp));
1533
+ return caml_string_of_jsstring(Binaryen.TableGet.getTable(exp));
1487
1534
  }
1488
1535
 
1489
1536
  //Provides: caml_binaryen_tableget_set_table
1490
- //Requires: binaryen
1537
+ //Requires: Binaryen
1491
1538
  //Requires: caml_jsstring_of_string
1492
1539
  function caml_binaryen_tableget_set_table(exp, table) {
1493
- return binaryen.TableGet.setTable(
1494
- exp,
1495
- caml_jsstring_of_string(table)
1496
- );
1540
+ return Binaryen.TableGet.setTable(exp, caml_jsstring_of_string(table));
1497
1541
  }
1498
1542
 
1499
1543
  //Provides: caml_binaryen_tableget_get_index
1500
- //Requires: binaryen
1544
+ //Requires: Binaryen
1501
1545
  function caml_binaryen_tableget_get_index(exp) {
1502
- return binaryen.TableGet.getIndex(exp);
1546
+ return Binaryen.TableGet.getIndex(exp);
1503
1547
  }
1504
1548
 
1505
1549
  //Provides: caml_binaryen_tableget_set_index
1506
- //Requires: binaryen
1550
+ //Requires: Binaryen
1507
1551
  function caml_binaryen_tableget_set_index(exp, index) {
1508
- return binaryen.TableGet.setIndex(exp, index);
1552
+ return Binaryen.TableGet.setIndex(exp, index);
1509
1553
  }
1510
1554
 
1511
1555
  // TableSet operations
1512
1556
 
1513
1557
  //Provides: caml_binaryen_tableset_get_table
1514
- //Requires: binaryen
1558
+ //Requires: Binaryen
1515
1559
  //Requires: caml_string_of_jsstring
1516
1560
  function caml_binaryen_tableset_get_table(exp) {
1517
- return caml_string_of_jsstring(binaryen.TableSet.getTable(exp));
1561
+ return caml_string_of_jsstring(Binaryen.TableSet.getTable(exp));
1518
1562
  }
1519
1563
 
1520
1564
  //Provides: caml_binaryen_tableset_set_table
1521
- //Requires: binaryen
1565
+ //Requires: Binaryen
1522
1566
  //Requires: caml_jsstring_of_string
1523
1567
  function caml_binaryen_tableset_set_table(exp, table) {
1524
- return binaryen.TableSet.setTable(
1525
- exp,
1526
- caml_jsstring_of_string(table)
1527
- );
1568
+ return Binaryen.TableSet.setTable(exp, caml_jsstring_of_string(table));
1528
1569
  }
1529
1570
 
1530
1571
  //Provides: caml_binaryen_tableset_get_index
1531
- //Requires: binaryen
1572
+ //Requires: Binaryen
1532
1573
  function caml_binaryen_tableset_get_index(exp) {
1533
- return binaryen.TableSet.getIndex(exp);
1574
+ return Binaryen.TableSet.getIndex(exp);
1534
1575
  }
1535
1576
 
1536
1577
  //Provides: caml_binaryen_tableset_set_index
1537
- //Requires: binaryen
1578
+ //Requires: Binaryen
1538
1579
  function caml_binaryen_tableset_set_index(exp, index) {
1539
- return binaryen.TableSet.setIndex(exp, index);
1580
+ return Binaryen.TableSet.setIndex(exp, index);
1540
1581
  }
1541
1582
 
1542
1583
  //Provides: caml_binaryen_tableset_get_value
1543
- //Requires: binaryen
1584
+ //Requires: Binaryen
1544
1585
  function caml_binaryen_tableset_get_value(exp) {
1545
- return binaryen.TableSet.getValue(exp);
1586
+ return Binaryen.TableSet.getValue(exp);
1546
1587
  }
1547
1588
 
1548
1589
  //Provides: caml_binaryen_tableset_set_value
1549
- //Requires: binaryen
1590
+ //Requires: Binaryen
1550
1591
  function caml_binaryen_tableset_set_value(exp, value) {
1551
- return binaryen.TableSet.setValue(exp, value);
1592
+ return Binaryen.TableSet.setValue(exp, value);
1552
1593
  }
1553
1594
 
1554
1595
  // TableSize operations
1555
1596
 
1556
1597
  //Provides: caml_binaryen_tablesize_get_table
1557
- //Requires: binaryen
1598
+ //Requires: Binaryen
1558
1599
  //Requires: caml_string_of_jsstring
1559
1600
  function caml_binaryen_tablesize_get_table(exp) {
1560
- return caml_string_of_jsstring(binaryen.TableSize.getTable(exp));
1601
+ return caml_string_of_jsstring(Binaryen.TableSize.getTable(exp));
1561
1602
  }
1562
1603
 
1563
1604
  //Provides: caml_binaryen_tablesize_set_table
1564
- //Requires: binaryen
1605
+ //Requires: Binaryen
1565
1606
  //Requires: caml_jsstring_of_string
1566
1607
  function caml_binaryen_tablesize_set_table(exp, table) {
1567
- return binaryen.TableSize.setTable(
1568
- exp,
1569
- caml_jsstring_of_string(table)
1570
- );
1608
+ return Binaryen.TableSize.setTable(exp, caml_jsstring_of_string(table));
1571
1609
  }
1572
1610
 
1573
1611
  // TableGrow operations
1574
1612
 
1575
1613
  //Provides: caml_binaryen_tablegrow_get_table
1576
- //Requires: binaryen
1614
+ //Requires: Binaryen
1577
1615
  //Requires: caml_string_of_jsstring
1578
1616
  function caml_binaryen_tablegrow_get_table(exp) {
1579
- return caml_string_of_jsstring(binaryen.TableGrow.getTable(exp));
1617
+ return caml_string_of_jsstring(Binaryen.TableGrow.getTable(exp));
1580
1618
  }
1581
1619
 
1582
1620
  //Provides: caml_binaryen_tablegrow_set_table
1583
- //Requires: binaryen
1621
+ //Requires: Binaryen
1584
1622
  //Requires: caml_jsstring_of_string
1585
1623
  function caml_binaryen_tablegrow_set_table(exp, table) {
1586
- return binaryen.TableGrow.setTable(
1587
- exp,
1588
- caml_jsstring_of_string(table)
1589
- );
1624
+ return Binaryen.TableGrow.setTable(exp, caml_jsstring_of_string(table));
1590
1625
  }
1591
1626
 
1592
1627
  //Provides: caml_binaryen_tablegrow_get_value
1593
- //Requires: binaryen
1628
+ //Requires: Binaryen
1594
1629
  function caml_binaryen_tablegrow_get_value(exp) {
1595
- return binaryen.TableGrow.getValue(exp);
1630
+ return Binaryen.TableGrow.getValue(exp);
1596
1631
  }
1597
1632
 
1598
1633
  //Provides: caml_binaryen_tablegrow_set_value
1599
- //Requires: binaryen
1634
+ //Requires: Binaryen
1600
1635
  function caml_binaryen_tablegrow_set_value(exp, value) {
1601
- return binaryen.TableGrow.setValue(exp, value);
1636
+ return Binaryen.TableGrow.setValue(exp, value);
1602
1637
  }
1603
1638
 
1604
1639
  //Provides: caml_binaryen_tablegrow_get_delta
1605
- //Requires: binaryen
1640
+ //Requires: Binaryen
1606
1641
  function caml_binaryen_tablegrow_get_delta(exp) {
1607
- return binaryen.TableGrow.getDelta(exp);
1642
+ return Binaryen.TableGrow.getDelta(exp);
1608
1643
  }
1609
1644
 
1610
1645
  //Provides: caml_binaryen_tablegrow_set_delta
1611
- //Requires: binaryen
1646
+ //Requires: Binaryen
1612
1647
  function caml_binaryen_tablegrow_set_delta(exp, delta) {
1613
- return binaryen.TableGrow.setDelta(exp, delta);
1648
+ return Binaryen.TableGrow.setDelta(exp, delta);
1614
1649
  }