Update Binaryen

This commit is contained in:
dcodeIO
2018-09-13 23:10:49 +02:00
parent 6949cf9f9e
commit d90cd085e5
51 changed files with 2786 additions and 9159 deletions

View File

@ -1,9 +1,9 @@
(module
(type $ii (func (param i32) (result i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iiiiv (func (param i32 i32 i32 i32)))
(type $iiiiii (func (param i32 i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 16) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
@ -60,8 +60,8 @@
)
)
)
(func $~lib/internal/string/compareUnsafe (; 4 ;) (; has Stack IR ;) (type $iiiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(func $~lib/internal/string/compareUnsafe (; 4 ;) (; has Stack IR ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_local $1
(i32.add
(get_local $0)
@ -71,22 +71,13 @@
)
)
)
(set_local $2
(i32.add
(get_local $2)
(i32.shl
(get_local $3)
(i32.const 1)
)
)
)
(loop $continue|0
(if
(tee_local $0
(if (result i32)
(get_local $4)
(get_local $3)
(i32.eqz
(tee_local $5
(tee_local $4
(i32.sub
(i32.load16_u offset=4
(get_local $1)
@ -97,13 +88,13 @@
)
)
)
(get_local $4)
(get_local $3)
)
)
(block
(set_local $4
(set_local $3
(i32.sub
(get_local $4)
(get_local $3)
(i32.const 1)
)
)
@ -123,11 +114,12 @@
)
)
)
(get_local $5)
(get_local $4)
)
(func $~lib/string/String#startsWith (; 5 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/string/String#startsWith (; 5 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(if
(i32.eqz
(get_local $0)
@ -142,47 +134,30 @@
(unreachable)
)
)
(if
(i32.eqz
(get_local $1)
)
(set_local $1
(i32.const 48)
)
)
(if
(i32.gt_s
(i32.add
(tee_local $4
(tee_local $2
(i32.load
(get_local $1)
(i32.const 8)
)
)
(tee_local $3
(select
(tee_local $3
(select
(get_local $2)
(i32.const 0)
(i32.gt_s
(get_local $2)
(i32.const 0)
)
)
)
(tee_local $2
(i32.const 0)
(tee_local $1
(i32.load
(get_local $0)
)
)
(i32.lt_s
(get_local $3)
(get_local $2)
(i32.const 0)
(get_local $1)
)
)
)
)
(get_local $2)
(get_local $1)
)
(return
(i32.const 0)
@ -192,9 +167,8 @@
(call $~lib/internal/string/compareUnsafe
(get_local $0)
(get_local $3)
(get_local $1)
(i32.const 0)
(get_local $4)
(i32.const 8)
(get_local $2)
)
)
)
@ -204,8 +178,6 @@
(get_local $0)
(i32.const 0)
)
(i32.const 8)
(i32.const 0)
)
)
(func $std/array-access/stringArrayArrayPropertyAccess (; 7 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
@ -228,8 +200,6 @@
)
(i32.const 1)
)
(i32.const 8)
(i32.const 0)
)
)
)