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,7 +1,7 @@
(module
(type $ifi (func (param i32 f32) (result i32)))
(type $ii (func (param i32) (result i32)))
(type $v (func))
(type $FUNCSIG$i (func (result i32)))
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
(global $std/new/aClass (mut i32) (i32.const 0))
@ -93,36 +93,25 @@
)
(get_local $1)
)
(func $~lib/memory/memory.allocate (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/memory/memory.allocate (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
(call $~lib/allocator/arena/__memory_allocate
(get_local $0)
(i32.const 8)
)
)
(func $std/new/AClass#constructor (; 2 ;) (; has Stack IR ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
(local $2 i32)
(if
(i32.eqz
(tee_local $2
(get_local $0)
)
)
(block
(i32.store
(tee_local $0
(call $~lib/memory/memory.allocate
(i32.const 8)
)
)
(i32.const 1)
)
(f32.store offset=4
(get_local $0)
(f32.const 2)
)
(func $std/new/AClass#constructor (; 2 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(i32.store
(tee_local $0
(call $~lib/memory/memory.allocate)
)
(i32.const 1)
)
(f32.store offset=4
(get_local $0)
(f32.const 2)
)
(i32.store
(get_local $2)
(i32.const 0)
(i32.add
(i32.load
(get_local $0)
@ -132,7 +121,7 @@
)
(f32.store offset=4
(get_local $0)
(get_local $1)
(f32.const 3)
)
(get_local $0)
)
@ -144,10 +133,7 @@
(get_global $~lib/allocator/arena/startOffset)
)
(set_global $std/new/aClass
(call $std/new/AClass#constructor
(i32.const 0)
(f32.const 3)
)
(call $std/new/AClass#constructor)
)
)
)