Skip to content

Commit

Permalink
Update binaryen to latest (#1477)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGraey committed Sep 29, 2020
1 parent 125865a commit c0eb3bb
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
6 changes: 3 additions & 3 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 @@ -21,7 +21,7 @@
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
},
"dependencies": {
"binaryen": "97.0.0-nightly.20200919",
"binaryen": "97.0.0-nightly.20200929",
"long": "^4.0.0",
"source-map-support": "^0.5.19",
"ts-node": "^6.2.0"
Expand Down
20 changes: 10 additions & 10 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ export enum ExpressionId {
RefNull = 40 /* _BinaryenRefNullId */,
RefIsNull = 41 /* _BinaryenRefIsNullId */,
RefFunc = 42 /* _BinaryenRefFuncId */,
Try = 43 /* _BinaryenTryId */,
Throw = 44 /* _BinaryenThrowId */,
Rethrow = 45 /* _BinaryenRethrowId */,
BrOnExn = 46 /* _BinaryenBrOnExnId */,
TupleMake = 47 /* _BinaryenTupleMakeId */,
TupleExtract = 48 /* _BinaryenTupleExtractId */
Try = 44 /* _BinaryenTryId */,
Throw = 45 /* _BinaryenThrowId */,
Rethrow = 46 /* _BinaryenRethrowId */,
BrOnExn = 47 /* _BinaryenBrOnExnId */,
TupleMake = 48 /* _BinaryenTupleMakeId */,
TupleExtract = 49 /* _BinaryenTupleExtractId */
}

export enum UnaryOp {
Expand Down Expand Up @@ -249,8 +249,8 @@ export enum BinaryOp {
OrI32 = 8 /* _BinaryenOrInt32 */,
XorI32 = 9 /* _BinaryenXorInt32 */,
ShlI32 = 10 /* _BinaryenShlInt32 */,
ShrU32 = 11 /* _BinaryenShrUInt32 */,
ShrI32 = 12 /* _BinaryenShrSInt32 */,
ShrI32 = 11 /* _BinaryenShrSInt32 */,
ShrU32 = 12 /* _BinaryenShrUInt32 */,
RotlI32 = 13 /* _BinaryenRotLInt32 */,
RotrI32 = 14 /* _BinaryenRotRInt32 */,
EqI32 = 15 /* _BinaryenEqInt32 */,
Expand All @@ -274,8 +274,8 @@ export enum BinaryOp {
OrI64 = 33 /* _BinaryenOrInt64 */,
XorI64 = 34 /* _BinaryenXorInt64 */,
ShlI64 = 35 /* _BinaryenShlInt64 */,
ShrU64 = 36 /* _BinaryenShrUInt64 */,
ShrI64 = 37 /* _BinaryenShrSInt64 */,
ShrI64 = 36 /* _BinaryenShrSInt64 */,
ShrU64 = 37 /* _BinaryenShrUInt64 */,
RotlI64 = 38 /* _BinaryenRotLInt64 */,
RotrI64 = 39 /* _BinaryenRotRInt64 */,
EqI64 = 40 /* _BinaryenEqInt64 */,
Expand Down
40 changes: 20 additions & 20 deletions tests/compiler/std/math.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,7 @@
i64.const 9223372036854775807
i64.and
i64.const 52
i64.shr_s
i64.shr_u
i64.const 1045
i64.sub
local.tee $2
Expand Down Expand Up @@ -3383,12 +3383,12 @@
local.get $6
i64.mul
i64.add
local.get $1
i64.const 32
i64.shr_u
local.get $2
i64.const 32
i64.shr_s
local.get $1
i64.const 32
i64.shr_u
i64.mul
local.tee $4
local.get $9
Expand Down Expand Up @@ -3997,7 +3997,7 @@
end
local.get $2
i32.const 23
i32.shr_s
i32.shr_u
i32.const 152
i32.sub
local.tee $1
Expand Down Expand Up @@ -5578,7 +5578,7 @@
local.set $9
local.get $10
i32.const 1533
i32.gt_s
i32.gt_u
if (result f64)
f64.const 5260135901548373507240989e186
local.set $9
Expand All @@ -5592,7 +5592,7 @@
else
local.get $6
i32.const 573
i32.lt_s
i32.lt_u
if (result f64)
f64.const 1.90109156629516e-211
local.set $9
Expand Down Expand Up @@ -7188,7 +7188,7 @@
i32.const 1
local.get $9
i32.const 2146435072
i32.gt_s
i32.gt_u
i32.const 1
local.get $18
i32.const 0
Expand All @@ -7214,19 +7214,19 @@
if (result i32)
local.get $9
i32.const 1128267776
i32.ge_s
i32.ge_u
if (result i32)
i32.const 2
else
local.get $9
i32.const 1072693248
i32.ge_s
i32.ge_u
if (result i32)
i32.const 52
i32.const 20
local.get $9
i32.const 20
i32.shr_s
i32.shr_u
i32.const 1023
i32.sub
local.tee $11
Expand Down Expand Up @@ -7429,11 +7429,11 @@
local.set $10
local.get $9
i32.const 1105199104
i32.gt_s
i32.gt_u
if (result f64)
local.get $9
i32.const 1139802112
i32.gt_s
i32.gt_u
if
local.get $4
i32.const 1072693247
Expand Down Expand Up @@ -7825,7 +7825,7 @@
i32.const 2147483647
i32.and
i32.const 1083231232
i32.ge_s
i32.ge_u
i32.const 0
local.get $5
local.get $12
Expand All @@ -7846,7 +7846,7 @@
i32.and
local.tee $11
i32.const 20
i32.shr_s
i32.shr_u
i32.const 1023
i32.sub
local.set $5
Expand All @@ -7869,7 +7869,7 @@
i32.const 2147483647
i32.and
i32.const 20
i32.shr_s
i32.shr_u
i32.const 1023
i32.sub
local.tee $5
Expand Down Expand Up @@ -9424,7 +9424,7 @@
end
local.get $2
i32.const 23
i32.shr_s
i32.shr_u
i32.const 152
i32.sub
local.tee $1
Expand Down Expand Up @@ -9806,7 +9806,7 @@
i32.const 2147483647
i32.and
i32.const 1072010280
i32.ge_s
i32.ge_u
local.tee $7
if
f64.const 0.7853981633974483
Expand Down Expand Up @@ -9992,7 +9992,7 @@
i32.and
local.tee $4
i32.const 1072243195
i32.le_s
i32.le_u
if
local.get $4
i32.const 1044381696
Expand Down Expand Up @@ -10276,7 +10276,7 @@
end
local.get $2
i32.const 23
i32.shr_s
i32.shr_u
i32.const 152
i32.sub
local.tee $1
Expand Down
4 changes: 2 additions & 2 deletions tests/compiler/std/string-casemapping.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@
i32.and
local.tee $2
i32.const 65536
i32.lt_s
i32.lt_u
if
local.get $10
local.get $11
Expand Down Expand Up @@ -2757,7 +2757,7 @@
i32.and
local.tee $3
i32.const 65536
i32.lt_s
i32.lt_u
if
local.get $10
local.get $11
Expand Down
2 changes: 1 addition & 1 deletion tests/compiler/std/typedarray.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2895,7 +2895,7 @@
i32.shr_u
local.tee $0
i32.const 1
i32.le_s
i32.le_u
br_if $~lib/typedarray/SORT<~lib/typedarray/Float64Array,f64>|inlined.0
local.get $2
i32.load offset=4
Expand Down

0 comments on commit c0eb3bb

Please sign in to comment.