mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 01:41:30 +00:00
Rework static memory segment creation; Fix stdlib gc hooks not marking own fields; Align everything to 8 bytes that might be touched by GC
This commit is contained in:
@ -3,9 +3,9 @@
|
||||
(type $Ii (func (param i64) (result i32)))
|
||||
(type $v (func))
|
||||
(memory $0 1)
|
||||
(data (i32.const 12) "\01\00\00\00a")
|
||||
(data (i32.const 20) "\02\00\00\00a\00b")
|
||||
(data (i32.const 28) "\03\00\00\00a\00b\00c")
|
||||
(data (i32.const 16) "\01\00\00\00a")
|
||||
(data (i32.const 24) "\02\00\00\00a\00b")
|
||||
(data (i32.const 32) "\03\00\00\00a\00b\00c")
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/hash/hashStr (; 0 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
@ -221,21 +221,21 @@
|
||||
(drop
|
||||
(call $std/hash/check
|
||||
(call $~lib/internal/hash/hashStr
|
||||
(i32.const 12)
|
||||
(i32.const 16)
|
||||
)
|
||||
)
|
||||
)
|
||||
(drop
|
||||
(call $std/hash/check
|
||||
(call $~lib/internal/hash/hashStr
|
||||
(i32.const 20)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
)
|
||||
(drop
|
||||
(call $std/hash/check
|
||||
(call $~lib/internal/hash/hashStr
|
||||
(i32.const 28)
|
||||
(i32.const 32)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user