mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-13 23:11:41 +00:00
Ensure consistent variable modifiers
'var' is a distinct local or mutable global, 'let' a shared local
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user