directize

This commit is contained in:
dcode
2019-04-02 10:12:57 +02:00
parent 1ada854830
commit 3bcd32f3ba
91 changed files with 4225 additions and 4615 deletions

View File

@ -20,12 +20,12 @@
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $std/string-utf8/str (mut i32) (i32.const 16))
(global $~lib/runtime/HEADER_SIZE i32 (i32.const 8))
(global $~lib/util/runtime/HEADER_SIZE i32 (i32.const 8))
(global $std/string-utf8/len (mut i32) (i32.const 0))
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
(global $std/string-utf8/ptr (mut i32) (i32.const 0))
(global $~lib/runtime/HEADER_MAGIC i32 (i32.const -1520547049))
(global $~lib/util/runtime/HEADER_MAGIC i32 (i32.const -1520547049))
(global $~lib/ASC_NO_ASSERT i32 (i32.const 0))
(global $~lib/memory/HEAP_BASE i32 (i32.const 228))
(export "memory" (memory $0))
@ -33,7 +33,7 @@
(start $start)
(func $~lib/string/String#get:length (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
global.get $~lib/runtime/HEADER_SIZE
global.get $~lib/util/runtime/HEADER_SIZE
i32.sub
i32.load offset=4
i32.const 1
@ -457,7 +457,7 @@
i32.const 1
i32.const 32
local.get $0
global.get $~lib/runtime/HEADER_SIZE
global.get $~lib/util/runtime/HEADER_SIZE
i32.add
i32.const 1
i32.sub
@ -472,13 +472,13 @@
call $~lib/memory/memory.allocate
local.set $1
local.get $1
global.get $~lib/runtime/HEADER_MAGIC
global.get $~lib/util/runtime/HEADER_MAGIC
i32.store
local.get $1
local.get $0
i32.store offset=4
local.get $1
global.get $~lib/runtime/HEADER_SIZE
global.get $~lib/util/runtime/HEADER_SIZE
i32.add
)
(func $~lib/util/memory/memcpy (; 8 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
@ -1929,24 +1929,24 @@
if
i32.const 0
i32.const 136
i32.const 145
i32.const 102
i32.const 6
call $~lib/env/abort
unreachable
end
local.get $0
global.get $~lib/runtime/HEADER_SIZE
global.get $~lib/util/runtime/HEADER_SIZE
i32.sub
local.set $2
local.get $2
i32.load
global.get $~lib/runtime/HEADER_MAGIC
global.get $~lib/util/runtime/HEADER_MAGIC
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 147
i32.const 104
i32.const 6
call $~lib/env/abort
unreachable
@ -2033,7 +2033,7 @@
if
i32.const 0
i32.const 96
i32.const 448
i32.const 449
i32.const 8
call $~lib/env/abort
unreachable
@ -2087,7 +2087,7 @@
if
i32.const 0
i32.const 96
i32.const 452
i32.const 453
i32.const 8
call $~lib/env/abort
unreachable
@ -2182,7 +2182,7 @@
if
i32.const 0
i32.const 96
i32.const 464
i32.const 465
i32.const 8
call $~lib/env/abort
unreachable
@ -2245,7 +2245,7 @@
if
i32.const 0
i32.const 96
i32.const 473
i32.const 474
i32.const 4
call $~lib/env/abort
unreachable