-
Notifications
You must be signed in to change notification settings - Fork 868
Expand file tree
/
Copy pathgc.js.txt
More file actions
116 lines (115 loc) · 1.97 KB
/
Copy pathgc.js.txt
File metadata and controls
116 lines (115 loc) · 1.97 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
(module
(type $0 (array (mut i8)))
(type $1 (struct (field (mut i16)) (field (mut f64))))
(type $2 (array (mut funcref)))
(type $3 (func (param i32 i32) (result i32)))
(type $4 (func))
(global $struct-global (mut (ref null $1)) (struct.new_default $1))
(global $array-global (mut (ref null $0)) (array.new_default $0
(i32.const 4)
))
(global $funcArray-global (mut (ref null $2)) (array.new_default $2
(i32.const 4)
))
(memory $0 1)
(data $0 (i32.const 0) "\04\03\02\01")
(table $0 1 funcref)
(elem $0 (i32.const 0) $add)
(func $add (type $3) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(local.get $0)
(local.get $1)
)
)
(func $main (type $4)
(drop
(struct.new $1
(i32.const 1)
(f64.const 2.3)
)
)
(drop
(struct.new_default $1)
)
(drop
(struct.get_s $1 0
(global.get $struct-global)
)
)
(struct.set $1 1
(global.get $struct-global)
(f64.const 1.23)
)
(drop
(array.new $0
(i32.const 0)
(i32.const 1)
)
)
(drop
(array.new_default $0
(i32.const 1)
)
)
(drop
(array.new_fixed $0 3
(i32.const 1)
(i32.const 2)
(i32.const 3)
)
)
(drop
(array.new_data $0 $0
(i32.const 0)
(i32.const 4)
)
)
(drop
(array.new_elem $2 $0
(i32.const 0)
(i32.const 1)
)
)
(drop
(array.get_s $0
(global.get $array-global)
(i32.const 0)
)
)
(array.set $0
(global.get $array-global)
(i32.const 1)
(i32.const 2)
)
(drop
(array.len
(global.get $array-global)
)
)
(array.fill $0
(global.get $array-global)
(i32.const 0)
(i32.const 1)
(i32.const 2)
)
(array.copy $0 $0
(global.get $array-global)
(i32.const 0)
(global.get $array-global)
(i32.const 1)
(i32.const 2)
)
(array.init_data $0 $0
(global.get $array-global)
(i32.const 0)
(i32.const 1)
(i32.const 2)
)
(array.init_elem $2 $0
(global.get $funcArray-global)
(i32.const 0)
(i32.const 1)
(i32.const 2)
)
)
)