Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 7184db6

Browse files
committed
Update Binaryen to latest and regenerate dist files
1 parent 1ae7d03 commit 7184db6

27 files changed

+1281
-3783
lines changed

dist/asc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/asc.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assemblyscript.js

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

dist/assemblyscript.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@protobufjs/utf8": "^1.1.0",
15-
"binaryen": "68.0.0-nightly.20190220",
15+
"binaryen": "69.0.0-nightly.20190228",
1616
"glob": "^7.1.3",
1717
"long": "^4.0.0",
1818
"source-map-support": "^0.5.10"
@@ -27,7 +27,7 @@
2727
"typedoc": "^0.14.0",
2828
"typedoc-plugin-external-module-name": "^2.0.0",
2929
"typescript": "^3.3.3333",
30-
"webpack": "^4.29.5",
30+
"webpack": "^4.29.6",
3131
"webpack-cli": "^3.2.3"
3232
},
3333
"main": "index.js",

tests/compiler/exports.optimized.wat

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
(type $ii (func (param i32) (result i32)))
66
(type $ii_ (func (param i32 i32)))
77
(type $i_ (func (param i32)))
8+
(type $FUNCSIG$i (func (result i32)))
89
(memory $0 0)
910
(table $0 1 funcref)
1011
(elem (i32.const 0) $null)
@@ -59,56 +60,44 @@
5960
(func $exports/Car.getNumTires (; 2 ;) (type $i) (result i32)
6061
i32.const 4
6162
)
62-
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
63+
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
64+
(local $0 i32)
6365
(local $1 i32)
6466
(local $2 i32)
6567
(local $3 i32)
66-
local.get $0
67-
i32.const 1073741824
68-
i32.gt_u
69-
if
70-
unreachable
71-
end
7268
global.get $~lib/allocator/arena/offset
73-
local.tee $1
74-
local.get $0
75-
i32.const 1
76-
local.get $0
77-
i32.const 1
78-
i32.gt_u
79-
select
80-
i32.add
81-
i32.const 7
69+
local.tee $0
70+
i32.const 11
8271
i32.add
8372
i32.const -8
8473
i32.and
85-
local.tee $2
74+
local.tee $1
8675
current_memory
87-
local.tee $3
76+
local.tee $2
8877
i32.const 16
8978
i32.shl
9079
i32.gt_u
9180
if
92-
local.get $3
9381
local.get $2
9482
local.get $1
83+
local.get $0
9584
i32.sub
9685
i32.const 65535
9786
i32.add
9887
i32.const -65536
9988
i32.and
10089
i32.const 16
10190
i32.shr_u
102-
local.tee $0
91+
local.tee $3
92+
local.get $2
10393
local.get $3
104-
local.get $0
10594
i32.gt_s
10695
select
10796
grow_memory
10897
i32.const 0
10998
i32.lt_s
11099
if
111-
local.get $0
100+
local.get $3
112101
grow_memory
113102
i32.const 0
114103
i32.lt_s
@@ -117,9 +106,9 @@
117106
end
118107
end
119108
end
120-
local.get $2
121-
global.set $~lib/allocator/arena/offset
122109
local.get $1
110+
global.set $~lib/allocator/arena/offset
111+
local.get $0
123112
)
124113
(func $exports/Car#get:numDoors (; 4 ;) (type $ii) (param $0 i32) (result i32)
125114
local.get $0
@@ -179,7 +168,6 @@
179168
local.get $0
180169
i32.eqz
181170
if
182-
i32.const 4
183171
call $~lib/allocator/arena/__memory_allocate
184172
local.set $0
185173
end

tests/compiler/getter-call.optimized.wat

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(module
22
(type $_ (func))
33
(type $i (func (result i32)))
4-
(type $ii (func (param i32) (result i32)))
4+
(type $FUNCSIG$i (func (result i32)))
55
(memory $0 0)
66
(table $0 2 funcref)
77
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|0)
@@ -12,56 +12,44 @@
1212
(export "table" (table $0))
1313
(export "test" (func $getter-call/test))
1414
(start $start)
15-
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
15+
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $FUNCSIG$i) (result i32)
16+
(local $0 i32)
1617
(local $1 i32)
1718
(local $2 i32)
1819
(local $3 i32)
19-
local.get $0
20-
i32.const 1073741824
21-
i32.gt_u
22-
if
23-
unreachable
24-
end
2520
global.get $~lib/allocator/arena/offset
26-
local.tee $1
27-
local.get $0
28-
i32.const 1
29-
local.get $0
30-
i32.const 1
31-
i32.gt_u
32-
select
33-
i32.add
34-
i32.const 7
21+
local.tee $0
22+
i32.const 8
3523
i32.add
3624
i32.const -8
3725
i32.and
38-
local.tee $2
26+
local.tee $1
3927
current_memory
40-
local.tee $3
28+
local.tee $2
4129
i32.const 16
4230
i32.shl
4331
i32.gt_u
4432
if
45-
local.get $3
4633
local.get $2
4734
local.get $1
35+
local.get $0
4836
i32.sub
4937
i32.const 65535
5038
i32.add
5139
i32.const -65536
5240
i32.and
5341
i32.const 16
5442
i32.shr_u
55-
local.tee $0
43+
local.tee $3
44+
local.get $2
5645
local.get $3
57-
local.get $0
5846
i32.gt_s
5947
select
6048
grow_memory
6149
i32.const 0
6250
i32.lt_s
6351
if
64-
local.get $0
52+
local.get $3
6553
grow_memory
6654
i32.const 0
6755
i32.lt_s
@@ -70,15 +58,14 @@
7058
end
7159
end
7260
end
73-
local.get $2
74-
global.set $~lib/allocator/arena/offset
7561
local.get $1
62+
global.set $~lib/allocator/arena/offset
63+
local.get $0
7664
)
7765
(func $getter-call/C#get:x~anonymous|0 (; 1 ;) (type $i) (result i32)
7866
i32.const 42
7967
)
8068
(func $getter-call/test (; 2 ;) (type $i) (result i32)
81-
i32.const 0
8269
call $~lib/allocator/arena/__memory_allocate
8370
drop
8471
i32.const 0

tests/compiler/memset.optimized.wat

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(module
2-
(type $iiii (func (param i32 i32 i32) (result i32)))
32
(type $iiii_ (func (param i32 i32 i32 i32)))
43
(type $_ (func))
4+
(type $FUNCSIG$viii (func (param i32 i32 i32)))
55
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
66
(memory $0 1)
77
(data (i32.const 8) "\t\00\00\00m\00e\00m\00s\00e\00t\00.\00t\00s")
@@ -11,7 +11,7 @@
1111
(export "memory" (memory $0))
1212
(export "table" (table $0))
1313
(start $start)
14-
(func $memset/memset (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
14+
(func $memset/memset (; 1 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
1515
(local $3 i32)
1616
(local $4 i32)
1717
(local $5 i64)
@@ -237,10 +237,7 @@
237237
br $continue|0
238238
end
239239
end
240-
local.get $3
241-
return
242240
end
243-
local.get $3
244241
)
245242
(func $start:memset (; 2 ;) (type $_)
246243
i32.const 32
@@ -249,7 +246,6 @@
249246
i32.const 1
250247
i32.const 16
251248
call $memset/memset
252-
drop
253249
global.get $memset/dest
254250
i32.load8_u
255251
i32.const 1
@@ -282,7 +278,6 @@
282278
i32.const 2
283279
i32.const 14
284280
call $memset/memset
285-
drop
286281
global.get $memset/dest
287282
i32.load8_u
288283
i32.const 1

0 commit comments

Comments
 (0)