aliased makeCallInline, unmanaged rt alloc

This commit is contained in:
dcode
2019-03-19 14:40:37 +01:00
parent d42ef51cf0
commit 74789c9c1e
51 changed files with 1992 additions and 1655 deletions

View File

@ -148,11 +148,7 @@
global.get $~lib/runtime/HEADER_SIZE
i32.add
)
(func $~lib/runtime/ALLOCATE (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
call $~lib/runtime/doAllocate
)
(func $~lib/runtime/assertUnregistered (; 5 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/runtime/assertUnregistered (; 4 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
global.get $~lib/memory/HEAP_BASE
i32.gt_u
@ -160,7 +156,7 @@
if
i32.const 0
i32.const 16
i32.const 192
i32.const 199
i32.const 2
call $~lib/env/abort
unreachable
@ -175,13 +171,13 @@
if
i32.const 0
i32.const 16
i32.const 193
i32.const 200
i32.const 2
call $~lib/env/abort
unreachable
end
)
(func $~lib/runtime/doRegister (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/runtime/doRegister (; 5 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
call $~lib/runtime/assertUnregistered
local.get $0
@ -191,7 +187,7 @@
i32.store
local.get $0
)
(func $~lib/memory/memory.fill (; 7 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/memory/memory.fill (; 6 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i64)
@ -447,7 +443,7 @@
end
end
)
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
@ -461,7 +457,7 @@
call $~lib/env/abort
unreachable
end
block $~lib/runtime/ALLOCATE|inlined.0 (result i32)
block $~lib/runtime/ALLOCATE|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
@ -480,7 +476,7 @@
call $~lib/runtime/doRegister
end
)
(func $~lib/set/Set<i8>#clear (; 9 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<i8>#clear (; 8 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -506,15 +502,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i8>#constructor (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i8>#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<i8>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.0 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 1
@ -545,14 +545,14 @@
call $~lib/set/Set<i8>#clear
local.get $0
)
(func $~lib/util/hash/hash8 (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/util/hash/hash8 (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const -2128831035
local.get $0
i32.xor
i32.const 16777619
i32.mul
)
(func $~lib/set/Set<i8>#find (; 12 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/set/Set<i8>#find (; 11 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -607,7 +607,7 @@
end
i32.const 0
)
(func $~lib/set/Set<i8>#has (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i8>#has (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
@ -626,7 +626,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<i8>#rehash (; 14 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i8>#rehash (; 13 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -756,7 +756,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<i8>#add (; 15 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i8>#add (; 14 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -858,11 +858,11 @@
i32.store
end
)
(func $~lib/set/Set<i8>#get:size (; 16 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i8>#get:size (; 15 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i8>#delete (; 17 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i8>#delete (; 16 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -939,7 +939,7 @@
end
i32.const 1
)
(func $std/set/test<i8> (; 18 ;) (type $FUNCSIG$v)
(func $std/set/test<i8> (; 17 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
i32.const 0
@ -1222,7 +1222,7 @@
unreachable
end
)
(func $~lib/set/Set<u8>#clear (; 19 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<u8>#clear (; 18 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -1248,15 +1248,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u8>#constructor (; 20 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u8>#constructor (; 19 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<u8>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.2 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 4
@ -1287,7 +1291,7 @@
call $~lib/set/Set<u8>#clear
local.get $0
)
(func $~lib/set/Set<u8>#find (; 21 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/set/Set<u8>#find (; 20 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -1340,7 +1344,7 @@
end
i32.const 0
)
(func $~lib/set/Set<u8>#has (; 22 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u8>#has (; 21 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
@ -1357,7 +1361,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<u8>#rehash (; 23 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u8>#rehash (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -1487,7 +1491,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<u8>#add (; 24 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u8>#add (; 23 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -1587,11 +1591,11 @@
i32.store
end
)
(func $~lib/set/Set<u8>#get:size (; 25 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u8>#get:size (; 24 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u8>#delete (; 26 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u8>#delete (; 25 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -1666,7 +1670,7 @@
end
i32.const 1
)
(func $std/set/test<u8> (; 27 ;) (type $FUNCSIG$v)
(func $std/set/test<u8> (; 26 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
i32.const 0
@ -1949,7 +1953,7 @@
unreachable
end
)
(func $~lib/set/Set<i16>#clear (; 28 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<i16>#clear (; 27 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -1975,15 +1979,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i16>#constructor (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i16>#constructor (; 28 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<i16>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.3 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 5
@ -2014,7 +2022,7 @@
call $~lib/set/Set<i16>#clear
local.get $0
)
(func $~lib/util/hash/hash16 (; 30 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/util/hash/hash16 (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const -2128831035
local.set $1
@ -2036,7 +2044,7 @@
local.set $1
local.get $1
)
(func $~lib/set/Set<i16>#find (; 31 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/set/Set<i16>#find (; 30 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -2091,7 +2099,7 @@
end
i32.const 0
)
(func $~lib/set/Set<i16>#has (; 32 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i16>#has (; 31 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
@ -2110,7 +2118,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<i16>#rehash (; 33 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i16>#rehash (; 32 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2240,7 +2248,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<i16>#add (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i16>#add (; 33 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2342,11 +2350,11 @@
i32.store
end
)
(func $~lib/set/Set<i16>#get:size (; 35 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i16>#get:size (; 34 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i16>#delete (; 36 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i16>#delete (; 35 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2423,7 +2431,7 @@
end
i32.const 1
)
(func $std/set/test<i16> (; 37 ;) (type $FUNCSIG$v)
(func $std/set/test<i16> (; 36 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
i32.const 0
@ -2706,7 +2714,7 @@
unreachable
end
)
(func $~lib/set/Set<u16>#clear (; 38 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<u16>#clear (; 37 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -2732,15 +2740,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u16>#constructor (; 39 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u16>#constructor (; 38 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<u16>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.4 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 6
@ -2771,7 +2783,7 @@
call $~lib/set/Set<u16>#clear
local.get $0
)
(func $~lib/set/Set<u16>#find (; 40 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/set/Set<u16>#find (; 39 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -2824,7 +2836,7 @@
end
i32.const 0
)
(func $~lib/set/Set<u16>#has (; 41 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u16>#has (; 40 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
@ -2841,7 +2853,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<u16>#rehash (; 42 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u16>#rehash (; 41 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2971,7 +2983,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<u16>#add (; 43 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u16>#add (; 42 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3071,11 +3083,11 @@
i32.store
end
)
(func $~lib/set/Set<u16>#get:size (; 44 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u16>#get:size (; 43 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u16>#delete (; 45 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u16>#delete (; 44 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3150,7 +3162,7 @@
end
i32.const 1
)
(func $std/set/test<u16> (; 46 ;) (type $FUNCSIG$v)
(func $std/set/test<u16> (; 45 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
i32.const 0
@ -3433,7 +3445,7 @@
unreachable
end
)
(func $~lib/set/Set<i32>#clear (; 47 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<i32>#clear (; 46 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -3459,15 +3471,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i32>#constructor (; 48 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i32>#constructor (; 47 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<i32>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.5 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 7
@ -3498,7 +3514,7 @@
call $~lib/set/Set<i32>#clear
local.get $0
)
(func $~lib/util/hash/hash32 (; 49 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/util/hash/hash32 (; 48 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const -2128831035
local.set $1
@ -3540,7 +3556,7 @@
local.set $1
local.get $1
)
(func $~lib/set/Set<i32>#find (; 50 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/set/Set<i32>#find (; 49 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -3591,7 +3607,7 @@
end
i32.const 0
)
(func $~lib/set/Set<i32>#has (; 51 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i32>#has (; 50 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
@ -3606,7 +3622,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<i32>#rehash (; 52 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i32>#rehash (; 51 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3736,7 +3752,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<i32>#add (; 53 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i32>#add (; 52 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3834,11 +3850,11 @@
i32.store
end
)
(func $~lib/set/Set<i32>#get:size (; 54 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i32>#get:size (; 53 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i32>#delete (; 55 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i32>#delete (; 54 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3911,7 +3927,7 @@
end
i32.const 1
)
(func $std/set/test<i32> (; 56 ;) (type $FUNCSIG$v)
(func $std/set/test<i32> (; 55 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
i32.const 0
@ -4194,7 +4210,7 @@
unreachable
end
)
(func $~lib/set/Set<u32>#clear (; 57 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<u32>#clear (; 56 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -4220,15 +4236,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u32>#constructor (; 58 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u32>#constructor (; 57 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<u32>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.6 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 8
@ -4259,7 +4279,7 @@
call $~lib/set/Set<u32>#clear
local.get $0
)
(func $~lib/set/Set<u32>#find (; 59 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/set/Set<u32>#find (; 58 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -4310,7 +4330,7 @@
end
i32.const 0
)
(func $~lib/set/Set<u32>#has (; 60 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u32>#has (; 59 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
@ -4325,7 +4345,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<u32>#rehash (; 61 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u32>#rehash (; 60 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -4455,7 +4475,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<u32>#add (; 62 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u32>#add (; 61 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -4553,11 +4573,11 @@
i32.store
end
)
(func $~lib/set/Set<u32>#get:size (; 63 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u32>#get:size (; 62 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u32>#delete (; 64 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u32>#delete (; 63 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -4630,7 +4650,7 @@
end
i32.const 1
)
(func $std/set/test<u32> (; 65 ;) (type $FUNCSIG$v)
(func $std/set/test<u32> (; 64 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
i32.const 0
@ -4913,7 +4933,7 @@
unreachable
end
)
(func $~lib/set/Set<i64>#clear (; 66 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<i64>#clear (; 65 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -4939,15 +4959,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i64>#constructor (; 67 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i64>#constructor (; 66 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<i64>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.7 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 9
@ -4978,7 +5002,7 @@
call $~lib/set/Set<i64>#clear
local.get $0
)
(func $~lib/util/hash/hash64 (; 68 ;) (type $FUNCSIG$ij) (param $0 i64) (result i32)
(func $~lib/util/hash/hash64 (; 67 ;) (type $FUNCSIG$ij) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -5066,7 +5090,7 @@
local.set $3
local.get $3
)
(func $~lib/set/Set<i64>#find (; 69 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
(func $~lib/set/Set<i64>#find (; 68 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -5117,7 +5141,7 @@
end
i32.const 0
)
(func $~lib/set/Set<i64>#has (; 70 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/set/Set<i64>#has (; 69 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
local.get $0
local.get $1
@ -5132,7 +5156,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<i64>#rehash (; 71 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<i64>#rehash (; 70 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -5263,7 +5287,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<i64>#add (; 72 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(func $~lib/set/Set<i64>#add (; 71 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i64)
(local $3 i32)
(local $4 i32)
@ -5362,11 +5386,11 @@
i32.store
end
)
(func $~lib/set/Set<i64>#get:size (; 73 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<i64>#get:size (; 72 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i64>#delete (; 74 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/set/Set<i64>#delete (; 73 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
(local $3 i32)
(local $4 i32)
@ -5440,7 +5464,7 @@
end
i32.const 1
)
(func $std/set/test<i64> (; 75 ;) (type $FUNCSIG$v)
(func $std/set/test<i64> (; 74 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i64)
i32.const 0
@ -5723,7 +5747,7 @@
unreachable
end
)
(func $~lib/set/Set<u64>#clear (; 76 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<u64>#clear (; 75 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -5749,15 +5773,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u64>#constructor (; 77 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u64>#constructor (; 76 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<u64>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.8 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 10
@ -5788,7 +5816,7 @@
call $~lib/set/Set<u64>#clear
local.get $0
)
(func $~lib/set/Set<u64>#find (; 78 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
(func $~lib/set/Set<u64>#find (; 77 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -5839,7 +5867,7 @@
end
i32.const 0
)
(func $~lib/set/Set<u64>#has (; 79 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/set/Set<u64>#has (; 78 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
local.get $0
local.get $1
@ -5854,7 +5882,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<u64>#rehash (; 80 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<u64>#rehash (; 79 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -5985,7 +6013,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<u64>#add (; 81 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(func $~lib/set/Set<u64>#add (; 80 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i64)
(local $3 i32)
(local $4 i32)
@ -6084,11 +6112,11 @@
i32.store
end
)
(func $~lib/set/Set<u64>#get:size (; 82 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<u64>#get:size (; 81 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u64>#delete (; 83 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/set/Set<u64>#delete (; 82 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
(local $3 i32)
(local $4 i32)
@ -6162,7 +6190,7 @@
end
i32.const 1
)
(func $std/set/test<u64> (; 84 ;) (type $FUNCSIG$v)
(func $std/set/test<u64> (; 83 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i64)
i32.const 0
@ -6445,7 +6473,7 @@
unreachable
end
)
(func $~lib/set/Set<f32>#clear (; 85 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<f32>#clear (; 84 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -6471,15 +6499,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<f32>#constructor (; 86 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<f32>#constructor (; 85 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<f32>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.9 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 11
@ -6510,7 +6542,7 @@
call $~lib/set/Set<f32>#clear
local.get $0
)
(func $~lib/set/Set<f32>#find (; 87 ;) (type $FUNCSIG$iifi) (param $0 i32) (param $1 f32) (param $2 i32) (result i32)
(func $~lib/set/Set<f32>#find (; 86 ;) (type $FUNCSIG$iifi) (param $0 i32) (param $1 f32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -6561,7 +6593,7 @@
end
i32.const 0
)
(func $~lib/set/Set<f32>#has (; 88 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
(func $~lib/set/Set<f32>#has (; 87 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
(local $2 f32)
local.get $0
local.get $1
@ -6577,7 +6609,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<f32>#rehash (; 89 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<f32>#rehash (; 88 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -6709,7 +6741,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<f32>#add (; 90 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(func $~lib/set/Set<f32>#add (; 89 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(local $2 f32)
(local $3 i32)
(local $4 i32)
@ -6809,11 +6841,11 @@
i32.store
end
)
(func $~lib/set/Set<f32>#get:size (; 91 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<f32>#get:size (; 90 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<f32>#delete (; 92 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
(func $~lib/set/Set<f32>#delete (; 91 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
(local $2 f32)
(local $3 i32)
(local $4 i32)
@ -6888,7 +6920,7 @@
end
i32.const 1
)
(func $std/set/test<f32> (; 93 ;) (type $FUNCSIG$v)
(func $std/set/test<f32> (; 92 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 f32)
i32.const 0
@ -7171,7 +7203,7 @@
unreachable
end
)
(func $~lib/set/Set<f64>#clear (; 94 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/set/Set<f64>#clear (; 93 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
@ -7197,15 +7229,19 @@
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<f64>#constructor (; 95 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<f64>#constructor (; 94 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block (result i32)
local.get $0
i32.eqz
if
block $~lib/runtime/REGISTER<Set<f64>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
block $~lib/runtime/ALLOCATE|inlined.10 (result i32)
i32.const 24
local.set $1
local.get $1
call $~lib/runtime/doAllocate
end
local.set $1
local.get $1
i32.const 12
@ -7236,7 +7272,7 @@
call $~lib/set/Set<f64>#clear
local.get $0
)
(func $~lib/set/Set<f64>#find (; 96 ;) (type $FUNCSIG$iidi) (param $0 i32) (param $1 f64) (param $2 i32) (result i32)
(func $~lib/set/Set<f64>#find (; 95 ;) (type $FUNCSIG$iidi) (param $0 i32) (param $1 f64) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -7287,7 +7323,7 @@
end
i32.const 0
)
(func $~lib/set/Set<f64>#has (; 97 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/set/Set<f64>#has (; 96 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
(local $2 f64)
local.get $0
local.get $1
@ -7303,7 +7339,7 @@
i32.const 0
i32.ne
)
(func $~lib/set/Set<f64>#rehash (; 98 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/set/Set<f64>#rehash (; 97 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -7435,7 +7471,7 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/set/Set<f64>#add (; 99 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(func $~lib/set/Set<f64>#add (; 98 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(local $2 f64)
(local $3 i32)
(local $4 i32)
@ -7535,11 +7571,11 @@
i32.store
end
)
(func $~lib/set/Set<f64>#get:size (; 100 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/set/Set<f64>#get:size (; 99 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<f64>#delete (; 101 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/set/Set<f64>#delete (; 100 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
(local $2 f64)
(local $3 i32)
(local $4 i32)
@ -7614,7 +7650,7 @@
end
i32.const 1
)
(func $std/set/test<f64> (; 102 ;) (type $FUNCSIG$v)
(func $std/set/test<f64> (; 101 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 f64)
i32.const 0
@ -7897,7 +7933,7 @@
unreachable
end
)
(func $start:std/set (; 103 ;) (type $FUNCSIG$v)
(func $start:std/set (; 102 ;) (type $FUNCSIG$v)
global.get $~lib/memory/HEAP_BASE
i32.const 7
i32.add
@ -7919,9 +7955,9 @@
call $std/set/test<f32>
call $std/set/test<f64>
)
(func $start (; 104 ;) (type $FUNCSIG$v)
(func $start (; 103 ;) (type $FUNCSIG$v)
call $start:std/set
)
(func $null (; 105 ;) (type $FUNCSIG$v)
(func $null (; 104 ;) (type $FUNCSIG$v)
)
)