some cleanup

This commit is contained in:
dcode
2019-04-01 22:23:11 +02:00
parent 7b99e44343
commit 1ada854830
74 changed files with 6072 additions and 3909 deletions

View File

@ -126,7 +126,7 @@
local.get $1
call $~lib/array/Array<i32>#__unchecked_get
)
(func $~lib/runtime/ADJUSTOBLOCK (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/runtime/runtime.adjust (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const 1
i32.const 32
local.get $0
@ -222,10 +222,10 @@
call $~lib/allocator/arena/__mem_allocate
return
)
(func $~lib/runtime/allocate (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/runtime/runtime.allocate (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
local.get $0
call $~lib/runtime/ADJUSTOBLOCK
call $~lib/runtime/runtime.adjust
call $~lib/memory/memory.allocate
local.set $1
local.get $1
@ -247,7 +247,7 @@
(func $~lib/collector/dummy/__ref_register (; 15 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $~lib/runtime/register (; 16 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/runtime/runtime.register (; 16 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
global.get $~lib/memory/HEAP_BASE
@ -256,8 +256,8 @@
if
i32.const 0
i32.const 296
i32.const 153
i32.const 4
i32.const 145
i32.const 6
call $~lib/env/abort
unreachable
end
@ -273,8 +273,8 @@
if
i32.const 0
i32.const 296
i32.const 155
i32.const 4
i32.const 147
i32.const 6
call $~lib/env/abort
unreachable
end
@ -1723,7 +1723,7 @@
end
end
)
(func $~lib/runtime/makeArray (; 21 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/runtime/runtime.makeArray (; 21 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
@ -1731,9 +1731,9 @@
(local $8 i32)
(local $9 i32)
i32.const 16
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
local.get $1
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $4
local.get $0
local.get $2
@ -1742,9 +1742,9 @@
local.get $0
local.get $2
i32.shl
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
i32.const 1
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $6
local.get $4
local.tee $7
@ -1794,9 +1794,9 @@
i32.eqz
if
i32.const 0
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
i32.const 7
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $0
end
local.get $0
@ -1859,9 +1859,9 @@
i32.eqz
if
i32.const 0
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
i32.const 10
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $0
end
local.get $0
@ -2058,7 +2058,7 @@
i32.const 2
i32.const 0
i32.const 0
call $~lib/runtime/makeArray
call $~lib/runtime/runtime.makeArray
local.set $0
local.get $0
i32.load offset=4
@ -2151,7 +2151,7 @@
i32.const 5
i32.const 2
i32.const 0
call $~lib/runtime/makeArray
call $~lib/runtime/runtime.makeArray
local.set $1
local.get $1
i32.load offset=4
@ -2242,7 +2242,7 @@
i32.const 8
i32.const 2
i32.const 0
call $~lib/runtime/makeArray
call $~lib/runtime/runtime.makeArray
local.set $0
local.get $0
i32.load offset=4
@ -2301,7 +2301,7 @@
i32.const 11
i32.const 2
i32.const 0
call $~lib/runtime/makeArray
call $~lib/runtime/runtime.makeArray
local.set $1
local.get $1
i32.load offset=4