Skip to content

Commit c0eb3bb

Browse files
authored
Update binaryen to latest (#1477)
1 parent 125865a commit c0eb3bb

File tree

6 files changed

+37
-37
lines changed

6 files changed

+37
-37
lines changed

package-lock.json

Lines changed: 3 additions & 3 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
@@ -21,7 +21,7 @@
2121
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
2222
},
2323
"dependencies": {
24-
"binaryen": "97.0.0-nightly.20200919",
24+
"binaryen": "97.0.0-nightly.20200929",
2525
"long": "^4.0.0",
2626
"source-map-support": "^0.5.19",
2727
"ts-node": "^6.2.0"

src/module.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ export enum ExpressionId {
105105
RefNull = 40 /* _BinaryenRefNullId */,
106106
RefIsNull = 41 /* _BinaryenRefIsNullId */,
107107
RefFunc = 42 /* _BinaryenRefFuncId */,
108-
Try = 43 /* _BinaryenTryId */,
109-
Throw = 44 /* _BinaryenThrowId */,
110-
Rethrow = 45 /* _BinaryenRethrowId */,
111-
BrOnExn = 46 /* _BinaryenBrOnExnId */,
112-
TupleMake = 47 /* _BinaryenTupleMakeId */,
113-
TupleExtract = 48 /* _BinaryenTupleExtractId */
108+
Try = 44 /* _BinaryenTryId */,
109+
Throw = 45 /* _BinaryenThrowId */,
110+
Rethrow = 46 /* _BinaryenRethrowId */,
111+
BrOnExn = 47 /* _BinaryenBrOnExnId */,
112+
TupleMake = 48 /* _BinaryenTupleMakeId */,
113+
TupleExtract = 49 /* _BinaryenTupleExtractId */
114114
}
115115

116116
export enum UnaryOp {
@@ -249,8 +249,8 @@ export enum BinaryOp {
249249
OrI32 = 8 /* _BinaryenOrInt32 */,
250250
XorI32 = 9 /* _BinaryenXorInt32 */,
251251
ShlI32 = 10 /* _BinaryenShlInt32 */,
252-
ShrU32 = 11 /* _BinaryenShrUInt32 */,
253-
ShrI32 = 12 /* _BinaryenShrSInt32 */,
252+
ShrI32 = 11 /* _BinaryenShrSInt32 */,
253+
ShrU32 = 12 /* _BinaryenShrUInt32 */,
254254
RotlI32 = 13 /* _BinaryenRotLInt32 */,
255255
RotrI32 = 14 /* _BinaryenRotRInt32 */,
256256
EqI32 = 15 /* _BinaryenEqInt32 */,
@@ -274,8 +274,8 @@ export enum BinaryOp {
274274
OrI64 = 33 /* _BinaryenOrInt64 */,
275275
XorI64 = 34 /* _BinaryenXorInt64 */,
276276
ShlI64 = 35 /* _BinaryenShlInt64 */,
277-
ShrU64 = 36 /* _BinaryenShrUInt64 */,
278-
ShrI64 = 37 /* _BinaryenShrSInt64 */,
277+
ShrI64 = 36 /* _BinaryenShrSInt64 */,
278+
ShrU64 = 37 /* _BinaryenShrUInt64 */,
279279
RotlI64 = 38 /* _BinaryenRotLInt64 */,
280280
RotrI64 = 39 /* _BinaryenRotRInt64 */,
281281
EqI64 = 40 /* _BinaryenEqInt64 */,

tests/compiler/std/math.optimized.wat

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3274,7 +3274,7 @@
32743274
i64.const 9223372036854775807
32753275
i64.and
32763276
i64.const 52
3277-
i64.shr_s
3277+
i64.shr_u
32783278
i64.const 1045
32793279
i64.sub
32803280
local.tee $2
@@ -3383,12 +3383,12 @@
33833383
local.get $6
33843384
i64.mul
33853385
i64.add
3386-
local.get $1
3387-
i64.const 32
3388-
i64.shr_u
33893386
local.get $2
33903387
i64.const 32
33913388
i64.shr_s
3389+
local.get $1
3390+
i64.const 32
3391+
i64.shr_u
33923392
i64.mul
33933393
local.tee $4
33943394
local.get $9
@@ -3997,7 +3997,7 @@
39973997
end
39983998
local.get $2
39993999
i32.const 23
4000-
i32.shr_s
4000+
i32.shr_u
40014001
i32.const 152
40024002
i32.sub
40034003
local.tee $1
@@ -5578,7 +5578,7 @@
55785578
local.set $9
55795579
local.get $10
55805580
i32.const 1533
5581-
i32.gt_s
5581+
i32.gt_u
55825582
if (result f64)
55835583
f64.const 5260135901548373507240989e186
55845584
local.set $9
@@ -5592,7 +5592,7 @@
55925592
else
55935593
local.get $6
55945594
i32.const 573
5595-
i32.lt_s
5595+
i32.lt_u
55965596
if (result f64)
55975597
f64.const 1.90109156629516e-211
55985598
local.set $9
@@ -7188,7 +7188,7 @@
71887188
i32.const 1
71897189
local.get $9
71907190
i32.const 2146435072
7191-
i32.gt_s
7191+
i32.gt_u
71927192
i32.const 1
71937193
local.get $18
71947194
i32.const 0
@@ -7214,19 +7214,19 @@
72147214
if (result i32)
72157215
local.get $9
72167216
i32.const 1128267776
7217-
i32.ge_s
7217+
i32.ge_u
72187218
if (result i32)
72197219
i32.const 2
72207220
else
72217221
local.get $9
72227222
i32.const 1072693248
7223-
i32.ge_s
7223+
i32.ge_u
72247224
if (result i32)
72257225
i32.const 52
72267226
i32.const 20
72277227
local.get $9
72287228
i32.const 20
7229-
i32.shr_s
7229+
i32.shr_u
72307230
i32.const 1023
72317231
i32.sub
72327232
local.tee $11
@@ -7429,11 +7429,11 @@
74297429
local.set $10
74307430
local.get $9
74317431
i32.const 1105199104
7432-
i32.gt_s
7432+
i32.gt_u
74337433
if (result f64)
74347434
local.get $9
74357435
i32.const 1139802112
7436-
i32.gt_s
7436+
i32.gt_u
74377437
if
74387438
local.get $4
74397439
i32.const 1072693247
@@ -7825,7 +7825,7 @@
78257825
i32.const 2147483647
78267826
i32.and
78277827
i32.const 1083231232
7828-
i32.ge_s
7828+
i32.ge_u
78297829
i32.const 0
78307830
local.get $5
78317831
local.get $12
@@ -7846,7 +7846,7 @@
78467846
i32.and
78477847
local.tee $11
78487848
i32.const 20
7849-
i32.shr_s
7849+
i32.shr_u
78507850
i32.const 1023
78517851
i32.sub
78527852
local.set $5
@@ -7869,7 +7869,7 @@
78697869
i32.const 2147483647
78707870
i32.and
78717871
i32.const 20
7872-
i32.shr_s
7872+
i32.shr_u
78737873
i32.const 1023
78747874
i32.sub
78757875
local.tee $5
@@ -9424,7 +9424,7 @@
94249424
end
94259425
local.get $2
94269426
i32.const 23
9427-
i32.shr_s
9427+
i32.shr_u
94289428
i32.const 152
94299429
i32.sub
94309430
local.tee $1
@@ -9806,7 +9806,7 @@
98069806
i32.const 2147483647
98079807
i32.and
98089808
i32.const 1072010280
9809-
i32.ge_s
9809+
i32.ge_u
98109810
local.tee $7
98119811
if
98129812
f64.const 0.7853981633974483
@@ -9992,7 +9992,7 @@
99929992
i32.and
99939993
local.tee $4
99949994
i32.const 1072243195
9995-
i32.le_s
9995+
i32.le_u
99969996
if
99979997
local.get $4
99989998
i32.const 1044381696
@@ -10276,7 +10276,7 @@
1027610276
end
1027710277
local.get $2
1027810278
i32.const 23
10279-
i32.shr_s
10279+
i32.shr_u
1028010280
i32.const 152
1028110281
i32.sub
1028210282
local.tee $1

tests/compiler/std/string-casemapping.optimized.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@
20992099
i32.and
21002100
local.tee $2
21012101
i32.const 65536
2102-
i32.lt_s
2102+
i32.lt_u
21032103
if
21042104
local.get $10
21052105
local.get $11
@@ -2757,7 +2757,7 @@
27572757
i32.and
27582758
local.tee $3
27592759
i32.const 65536
2760-
i32.lt_s
2760+
i32.lt_u
27612761
if
27622762
local.get $10
27632763
local.get $11

tests/compiler/std/typedarray.optimized.wat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@
28952895
i32.shr_u
28962896
local.tee $0
28972897
i32.const 1
2898-
i32.le_s
2898+
i32.le_u
28992899
br_if $~lib/typedarray/SORT<~lib/typedarray/Float64Array,f64>|inlined.0
29002900
local.get $2
29012901
i32.load offset=4

0 commit comments

Comments
 (0)