Skip to content

Commit 9ba3237

Browse files
committed
chore: update Binaryen
Some new features are being added, although only relaxed SIMD is in a usable state. stringref has been almost obliterated, and only functionality compatible with JS string builtins is being kept. Binaryen also seems to be generating more nops and blocks than usual.
1 parent 44b658d commit 9ba3237

File tree

173 files changed

+91623
-87668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+91623
-87668
lines changed

package-lock.json

Lines changed: 15 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"engineStrict": true,
2727
"dependencies": {
28-
"binaryen": "116.0.0-nightly.20240114",
28+
"binaryen": "123.0.0-nightly.20250530",
2929
"long": "^5.2.4"
3030
},
3131
"devDependencies": {

src/module.ts

Lines changed: 236 additions & 301 deletions
Large diffs are not rendered by default.

tests/compiler/NonNullable.debug.wat

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -105,38 +105,40 @@
105105
end
106106
end
107107
end
108-
loop $while-continue|1
109-
local.get $len
110-
local.tee $7
111-
i32.const 1
112-
i32.sub
113-
local.set $len
114-
local.get $7
115-
if
116-
local.get $ptr1
117-
i32.load16_u
118-
local.set $a
119-
local.get $ptr2
120-
i32.load16_u
121-
local.set $b
122-
local.get $a
123-
local.get $b
124-
i32.ne
108+
block $while-break|1
109+
loop $while-continue|1
110+
local.get $len
111+
local.tee $7
112+
i32.const 1
113+
i32.sub
114+
local.set $len
115+
local.get $7
125116
if
117+
local.get $ptr1
118+
i32.load16_u
119+
local.set $a
120+
local.get $ptr2
121+
i32.load16_u
122+
local.set $b
126123
local.get $a
127124
local.get $b
128-
i32.sub
129-
return
125+
i32.ne
126+
if
127+
local.get $a
128+
local.get $b
129+
i32.sub
130+
return
131+
end
132+
local.get $ptr1
133+
i32.const 2
134+
i32.add
135+
local.set $ptr1
136+
local.get $ptr2
137+
i32.const 2
138+
i32.add
139+
local.set $ptr2
140+
br $while-continue|1
130141
end
131-
local.get $ptr1
132-
i32.const 2
133-
i32.add
134-
local.set $ptr1
135-
local.get $ptr2
136-
i32.const 2
137-
i32.add
138-
local.set $ptr2
139-
br $while-continue|1
140142
end
141143
end
142144
i32.const 0

0 commit comments

Comments
 (0)