mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-31 22:22:13 +00:00
llvm-like naming of __heap_base, definition fixes, update examples
This commit is contained in:
@@ -30,8 +30,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 300))
|
||||
(global $~lib/rt/__rtti_base i32 (i32.const 272))
|
||||
(global $~lib/heap/__heap_base i32 (i32.const 300))
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/rt/pure/increment (; 5 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
@@ -85,7 +85,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
|
||||
@@ -712,7 +712,7 @@
|
||||
)
|
||||
(func $~lib/rt/__typeinfo (; 11 ;) (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
|
||||
@@ -898,7 +898,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
|
||||
@@ -3139,7 +3139,7 @@
|
||||
)
|
||||
(func $~lib/rt/pure/__release (; 26 ;) (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
|
||||
@@ -3314,7 +3314,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