Update Binaryen and other dependencies; Update dist files

This commit is contained in:
dcode
2019-01-09 13:02:47 +01:00
parent f714afab3c
commit 20f4092eb2
52 changed files with 3970 additions and 4365 deletions

View File

@ -68,36 +68,32 @@
(local $3 i32)
get_global $assembly/index/off
set_local $0
block $break|0
loop $continue|0
get_local $0
tee_local $1
i32.const 1
i32.add
set_local $0
get_local $2
get_local $1
i32.load8_u
tee_local $1
i32.const 127
i32.and
get_local $3
i32.shl
i32.or
set_local $2
get_local $1
i32.const 128
i32.and
i32.eqz
br_if $break|0
loop $continue|0
get_local $0
tee_local $1
i32.const 1
i32.add
set_local $0
get_local $1
i32.load8_u
tee_local $1
i32.const 127
i32.and
get_local $3
i32.shl
get_local $2
i32.or
set_local $2
get_local $1
i32.const 128
i32.and
if
get_local $3
i32.const 7
i32.add
set_local $3
br $continue|0
unreachable
end
unreachable
end
get_local $0
set_global $assembly/index/off
@ -117,7 +113,6 @@
i32.const 1
i32.add
set_local $2
get_local $3
get_local $4
i32.load8_u
tee_local $5
@ -125,6 +120,7 @@
i32.and
get_local $1
i32.shl
get_local $3
i32.or
set_local $3
get_local $1
@ -138,10 +134,10 @@
end
get_local $2
set_global $assembly/index/off
get_local $3
i32.const -1
get_local $1
i32.shl
get_local $3
i32.or
set_local $2
get_local $1
@ -176,7 +172,6 @@
i32.const 1
i32.add
set_local $3
get_local $1
get_local $2
i64.load8_u
tee_local $4
@ -184,6 +179,7 @@
i64.and
get_local $0
i64.shl
get_local $1
i64.or
set_local $1
get_local $0
@ -199,10 +195,10 @@
end
get_local $3
set_global $assembly/index/off
get_local $1
i64.const -1
get_local $0
i64.shl
get_local $1
i64.or
set_local $5
get_local $0
@ -225,38 +221,38 @@
(func $assembly/index/skipInitExpr (; 22 ;) (type $v)
(local $0 i32)
(local $1 i32)
get_global $assembly/index/off
tee_local $1
i32.load8_u
set_local $0
get_local $1
i32.const 1
i32.add
set_global $assembly/index/off
block $break|0
block $case5|0
block $case4|0
block $case3|0
block $case2|0
block $case1|0
get_global $assembly/index/off
tee_local $1
i32.load8_u
set_local $0
get_local $1
i32.const 1
i32.add
set_global $assembly/index/off
get_local $0
get_global $src/common/Opcode.i32_const
get_local $0
i32.ne
if
get_local $0
get_global $src/common/Opcode.i64_const
get_local $0
i32.eq
br_if $case1|0
get_local $0
get_global $src/common/Opcode.f32_const
get_local $0
i32.eq
br_if $case2|0
get_local $0
get_global $src/common/Opcode.f64_const
get_local $0
i32.eq
br_if $case3|0
get_local $0
get_global $src/common/Opcode.get_global
get_local $0
i32.eq
br_if $case4|0
br $case5|0
@ -304,8 +300,8 @@
i32.const 1
i32.add
set_global $assembly/index/off
get_local $0
get_global $src/common/Opcode.end
get_local $0
i32.ne
if
unreachable
@ -328,28 +324,28 @@
get_local $0
set_global $assembly/index/off
get_global $assembly/index/off
tee_local $6
tee_local $0
i32.load
set_local $0
get_local $6
set_local $6
get_local $0
i32.const 4
i32.add
set_global $assembly/index/off
get_local $0
get_local $6
i32.const 1836278016
i32.ne
if
unreachable
end
get_global $assembly/index/off
tee_local $6
tee_local $0
i32.load
set_local $0
get_local $6
set_local $6
get_local $0
i32.const 4
i32.add
set_global $assembly/index/off
get_local $0
get_local $6
i32.const 1
i32.ne
if
@ -365,7 +361,7 @@
call $assembly/index/readVaruint
set_local $8
i32.const 0
set_local $5
set_local $4
i32.const 0
set_local $0
get_local $2
@ -377,32 +373,28 @@
unreachable
end
else
get_global $assembly/index/off
set_local $4
call $assembly/index/readVaruint
set_local $0
get_global $assembly/index/off
set_local $5
call $assembly/index/readVaruint
tee_local $0
get_global $assembly/index/off
get_local $0
tee_local $4
i32.add
set_global $assembly/index/off
get_local $8
get_global $assembly/index/off
get_local $4
get_local $5
i32.sub
i32.sub
set_local $8
end
get_local $2
get_global $assembly/index/off
tee_local $4
tee_local $5
get_local $8
get_local $5
get_local $4
get_local $0
call $assembly/options/onSection
i32.const 1
i32.and
if
block $break|1
block $case12|1
@ -415,66 +407,65 @@
block $case3|1
block $case2|1
block $case1|1
get_local $2
get_global $src/common/SectionId.Type
get_local $2
i32.ne
if
get_local $2
get_global $src/common/SectionId.Import
get_local $2
i32.eq
br_if $case1|1
get_local $2
get_global $src/common/SectionId.Function
get_local $2
i32.eq
br_if $case2|1
get_local $2
get_global $src/common/SectionId.Table
get_local $2
i32.eq
br_if $case3|1
get_local $2
get_global $src/common/SectionId.Memory
get_local $2
i32.eq
br_if $case4|1
get_local $2
get_global $src/common/SectionId.Global
get_local $2
i32.eq
br_if $case5|1
get_local $2
get_global $src/common/SectionId.Export
get_local $2
i32.eq
br_if $case6|1
get_local $2
get_global $src/common/SectionId.Start
get_local $2
i32.eq
br_if $case7|1
get_local $2
get_global $src/common/SectionId.Custom
get_local $2
i32.eq
br_if $case8|1
get_local $2
get_global $src/common/SectionId.Element
get_local $2
i32.eq
br_if $case11|1
get_local $2
get_global $src/common/SectionId.Code
get_local $2
i32.eq
br_if $case11|1
get_local $2
get_global $src/common/SectionId.Data
get_local $2
i32.eq
br_if $case11|1
br $case12|1
end
call $assembly/index/readVaruint
set_local $2
block $break|2
i32.const 0
set_local $3
loop $repeat|2
get_local $3
get_local $2
i32.ge_u
br_if $break|2
i32.const 0
set_local $3
loop $repeat|2
get_local $3
get_local $2
i32.lt_u
if
get_local $3
i32.const 7
call $assembly/index/readVarint
@ -482,15 +473,14 @@
i32.and
call $assembly/options/onType
call $assembly/index/readVaruint
set_local $4
block $break|3
i32.const 0
set_local $7
loop $repeat|3
get_local $7
get_local $4
i32.ge_u
br_if $break|3
set_local $5
i32.const 0
set_local $7
loop $repeat|3
get_local $7
get_local $5
i32.lt_u
if
get_local $3
get_local $7
i32.const 7
@ -503,71 +493,61 @@
i32.add
set_local $7
br $repeat|3
unreachable
end
unreachable
end
call $assembly/index/readVaruint
set_local $7
block $break|4
i32.const 0
set_local $5
loop $repeat|4
get_local $5
get_local $7
i32.ge_u
br_if $break|4
i32.const 0
set_local $4
loop $repeat|4
get_local $4
get_local $7
i32.lt_u
if
get_local $3
get_local $5
get_local $4
i32.const 7
call $assembly/index/readVarint
i32.const 127
i32.and
call $assembly/options/onTypeReturn
get_local $5
get_local $4
i32.const 1
i32.add
set_local $5
set_local $4
br $repeat|4
unreachable
end
unreachable
end
get_local $3
i32.const 1
i32.add
set_local $3
br $repeat|2
unreachable
end
unreachable
end
br $break|1
end
call $assembly/index/readVaruint
set_local $2
block $break|5
i32.const 0
set_local $3
loop $repeat|5
get_local $3
get_local $2
i32.ge_u
br_if $break|5
i32.const 0
set_local $3
loop $repeat|5
get_local $3
get_local $2
i32.lt_u
if
call $assembly/index/readVaruint
set_local $7
get_global $assembly/index/off
set_local $4
get_global $assembly/index/off
get_local $7
get_global $assembly/index/off
tee_local $5
i32.add
set_global $assembly/index/off
call $assembly/index/readVaruint
set_local $9
get_global $assembly/index/off
set_local $5
get_global $assembly/index/off
get_local $9
get_global $assembly/index/off
tee_local $4
i32.add
set_global $assembly/index/off
get_global $assembly/index/off
@ -580,9 +560,9 @@
set_global $assembly/index/off
get_local $3
get_local $0
get_local $4
get_local $7
get_local $5
get_local $7
get_local $4
get_local $9
call $assembly/options/onImport
block $break|6
@ -595,16 +575,16 @@
get_global $src/common/ExternalKind.Function
i32.ne
if
get_local $6
get_global $src/common/ExternalKind.Table
get_local $6
i32.eq
br_if $case1|6
get_local $6
get_global $src/common/ExternalKind.Memory
get_local $6
i32.eq
br_if $case2|6
get_local $6
get_global $src/common/ExternalKind.Global
get_local $6
i32.eq
br_if $case3|6
br $case4|6
@ -634,7 +614,6 @@
get_local $0
get_local $6
call $assembly/index/readVaruint
tee_local $4
get_local $10
i32.const 1
i32.and
@ -643,7 +622,6 @@
else
i32.const -1
end
tee_local $8
get_local $10
call $assembly/options/onTableImport
br $break|6
@ -657,7 +635,6 @@
set_local $13
get_local $6
call $assembly/index/readVaruint
tee_local $0
get_local $8
i32.const 1
i32.and
@ -666,7 +643,6 @@
else
i32.const 65535
end
tee_local $10
get_local $8
call $assembly/options/onMemoryImport
br $break|6
@ -692,28 +668,25 @@
i32.add
set_local $3
br $repeat|5
unreachable
end
unreachable
end
br $break|1
end
call $assembly/index/readVaruint
set_local $2
block $break|7
i32.const 0
set_local $3
loop $repeat|7
get_local $3
get_local $2
i32.ge_u
br_if $break|7
i32.const 0
set_local $3
loop $repeat|7
get_local $3
get_local $2
i32.lt_u
if
get_local $11
tee_local $5
tee_local $4
i32.const 1
i32.add
set_local $11
get_local $5
get_local $4
call $assembly/index/readVaruint
call $assembly/options/onFunction
get_local $3
@ -721,28 +694,25 @@
i32.add
set_local $3
br $repeat|7
unreachable
end
unreachable
end
br $break|1
end
call $assembly/index/readVaruint
set_local $2
block $break|8
i32.const 0
set_local $3
loop $repeat|8
get_local $3
get_local $2
i32.ge_u
br_if $break|8
i32.const 0
set_local $3
loop $repeat|8
get_local $3
get_local $2
i32.lt_u
if
call $assembly/index/readVaruint
i32.const 127
i32.and
set_local $0
call $assembly/index/readVaruint
set_local $5
set_local $4
get_local $12
tee_local $7
i32.const 1
@ -751,8 +721,7 @@
get_local $7
get_local $0
call $assembly/index/readVaruint
tee_local $6
get_local $5
get_local $4
i32.const 1
i32.and
if (result i32)
@ -760,32 +729,28 @@
else
i32.const -1
end
tee_local $4
get_local $5
get_local $4
call $assembly/options/onTable
get_local $3
i32.const 1
i32.add
set_local $3
br $repeat|8
unreachable
end
unreachable
end
br $break|1
end
call $assembly/index/readVaruint
set_local $2
block $break|9
i32.const 0
set_local $3
loop $repeat|9
get_local $3
get_local $2
i32.ge_u
br_if $break|9
i32.const 0
set_local $3
loop $repeat|9
get_local $3
get_local $2
i32.lt_u
if
call $assembly/index/readVaruint
set_local $4
set_local $5
get_local $13
tee_local $0
i32.const 1
@ -793,8 +758,7 @@
set_local $13
get_local $0
call $assembly/index/readVaruint
tee_local $6
get_local $4
get_local $5
i32.const 1
i32.and
if (result i32)
@ -802,45 +766,41 @@
else
i32.const 65535
end
tee_local $5
get_local $4
get_local $5
call $assembly/options/onMemory
get_local $3
i32.const 1
i32.add
set_local $3
br $repeat|9
unreachable
end
unreachable
end
br $break|1
end
call $assembly/index/readVaruint
set_local $2
block $break|10
i32.const 0
set_local $3
loop $repeat|10
get_local $3
get_local $2
i32.ge_u
br_if $break|10
i32.const 0
set_local $3
loop $repeat|10
get_local $3
get_local $2
i32.lt_u
if
i32.const 7
call $assembly/index/readVarint
i32.const 127
i32.and
set_local $5
set_local $4
call $assembly/index/readVaruint
set_local $9
call $assembly/index/skipInitExpr
get_local $14
tee_local $4
tee_local $5
i32.const 1
i32.add
set_local $14
get_local $4
get_local $5
get_local $4
get_local $9
call $assembly/options/onGlobal
get_local $3
@ -848,42 +808,38 @@
i32.add
set_local $3
br $repeat|10
unreachable
end
unreachable
end
br $break|1
end
call $assembly/index/readVaruint
set_local $2
block $break|11
i32.const 0
set_local $3
loop $repeat|11
get_local $3
get_local $2
i32.ge_u
br_if $break|11
i32.const 0
set_local $3
loop $repeat|11
get_local $3
get_local $2
i32.lt_u
if
call $assembly/index/readVaruint
set_local $9
get_global $assembly/index/off
set_local $5
get_global $assembly/index/off
get_local $9
get_global $assembly/index/off
tee_local $4
i32.add
set_global $assembly/index/off
get_global $assembly/index/off
tee_local $6
tee_local $0
i32.load8_u
set_local $0
get_local $6
set_local $6
get_local $0
i32.const 1
i32.add
set_global $assembly/index/off
get_local $3
get_local $0
get_local $6
call $assembly/index/readVaruint
get_local $5
get_local $4
get_local $9
call $assembly/options/onExport
get_local $3
@ -891,9 +847,7 @@
i32.add
set_local $3
br $repeat|11
unreachable
end
unreachable
end
br $break|1
end
@ -905,14 +859,14 @@
i32.const 4
i32.eq
tee_local $2
if
get_local $5
if (result i32)
get_local $4
i32.load
i32.const 1701667182
i32.eq
set_local $2
else
get_local $2
end
get_local $2
if
call $assembly/index/readVaruint
set_local $2
@ -925,92 +879,84 @@
block $case2|12
block $case1|12
get_local $2
tee_local $4
tee_local $5
get_global $src/common/NameType.Module
i32.ne
if
get_local $4
get_global $src/common/NameType.Function
get_local $5
i32.eq
br_if $case1|12
get_local $4
get_global $src/common/NameType.Local
get_local $5
i32.eq
br_if $case2|12
br $case3|12
end
call $assembly/index/readVaruint
set_local $4
set_local $5
get_global $assembly/index/off
get_local $4
get_local $5
call $assembly/options/onModuleName
br $break|12
end
call $assembly/index/readVaruint
set_local $4
i32.const 0
set_local $5
block $break|13
i32.const 0
set_local $4
loop $repeat|13
get_local $4
get_local $5
i32.ge_u
br_if $break|13
loop $repeat|13
get_local $5
get_local $4
i32.lt_u
if
call $assembly/index/readVaruint
set_local $9
call $assembly/index/readVaruint
set_local $7
get_global $assembly/index/off
set_local $2
get_global $assembly/index/off
get_local $7
get_global $assembly/index/off
tee_local $2
i32.add
set_global $assembly/index/off
get_local $9
get_local $2
get_local $7
call $assembly/options/onFunctionName
get_local $4
get_local $5
i32.const 1
i32.add
set_local $4
set_local $5
br $repeat|13
unreachable
end
unreachable
end
br $break|12
end
call $assembly/index/readVaruint
set_local $4
i32.const 0
set_local $5
block $break|14
i32.const 0
set_local $4
loop $repeat|14
get_local $4
get_local $5
i32.ge_u
br_if $break|14
loop $repeat|14
get_local $5
get_local $4
i32.lt_u
if
call $assembly/index/readVaruint
set_local $2
call $assembly/index/readVaruint
set_local $7
block $break|15
i32.const 0
set_local $9
loop $repeat|15
get_local $9
get_local $7
i32.ge_u
br_if $break|15
i32.const 0
set_local $9
loop $repeat|15
get_local $9
get_local $7
i32.lt_u
if
call $assembly/index/readVaruint
set_local $10
call $assembly/index/readVaruint
set_local $8
tee_local $8
get_global $assembly/index/off
set_local $6
get_global $assembly/index/off
get_local $8
tee_local $6
i32.add
set_global $assembly/index/off
get_local $2
@ -1023,18 +969,14 @@
i32.add
set_local $9
br $repeat|15
unreachable
end
unreachable
end
get_local $4
get_local $5
i32.const 1
i32.add
set_local $4
set_local $5
br $repeat|14
unreachable
end
unreachable
end
br $break|12
end
@ -1046,35 +988,35 @@
set_global $assembly/index/off
br $break|1
else
get_local $0
i32.const 16
i32.eq
tee_local $0
if
get_local $5
i64.load
i64.const 7011371672682196851
i64.eq
set_local $0
block (result i32)
get_local $0
i32.const 16
i32.eq
tee_local $0
if
get_local $4
i64.load
i64.const 7011371672682196851
i64.eq
set_local $0
end
get_local $0
end
get_local $0
if
get_local $5
if (result i32)
get_local $4
i32.const 8
i32.add
i64.load
i64.const 5499551997695193200
i64.eq
set_local $0
else
get_local $0
end
get_local $0
if
call $assembly/index/readVaruint
set_local $0
tee_local $0
get_global $assembly/index/off
set_local $3
get_global $assembly/index/off
get_local $0
tee_local $3
i32.add
set_global $assembly/index/off
get_local $3
@ -1082,7 +1024,7 @@
call $assembly/options/onSourceMappingURL
end
end
get_local $4
get_local $5
get_local $8
i32.add
set_global $assembly/index/off

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long