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

@ -88,7 +88,7 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/runtime/ADJUSTOBLOCK (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/runtime/runtime.adjust (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const 1
i32.const 32
local.get $0
@ -184,10 +184,10 @@
call $~lib/allocator/arena/__mem_allocate
return
)
(func $~lib/runtime/allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/runtime/runtime.allocate (; 4 ;) (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
@ -200,7 +200,7 @@
global.get $~lib/runtime/HEADER_SIZE
i32.add
)
(func $~lib/runtime/register (; 5 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/runtime/runtime.register (; 5 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
global.get $~lib/memory/HEAP_BASE
@ -209,8 +209,8 @@
if
i32.const 0
i32.const 16
i32.const 153
i32.const 4
i32.const 145
i32.const 6
call $~lib/env/abort
unreachable
end
@ -226,8 +226,8 @@
if
i32.const 0
i32.const 16
i32.const 155
i32.const 4
i32.const 147
i32.const 6
call $~lib/env/abort
unreachable
end
@ -241,9 +241,9 @@
i32.eqz
if
i32.const 8
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
i32.const 1
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $0
end
local.get $0
@ -1814,9 +1814,9 @@
i32.eqz
if
i32.const 8
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
i32.const 3
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $0
end
local.get $0
@ -1832,9 +1832,9 @@
i32.eqz
if
i32.const 8
call $~lib/runtime/allocate
call $~lib/runtime/runtime.allocate
i32.const 4
call $~lib/runtime/register
call $~lib/runtime/runtime.register
local.set $0
end
local.get $0