Update Binaryen to latest and regenerate dist files

This commit is contained in:
dcode
2019-02-28 18:26:04 +01:00
parent 1ae7d03e8c
commit 7184db6dde
27 changed files with 1385 additions and 3887 deletions

View File

@ -4,8 +4,6 @@
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $ii (func (param i32) (result i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
@ -1525,75 +1523,14 @@
local.get $2
call $~lib/arraybuffer/ArrayBuffer#slice
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 160
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.get $2
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.store offset=8
local.get $0
)
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 268435454
i32.gt_u
if
i32.const 0
i32.const 160
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
i32.const 2
i32.shl
local.tee $1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
i32.const 1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
@ -1612,41 +1549,67 @@
i32.const 0
i32.store offset=8
local.get $0
local.get $2
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.const 1
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
local.get $3
i32.const -2147483648
i32.eq
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 4
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $1
i32.const 8
i32.add
i32.const 4
call $~lib/internal/memory/memset
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 4
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block (result i32)
local.get $1
i32.load
local.get $2
i32.sub
local.set $3
i32.const -2147483648
i32.eq
if
local.get $0
i32.load
local.set $1
end
local.get $1
i32.const 1073741816
i32.gt_u
end
local.get $2
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 248
i32.const 14
i32.const 44
call $~lib/env/abort
unreachable
end
local.get $3
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 248
@ -1655,10 +1618,8 @@
call $~lib/env/abort
unreachable
end
local.get $2
local.get $3
i32.add
local.get $1
local.get $0
i32.load
i32.gt_s
if
@ -1669,47 +1630,22 @@
call $~lib/env/abort
unreachable
end
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.tee $2
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
local.get $1
i32.store
local.get $0
local.get $2
i32.const 0
i32.store offset=4
local.get $0
local.get $3
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor|trampoline (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block $2of2
block $1of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $1of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -2147483648
local.set $1
end
i32.const 0
local.get $0
i32.const 0
local.get $2
local.get $1
call $~lib/dataview/DataView#constructor
i32.store offset=8
local.get $2
)
(func $start:std/arraybuffer (; 12 ;) (type $_)
(func $start:std/arraybuffer (; 11 ;) (type $_)
(local $0 i32)
(local $1 i32)
i32.const 288
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
@ -1907,7 +1843,6 @@
end
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 1
call $~lib/internal/typedarray/TypedArray<u8>#constructor
global.set $std/arraybuffer/arr8
i32.const 1
@ -1927,7 +1862,6 @@
i32.const 0
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 1
call $~lib/internal/typedarray/TypedArray<i32>#constructor
i32.eqz
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>5
@ -1946,10 +1880,28 @@
i32.const 1
global.set $~lib/argc
block $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>6 (result i32)
i32.const 0
global.get $std/arraybuffer/arr8
i32.load
call $~lib/dataview/DataView#constructor|trampoline
local.set $1
i32.const 0
local.set $0
block $2of2
block $1of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $1of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -2147483648
local.set $0
end
i32.const 0
local.get $1
local.get $0
call $~lib/dataview/DataView#constructor
i32.eqz
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>6
drop
@ -1965,10 +1917,10 @@
unreachable
end
)
(func $start (; 13 ;) (type $_)
(func $start (; 12 ;) (type $_)
call $start:std/arraybuffer
)
(func $null (; 14 ;) (type $_)
(func $null (; 13 ;) (type $_)
nop
)
)