mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 09:51:33 +00:00
llvm-like naming of __heap_base, definition fixes, update examples
This commit is contained in:
@ -13,12 +13,12 @@
|
||||
(elem (i32.const 0) $null)
|
||||
(global $rt/flags/VALUE_ALIGN_REF i32 (i32.const 128))
|
||||
(global $rt/flags/KEY_ALIGN_REF i32 (i32.const 65536))
|
||||
(global $~lib/rt/RTTI_BASE i32 (i32.const 144))
|
||||
(global $~lib/rt/__rtti_base i32 (i32.const 144))
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/rt/__typeinfo (; 1 ;) (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
|
||||
|
@ -21,8 +21,8 @@
|
||||
(global $rt/instanceof/nullCat (mut i32) (i32.const 0))
|
||||
(global $rt/instanceof/nullBlackcat (mut i32) (i32.const 0))
|
||||
(global $~lib/started (mut i32) (i32.const 0))
|
||||
(global $~lib/rt/RTTI_BASE i32 (i32.const 56))
|
||||
(global $~lib/heap/HEAP_BASE i32 (i32.const 108))
|
||||
(global $~lib/rt/__rtti_base i32 (i32.const 56))
|
||||
(global $~lib/heap/__heap_base i32 (i32.const 108))
|
||||
(export "memory" (memory $0))
|
||||
(export "main" (func $rt/instanceof/main))
|
||||
(func $~lib/rt/stub/__alloc (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
@ -174,7 +174,7 @@
|
||||
i32.sub
|
||||
i32.load offset=8
|
||||
local.set $2
|
||||
global.get $~lib/rt/RTTI_BASE
|
||||
global.get $~lib/rt/__rtti_base
|
||||
local.set $3
|
||||
local.get $2
|
||||
local.get $3
|
||||
@ -205,7 +205,7 @@
|
||||
)
|
||||
(func $start:rt/instanceof (; 7 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
global.get $~lib/heap/HEAP_BASE
|
||||
global.get $~lib/heap/__heap_base
|
||||
i32.const 15
|
||||
i32.add
|
||||
i32.const 15
|
||||
|
Reference in New Issue
Block a user