@grain/binaryen.ml 0.14.0 → 0.16.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.
- binaryen-archive/CHANGELOG.md +56 -0
- binaryen-archive/README.md +10 -24
- binaryen-archive/binaryen.opam +3 -5
- binaryen-archive/dune +1 -1
- binaryen-archive/esy.lock/index.json +77 -160
- binaryen-archive/esy.lock/opam/{cmdliner.1.1.0 → cmdliner.1.1.1}/opam +24 -18
- binaryen-archive/esy.lock/opam/{easy-format.1.3.2 → easy-format.1.3.3}/opam +30 -18
- binaryen-archive/esy.lock/opam/{ppx_yojson_conv_lib.v0.14.0 → ppx_yojson_conv_lib.v0.15.0}/opam +2 -2
- binaryen-archive/esy.lock/opam/{ppxlib.0.25.0 → ppxlib.0.26.0}/opam +5 -4
- binaryen-archive/esy.lock/opam/{re.1.10.3 → re.1.10.4}/opam +7 -7
- binaryen-archive/esy.lock/opam/{spawn.v0.15.0 → spawn.v0.15.1}/opam +4 -4
- binaryen-archive/esy.lock/overrides/opam__s__easy_format_opam__c__1.3.3_opam_override/package.json +3 -0
- binaryen-archive/package.json +4 -6
- binaryen-archive/src/binaryen_stubs_exports.js +110 -0
- binaryen-archive/src/binaryen_stubs_expressions.c +6 -1
- binaryen-archive/src/binaryen_stubs_expressions.js +1614 -0
- binaryen-archive/src/binaryen_stubs_features.js +105 -0
- binaryen-archive/src/binaryen_stubs_functions.js +92 -0
- binaryen-archive/src/binaryen_stubs_globals.js +62 -0
- binaryen-archive/src/binaryen_stubs_imports.js +86 -0
- binaryen-archive/src/binaryen_stubs_literals.js +29 -0
- binaryen-archive/src/binaryen_stubs_memory.js +25 -0
- binaryen-archive/src/binaryen_stubs_modules.js +121 -0
- binaryen-archive/src/binaryen_stubs_ops.js +1895 -0
- binaryen-archive/src/binaryen_stubs_settings.js +120 -0
- binaryen-archive/src/binaryen_stubs_tables.c +2 -0
- binaryen-archive/src/binaryen_stubs_tables.js +84 -0
- binaryen-archive/src/binaryen_stubs_types.js +73 -0
- binaryen-archive/src/dune +11 -4
- binaryen-archive/{virtual → src}/element_segment.mli +0 -0
- binaryen-archive/{virtual → src}/export.mli +0 -0
- binaryen-archive/src/expression.ml +1 -1
- binaryen-archive/{virtual → src}/expression.mli +1 -1
- binaryen-archive/{virtual → src}/function.mli +0 -0
- binaryen-archive/{virtual → src}/global.mli +0 -0
- binaryen-archive/{virtual → src}/import.mli +0 -0
- binaryen-archive/src/literal.ml +0 -13
- binaryen-archive/src/literal.mli +8 -0
- binaryen-archive/src/memory.ml +6 -6
- binaryen-archive/{virtual → src}/memory.mli +1 -1
- binaryen-archive/src/module.ml +1 -1
- binaryen-archive/{virtual → src}/module.mli +1 -1
- binaryen-archive/{virtual → src}/op.mli +0 -0
- binaryen-archive/src/passes.ml +345 -0
- binaryen-archive/src/passes.mli +343 -0
- binaryen-archive/{virtual → src}/settings.mli +0 -0
- binaryen-archive/{virtual → src}/table.mli +0 -0
- binaryen-archive/{virtual → src}/type.mli +0 -0
- binaryen-archive/test/config/ocamlopt_flags.ml +1 -8
- binaryen-archive/test/dune +2 -22
- binaryen-archive/test/test.expected +8 -4
- binaryen-archive/test/test.ml +47 -10
- binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.11.0/opam +0 -44
- binaryen-archive/esy.lock/opam/js_of_ocaml.3.11.0/opam +0 -45
- binaryen-archive/esy.lock/opam/uchar.0.0.2/opam +0 -36
- binaryen-archive/esy.lock/overrides/opam__s__uchar_opam__c__0.0.2_opam_override/files/winpatch.patch +0 -11
- binaryen-archive/esy.lock/overrides/opam__s__uchar_opam__c__0.0.2_opam_override/package.json +0 -11
- binaryen-archive/js/binaryen.es5.js +0 -363
- binaryen-archive/js/dune +0 -13
- binaryen-archive/js/element_segment.ml +0 -33
- binaryen-archive/js/export.ml +0 -57
- binaryen-archive/js/expression.ml +0 -1105
- binaryen-archive/js/function.ml +0 -60
- binaryen-archive/js/global.ml +0 -48
- binaryen-archive/js/import.ml +0 -69
- binaryen-archive/js/literal.ml +0 -28
- binaryen-archive/js/memory.ml +0 -39
- binaryen-archive/js/module.ml +0 -116
- binaryen-archive/js/op.ml +0 -482
- binaryen-archive/js/prelude.js +0 -2
- binaryen-archive/js/settings.ml +0 -60
- binaryen-archive/js/stubs.c +0 -15
- binaryen-archive/js/table.ml +0 -29
- binaryen-archive/js/type.ml +0 -21
- binaryen-archive/virtual/dune +0 -6
- binaryen-archive/virtual/literal.mli +0 -19
binaryen-archive/js/function.ml
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml.Js
|
|
2
|
-
open Js_of_ocaml.Js.Unsafe
|
|
3
|
-
|
|
4
|
-
type t
|
|
5
|
-
|
|
6
|
-
let add_function wasm_mod name params results vars body =
|
|
7
|
-
meth_call wasm_mod "addFunction"
|
|
8
|
-
[|
|
|
9
|
-
inject (string name);
|
|
10
|
-
inject params;
|
|
11
|
-
inject results;
|
|
12
|
-
inject (array vars);
|
|
13
|
-
inject body;
|
|
14
|
-
|]
|
|
15
|
-
|
|
16
|
-
let set_start wasm_mod func = meth_call wasm_mod "setStart" [| inject func |]
|
|
17
|
-
|
|
18
|
-
let set_debug_location func expr file line column =
|
|
19
|
-
ignore
|
|
20
|
-
(meth_call global##.binaryen "_BinaryenFunctionSetDebugLocation"
|
|
21
|
-
[| inject func; inject expr; inject file; inject line; inject column |])
|
|
22
|
-
|
|
23
|
-
let get_function wasm_mod name =
|
|
24
|
-
meth_call wasm_mod "getFunction" [| inject (string name) |]
|
|
25
|
-
|
|
26
|
-
let get_function_by_index wasm_mod index =
|
|
27
|
-
meth_call wasm_mod "getFunctionByIndex" [| inject index |]
|
|
28
|
-
|
|
29
|
-
let remove_function wasm_mod name =
|
|
30
|
-
meth_call wasm_mod "removeFunction" [| inject (string name) |]
|
|
31
|
-
|
|
32
|
-
let get_num_functions wasm_mod = meth_call wasm_mod "getNumFunctions" [||]
|
|
33
|
-
|
|
34
|
-
let get_name func =
|
|
35
|
-
to_string
|
|
36
|
-
(meth_call global ##. binaryen ##. Function "getName" [| inject func |])
|
|
37
|
-
|
|
38
|
-
let get_params func =
|
|
39
|
-
meth_call global ##. binaryen ##. Function "getParams" [| inject func |]
|
|
40
|
-
|
|
41
|
-
let get_results func =
|
|
42
|
-
meth_call global ##. binaryen ##. Function "getResults" [| inject func |]
|
|
43
|
-
|
|
44
|
-
let get_num_vars func =
|
|
45
|
-
meth_call global ##. binaryen ##. Function "getNumVars" [| inject func |]
|
|
46
|
-
|
|
47
|
-
let get_var func index =
|
|
48
|
-
meth_call
|
|
49
|
-
global ##. binaryen ##. Function
|
|
50
|
-
"getVar"
|
|
51
|
-
[| inject func; inject index |]
|
|
52
|
-
|
|
53
|
-
let get_body func =
|
|
54
|
-
meth_call global ##. binaryen ##. Function "getBody" [| inject func |]
|
|
55
|
-
|
|
56
|
-
let set_body func body =
|
|
57
|
-
meth_call
|
|
58
|
-
global ##. binaryen ##. Function
|
|
59
|
-
"setBody"
|
|
60
|
-
[| inject func; inject body |]
|
binaryen-archive/js/global.ml
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml.Js
|
|
2
|
-
open Js_of_ocaml.Js.Unsafe
|
|
3
|
-
|
|
4
|
-
type t
|
|
5
|
-
|
|
6
|
-
let add_global wasm_mod name typ is_mut init =
|
|
7
|
-
meth_call wasm_mod "addGlobal"
|
|
8
|
-
[|
|
|
9
|
-
inject (string name);
|
|
10
|
-
inject typ;
|
|
11
|
-
inject (if is_mut then 1 else 0);
|
|
12
|
-
inject init;
|
|
13
|
-
|]
|
|
14
|
-
|
|
15
|
-
let get_global wasm_mod name =
|
|
16
|
-
meth_call wasm_mod "getGlobal" [| inject (string name) |]
|
|
17
|
-
|
|
18
|
-
let remove_global wasm_mod name =
|
|
19
|
-
meth_call wasm_mod "removeGlobal" [| inject (string name) |]
|
|
20
|
-
|
|
21
|
-
let get_num_globals wasm_mod = meth_call wasm_mod "getNumGlobals" [||]
|
|
22
|
-
|
|
23
|
-
let get_global_by_index wasm_mod index =
|
|
24
|
-
meth_call wasm_mod "getGlobalByIndex" [| inject index |]
|
|
25
|
-
|
|
26
|
-
let get_name global_ =
|
|
27
|
-
let global_info =
|
|
28
|
-
meth_call global##.binaryen "getGlobalInfo" [| inject global_ |]
|
|
29
|
-
in
|
|
30
|
-
to_string (get global_info "name")
|
|
31
|
-
|
|
32
|
-
let get_type global_ =
|
|
33
|
-
let global_info =
|
|
34
|
-
meth_call global##.binaryen "getGlobalInfo" [| inject global_ |]
|
|
35
|
-
in
|
|
36
|
-
get global_info "type"
|
|
37
|
-
|
|
38
|
-
let is_mutable global_ =
|
|
39
|
-
let global_info =
|
|
40
|
-
meth_call global##.binaryen "getGlobalInfo" [| inject global_ |]
|
|
41
|
-
in
|
|
42
|
-
to_bool (get global_info "mutable")
|
|
43
|
-
|
|
44
|
-
let get_init_expr global_ =
|
|
45
|
-
let global_info =
|
|
46
|
-
meth_call global##.binaryen "getGlobalInfo" [| inject global_ |]
|
|
47
|
-
in
|
|
48
|
-
get global_info "init"
|
binaryen-archive/js/import.ml
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml.Js
|
|
2
|
-
open Js_of_ocaml.Js.Unsafe
|
|
3
|
-
|
|
4
|
-
let add_function_import wasm_mod internal_name external_module_name
|
|
5
|
-
external_base_name params result =
|
|
6
|
-
meth_call wasm_mod "addFunctionImport"
|
|
7
|
-
[|
|
|
8
|
-
inject (string internal_name);
|
|
9
|
-
inject (string external_module_name);
|
|
10
|
-
inject (string external_base_name);
|
|
11
|
-
inject params;
|
|
12
|
-
inject result;
|
|
13
|
-
|]
|
|
14
|
-
|
|
15
|
-
let add_table_import wasm_mod internal_name external_module_name
|
|
16
|
-
external_base_name =
|
|
17
|
-
meth_call wasm_mod "addTableImport"
|
|
18
|
-
[|
|
|
19
|
-
inject (string internal_name);
|
|
20
|
-
inject (string external_module_name);
|
|
21
|
-
inject (string external_base_name);
|
|
22
|
-
|]
|
|
23
|
-
|
|
24
|
-
(* TODO: Check this bool conversion *)
|
|
25
|
-
let add_memory_import wasm_mod internal_name external_module_name
|
|
26
|
-
external_base_name shared =
|
|
27
|
-
meth_call wasm_mod "addMemoryImport"
|
|
28
|
-
[|
|
|
29
|
-
inject (string internal_name);
|
|
30
|
-
inject (string external_module_name);
|
|
31
|
-
inject (string external_base_name);
|
|
32
|
-
inject (if shared then 1 else 0);
|
|
33
|
-
|]
|
|
34
|
-
|
|
35
|
-
(* TODO: Check this bool conversion *)
|
|
36
|
-
let add_global_import wasm_mod internal_name external_module_name
|
|
37
|
-
external_base_name typ is_mut =
|
|
38
|
-
meth_call wasm_mod "addGlobalImport"
|
|
39
|
-
[|
|
|
40
|
-
inject (string internal_name);
|
|
41
|
-
inject (string external_module_name);
|
|
42
|
-
inject (string external_base_name);
|
|
43
|
-
inject typ;
|
|
44
|
-
inject (if is_mut then 1 else 0);
|
|
45
|
-
|]
|
|
46
|
-
|
|
47
|
-
let function_import_get_module func =
|
|
48
|
-
let func_info =
|
|
49
|
-
meth_call global##.binaryen "getFunctionInfo" [| inject func |]
|
|
50
|
-
in
|
|
51
|
-
to_string (get func_info "module")
|
|
52
|
-
|
|
53
|
-
let global_import_get_module global_ =
|
|
54
|
-
let global_info =
|
|
55
|
-
meth_call global##.binaryen "getGlobalInfo" [| inject global_ |]
|
|
56
|
-
in
|
|
57
|
-
to_string (get global_info "module")
|
|
58
|
-
|
|
59
|
-
let function_import_get_base func =
|
|
60
|
-
let func_info =
|
|
61
|
-
meth_call global##.binaryen "getFunctionInfo" [| inject func |]
|
|
62
|
-
in
|
|
63
|
-
to_string (get func_info "base")
|
|
64
|
-
|
|
65
|
-
let global_import_get_base global_ =
|
|
66
|
-
let global_info =
|
|
67
|
-
meth_call global##.binaryen "getGlobalInfo" [| inject global_ |]
|
|
68
|
-
in
|
|
69
|
-
to_string (get global_info "base")
|
binaryen-archive/js/literal.ml
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
(* This is a hack around Binaryen's stack allocations *)
|
|
2
|
-
type jsoo =
|
|
3
|
-
| Int32 of int32
|
|
4
|
-
| Int64 of int32 * int32
|
|
5
|
-
| Float32Bits of int32
|
|
6
|
-
| Float64Bits of int32 * int32
|
|
7
|
-
| Float32 of float
|
|
8
|
-
| Float64 of float
|
|
9
|
-
|
|
10
|
-
type t = jsoo
|
|
11
|
-
|
|
12
|
-
let int32 value = Int32 value
|
|
13
|
-
|
|
14
|
-
let int64 value =
|
|
15
|
-
Int64
|
|
16
|
-
(Int64.to_int32 value, Int64.to_int32 (Int64.shift_right_logical value 32))
|
|
17
|
-
|
|
18
|
-
let float32_bits value = Float32Bits value
|
|
19
|
-
|
|
20
|
-
let float64_bits value =
|
|
21
|
-
Float64Bits
|
|
22
|
-
(Int64.to_int32 value, Int64.to_int32 (Int64.shift_right_logical value 32))
|
|
23
|
-
|
|
24
|
-
let float32 value = Float32 value
|
|
25
|
-
let float64 value = Float64 value
|
|
26
|
-
|
|
27
|
-
(* This makes our `t` public so we can match on it *)
|
|
28
|
-
let to_jsoo lit = lit
|
binaryen-archive/js/memory.ml
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml
|
|
2
|
-
open Js_of_ocaml.Js
|
|
3
|
-
open Js_of_ocaml.Js.Unsafe
|
|
4
|
-
|
|
5
|
-
type segment = {
|
|
6
|
-
name : string;
|
|
7
|
-
passive : bool;
|
|
8
|
-
offset : Expression.t;
|
|
9
|
-
size : int;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
(** Module, initial size, maximum size, export name, segments, shared. *)
|
|
13
|
-
let set_memory wasm_mod initial maximum export_name (segments : segment list)
|
|
14
|
-
shared =
|
|
15
|
-
let segs =
|
|
16
|
-
List.map
|
|
17
|
-
(fun { name; passive; offset; _ } ->
|
|
18
|
-
let data =
|
|
19
|
-
meth_call Typed_array.uint8Array "from" [| inject (string name) |]
|
|
20
|
-
in
|
|
21
|
-
obj
|
|
22
|
-
[|
|
|
23
|
-
("data", data);
|
|
24
|
-
("passive", inject passive);
|
|
25
|
-
("offset", inject offset);
|
|
26
|
-
|])
|
|
27
|
-
segments
|
|
28
|
-
in
|
|
29
|
-
ignore
|
|
30
|
-
(meth_call wasm_mod "setMemory"
|
|
31
|
-
[|
|
|
32
|
-
inject initial;
|
|
33
|
-
inject maximum;
|
|
34
|
-
inject (string export_name);
|
|
35
|
-
inject (array (Array.of_list segs));
|
|
36
|
-
inject (if shared then _true else _false);
|
|
37
|
-
|])
|
|
38
|
-
|
|
39
|
-
let unlimited = -1
|
binaryen-archive/js/module.ml
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml.Js
|
|
2
|
-
open Js_of_ocaml.Js.Unsafe
|
|
3
|
-
|
|
4
|
-
module Feature = struct
|
|
5
|
-
type t = int
|
|
6
|
-
|
|
7
|
-
let mvp : t = global ##. binaryen ##. Features ##. MVP
|
|
8
|
-
let atomics : t = global ##. binaryen ##. Features ##. Atomics
|
|
9
|
-
let bulk_memory : t = global ##. binaryen ##. Features ##. BulkMemory
|
|
10
|
-
let mutable_globals : t = global ##. binaryen ##. Features ##. MutableGlobals
|
|
11
|
-
|
|
12
|
-
let nontrapping_fp_to_int : t =
|
|
13
|
-
global ##. binaryen ##. Features ##. NontrappingFPToInt
|
|
14
|
-
|
|
15
|
-
let sign_ext : t = global ##. binaryen ##. Features ##. SignExt
|
|
16
|
-
let simd128 : t = global ##. binaryen ##. Features ##. SIMD128
|
|
17
|
-
|
|
18
|
-
let exception_handling : t =
|
|
19
|
-
global ##. binaryen ##. Features ##. ExceptionHandling
|
|
20
|
-
|
|
21
|
-
let tail_call : t = global ##. binaryen ##. Features ##. TailCall
|
|
22
|
-
let reference_types : t = global ##. binaryen ##. Features ##. ReferenceTypes
|
|
23
|
-
let multivalue : t = global ##. binaryen ##. Features ##. Multivalue
|
|
24
|
-
let gc : t = global ##. binaryen ##. Features ##. GC
|
|
25
|
-
let memory64 : t = global ##. binaryen ##. Features ##. Memory64
|
|
26
|
-
|
|
27
|
-
let typed_function_references : t =
|
|
28
|
-
global ##. binaryen ##. Features ##. TypedFunctionReferences
|
|
29
|
-
|
|
30
|
-
let relaxed_simd : t = global ##. binaryen ##. Features ##. RelaxedSIMD
|
|
31
|
-
let all : t = global ##. binaryen ##. Features ##. All
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
external u8a_to_bytes : 'a -> bytes = "caml_bytes_of_array"
|
|
35
|
-
|
|
36
|
-
(* TODO: Verify this converts to bytes correctly? *)
|
|
37
|
-
external bytes_to_u8a : bytes -> 'a = "caml_array_of_bytes"
|
|
38
|
-
external string_to_u8a : string -> 'a = "caml_array_of_string"
|
|
39
|
-
|
|
40
|
-
type t
|
|
41
|
-
|
|
42
|
-
let create () = new_obj global ##. binaryen ##. Module [||]
|
|
43
|
-
let dispose wasm_mod = ignore (meth_call wasm_mod "dispose" [||])
|
|
44
|
-
|
|
45
|
-
(* TODO: Check the unit8Array conversion *)
|
|
46
|
-
let add_custom_section wasm_mod name contents =
|
|
47
|
-
let contents = string_to_u8a contents in
|
|
48
|
-
ignore
|
|
49
|
-
(meth_call wasm_mod "addCustomSection"
|
|
50
|
-
[| inject (string name); inject contents |])
|
|
51
|
-
|
|
52
|
-
let parse text =
|
|
53
|
-
meth_call global##.binaryen "parseText" [| inject (string text) |]
|
|
54
|
-
|
|
55
|
-
let print wasm_mod =
|
|
56
|
-
let text = meth_call wasm_mod "emitText" [||] in
|
|
57
|
-
print_string (to_string text)
|
|
58
|
-
|
|
59
|
-
let print_asmjs wasm_mod =
|
|
60
|
-
let asm = meth_call wasm_mod "emitAsmjs" [||] in
|
|
61
|
-
print_string (to_string asm)
|
|
62
|
-
|
|
63
|
-
let validate wasm_mod = meth_call wasm_mod "validate" [||]
|
|
64
|
-
let optimize wasm_mod = meth_call wasm_mod "optimize" [||]
|
|
65
|
-
|
|
66
|
-
let get_features wasm_mod =
|
|
67
|
-
let features_int = meth_call wasm_mod "getFeatures" [||] in
|
|
68
|
-
let rec split_features = function
|
|
69
|
-
| 0 -> []
|
|
70
|
-
| feature when features_int land feature > 0 ->
|
|
71
|
-
feature :: split_features (feature lsr 1)
|
|
72
|
-
| feature -> split_features (feature lsr 1)
|
|
73
|
-
in
|
|
74
|
-
(* Support 32-bit OCaml where integers are 31 bits *)
|
|
75
|
-
(* This supports up to 31 Binaryen features *)
|
|
76
|
-
split_features 0x40000000
|
|
77
|
-
|
|
78
|
-
let set_features wasm_mod features =
|
|
79
|
-
meth_call wasm_mod "setFeatures"
|
|
80
|
-
[| inject (List.fold_left ( lor ) 0 features) |]
|
|
81
|
-
|
|
82
|
-
let run_passes wasm_mod passes =
|
|
83
|
-
meth_call wasm_mod "runPasses"
|
|
84
|
-
[| inject (array (Array.of_list (List.map string passes))) |]
|
|
85
|
-
|
|
86
|
-
let auto_drop wasm_mod = meth_call wasm_mod "autoDrop" [||]
|
|
87
|
-
|
|
88
|
-
let write wasm_mod sourcemap_url =
|
|
89
|
-
match sourcemap_url with
|
|
90
|
-
| Some url ->
|
|
91
|
-
let obj = meth_call wasm_mod "emitBinary" [| inject url |] in
|
|
92
|
-
let binary = get obj "binary" in
|
|
93
|
-
let soucemap = get obj "soureMap" in
|
|
94
|
-
(u8a_to_bytes binary, Some soucemap)
|
|
95
|
-
| None ->
|
|
96
|
-
let binary = meth_call wasm_mod "emitBinary" [||] in
|
|
97
|
-
(u8a_to_bytes binary, None)
|
|
98
|
-
|
|
99
|
-
let write_text wasm_mod =
|
|
100
|
-
let text = meth_call wasm_mod "emitText" [||] in
|
|
101
|
-
to_string text
|
|
102
|
-
|
|
103
|
-
let read byts =
|
|
104
|
-
let data = bytes_to_u8a byts in
|
|
105
|
-
meth_call global##.binaryen "readBinary" [| inject data |]
|
|
106
|
-
|
|
107
|
-
let interpret wasm_mod = meth_call wasm_mod "interpret" [||]
|
|
108
|
-
|
|
109
|
-
let add_debug_info_filename wasm_mod filename =
|
|
110
|
-
meth_call wasm_mod "addDebugInfoFileName" [| inject (string filename) |]
|
|
111
|
-
|
|
112
|
-
let get_debug_info_filename wasm_mod index =
|
|
113
|
-
meth_call wasm_mod "getDebugInfoFileName" [| inject index |]
|
|
114
|
-
|
|
115
|
-
(* The JS version doesn't expose `update_maps` *)
|
|
116
|
-
let update_maps wasm_mod = ()
|