mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-28 22:21:50 +00:00
rtti & refactoring
This commit is contained in:
@ -1,17 +1,14 @@
|
||||
(module
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(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) "\01\00\00\00.\00\00\00p\00o\00r\00t\00a\00b\00l\00e\00-\00c\00o\00n\00v\00e\00r\00s\00i\00o\00n\00s\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(data (i32.const 8) "\10\00\00\00.\00\00\00p\00o\00r\00t\00a\00b\00l\00e\00-\00c\00o\00n\00v\00e\00r\00s\00i\00o\00n\00s\00.\00t\00s")
|
||||
(global $portable-conversions/i (mut i32) (i32.const 1))
|
||||
(global $portable-conversions/I (mut i64) (i64.const 1))
|
||||
(global $portable-conversions/f (mut f32) (f32.const 1))
|
||||
(global $portable-conversions/F (mut f64) (f64.const 1))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:portable-conversions (; 1 ;) (type $FUNCSIG$v)
|
||||
global.get $portable-conversions/i
|
||||
@ -23,7 +20,7 @@
|
||||
i32.const 16
|
||||
i32.const 6
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -36,7 +33,7 @@
|
||||
i32.const 16
|
||||
i32.const 7
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -49,7 +46,7 @@
|
||||
i32.const 16
|
||||
i32.const 8
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -62,7 +59,7 @@
|
||||
i32.const 16
|
||||
i32.const 9
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -74,7 +71,7 @@
|
||||
i32.const 16
|
||||
i32.const 11
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -87,7 +84,7 @@
|
||||
i32.const 16
|
||||
i32.const 12
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -100,7 +97,7 @@
|
||||
i32.const 16
|
||||
i32.const 13
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -113,7 +110,7 @@
|
||||
i32.const 16
|
||||
i32.const 14
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -123,7 +120,7 @@
|
||||
i32.const 16
|
||||
i32.const 16
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -134,7 +131,7 @@
|
||||
i32.const 16
|
||||
i32.const 17
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -145,7 +142,7 @@
|
||||
i32.const 16
|
||||
i32.const 18
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -156,7 +153,7 @@
|
||||
i32.const 16
|
||||
i32.const 19
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -167,7 +164,7 @@
|
||||
i32.const 16
|
||||
i32.const 21
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -177,7 +174,7 @@
|
||||
i32.const 16
|
||||
i32.const 22
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -188,7 +185,7 @@
|
||||
i32.const 16
|
||||
i32.const 23
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -199,7 +196,7 @@
|
||||
i32.const 16
|
||||
i32.const 24
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -209,7 +206,7 @@
|
||||
i32.const 16
|
||||
i32.const 26
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -220,7 +217,7 @@
|
||||
i32.const 16
|
||||
i32.const 27
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -231,7 +228,7 @@
|
||||
i32.const 16
|
||||
i32.const 28
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -242,7 +239,7 @@
|
||||
i32.const 16
|
||||
i32.const 29
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -254,7 +251,7 @@
|
||||
i32.const 16
|
||||
i32.const 31
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -267,7 +264,7 @@
|
||||
i32.const 16
|
||||
i32.const 32
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -280,7 +277,7 @@
|
||||
i32.const 16
|
||||
i32.const 33
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -293,7 +290,7 @@
|
||||
i32.const 16
|
||||
i32.const 34
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -305,7 +302,7 @@
|
||||
i32.const 16
|
||||
i32.const 36
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -318,7 +315,7 @@
|
||||
i32.const 16
|
||||
i32.const 37
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -331,7 +328,7 @@
|
||||
i32.const 16
|
||||
i32.const 38
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -344,7 +341,7 @@
|
||||
i32.const 16
|
||||
i32.const 39
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -354,7 +351,7 @@
|
||||
i32.const 16
|
||||
i32.const 41
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -365,7 +362,7 @@
|
||||
i32.const 16
|
||||
i32.const 42
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -376,7 +373,7 @@
|
||||
i32.const 16
|
||||
i32.const 43
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -387,7 +384,7 @@
|
||||
i32.const 16
|
||||
i32.const 44
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -398,7 +395,7 @@
|
||||
i32.const 16
|
||||
i32.const 46
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -408,7 +405,7 @@
|
||||
i32.const 16
|
||||
i32.const 47
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -419,7 +416,7 @@
|
||||
i32.const 16
|
||||
i32.const 48
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -430,7 +427,7 @@
|
||||
i32.const 16
|
||||
i32.const 49
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -440,7 +437,7 @@
|
||||
i32.const 16
|
||||
i32.const 51
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -451,7 +448,7 @@
|
||||
i32.const 16
|
||||
i32.const 52
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -462,7 +459,7 @@
|
||||
i32.const 16
|
||||
i32.const 53
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -473,7 +470,7 @@
|
||||
i32.const 16
|
||||
i32.const 54
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -483,7 +480,7 @@
|
||||
i32.const 16
|
||||
i32.const 56
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -494,7 +491,7 @@
|
||||
i32.const 16
|
||||
i32.const 57
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -505,7 +502,7 @@
|
||||
i32.const 16
|
||||
i32.const 58
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -516,7 +513,7 @@
|
||||
i32.const 16
|
||||
i32.const 59
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -528,7 +525,7 @@
|
||||
i32.const 16
|
||||
i32.const 61
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -540,7 +537,7 @@
|
||||
i32.const 16
|
||||
i32.const 62
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -551,7 +548,7 @@
|
||||
i32.const 16
|
||||
i32.const 63
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -563,7 +560,7 @@
|
||||
i32.const 16
|
||||
i32.const 64
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/i
|
||||
@ -575,7 +572,7 @@
|
||||
i32.const 16
|
||||
i32.const 66
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/I
|
||||
@ -587,7 +584,7 @@
|
||||
i32.const 16
|
||||
i32.const 67
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/f
|
||||
@ -599,7 +596,7 @@
|
||||
i32.const 16
|
||||
i32.const 68
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $portable-conversions/F
|
||||
@ -610,7 +607,7 @@
|
||||
i32.const 16
|
||||
i32.const 69
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
|
Reference in New Issue
Block a user