mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 01:11:32 +00:00
bleeding edge binaryen
This commit is contained in:
@ -649,14 +649,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
|
||||
@ -721,7 +721,7 @@
|
||||
end
|
||||
i32.const 608
|
||||
i32.const 2192
|
||||
current_memory
|
||||
memory.size
|
||||
i32.const 16
|
||||
i32.shl
|
||||
call $~lib/rt/tlsf/addMemory
|
||||
@ -885,7 +885,7 @@
|
||||
)
|
||||
(func $~lib/rt/tlsf/growMemory (; 12 ;) (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
|
||||
@ -899,12 +899,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
|
||||
@ -915,7 +915,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