@grain/binaryen.ml 0.11.0 → 0.11.1
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### [0.11.1](https://www.github.com/grain-lang/binaryen.ml/compare/v0.11.0...v0.11.1) (2022-01-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Make features work in 32-bit mode ([#123](https://www.github.com/grain-lang/binaryen.ml/issues/123)) ([e435c8b](https://www.github.com/grain-lang/binaryen.ml/commit/e435c8bd9f6619c42b82e53e5d1caa929b5d4ebf))
|
|
9
|
+
|
|
3
10
|
## [0.11.0](https://www.github.com/grain-lang/binaryen.ml/compare/v0.10.0...v0.11.0) (2022-01-13)
|
|
4
11
|
|
|
5
12
|
|
binaryen-archive/binaryen.opam
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
opam-version: "2.0"
|
|
2
|
-
version: "0.11.
|
|
2
|
+
version: "0.11.1"
|
|
3
3
|
synopsis: "OCaml bindings for Binaryen"
|
|
4
4
|
maintainer: "oscar@grain-lang.org"
|
|
5
5
|
author: "Oscar Spencer"
|
|
@@ -12,7 +12,7 @@ build: [
|
|
|
12
12
|
[ "dune" "build" "-p" name "-j" jobs ]
|
|
13
13
|
]
|
|
14
14
|
depends: [
|
|
15
|
-
"ocaml" {>= "4.12"
|
|
15
|
+
"ocaml" {>= "4.12"}
|
|
16
16
|
"dune" {>= "2.9.1"}
|
|
17
17
|
"dune-configurator" {>= "2.9.1"}
|
|
18
18
|
"js_of_ocaml" {>= "3.10.0"}
|
binaryen-archive/js/module.ml
CHANGED
|
@@ -74,7 +74,9 @@ let get_features wasm_mod =
|
|
|
74
74
|
feature :: split_features (feature lsr 1)
|
|
75
75
|
| feature -> split_features (feature lsr 1)
|
|
76
76
|
in
|
|
77
|
-
|
|
77
|
+
(* Support 32-bit OCaml where integers are 31 bits *)
|
|
78
|
+
(* This supports up to 31 Binaryen features *)
|
|
79
|
+
split_features 0x40000000
|
|
78
80
|
|
|
79
81
|
let set_features wasm_mod features =
|
|
80
82
|
meth_call wasm_mod "setFeatures"
|
binaryen-archive/package.json
CHANGED
binaryen-archive/src/module.ml
CHANGED
|
@@ -85,7 +85,9 @@ let get_features wasm_mod =
|
|
|
85
85
|
feature :: split_features (feature lsr 1)
|
|
86
86
|
| feature -> split_features (feature lsr 1)
|
|
87
87
|
in
|
|
88
|
-
|
|
88
|
+
(* Support 32-bit OCaml where integers are 31 bits *)
|
|
89
|
+
(* This supports up to 31 Binaryen features *)
|
|
90
|
+
split_features 0x40000000
|
|
89
91
|
|
|
90
92
|
external set_features : t -> int -> unit = "caml_binaryen_module_set_features"
|
|
91
93
|
|