mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 20:21:48 +00:00
llvm-like naming of __heap_base, definition fixes, update examples
This commit is contained in:
@ -28,8 +28,8 @@
|
||||
(global $~lib/rt/pure/END (mut i32) (i32.const 0))
|
||||
(global $~lib/rt/pure/ROOTS (mut i32) (i32.const 0))
|
||||
(global $~lib/ASC_SHRINK_LEVEL i32 (i32.const 0))
|
||||
(global $~lib/rt/RTTI_BASE i32 (i32.const 272))
|
||||
(global $~lib/heap/HEAP_BASE i32 (i32.const 308))
|
||||
(global $~lib/rt/__rtti_base i32 (i32.const 272))
|
||||
(global $~lib/heap/__heap_base i32 (i32.const 308))
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/rt/pure/increment (; 5 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
@ -83,7 +83,7 @@
|
||||
)
|
||||
(func $~lib/rt/pure/__retain (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
global.get $~lib/heap/HEAP_BASE
|
||||
global.get $~lib/heap/__heap_base
|
||||
i32.gt_u
|
||||
if
|
||||
local.get $0
|
||||
@ -706,7 +706,7 @@
|
||||
)
|
||||
(func $~lib/rt/__typeinfo (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
global.get $~lib/rt/RTTI_BASE
|
||||
global.get $~lib/rt/__rtti_base
|
||||
local.set $1
|
||||
local.get $0
|
||||
local.get $1
|
||||
@ -892,7 +892,7 @@
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
(local $9 i32)
|
||||
global.get $~lib/heap/HEAP_BASE
|
||||
global.get $~lib/heap/__heap_base
|
||||
i32.const 15
|
||||
i32.add
|
||||
i32.const 15
|
||||
@ -3133,7 +3133,7 @@
|
||||
)
|
||||
(func $~lib/rt/pure/__release (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
global.get $~lib/heap/HEAP_BASE
|
||||
global.get $~lib/heap/__heap_base
|
||||
i32.gt_u
|
||||
if
|
||||
local.get $0
|
||||
@ -3307,7 +3307,7 @@
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
local.get $0
|
||||
global.get $~lib/heap/HEAP_BASE
|
||||
global.get $~lib/heap/__heap_base
|
||||
i32.lt_u
|
||||
if
|
||||
return
|
||||
|
Reference in New Issue
Block a user