mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-31 22:22:13 +00:00
some cleanup
This commit is contained in:
@@ -284,7 +284,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $~lib/runtime/ADJUSTOBLOCK (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/runtime/runtime.adjust (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
local.get $0
|
||||
@@ -380,10 +380,10 @@
|
||||
call $~lib/allocator/arena/__mem_allocate
|
||||
return
|
||||
)
|
||||
(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
|
||||
@@ -396,7 +396,7 @@
|
||||
global.get $~lib/runtime/HEADER_SIZE
|
||||
i32.add
|
||||
)
|
||||
(func $~lib/runtime/register (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/runtime/runtime.register (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
@@ -405,8 +405,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 48
|
||||
i32.const 153
|
||||
i32.const 4
|
||||
i32.const 145
|
||||
i32.const 6
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@@ -422,8 +422,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 48
|
||||
i32.const 155
|
||||
i32.const 4
|
||||
i32.const 147
|
||||
i32.const 6
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@@ -449,9 +449,9 @@
|
||||
local.get $1
|
||||
else
|
||||
i32.const 16
|
||||
call $~lib/runtime/allocate
|
||||
call $~lib/runtime/runtime.allocate
|
||||
i32.const 2
|
||||
call $~lib/runtime/register
|
||||
call $~lib/runtime/runtime.register
|
||||
end
|
||||
local.set $3
|
||||
i32.const 2
|
||||
@@ -461,9 +461,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 $3
|
||||
end
|
||||
local.get $3
|
||||
|
Reference in New Issue
Block a user