Skip to content

Update Binaryen and other dependencies #1395

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 1 commit into from
Jul 16, 2020
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
1,715 changes: 675 additions & 1,040 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
},
"dependencies": {
"binaryen": "93.0.0-nightly.20200611",
"binaryen": "94.0.0-nightly.20200716",
"long": "^4.0.0",
"source-map-support": "^0.5.19",
"ts-node": "^6.2.0"
},
"devDependencies": {
"@types/node": "^14.0.13",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@typescript-eslint/parser": "^3.2.0",
"@types/node": "^14.0.23",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"browser-process-hrtime": "^1.0.0",
"diff": "^4.0.2",
"eslint": "^7.2.0",
"eslint": "^7.4.0",
"glob": "^7.1.6",
"physical-cpu-count": "^2.0.0",
"semantic-release": "github:dcodeIO/semantic-release",
"source-map-support": "^0.5.19",
"ts-loader": "^7.0.5",
"ts-loader": "^8.0.1",
"ts-node": "^6.2.0",
"typescript": "^3.9.5",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
"webpack-cli": "^3.3.12"
},
"main": "index.js",
"types": "index.d.ts",
Expand Down
86 changes: 19 additions & 67 deletions tests/compiler/binary.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,6 @@
f64.mul
)
(func $start:binary
global.get $binary/i
i32.const 1
i32.rem_s
drop
global.get $binary/i
call $~lib/math/ipow32
drop
Expand All @@ -353,11 +349,9 @@
i32.const 1
i32.sub
global.set $binary/i
global.get $binary/i
i32.const 1
i32.rem_s
i32.const 0
global.set $binary/i
global.get $binary/i
i32.const 0
call $~lib/math/ipow32
global.set $binary/i
global.get $binary/i
Expand Down Expand Up @@ -392,65 +386,37 @@
i32.const 1
i32.sub
global.set $binary/i
global.get $binary/i
i32.const 1
i32.rem_s
i32.const 0
global.set $binary/i
global.get $binary/i
i32.const 1
i32.shl
i32.const 0
global.set $binary/i
global.get $binary/i
i32.const 1
i32.shr_s
i32.const 0
global.set $binary/i
global.get $binary/i
i32.const 1
i32.shr_u
i32.const 0
global.set $binary/i
global.get $binary/i
i32.const 1
i32.and
i32.const 0
global.set $binary/i
global.get $binary/i
i32.const 1
i32.or
global.set $binary/i
global.get $binary/i
i32.const 1
i32.xor
i32.const 0
global.set $binary/i
global.get $binary/I
i64.const 1
i64.rem_s
drop
global.get $binary/I
i64.const 1
i64.add
global.set $binary/I
global.get $binary/I
i64.const 1
i64.sub
global.set $binary/I
global.get $binary/I
i64.const 1
i64.rem_s
i64.const 0
global.set $binary/I
global.get $binary/I
f64.convert_i64_s
i64.trunc_f64_s
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.shl
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.shr_s
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.shr_u
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
Expand All @@ -472,33 +438,19 @@
i64.const 1
i64.sub
global.set $binary/I
global.get $binary/I
i64.const 1
i64.rem_s
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.shl
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.shr_s
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.shr_u
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.and
i64.const 0
global.set $binary/I
global.get $binary/I
i64.const 1
i64.or
global.set $binary/I
global.get $binary/I
i64.const 1
i64.xor
i64.const 0
global.set $binary/I
global.get $binary/f
call $~lib/math/NativeMathf.mod
Expand Down
26 changes: 13 additions & 13 deletions tests/compiler/number.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1173,14 +1173,14 @@
i64.const 32
i64.shr_u
local.tee $3
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 4294967295
i64.and
local.tee $2
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
i64.const 0
i64.add
local.tee $1
Expand All @@ -1202,27 +1202,27 @@
i32.const 2
i32.add
local.get $3
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 1024
i64.mul
i64.const 10
i64.shl
i64.const 32
i64.shr_u
i64.add
local.tee $1
i64.const 32
i64.shr_u
i64.add
local.get $3
i64.const 1024
i64.mul
local.get $1
i64.const 4294967295
i64.and
local.get $3
i64.const 10
i64.shl
i64.add
i64.const 2147483647
i64.add
Expand Down
26 changes: 13 additions & 13 deletions tests/compiler/resolve-binary.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1187,14 +1187,14 @@
i64.const 32
i64.shr_u
local.tee $3
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 4294967295
i64.and
local.tee $2
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
i64.const 0
i64.add
local.tee $1
Expand All @@ -1216,27 +1216,27 @@
i32.const 3
i32.add
local.get $3
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 1024
i64.mul
i64.const 10
i64.shl
i64.const 32
i64.shr_u
i64.add
local.tee $1
i64.const 32
i64.shr_u
i64.add
local.get $3
i64.const 1024
i64.mul
local.get $1
i64.const 4294967295
i64.and
local.get $3
i64.const 10
i64.shl
i64.add
i64.const 2147483647
i64.add
Expand Down
26 changes: 13 additions & 13 deletions tests/compiler/resolve-ternary.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2159,14 +2159,14 @@
i64.const 32
i64.shr_u
local.tee $3
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 4294967295
i64.and
local.tee $2
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
i64.const 0
i64.add
local.tee $1
Expand All @@ -2188,27 +2188,27 @@
i32.const 1
i32.add
local.get $3
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 2147483648
i64.mul
i64.const 31
i64.shl
local.get $2
i64.const 1024
i64.mul
i64.const 10
i64.shl
i64.const 32
i64.shr_u
i64.add
local.tee $1
i64.const 32
i64.shr_u
i64.add
local.get $3
i64.const 1024
i64.mul
local.get $1
i64.const 4294967295
i64.and
local.get $3
i64.const 10
i64.shl
i64.add
i64.const 2147483647
i64.add
Expand Down
9 changes: 2 additions & 7 deletions tests/compiler/std/typedarray.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -8385,15 +8385,10 @@
local.get $6
)
(func $std/typedarray/testArrayEvery<~lib/typedarray/Uint64Array,u64>~anonymous|0 (param $0 i64) (param $1 i32) (param $2 i32) (result i32)
local.get $2
call $~lib/rt/pure/__retain
local.get $0
i64.const 2
i64.rem_u
i64.const 1
i64.and
i64.eqz
local.set $2
call $~lib/rt/pure/__release
local.get $2
)
(func $~lib/math/NativeMathf.mod (param $0 f32) (result f32)
(local $1 i32)
Expand Down