Initial GC integration (#196)

This commit is contained in:
Daniel Wirtz
2018-08-02 18:23:02 +02:00
committed by GitHub
parent 671121bf70
commit dc0f271fc2
139 changed files with 7370 additions and 5016 deletions

View File

@ -8,7 +8,7 @@
(data (i32.const 28) "\03\00\00\00a\00b\00c")
(export "memory" (memory $0))
(start $start)
(func $~lib/internal/hash/hashStr (; 0 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/hash/hashStr (; 0 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -56,10 +56,10 @@
)
(get_local $2)
)
(func $std/hash/check (; 1 ;) (type $ii) (param $0 i32) (result i32)
(func $std/hash/check (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
(i32.const 1)
)
(func $~lib/internal/hash/hash32 (; 2 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/hash/hash32 (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
(i32.mul
(i32.xor
(i32.mul
@ -104,7 +104,7 @@
(i32.const 16777619)
)
)
(func $~lib/internal/hash/hash64 (; 3 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/hash/hash64 (; 3 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
(local $1 i32)
(i32.mul
(i32.xor
@ -203,7 +203,7 @@
(i32.const 16777619)
)
)
(func $start (; 4 ;) (type $v)
(func $start (; 4 ;) (; has Stack IR ;) (type $v)
(drop
(call $std/hash/check
(call $~lib/internal/hash/hashStr