mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 02:11:31 +00:00
bleeding edge binaryen
This commit is contained in:
@ -860,14 +860,14 @@
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
i32.const 1
|
||||
current_memory
|
||||
memory.size
|
||||
local.tee $0
|
||||
i32.gt_s
|
||||
if (result i32)
|
||||
i32.const 1
|
||||
local.get $0
|
||||
i32.sub
|
||||
grow_memory
|
||||
memory.grow
|
||||
i32.const 0
|
||||
i32.lt_s
|
||||
else
|
||||
@ -932,7 +932,7 @@
|
||||
end
|
||||
i32.const 7024
|
||||
i32.const 8608
|
||||
current_memory
|
||||
memory.size
|
||||
i32.const 16
|
||||
i32.shl
|
||||
call $~lib/rt/tlsf/addMemory
|
||||
@ -1096,7 +1096,7 @@
|
||||
)
|
||||
(func $~lib/rt/tlsf/growMemory (; 14 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i32)
|
||||
current_memory
|
||||
memory.size
|
||||
local.tee $2
|
||||
local.get $1
|
||||
i32.const 65535
|
||||
@ -1110,12 +1110,12 @@
|
||||
local.get $1
|
||||
i32.gt_s
|
||||
select
|
||||
grow_memory
|
||||
memory.grow
|
||||
i32.const 0
|
||||
i32.lt_s
|
||||
if
|
||||
local.get $1
|
||||
grow_memory
|
||||
memory.grow
|
||||
i32.const 0
|
||||
i32.lt_s
|
||||
if
|
||||
@ -1126,7 +1126,7 @@
|
||||
local.get $2
|
||||
i32.const 16
|
||||
i32.shl
|
||||
current_memory
|
||||
memory.size
|
||||
i32.const 16
|
||||
i32.shl
|
||||
call $~lib/rt/tlsf/addMemory
|
||||
|
Reference in New Issue
Block a user