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

@ -453,7 +453,7 @@
i32.store8
local.get $1
)
(func $~lib/runtime/ADJUSTOBLOCK (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/runtime/runtime.adjust (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const 1
i32.const 32
local.get $0
@ -465,10 +465,10 @@
i32.sub
i32.shl
)
(func $~lib/runtime/allocate (; 7 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/runtime/runtime.allocate (; 7 ;) (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
@ -1920,7 +1920,7 @@
local.get $0
call $~lib/allocator/arena/__mem_free
)
(func $~lib/runtime/register (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/runtime/runtime.register (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
global.get $~lib/memory/HEAP_BASE
@ -1929,8 +1929,8 @@
if
i32.const 0
i32.const 136
i32.const 153
i32.const 4
i32.const 145
i32.const 6
call $~lib/env/abort
unreachable
end
@ -1946,8 +1946,8 @@
if
i32.const 0
i32.const 136
i32.const 155
i32.const 4
i32.const 147
i32.const 6
call $~lib/env/abort
unreachable
end
@ -2033,7 +2033,7 @@
if
i32.const 0
i32.const 96
i32.const 447
i32.const 448
i32.const 8
call $~lib/env/abort
unreachable
@ -2087,7 +2087,7 @@
if
i32.const 0
i32.const 96
i32.const 451
i32.const 452
i32.const 8
call $~lib/env/abort
unreachable
@ -2182,7 +2182,7 @@
if
i32.const 0
i32.const 96
i32.const 463
i32.const 464
i32.const 8
call $~lib/env/abort
unreachable
@ -2245,17 +2245,13 @@
if
i32.const 0
i32.const 96
i32.const 472
i32.const 473
i32.const 4
call $~lib/env/abort
unreachable
end
block $~lib/runtime/ALLOCATE|inlined.0 (result i32)
local.get $4
local.set $5
local.get $5
call $~lib/runtime/allocate
end
local.get $4
call $~lib/runtime/runtime.allocate
local.set $7
local.get $7
local.get $3
@ -2263,13 +2259,9 @@
call $~lib/memory/memory.copy
local.get $3
call $~lib/memory/memory.free
block $~lib/runtime/REGISTER<~lib/string/String>|inlined.0 (result i32)
local.get $7
local.set $5
local.get $5
i32.const 1
call $~lib/runtime/register
end
local.get $7
i32.const 1
call $~lib/runtime/runtime.register
)
(func $~lib/util/string/compareImpl (; 14 ;) (type $FUNCSIG$iiiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)