forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
class-static-function.release.wat
52 lines (52 loc) · 1.48 KB
/
class-static-function.release.wat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
(module
(type $none_=>_i32 (func_subtype (result i32) func))
(type $i32_i32_i32_i32_=>_none (func_subtype (param i32 i32 i32 i32) func))
(type $none_=>_none (func_subtype func))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 33916))
(memory $0 1)
(data (i32.const 1036) "\1c")
(data (i32.const 1048) "\04\00\00\00\08\00\00\00\01")
(data (i32.const 1068) "L")
(data (i32.const 1080) "\02\00\00\000\00\00\00c\00l\00a\00s\00s\00-\00s\00t\00a\00t\00i\00c\00-\00f\00u\00n\00c\00t\00i\00o\00n\00.\00t\00s")
(table $0 2 2 funcref)
(elem $0 (i32.const 1) $class-static-function/Example.staticFunc)
(export "memory" (memory $0))
(start $~start)
(func $class-static-function/Example.staticFunc (type $none_=>_i32) (result i32)
i32.const 42
)
(func $~start (type $none_=>_none)
(local $0 i32)
global.get $~lib/memory/__stack_pointer
i32.const 4
i32.sub
global.set $~lib/memory/__stack_pointer
global.get $~lib/memory/__stack_pointer
i32.const 1148
i32.lt_s
if
i32.const 33936
i32.const 33984
i32.const 1
i32.const 1
call $~lib/builtins/abort
unreachable
end
global.get $~lib/memory/__stack_pointer
local.tee $0
i32.const 0
i32.store $0
local.get $0
i32.const 1056
i32.store $0
i32.const 1056
i32.load $0
call_indirect $0 (type $none_=>_i32)
drop
global.get $~lib/memory/__stack_pointer
i32.const 4
i32.add
global.set $~lib/memory/__stack_pointer
)
)