Update Binaryen to latest; Various fixes

This commit is contained in:
Daniel Wirtz
2018-10-11 08:49:08 +02:00
committed by GitHub
parent b54a97c0fe
commit f7c734789e
228 changed files with 12372 additions and 14996 deletions

View File

@ -9,6 +9,13 @@
(type $i (func (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$v (func))
(memory $0 1)
(data (i32.const 16) "\01")
(data (i32.const 40) "\02\00\00\00\00\00\00\00\18")
(data (i32.const 64) "\05\00\00\00\00\00\00\00\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s")
(data (i32.const 112) "\05\00\00\00\00\00\00\00\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
(table 7 anyfunc)
(elem (i32.const 0) $null $~lib/arraybuffer/ArrayBuffer~gc $~lib/array/Array<Foo>~gc $~lib/collector/itcm/__gc_mark $~lib/arraybuffer/ArrayBuffer~gc $~lib/arraybuffer/ArrayBuffer~gc $~lib/allocator/arena/__memory_free)
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
@ -20,13 +27,6 @@
(global $std/gc-array/arr (mut i32) (i32.const 48))
(global $~argc (mut i32) (i32.const 0))
(global $~started (mut i32) (i32.const 0))
(table 7 7 anyfunc)
(elem (i32.const 0) $null $~lib/arraybuffer/ArrayBuffer~gc $~lib/array/Array<Foo>~gc $~lib/collector/itcm/__gc_mark $~lib/arraybuffer/ArrayBuffer~gc $~lib/arraybuffer/ArrayBuffer~gc $~lib/allocator/arena/__memory_free)
(memory $0 1)
(data (i32.const 16) "\01")
(data (i32.const 40) "\02\00\00\00\00\00\00\00\18")
(data (i32.const 64) "\05\00\00\00\00\00\00\00\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s")
(data (i32.const 112) "\05\00\00\00\00\00\00\00\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
(export "memory" (memory $0))
(export "table" (table $0))
(export "main" (func $std/gc-array/main))
@ -2616,13 +2616,16 @@
(unreachable)
)
)
(set_local $3
(call $~lib/internal/arraybuffer/computeSize
(get_local $2)
)
)
(if
(i32.le_s
(get_local $1)
(i32.sub
(call $~lib/internal/arraybuffer/computeSize
(get_local $2)
)
(get_local $3)
(i32.const 8)
)
)
@ -2749,7 +2752,6 @@
)
(func $~lib/array/Array<Foo>#__set (; 25 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(if
(i32.ge_u
(get_local $1)
@ -2780,26 +2782,28 @@
(unreachable)
)
)
(i32.store
(get_local $0)
(tee_local $3
(call $~lib/internal/arraybuffer/reallocateUnsafe
(get_local $3)
(i32.shl
(tee_local $4
(i32.add
(get_local $1)
(i32.const 1)
)
)
(i32.const 2)
(set_local $3
(call $~lib/internal/arraybuffer/reallocateUnsafe
(get_local $3)
(i32.shl
(i32.add
(get_local $1)
(i32.const 1)
)
(i32.const 2)
)
)
)
(i32.store
(get_local $0)
(get_local $3)
)
(i32.store offset=4
(get_local $0)
(get_local $4)
(i32.add
(get_local $1)
(i32.const 1)
)
)
)
)
@ -2833,6 +2837,8 @@
(i32.const 0)
)
(func $start (; 27 ;) (; has Stack IR ;) (type $v)
(local $0 i32)
(local $1 i32)
(set_global $~lib/allocator/arena/startOffset
(i32.const 184)
)
@ -2843,31 +2849,49 @@
(i32.const 0)
)
(call $~lib/gc/gc.collect)
(call $~lib/array/Array<Foo>#__set
(set_local $0
(get_global $std/gc-array/arr)
(i32.const 0)
)
(set_local $1
(call $~lib/collector/itcm/__gc_allocate
(i32.const 0)
(i32.const 4)
)
)
(call $~lib/gc/gc.collect)
(call $~lib/array/Array<Foo>#__set
(get_local $0)
(i32.const 0)
(get_local $1)
)
(call $~lib/gc/gc.collect)
(set_local $0
(get_global $std/gc-array/arr)
)
(set_local $1
(call $~lib/collector/itcm/__gc_allocate
(i32.const 0)
(i32.const 4)
)
)
(call $~lib/array/Array<Foo>#__set
(get_local $0)
(i32.const 1)
(get_local $1)
)
(call $~lib/gc/gc.collect)
(set_local $0
(get_global $std/gc-array/arr)
)
(set_local $1
(call $~lib/collector/itcm/__gc_allocate
(i32.const 0)
(i32.const 4)
)
)
(call $~lib/gc/gc.collect)
(call $~lib/array/Array<Foo>#__set
(get_global $std/gc-array/arr)
(get_local $0)
(i32.const 0)
(call $~lib/collector/itcm/__gc_allocate
(i32.const 0)
(i32.const 4)
)
(get_local $1)
)
(call $~lib/gc/gc.collect)
)