mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 12:41:50 +00:00
llvm-like naming of __heap_base, definition fixes, update examples
This commit is contained in:
@ -208,8 +208,8 @@
|
||||
(global $~lib/builtins/f64.EPSILON f64 (f64.const 2.220446049250313e-16))
|
||||
(global $~lib/builtins/f64.MAX_VALUE f64 (f64.const 1797693134862315708145274e284))
|
||||
(global $~lib/started (mut i32) (i32.const 0))
|
||||
(global $~lib/rt/RTTI_BASE i32 (i32.const 7032))
|
||||
(global $~lib/heap/HEAP_BASE i32 (i32.const 7100))
|
||||
(global $~lib/rt/__rtti_base i32 (i32.const 7032))
|
||||
(global $~lib/heap/__heap_base i32 (i32.const 7100))
|
||||
(export "memory" (memory $0))
|
||||
(export "getString" (func $std/string/getString))
|
||||
(export "main" (func $std/string/main))
|
||||
@ -288,7 +288,7 @@
|
||||
)
|
||||
(func $~lib/rt/pure/__retain (; 8 ;) (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
|
||||
@ -911,7 +911,7 @@
|
||||
)
|
||||
(func $~lib/rt/__typeinfo (; 12 ;) (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
|
||||
@ -1097,7 +1097,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
|
||||
@ -3338,7 +3338,7 @@
|
||||
)
|
||||
(func $~lib/rt/pure/__release (; 27 ;) (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
|
||||
@ -12315,7 +12315,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