Skip to content

Update binaryen #2477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"engineStrict": true,
"dependencies": {
"binaryen": "109.0.0-nightly.20220826",
"binaryen": "109.0.0-nightly.20220831",
"long": "^5.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ export class Compiler extends DiagnosticEmitter {
}
}

// Just stubbed memory. Will update later in finalizeMemory
// Setup internal memory with default name "0"
module.setMemory(
initialPages,
maximumPages,
Expand Down
6 changes: 5 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,11 @@ export const enum RefAsOp {
/** ref.as_data */
Data = 2 /* _BinaryenRefAsData */,
/** ref.as_i31 */
I31 = 3 /* _BinaryenRefAsI31 */
I31 = 3 /* _BinaryenRefAsI31 */,
/** extern.internalize */
ExternInternalize = 4 /* TODO_BinaryenExternInternalize */,
/** extern.externalize */
ExternExternalize = 5 /* TODO_BinaryenExternExternalize */
}

/** Binaryen BrOn operation constants. */
Expand Down
4 changes: 2 additions & 2 deletions tests/compiler/NonNullable.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
return
end
local.get $1
i32.const 0
i32.eqz
local.get $0
select
i32.eqz
i32.or
if
i32.const 0
return
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/bindings/esm.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 18588
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/bindings/noExportRuntime.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 18188
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/bindings/raw.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 18588
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
4 changes: 2 additions & 2 deletions tests/compiler/builtins.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
return
end
local.get $1
i32.const 0
i32.eqz
local.get $0
select
i32.eqz
i32.or
if
i32.const 0
return
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/call-super.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2086,13 +2086,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 17980
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/class-implements.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1461,13 +1461,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 17948
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
12 changes: 6 additions & 6 deletions tests/compiler/class-overloading-cast.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1276,10 +1276,10 @@
return
end
local.get $1
i32.const 0
i32.eqz
local.get $0
select
i32.eqz
i32.or
if
i32.const 0
return
Expand Down Expand Up @@ -1899,13 +1899,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 18084
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
12 changes: 6 additions & 6 deletions tests/compiler/class-overloading.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1300,10 +1300,10 @@
return
end
local.get $1
i32.const 0
i32.eqz
local.get $0
select
i32.eqz
i32.or
if
i32.const 0
return
Expand Down Expand Up @@ -3033,13 +3033,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 18316
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/class.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 17972
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/constructor.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1919,13 +1919,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 17988
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/do.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1777,13 +1777,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 17892
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/duplicate-fields.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 17980
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/empty-exportruntime.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 17980
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/empty-new.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1320,13 +1320,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 17852
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/exportstar-rereexport.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1494,13 +1494,13 @@
local.tee $0
i32.eqz
if
i32.const 0
local.get $1
i32.load $0 offset=8
i32.eqz
local.get $1
i32.const 17956
i32.lt_u
local.get $1
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
8 changes: 4 additions & 4 deletions tests/compiler/extends-baseaggregate.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@
local.tee $1
i32.eqz
if
i32.const 0
local.get $0
i32.load $0 offset=8
i32.eqz
local.get $0
i32.const 18156
i32.lt_u
local.get $0
i32.load $0 offset=8
select
i32.and
i32.eqz
if
i32.const 0
Expand Down
Loading