mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 00:41:32 +00:00
bleeding edge binaryen
This commit is contained in:
@ -810,14 +810,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
|
||||
@ -882,7 +882,7 @@
|
||||
end
|
||||
i32.const 7920
|
||||
i32.const 9504
|
||||
current_memory
|
||||
memory.size
|
||||
i32.const 16
|
||||
i32.shl
|
||||
call $~lib/rt/tlsf/addMemory
|
||||
@ -1046,7 +1046,7 @@
|
||||
)
|
||||
(func $~lib/rt/tlsf/growMemory (; 11 ;) (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
|
||||
@ -1060,12 +1060,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
|
||||
@ -1076,7 +1076,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