unify mem/ref interface

This commit is contained in:
dcode
2019-03-27 17:21:52 +01:00
parent a3095478a3
commit e36722f2e6
66 changed files with 3501 additions and 3490 deletions

View File

@ -25,7 +25,7 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/memory/memory.allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__mem_allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -97,7 +97,7 @@
i32.clz
i32.sub
i32.shl
call $~lib/memory/memory.allocate
call $~lib/allocator/arena/__mem_allocate
local.tee $1
i32.const -1520547049
i32.store
@ -116,7 +116,7 @@
if
i32.const 0
i32.const 16
i32.const 151
i32.const 149
i32.const 4
call $~lib/env/abort
unreachable
@ -131,7 +131,7 @@
if
i32.const 0
i32.const 16
i32.const 153
i32.const 151
i32.const 4
call $~lib/env/abort
unreachable
@ -217,13 +217,13 @@
local.get $0
global.set $constructor/justFieldNoInit
i32.const 0
call $~lib/memory/memory.allocate
call $~lib/allocator/arena/__mem_allocate
global.set $constructor/ctorReturns
block $__inlined_func$constructor/CtorConditionallyReturns#constructor (result i32)
global.get $constructor/b
if
i32.const 0
call $~lib/memory/memory.allocate
call $~lib/allocator/arena/__mem_allocate
br $__inlined_func$constructor/CtorConditionallyReturns#constructor
end
i32.const 0