@grain/binaryen.ml 0.13.0 → 0.15.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 +44 -0
- binaryen-archive/README.md +16 -0
- binaryen-archive/binaryen.opam +4 -6
- binaryen-archive/dune +1 -1
- binaryen-archive/esy.lock/index.json +87 -173
- binaryen-archive/esy.lock/opam/{cmdliner.1.0.4 → cmdliner.1.1.0}/opam +17 -20
- binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.9.1 → ocaml-lsp-server.1.10.3}/opam +4 -4
- binaryen-archive/esy.lock/opam/{ocamlbuild.0.14.0 → ocamlbuild.0.14.1}/opam +18 -15
- binaryen-archive/esy.lock/opam/ocamlformat.0.20.1/opam +2 -0
- binaryen-archive/esy.lock/opam/{ppxlib.0.24.0 → ppxlib.0.25.0}/opam +4 -4
- binaryen-archive/esy.lock/opam/stdlib-shims.0.3.0/opam +1 -1
- binaryen-archive/esy.lock/opam/uutf.1.0.3/opam +36 -0
- binaryen-archive/esy.lock/overrides/opam__s__ocamlbuild_opam__c__0.14.1_opam_override/files/winpatch.patch +11 -0
- binaryen-archive/esy.lock/overrides/{opam__s__ocamlbuild_opam__c__0.14.0_opam_override → opam__s__ocamlbuild_opam__c__0.14.1_opam_override}/package.json +5 -3
- binaryen-archive/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.3_opam_override/files/findlib.patch +14 -0
- binaryen-archive/package.json +4 -6
- binaryen-archive/src/binaryen_stubs_exports.js +110 -0
- binaryen-archive/src/binaryen_stubs_expressions.js +1613 -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/{virtual → src}/expression.mli +0 -0
- 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/dune +2 -22
- binaryen-archive/test/test.expected +8 -4
- binaryen-archive/test/test.ml +33 -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/opam/uutf.1.0.2/opam +0 -40
- binaryen-archive/esy.lock/overrides/opam__s__ocamlbuild_opam__c__0.14.0_opam_override/files/ocamlbuild-0.14.0.patch +0 -463
- 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
|
@@ -45,10 +45,10 @@ build: [
|
|
|
45
45
|
]
|
|
46
46
|
url {
|
|
47
47
|
src:
|
|
48
|
-
"https://github.com/ocaml/ocaml-lsp/releases/download/1.
|
|
48
|
+
"https://github.com/ocaml/ocaml-lsp/releases/download/1.10.3/jsonrpc-1.10.3.tbz"
|
|
49
49
|
checksum: [
|
|
50
|
-
"sha256=
|
|
51
|
-
"sha512=
|
|
50
|
+
"sha256=a3ac1073b0728b94f4bdb0111772c0abaf7ff70324399450eab7156bfac151f1"
|
|
51
|
+
"sha512=bed6ddbde28088e43db0d40ab27056ba22537d19ffe8117a3da4c77676948f18708b06937dd2c972dce5c5822ea751c9c85cfa1ce3c1b3739460d4a24ebc2282"
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
|
-
x-commit-hash: "
|
|
54
|
+
x-commit-hash: "a249e618facf7b7f524bf96e6f1cf6728a7fcd90"
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
opam-version: "2.0"
|
|
2
|
+
synopsis:
|
|
3
|
+
"OCamlbuild is a build system with builtin rules to easily build most OCaml projects"
|
|
2
4
|
maintainer: "Gabriel Scherer <gabriel.scherer@gmail.com>"
|
|
3
5
|
authors: ["Nicolas Pouillard" "Berke Durak"]
|
|
6
|
+
license: "LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception"
|
|
4
7
|
homepage: "https://github.com/ocaml/ocamlbuild/"
|
|
5
|
-
bug-reports: "https://github.com/ocaml/ocamlbuild/issues"
|
|
6
|
-
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
|
|
7
8
|
doc: "https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc"
|
|
8
|
-
|
|
9
|
+
bug-reports: "https://github.com/ocaml/ocamlbuild/issues"
|
|
10
|
+
depends: [
|
|
11
|
+
"ocaml" {>= "4.03"}
|
|
12
|
+
]
|
|
13
|
+
conflicts: [
|
|
14
|
+
"base-ocamlbuild"
|
|
15
|
+
"ocamlfind" {< "1.6.2"}
|
|
16
|
+
]
|
|
9
17
|
build: [
|
|
10
18
|
[
|
|
11
19
|
make
|
|
@@ -21,16 +29,11 @@ build: [
|
|
|
21
29
|
]
|
|
22
30
|
[make "check-if-preinstalled" "all" "opam-install"]
|
|
23
31
|
]
|
|
24
|
-
|
|
25
|
-
"base-ocamlbuild"
|
|
26
|
-
"ocamlfind" {< "1.6.2"}
|
|
27
|
-
]
|
|
28
|
-
synopsis:
|
|
29
|
-
"OCamlbuild is a build system with builtin rules to easily build most OCaml projects."
|
|
30
|
-
depends: [
|
|
31
|
-
"ocaml" {>= "4.03"}
|
|
32
|
-
]
|
|
32
|
+
dev-repo: "git+https://github.com/ocaml/ocamlbuild.git"
|
|
33
33
|
url {
|
|
34
|
-
src: "https://github.com/ocaml/ocamlbuild/archive/0.14.
|
|
35
|
-
checksum:
|
|
36
|
-
|
|
34
|
+
src: "https://github.com/ocaml/ocamlbuild/archive/refs/tags/0.14.1.tar.gz"
|
|
35
|
+
checksum: [
|
|
36
|
+
"md5=7027e507ed85f290923ad198f3d2cd1c"
|
|
37
|
+
"sha512=1f5b43215b1d3dc427b9c64e005add9d423ed4bca9686d52c55912df8955647cb2d7d86622d44b41b14c4f0d657b770c27967c541c868eeb7c78e3bd35b827ad"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -8,10 +8,12 @@ homepage: "https://github.com/ocaml-ppx/ocamlformat"
|
|
|
8
8
|
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
|
|
9
9
|
depends: [
|
|
10
10
|
"dune" {>= "2.8"}
|
|
11
|
+
"dune" {with-test & < "3.0"}
|
|
11
12
|
"ocaml" {>= "4.08" & < "4.15"}
|
|
12
13
|
"alcotest" {with-test}
|
|
13
14
|
"base" {>= "v0.12.0" & < "v0.15"}
|
|
14
15
|
"cmdliner"
|
|
16
|
+
"cmdliner" {with-test & < "1.1.0"}
|
|
15
17
|
"dune-build-info"
|
|
16
18
|
"either"
|
|
17
19
|
"fix"
|
|
@@ -53,10 +53,10 @@ build: [
|
|
|
53
53
|
dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git"
|
|
54
54
|
url {
|
|
55
55
|
src:
|
|
56
|
-
"https://github.com/ocaml-ppx/ppxlib/releases/download/0.
|
|
56
|
+
"https://github.com/ocaml-ppx/ppxlib/releases/download/0.25.0/ppxlib-0.25.0.tbz"
|
|
57
57
|
checksum: [
|
|
58
|
-
"sha256=
|
|
59
|
-
"sha512=
|
|
58
|
+
"sha256=2d2f150e7715845dc578d254f705a67600be71c986b7e67e81befda612870bd5"
|
|
59
|
+
"sha512=464220e3d8c75503824b73393df0b8ad16019acf55b8ecef89f8d464cd6d054e470ce4866b244216c5f7b85a5e8abad908aad212a78b4a132f3092fa785da0de"
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
|
-
x-commit-hash: "
|
|
62
|
+
x-commit-hash: "2fde140076144150d01997d529d451bbcae439c4"
|
|
@@ -6,7 +6,7 @@ doc: "https://ocaml.github.io/stdlib-shims/"
|
|
|
6
6
|
dev-repo: "git+https://github.com/ocaml/stdlib-shims.git"
|
|
7
7
|
bug-reports: "https://github.com/ocaml/stdlib-shims/issues"
|
|
8
8
|
tags: ["stdlib" "compatibility" "org:ocaml"]
|
|
9
|
-
license: ["
|
|
9
|
+
license: ["LGPL-2.1-only WITH OCaml-LGPL-linking-exception"]
|
|
10
10
|
depends: [
|
|
11
11
|
"dune"
|
|
12
12
|
"ocaml" {>= "4.02.3"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
opam-version: "2.0"
|
|
2
|
+
synopsis: """Non-blocking streaming Unicode codec for OCaml"""
|
|
3
|
+
maintainer: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
|
|
4
|
+
authors: ["The uutf programmers"]
|
|
5
|
+
homepage: "https://erratique.ch/software/uutf"
|
|
6
|
+
doc: "https://erratique.ch/software/uutf/doc/"
|
|
7
|
+
dev-repo: "git+https://erratique.ch/repos/uutf.git"
|
|
8
|
+
bug-reports: "https://github.com/dbuenzli/uutf/issues"
|
|
9
|
+
license: ["ISC"]
|
|
10
|
+
tags: ["unicode" "text" "utf-8" "utf-16" "codec" "org:erratique"]
|
|
11
|
+
depends: ["ocaml" {>= "4.03.0"}
|
|
12
|
+
"ocamlfind" {build}
|
|
13
|
+
"ocamlbuild" {build}
|
|
14
|
+
"topkg" {build & >= "1.0.3"}]
|
|
15
|
+
depopts: ["cmdliner"]
|
|
16
|
+
conflicts: ["cmdliner" {< "0.9.8"}]
|
|
17
|
+
build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"
|
|
18
|
+
"--with-cmdliner" "%{cmdliner:installed}%"]]
|
|
19
|
+
url {
|
|
20
|
+
src: "https://erratique.ch/software/uutf/releases/uutf-1.0.3.tbz"
|
|
21
|
+
checksum: "sha512=50cc4486021da46fb08156e9daec0d57b4ca469b07309c508d5a9a41e9dbcf1f32dec2ed7be027326544453dcaf9c2534919395fd826dc7768efc6cc4bfcc9f8"}
|
|
22
|
+
description: """
|
|
23
|
+
Uutf is a non-blocking streaming codec to decode and encode the UTF-8,
|
|
24
|
+
UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
|
|
25
|
+
work character by character without blocking on IO. Decoders perform
|
|
26
|
+
character position tracking and support newline normalization.
|
|
27
|
+
|
|
28
|
+
Functions are also provided to fold over the characters of UTF encoded
|
|
29
|
+
OCaml string values and to directly encode characters in OCaml
|
|
30
|
+
Buffer.t values. **Note** that since OCaml 4.14, that functionality
|
|
31
|
+
can be found in the Stdlib and you are encouraged to migrate to it.
|
|
32
|
+
|
|
33
|
+
Uutf has no dependency and is distributed under the ISC license.
|
|
34
|
+
|
|
35
|
+
Home page: http://erratique.ch/software/uutf
|
|
36
|
+
Contact: Daniel Bünzli `<daniel.buenzl i@erratique.ch>`"""
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
--- ./Makefile
|
|
2
|
+
+++ ./Makefile
|
|
3
|
+
@@ -271,7 +271,7 @@
|
|
4
|
+
echo ' "ocamlbuild.byte" {"ocamlbuild.byte"}' >> ocamlbuild.install
|
|
5
|
+
ifeq ($(OCAML_NATIVE), true)
|
|
6
|
+
echo ' "ocamlbuild.native" {"ocamlbuild.native"}' >> ocamlbuild.install
|
|
7
|
+
- echo ' "ocamlbuild.native" {"ocamlbuild"}' >> ocamlbuild.install
|
|
8
|
+
+ echo " \"ocamlbuild.native\" {\"ocamlbuild${EXE}\"}" >> ocamlbuild.install
|
|
9
|
+
else
|
|
10
|
+
echo ' "ocamlbuild.byte" {"ocamlbuild"}' >> ocamlbuild.install
|
|
11
|
+
endif
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[
|
|
4
4
|
"bash",
|
|
5
5
|
"-c",
|
|
6
|
-
"#{os == 'windows' ? 'patch -p1 <
|
|
6
|
+
"#{os == 'windows' ? 'patch -p1 < winpatch.patch' : 'true'}"
|
|
7
7
|
],
|
|
8
8
|
[
|
|
9
9
|
"make",
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
"OCAMLBUILD_LIBDIR=#{self.lib}",
|
|
16
16
|
"OCAMLBUILD_MANDIR=#{self.man}",
|
|
17
17
|
"OCAMLBUILD_NATIVE=true",
|
|
18
|
-
"OCAMLBUILD_NATIVE_TOOLS=true"
|
|
18
|
+
"OCAMLBUILD_NATIVE_TOOLS=true",
|
|
19
|
+
"EXE=#{os == 'windows' ? '.exe': ''}"
|
|
19
20
|
],
|
|
20
21
|
[
|
|
21
22
|
"make",
|
|
22
23
|
"check-if-preinstalled",
|
|
23
24
|
"all",
|
|
24
|
-
"
|
|
25
|
+
"EXE=#{os == 'windows' ? '.exe': ''}",
|
|
26
|
+
"opam-install"
|
|
25
27
|
]
|
|
26
28
|
]
|
|
27
29
|
}
|
|
@@ -469,3 +469,17 @@
|
|
|
469
469
|
sed -e 's;@AUTOLINK@;$(OCAML_AUTOLINK);g' \
|
|
470
470
|
-e 's;@SYSTEM@;$(SYSTEM);g' \
|
|
471
471
|
>findlib_config.ml
|
|
472
|
+
--- ./src/findlib/frontend.ml
|
|
473
|
+
+++ ./src/findlib/frontend.ml
|
|
474
|
+
@@ -281,10 +281,8 @@
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
let identify_dir d =
|
|
478
|
+
- if is_win then
|
|
479
|
+
- failwith "identify_dir"; (* not available *)
|
|
480
|
+
let s = Unix.stat d in
|
|
481
|
+
- (s.Unix.st_dev, s.Unix.st_ino)
|
|
482
|
+
+ (s.Unix.st_dev, s.Unix.st_ino)
|
|
483
|
+
;;
|
|
484
|
+
|
|
485
|
+
|
binaryen-archive/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grain/binaryen.ml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "OCaml bindings for Binaryen.",
|
|
5
5
|
"author": "Oscar Spencer <oscar@grain-lang.org>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"ocaml": ">= 4.12.0",
|
|
9
|
-
"@grain/libbinaryen": "
|
|
10
|
-
"@opam/dune": "
|
|
11
|
-
"@opam/dune-configurator": "
|
|
12
|
-
"@opam/js_of_ocaml": ">= 3.10.0 < 4.0.0",
|
|
13
|
-
"@opam/js_of_ocaml-ppx": ">= 3.10.0 < 4.0.0"
|
|
9
|
+
"@grain/libbinaryen": ">= 105.1.0 < 106.0.0",
|
|
10
|
+
"@opam/dune": ">= 2.9.1 < 3.0.0",
|
|
11
|
+
"@opam/dune-configurator": ">= 2.9.1 < 3.0.0"
|
|
14
12
|
},
|
|
15
13
|
"devDependencies": {
|
|
16
14
|
"@opam/js_of_ocaml-compiler": ">= 3.10.0 < 4.0.0",
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//Provides: caml_binaryen_add_function_export
|
|
2
|
+
//Requires: caml_jsstring_of_string
|
|
3
|
+
function caml_binaryen_add_function_export(wasm_mod, internal_name, external_name) {
|
|
4
|
+
return wasm_mod.addFunctionExport(
|
|
5
|
+
caml_jsstring_of_string(internal_name),
|
|
6
|
+
caml_jsstring_of_string(external_name)
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//Provides: caml_binaryen_add_table_export
|
|
11
|
+
//Requires: caml_jsstring_of_string
|
|
12
|
+
function caml_binaryen_add_table_export(wasm_mod, internal_name, external_name) {
|
|
13
|
+
return wasm_mod.addTableExport(
|
|
14
|
+
caml_jsstring_of_string(internal_name),
|
|
15
|
+
caml_jsstring_of_string(external_name)
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//Provides: caml_binaryen_add_memory_export
|
|
20
|
+
//Requires: caml_jsstring_of_string
|
|
21
|
+
function caml_binaryen_add_memory_export(wasm_mod, internal_name, external_name) {
|
|
22
|
+
return wasm_mod.addMemoryExport(
|
|
23
|
+
caml_jsstring_of_string(internal_name),
|
|
24
|
+
caml_jsstring_of_string(external_name)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//Provides: caml_binaryen_add_global_export
|
|
29
|
+
//Requires: caml_jsstring_of_string
|
|
30
|
+
function caml_binaryen_add_global_export(wasm_mod, internal_name, external_name) {
|
|
31
|
+
return wasm_mod.addGlobalExport(
|
|
32
|
+
caml_jsstring_of_string(internal_name),
|
|
33
|
+
caml_jsstring_of_string(external_name)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//Provides: caml_binaryen_get_export
|
|
38
|
+
//Requires: caml_jsstring_of_string
|
|
39
|
+
function caml_binaryen_get_export(wasm_mod, external_name) {
|
|
40
|
+
return wasm_mod.getExport(caml_jsstring_of_string(external_name));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//Provides: caml_binaryen_remove_export
|
|
44
|
+
//Requires: caml_jsstring_of_string
|
|
45
|
+
function caml_binaryen_remove_export(wasm_mod, external_name) {
|
|
46
|
+
return wasm_mod.removeExport(caml_jsstring_of_string(external_name));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
//Provides: caml_binaryen_get_num_exports
|
|
50
|
+
function caml_binaryen_get_num_exports(wasm_mod) {
|
|
51
|
+
return wasm_mod.getNumExports();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//Provides: caml_binaryen_get_export_by_index
|
|
55
|
+
function caml_binaryen_get_export_by_index(wasm_mod, index) {
|
|
56
|
+
return wasm_mod.getExportByIndex(index);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//Provides: caml_binaryen_export_get_name
|
|
60
|
+
//Requires: binaryen
|
|
61
|
+
//Requires: caml_string_of_jsstring
|
|
62
|
+
function caml_binaryen_export_get_name(exp) {
|
|
63
|
+
var export_info = binaryen.getExportInfo(exp);
|
|
64
|
+
return caml_string_of_jsstring(export_info.name);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//Provides: caml_binaryen_export_get_value
|
|
68
|
+
//Requires: binaryen
|
|
69
|
+
//Requires: caml_string_of_jsstring
|
|
70
|
+
function caml_binaryen_export_get_value(exp) {
|
|
71
|
+
var export_info = binaryen.getExportInfo(exp);
|
|
72
|
+
return caml_string_of_jsstring(export_info.value);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//Provides: caml_binaryen_external_function
|
|
76
|
+
//Requires: binaryen
|
|
77
|
+
function caml_binaryen_external_function() {
|
|
78
|
+
return binaryen._BinaryenExternalFunction();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
//Provides: caml_binaryen_external_table
|
|
82
|
+
//Requires: binaryen
|
|
83
|
+
function caml_binaryen_external_table() {
|
|
84
|
+
return binaryen._BinaryenExternalTable();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
//Provides: caml_binaryen_external_memory
|
|
88
|
+
//Requires: binaryen
|
|
89
|
+
function caml_binaryen_external_memory() {
|
|
90
|
+
return binaryen._BinaryenExternalMemory();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
//Provides: caml_binaryen_external_global
|
|
94
|
+
//Requires: binaryen
|
|
95
|
+
function caml_binaryen_external_global() {
|
|
96
|
+
return binaryen._BinaryenExternalGlobal();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
//Provides: caml_binaryen_external_tag
|
|
100
|
+
//Requires: binaryen
|
|
101
|
+
function caml_binaryen_external_tag() {
|
|
102
|
+
return binaryen._BinaryenExternalTag();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//Provides: caml_binaryen_export_get_kind
|
|
106
|
+
//Requires: binaryen
|
|
107
|
+
function caml_binaryen_export_get_kind(exp) {
|
|
108
|
+
var export_info = binaryen.getExportInfo(exp);
|
|
109
|
+
return export_info.kind;
|
|
110
|
+
}
|