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

@ -6,15 +6,6 @@
(type $v (func))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$i (func (result i32)))
(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))
(global $std/array-literal/emptyArrayI32 (mut i32) (i32.const 128))
(global $std/array-literal/i (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayI8 (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayI32 (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayRef (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayRefWithCtor (mut i32) (i32.const 0))
(memory $0 1)
(data (i32.const 8) "\03")
(data (i32.const 17) "\01\02")
@ -26,7 +17,19 @@
(data (i32.const 128) "x")
(data (i32.const 136) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s")
(data (i32.const 168) "\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 1 anyfunc)
(elem (i32.const 0) $null)
(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))
(global $std/array-literal/emptyArrayI32 (mut i32) (i32.const 128))
(global $std/array-literal/i (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayI8 (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayI32 (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayRef (mut i32) (i32.const 0))
(global $std/array-literal/dynamicArrayRefWithCtor (mut i32) (i32.const 0))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/array/Array<i8>#__get (; 1 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(tee_local $0
@ -624,6 +627,7 @@
)
(func $start (; 13 ;) (; has Stack IR ;) (type $v)
(local $0 i32)
(local $1 i32)
(set_global $~lib/allocator/arena/startOffset
(i32.const 232)
)
@ -1001,31 +1005,41 @@
(unreachable)
)
)
(call $~lib/array/Array<i32>#__unchecked_set
(tee_local $0
(call $~lib/array/Array<i32>#constructor)
(set_local $1
(call $~lib/array/Array<i32>#constructor)
)
(set_local $0
(call $~lib/memory/memory.allocate
(i32.const 0)
)
)
(call $~lib/array/Array<i32>#__unchecked_set
(get_local $1)
(i32.const 0)
(get_local $0)
)
(set_local $0
(call $~lib/memory/memory.allocate
(i32.const 0)
)
)
(call $~lib/array/Array<i32>#__unchecked_set
(get_local $0)
(get_local $1)
(i32.const 1)
(get_local $0)
)
(set_local $0
(call $~lib/memory/memory.allocate
(i32.const 0)
)
)
(call $~lib/array/Array<i32>#__unchecked_set
(get_local $0)
(get_local $1)
(i32.const 2)
(call $~lib/memory/memory.allocate
(i32.const 0)
)
(get_local $0)
)
(set_global $std/array-literal/dynamicArrayRef
(get_local $0)
(get_local $1)
)
(if
(i32.ne
@ -1044,22 +1058,32 @@
(unreachable)
)
)
(set_local $0
(call $~lib/array/Array<i32>#constructor)
)
(set_local $1
(call $std/array-literal/RefWithCtor#constructor)
)
(call $~lib/array/Array<i32>#__unchecked_set
(tee_local $0
(call $~lib/array/Array<i32>#constructor)
)
(get_local $0)
(i32.const 0)
(get_local $1)
)
(set_local $1
(call $std/array-literal/RefWithCtor#constructor)
)
(call $~lib/array/Array<i32>#__unchecked_set
(get_local $0)
(i32.const 1)
(get_local $1)
)
(set_local $1
(call $std/array-literal/RefWithCtor#constructor)
)
(call $~lib/array/Array<i32>#__unchecked_set
(get_local $0)
(i32.const 2)
(call $std/array-literal/RefWithCtor#constructor)
(get_local $1)
)
(set_global $std/array-literal/dynamicArrayRefWithCtor
(get_local $0)