rtti & refactoring

This commit is contained in:
dcode
2019-04-06 20:17:48 +02:00
parent a9e4813798
commit e1070cee86
266 changed files with 23295 additions and 33925 deletions

View File

@ -5,9 +5,9 @@
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$didd (func (param i32 f64 f64) (result f64)))
(type $FUNCSIG$v (func))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\02\00\00\00(\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
(data (i32.const 8) "\10\00\00\00(\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $~lib/util/runtime/HEADER_SIZE i32 (i32.const 8))
@ -19,7 +19,6 @@
(global $optional-typeparameters/tDerived (mut i32) (i32.const 0))
(global $~lib/memory/HEAP_BASE i32 (i32.const 56))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $optional-typeparameters/testConcrete<i32,i32> (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
@ -148,9 +147,9 @@
if
i32.const 0
i32.const 16
i32.const 128
i32.const 131
i32.const 4
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
local.get $0
@ -165,9 +164,9 @@
if
i32.const 0
i32.const 16
i32.const 130
i32.const 133
i32.const 4
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
local.get $2
@ -181,7 +180,7 @@
if
i32.const 0
call $~lib/util/runtime/allocate
i32.const 1
i32.const 17
call $~lib/util/runtime/register
local.set $0
end
@ -198,7 +197,7 @@
if
i32.const 0
call $~lib/util/runtime/allocate
i32.const 3
i32.const 18
call $~lib/util/runtime/register
local.set $0
end