Ensure consistent variable modifiers

'var' is a distinct local or mutable global, 'let' a shared local
This commit is contained in:
dcodeIO
2018-03-13 02:32:10 +01:00
parent 7ee6e1cf7b
commit 23a7db4dc3
33 changed files with 736 additions and 570 deletions

View File

@ -2164,7 +2164,7 @@
(block
(if
(i32.le_s
(tee_local $3
(tee_local $4
(select
(i32.shl
(get_local $2)
@ -2188,10 +2188,10 @@
(unreachable)
)
)
(set_local $4
(set_local $3
(call "$(lib)/allocator/arena/allocate_memory"
(i32.shl
(get_local $3)
(get_local $4)
(i32.const 2)
)
)
@ -2203,7 +2203,7 @@
(block
(call "$(lib)/memory/move_memory"
(i32.add
(get_local $4)
(get_local $3)
(i32.const 4)
)
(i32.load
@ -2223,11 +2223,11 @@
)
(i32.store
(get_local $0)
(get_local $4)
(get_local $3)
)
(i32.store offset=4
(get_local $0)
(get_local $3)
(get_local $4)
)
)
(call "$(lib)/memory/move_memory"
@ -2254,7 +2254,7 @@
)
(i32.store offset=8
(get_local $0)
(tee_local $0
(tee_local $3
(i32.add
(i32.load offset=8
(get_local $0)
@ -2263,7 +2263,7 @@
)
)
)
(get_local $0)
(get_local $3)
)
(func "$(lib)/memory/set_memory" (; 11 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i64)