llvm-like naming of __heap_base, definition fixes, update examples

This commit is contained in:
dcode
2019-06-01 01:14:04 +02:00
parent b19005f5bb
commit e65d875ebc
81 changed files with 3135 additions and 1995 deletions

View File

@ -81,7 +81,7 @@
(global $std/operator-overloading/aii1 (mut i32) (i32.const 0))
(global $std/operator-overloading/aii2 (mut i32) (i32.const 0))
(global $std/operator-overloading/aii (mut i32) (i32.const 0))
(global $~lib/heap/HEAP_BASE i32 (i32.const 80))
(global $~lib/heap/__heap_base i32 (i32.const 80))
(export "memory" (memory $0))
(start $start)
(func $~lib/rt/stub/__alloc (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
@ -2129,7 +2129,7 @@
(local $21 i32)
(local $22 i32)
(local $23 i32)
global.get $~lib/heap/HEAP_BASE
global.get $~lib/heap/__heap_base
i32.const 15
i32.add
i32.const 15