mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 09:51:33 +00:00
Update internal ABI to zero/sign-extend where necessary only (#87)
This commit is contained in:
@ -228,7 +228,10 @@
|
||||
(i32.const -1)
|
||||
(i32.const 255)
|
||||
)
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(get_local $1)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.store
|
||||
@ -2405,27 +2408,24 @@
|
||||
(return)
|
||||
)
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $3
|
||||
(i32.le_u
|
||||
(i32.add
|
||||
(get_local $1)
|
||||
(get_local $2)
|
||||
)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(get_local $3)
|
||||
(if (result i32)
|
||||
(tee_local $3
|
||||
(i32.le_u
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
(get_local $2)
|
||||
)
|
||||
(get_local $1)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
(get_local $3)
|
||||
(i32.le_u
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $2)
|
||||
)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $~lib/memory/copy_memory
|
||||
|
Reference in New Issue
Block a user