porffor 0.16.0-f9dde1759 → 0.16.0-fa3914030
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -17
- package/compiler/2c.js +75 -15
- package/compiler/allocators.js +128 -0
- package/compiler/assemble.js +7 -1
- package/compiler/builtins/array.ts +72 -5
- package/compiler/builtins/date.ts +3 -30
- package/compiler/builtins/number.ts +10 -21
- package/compiler/builtins/porffor.d.ts +7 -0
- package/compiler/builtins/set.ts +2 -5
- package/compiler/builtins/string_f64.ts +10 -0
- package/compiler/builtins/z_ecma262.ts +62 -0
- package/compiler/codegen.js +277 -328
- package/compiler/cyclone.js +11 -11
- package/compiler/generated_builtins.js +131 -75
- package/compiler/index.js +15 -1
- package/compiler/opt.js +8 -6
- package/compiler/parse.js +0 -6
- package/compiler/pgo.js +5 -0
- package/compiler/precompile.js +9 -6
- package/compiler/prefs.js +2 -3
- package/compiler/prototype.js +34 -43
- package/compiler/wasmSpec.js +2 -2
- package/compiler/wrap.js +2 -1
- package/package.json +1 -1
- package/runner/index.js +5 -0
- package/no_pgo.txt +0 -923
- package/pgo.txt +0 -916
package/pgo.txt
DELETED
@@ -1,916 +0,0 @@
|
|
1
|
-
injecting PGO logging...
|
2
|
|
3
|
-
running with PGO logging...
|
4
1
|
|
5
|
-
processing PGO data...
|
6
2
|
|
7
|
-
main: identified 0/1 locals as consistent
|
8
|
-
main: identified 0/0 f64 locals as integer usage only
|
9
|
-
interpret: identified 10/30 locals as consistent
|
10
|
-
interpret: identified 9/11 f64 locals as integer usage only
|
11
|
-
optimizing using PGO data...
|
12
3
|
|
13
|
-
main: replaced 0 locals with consts
|
14
|
-
interpret: replaced 9 locals with consts
|
15
|
-
|
16
|
-
|
17
|
-
[4m[1mfuncs[0m[0m
|
18
|
-
() -> ()[90m ;; $main (4)[0m
|
19
|
-
local [36mi32[0m
|
20
|
-
[36mf64.const[0m [33m131072[0m
|
21
|
-
[31mglobal.set[0m [33m0[0m[90m ;; $file[0m
|
22
|
-
[36mi32.const[0m [33m18[0m
|
23
|
-
[31mglobal.set[0m [33m1[0m[90m ;; $file#type (i32)[0m
|
24
|
-
[36mf64.const[0m [33m1[0m
|
25
|
-
[31mglobal.get[0m [33m0[0m[90m ;; $file[0m
|
26
|
-
[35mcall[0m [33m0[0m[90m ;; import __Porffor_readArgv (f64, f64) -> (f64)[0m
|
27
|
-
[36mf64.const[0m [33m-1[0m
|
28
|
-
[36mf64.eq[0m
|
29
|
-
[95mif[0m[90m ;; label @2[0m
|
30
|
-
[36mf64.const[0m [33m196608[0m
|
31
|
-
[36mi32.const[0m [33m18[0m
|
32
|
-
[35mcall[0m [33m6[0m[90m ;; $__Porffor_print (f64, i32) -> ()[0m
|
33
|
-
[36mf64.const[0m [33m10[0m
|
34
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
35
|
-
[95melse[0m[90m ;; label @2[0m
|
36
|
-
[36mf64.const[0m [33m262144[0m
|
37
|
-
[31mglobal.set[0m [33m2[0m[90m ;; $contents[0m
|
38
|
-
[36mi32.const[0m [33m18[0m
|
39
|
-
[31mglobal.set[0m [33m3[0m[90m ;; $contents#type (i32)[0m
|
40
|
-
[31mglobal.get[0m [33m0[0m[90m ;; $file[0m
|
41
|
-
[31mglobal.get[0m [33m2[0m[90m ;; $contents[0m
|
42
|
-
[35mcall[0m [33m2[0m[90m ;; import __Porffor_readFile (f64, f64) -> (f64)[0m
|
43
|
-
[36mf64.const[0m [33m-1[0m
|
44
|
-
[36mf64.eq[0m
|
45
|
-
[95mif[0m[90m ;; label @3[0m
|
46
|
-
[36mf64.const[0m [33m327680[0m
|
47
|
-
[36mi32.const[0m [33m18[0m
|
48
|
-
[35mcall[0m [33m6[0m[90m ;; $__Porffor_print (f64, i32) -> ()[0m
|
49
|
-
[36mf64.const[0m [33m32[0m
|
50
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
51
|
-
[31mglobal.get[0m [33m0[0m[90m ;; $file[0m
|
52
|
-
[31mglobal.get[0m [33m1[0m[90m ;; $file#type (i32)[0m
|
53
|
-
[35mcall[0m [33m6[0m[90m ;; $__Porffor_print (f64, i32) -> ()[0m
|
54
|
-
[36mf64.const[0m [33m10[0m
|
55
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
56
|
-
[95melse[0m[90m ;; label @3[0m
|
57
|
-
[31mglobal.get[0m [33m2[0m[90m ;; $contents[0m
|
58
|
-
[31mglobal.get[0m [33m3[0m[90m ;; $contents#type (i32)[0m
|
59
|
-
[35mcall[0m [33m5[0m[90m ;; $interpret (f64, i32) -> (f64, i32)[0m
|
60
|
-
[31mlocal.set[0m [33m0[0m[90m ;; $#last_type (i32)[0m
|
61
|
-
[36mdrop[0m
|
62
|
-
[95mend[0m
|
63
|
-
[95mend[0m
|
64
|
-
[95mend[0m
|
65
|
-
|
66
|
-
([36mf64[0m, [36mi32[0m) -> ([36mf64[0m, [36mi32[0m)[90m ;; $interpret (5)[0m
|
67
|
-
local [36mf64[0m [36mi32[0m [36mi32[0m [36mi32[0m [36mi32[0m [36mi32[0m [36mf64[0m [36mf64[0m [36mi32[0m [36mf64[0m [36mi32[0m [36mi32[0m [36mi32[0m [36mf64[0m [36mf64[0m [36mi32[0m [36mf64[0m [36mi32[0m [36mi32[0m
|
68
|
-
[36mf64.const[0m [33m0[0m
|
69
|
-
[31mlocal.set[0m [33m2[0m[90m ;; $ptr[0m
|
70
|
-
[36mi32.const[0m [33m0[0m
|
71
|
-
[36mi32.const[0m [33m8000[0m
|
72
|
-
[36mi32.store[0m [33m1[0m [33m1[0m
|
73
|
-
[36mf64.const[0m [33m1[0m
|
74
|
-
[36mi32.trunc_sat_f64_u[0m
|
75
|
-
[31mlocal.tee[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
76
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
77
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
78
|
-
[36mi32.const[0m [33m16[0m
|
79
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
80
|
-
[95mblock[0m [36mf64[0m[90m ;; label @2[0m
|
81
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
82
|
-
[36mi32.const[0m [33m16[0m
|
83
|
-
[36mi32.eq[0m
|
84
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @3[0m
|
85
|
-
[95mblock[0m [36mf64[0m[90m ;; label @4[0m
|
86
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
87
|
-
[36mi32.const[0m [33m1[0m
|
88
|
-
[36mi32.sub[0m
|
89
|
-
[36mi32.const[0m [33m9[0m
|
90
|
-
[36mi32.mul[0m
|
91
|
-
[31mlocal.tee[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
92
|
-
[36mi32.const[0m [33m0[0m
|
93
|
-
[36mi32.lt_s[0m
|
94
|
-
[95mif[0m[90m ;; label @5[0m
|
95
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
96
|
-
[36mf64.convert_i32_u[0m
|
97
|
-
[35mbr[0m [33m1[0m[90m ;; goto @4[0m
|
98
|
-
[95mend[0m
|
99
|
-
[95mloop[0m[90m ;; label @5[0m
|
100
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
101
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
102
|
-
[36mi32.add[0m
|
103
|
-
[31mlocal.tee[0m [33m5[0m[90m ;; $__fill_tmp2 (i32)[0m
|
104
|
-
[36mf64.const[0m [33m0[0m
|
105
|
-
[36mf64.store[0m [33m0[0m [33m4[0m
|
106
|
-
[31mlocal.get[0m [33m5[0m[90m ;; $__fill_tmp2 (i32)[0m
|
107
|
-
[36mi32.const[0m [33m0[0m
|
108
|
-
[36mi32.store8[0m [33m0[0m [33m12[0m
|
109
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
110
|
-
[36mi32.const[0m [33m9[0m
|
111
|
-
[36mi32.sub[0m
|
112
|
-
[31mlocal.tee[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
113
|
-
[36mi32.const[0m [33m0[0m
|
114
|
-
[36mi32.ge_s[0m
|
115
|
-
[35mbr_[95mif[0m[0m [33m0[0m[90m ;; goto @5[0m
|
116
|
-
[95mend[0m
|
117
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
118
|
-
[36mf64.convert_i32_u[0m
|
119
|
-
[36mi32.const[0m [33m16[0m
|
120
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
121
|
-
[95mend[0m
|
122
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
123
|
-
[95mend[0m
|
124
|
-
[36mi32.const[0m [33m0[0m
|
125
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError(''fill' proto func tried to be called on a type without an impl')[0m
|
126
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
127
|
-
[36mdrop[0m
|
128
|
-
[36mf64.const[0m [33m65536[0m
|
129
|
-
[36mf64.const[0m [33m65536[0m
|
130
|
-
[36mi32.trunc_sat_f64_u[0m
|
131
|
-
[36mi32.const[0m [33m65536[0m
|
132
|
-
[36mi32.const[0m [33m0[0m
|
133
|
-
[36mi32.store[0m [33m1[0m [33m0[0m
|
134
|
-
[36mf64.const[0m [33m0[0m
|
135
|
-
[31mlocal.set[0m [33m8[0m[90m ;; $i[0m
|
136
|
-
[95mloop[0m[90m ;; label @2[0m
|
137
|
-
[31mlocal.get[0m [33m8[0m[90m ;; $i[0m
|
138
|
-
[31mlocal.get[0m [33m1[0m[90m ;; $str#type (i32)[0m
|
139
|
-
[36mi32.const[0m [33m2[0m
|
140
|
-
[36mi32.eq[0m
|
141
|
-
[31mlocal.get[0m [33m1[0m[90m ;; $str#type (i32)[0m
|
142
|
-
[36mi32.const[0m [33m18[0m
|
143
|
-
[36mi32.eq[0m
|
144
|
-
[36mi32.or[0m
|
145
|
-
[31mlocal.get[0m [33m1[0m[90m ;; $str#type (i32)[0m
|
146
|
-
[36mi32.const[0m [33m16[0m
|
147
|
-
[36mi32.eq[0m
|
148
|
-
[36mi32.or[0m
|
149
|
-
[95mif[0m [36mf64[0m[90m ;; label @3[0m
|
150
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $str[0m
|
151
|
-
[36mi32.trunc_sat_f64_u[0m
|
152
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
153
|
-
[36mf64.convert_i32_u[0m
|
154
|
-
[36mi32.const[0m [33m0[0m
|
155
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
156
|
-
[95melse[0m[90m ;; label @3[0m
|
157
|
-
[36mf64.const[0m [33m0[0m
|
158
|
-
[36mi32.const[0m [33m3[0m
|
159
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
160
|
-
[95mend[0m
|
161
|
-
[36mf64.lt[0m
|
162
|
-
[95mif[0m[90m ;; label @3[0m
|
163
|
-
[95mblock[0m[90m ;; label @4[0m
|
164
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $str[0m
|
165
|
-
[36mi32.trunc_sat_f64_u[0m
|
166
|
-
[31mlocal.tee[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
167
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
168
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
169
|
-
[31mlocal.get[0m [33m1[0m[90m ;; $str#type (i32)[0m
|
170
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
171
|
-
[95mblock[0m [36mf64[0m[90m ;; label @5[0m
|
172
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
173
|
-
[36mi32.const[0m [33m18[0m
|
174
|
-
[36mi32.eq[0m
|
175
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @6[0m
|
176
|
-
[95mblock[0m [36mf64[0m[90m ;; label @7[0m
|
177
|
-
[31mlocal.get[0m [33m8[0m[90m ;; $i[0m
|
178
|
-
[36mi32.trunc_sat_f64_s[0m
|
179
|
-
[31mlocal.tee[0m [33m10[0m[90m ;; $__charCodeAt_tmp (i32)[0m
|
180
|
-
[36mi32.const[0m [33m0[0m
|
181
|
-
[36mi32.lt_s[0m
|
182
|
-
[31mlocal.get[0m [33m10[0m[90m ;; $__charCodeAt_tmp (i32)[0m
|
183
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
184
|
-
[36mi32.ge_s[0m
|
185
|
-
[36mi32.or[0m
|
186
|
-
[95mif[0m[90m ;; label @8[0m
|
187
|
-
[36mf64.const[0m NaN
|
188
|
-
[35mbr[0m [33m1[0m[90m ;; goto @7[0m
|
189
|
-
[95mend[0m
|
190
|
-
[31mlocal.get[0m [33m10[0m[90m ;; $__charCodeAt_tmp (i32)[0m
|
191
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
192
|
-
[36mi32.add[0m
|
193
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
194
|
-
[36mf64.convert_i32_u[0m
|
195
|
-
[36mi32.const[0m [33m0[0m
|
196
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
197
|
-
[95mend[0m
|
198
|
-
[35mbr[0m [33m1[0m[90m ;; goto @5[0m
|
199
|
-
[95mend[0m
|
200
|
-
[36mi32.const[0m [33m1[0m
|
201
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError(''charCodeAt' proto func tried to be called on a type without an impl')[0m
|
202
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
203
|
-
[31mlocal.tee[0m [33m9[0m[90m ;; $c[0m
|
204
|
-
[36mf64.const[0m [33m62[0m
|
205
|
-
[36mf64.eq[0m
|
206
|
-
[95mif[0m[90m ;; label @5[0m
|
207
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
208
|
-
[36mf64.const[0m [33m1[0m
|
209
|
-
[36mf64.add[0m
|
210
|
-
[31mlocal.set[0m [33m2[0m[90m ;; $ptr[0m
|
211
|
-
[95mend[0m
|
212
|
-
[31mlocal.get[0m [33m9[0m[90m ;; $c[0m
|
213
|
-
[36mf64.const[0m [33m60[0m
|
214
|
-
[36mf64.eq[0m
|
215
|
-
[95mif[0m[90m ;; label @5[0m
|
216
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
217
|
-
[36mf64.const[0m [33m1[0m
|
218
|
-
[36mf64.sub[0m
|
219
|
-
[31mlocal.set[0m [33m2[0m[90m ;; $ptr[0m
|
220
|
-
[95mend[0m
|
221
|
-
[31mlocal.get[0m [33m9[0m[90m ;; $c[0m
|
222
|
-
[36mf64.const[0m [33m43[0m
|
223
|
-
[36mf64.eq[0m
|
224
|
-
[95mif[0m[90m ;; label @5[0m
|
225
|
-
[36mi32.const[0m [33m16[0m
|
226
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
227
|
-
[95mblock[0m[90m ;; label @6[0m
|
228
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
229
|
-
[36mi32.const[0m [33m16[0m
|
230
|
-
[36mi32.eq[0m
|
231
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
232
|
-
[36mf64.const[0m [33m1[0m
|
233
|
-
[36mi32.trunc_sat_f64_u[0m
|
234
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
235
|
-
[36mi32.trunc_sat_f64_u[0m
|
236
|
-
[36mi32.const[0m [33m9[0m
|
237
|
-
[36mi32.mul[0m
|
238
|
-
[36mi32.add[0m
|
239
|
-
[31mlocal.tee[0m [33m12[0m[90m ;; $__member_setter_ptr_tmp (i32)[0m
|
240
|
-
[31mlocal.get[0m [33m12[0m[90m ;; $__member_setter_ptr_tmp (i32)[0m
|
241
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
242
|
-
[36mf64.const[0m [33m1[0m
|
243
|
-
[36mf64.add[0m
|
244
|
-
[31mlocal.tee[0m [33m11[0m[90m ;; $__member_setter_val_tmp[0m
|
245
|
-
[36mf64.store[0m [33m0[0m [33m4[0m
|
246
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
247
|
-
[95mend[0m
|
248
|
-
[36mi32.const[0m [33m2[0m
|
249
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError('Cannot assign member with non-array')[0m
|
250
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
251
|
-
[95mend[0m
|
252
|
-
[31mlocal.get[0m [33m9[0m[90m ;; $c[0m
|
253
|
-
[36mf64.const[0m [33m45[0m
|
254
|
-
[36mf64.eq[0m
|
255
|
-
[95mif[0m[90m ;; label @5[0m
|
256
|
-
[36mi32.const[0m [33m16[0m
|
257
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
258
|
-
[95mblock[0m[90m ;; label @6[0m
|
259
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
260
|
-
[36mi32.const[0m [33m16[0m
|
261
|
-
[36mi32.eq[0m
|
262
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
263
|
-
[36mf64.const[0m [33m1[0m
|
264
|
-
[36mi32.trunc_sat_f64_u[0m
|
265
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
266
|
-
[36mi32.trunc_sat_f64_u[0m
|
267
|
-
[36mi32.const[0m [33m9[0m
|
268
|
-
[36mi32.mul[0m
|
269
|
-
[36mi32.add[0m
|
270
|
-
[31mlocal.tee[0m [33m12[0m[90m ;; $__member_setter_ptr_tmp (i32)[0m
|
271
|
-
[31mlocal.get[0m [33m12[0m[90m ;; $__member_setter_ptr_tmp (i32)[0m
|
272
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
273
|
-
[36mf64.const[0m [33m1[0m
|
274
|
-
[36mf64.sub[0m
|
275
|
-
[31mlocal.tee[0m [33m11[0m[90m ;; $__member_setter_val_tmp[0m
|
276
|
-
[36mf64.store[0m [33m0[0m [33m4[0m
|
277
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
278
|
-
[95mend[0m
|
279
|
-
[36mi32.const[0m [33m3[0m
|
280
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError('Cannot assign member with non-array')[0m
|
281
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
282
|
-
[95mend[0m
|
283
|
-
[31mlocal.get[0m [33m9[0m[90m ;; $c[0m
|
284
|
-
[36mf64.const[0m [33m46[0m
|
285
|
-
[36mf64.eq[0m
|
286
|
-
[95mif[0m[90m ;; label @5[0m
|
287
|
-
[36mi32.const[0m [33m16[0m
|
288
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
289
|
-
[95mblock[0m [36mf64[0m[90m ;; label @6[0m
|
290
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
291
|
-
[36mi32.const[0m [33m16[0m
|
292
|
-
[36mi32.eq[0m
|
293
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
294
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
295
|
-
[36mi32.trunc_sat_f64_u[0m
|
296
|
-
[36mi32.const[0m [33m9[0m
|
297
|
-
[36mi32.mul[0m
|
298
|
-
[36mf64.const[0m [33m1[0m
|
299
|
-
[36mi32.trunc_sat_f64_u[0m
|
300
|
-
[36mi32.add[0m
|
301
|
-
[31mlocal.tee[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
302
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
303
|
-
[31mlocal.get[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
304
|
-
[36mi32.load8_u[0m [33m0[0m [33m12[0m
|
305
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
306
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
307
|
-
[95mend[0m
|
308
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
309
|
-
[36mi32.const[0m [33m18[0m
|
310
|
-
[36mi32.eq[0m
|
311
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @7[0m
|
312
|
-
[36mi32.const[0m [33m0[0m
|
313
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
314
|
-
[36mi32.trunc_sat_f64_u[0m
|
315
|
-
[36mf64.const[0m [33m1[0m
|
316
|
-
[36mi32.trunc_sat_f64_u[0m
|
317
|
-
[36mi32.add[0m
|
318
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
319
|
-
[36mi32.store8[0m [33m0[0m [33m3[0m
|
320
|
-
[36mf64.const[0m [33m-1[0m
|
321
|
-
[36mi32.const[0m [33m18[0m
|
322
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
323
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
324
|
-
[95mend[0m
|
325
|
-
[36mi32.const[0m [33m4[0m
|
326
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError('Member expression is not supported for non-string non-array yet')[0m
|
327
|
-
[36mf64.const[0m [33m0[0m
|
328
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
329
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
330
|
-
[95mend[0m
|
331
|
-
[31mlocal.get[0m [33m9[0m[90m ;; $c[0m
|
332
|
-
[36mf64.const[0m [33m91[0m
|
333
|
-
[36mf64.eq[0m
|
334
|
-
[95mif[0m[90m ;; label @5[0m
|
335
|
-
[36mf64.const[0m [33m65536[0m
|
336
|
-
[36mi32.trunc_sat_f64_u[0m
|
337
|
-
[31mlocal.tee[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
338
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
339
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
340
|
-
[36mi32.const[0m [33m16[0m
|
341
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
342
|
-
[95mblock[0m[90m ;; label @6[0m
|
343
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
344
|
-
[36mi32.const[0m [33m16[0m
|
345
|
-
[36mi32.eq[0m
|
346
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
347
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
348
|
-
[36mi32.const[0m [33m9[0m
|
349
|
-
[36mi32.mul[0m
|
350
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
351
|
-
[36mi32.add[0m
|
352
|
-
[31mlocal.tee[0m [33m14[0m[90m ;; $__push_tmp (i32)[0m
|
353
|
-
[31mlocal.get[0m [33m8[0m[90m ;; $i[0m
|
354
|
-
[36mf64.store[0m [33m0[0m [33m4[0m
|
355
|
-
[31mlocal.get[0m [33m14[0m[90m ;; $__push_tmp (i32)[0m
|
356
|
-
[36mi32.const[0m [33m0[0m
|
357
|
-
[36mi32.store8[0m [33m0[0m [33m12[0m
|
358
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
359
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
360
|
-
[36mi32.const[0m [33m1[0m
|
361
|
-
[36mi32.add[0m
|
362
|
-
[36mi32.store[0m [33m1[0m [33m0[0m
|
363
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
364
|
-
[95mend[0m
|
365
|
-
[36mi32.const[0m [33m5[0m
|
366
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError(''push' proto func tried to be called on a type without an impl')[0m
|
367
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
368
|
-
[36mi32.const[0m [33m16[0m
|
369
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
370
|
-
[95mblock[0m [36mf64[0m[90m ;; label @6[0m
|
371
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
372
|
-
[36mi32.const[0m [33m16[0m
|
373
|
-
[36mi32.eq[0m
|
374
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
375
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
376
|
-
[36mi32.trunc_sat_f64_u[0m
|
377
|
-
[36mi32.const[0m [33m9[0m
|
378
|
-
[36mi32.mul[0m
|
379
|
-
[36mf64.const[0m [33m1[0m
|
380
|
-
[36mi32.trunc_sat_f64_u[0m
|
381
|
-
[36mi32.add[0m
|
382
|
-
[31mlocal.tee[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
383
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
384
|
-
[31mlocal.get[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
385
|
-
[36mi32.load8_u[0m [33m0[0m [33m12[0m
|
386
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
387
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
388
|
-
[95mend[0m
|
389
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
390
|
-
[36mi32.const[0m [33m18[0m
|
391
|
-
[36mi32.eq[0m
|
392
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @7[0m
|
393
|
-
[36mi32.const[0m [33m0[0m
|
394
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
395
|
-
[36mi32.trunc_sat_f64_u[0m
|
396
|
-
[36mf64.const[0m [33m1[0m
|
397
|
-
[36mi32.trunc_sat_f64_u[0m
|
398
|
-
[36mi32.add[0m
|
399
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
400
|
-
[36mi32.store8[0m [33m0[0m [33m3[0m
|
401
|
-
[36mf64.const[0m [33m-1[0m
|
402
|
-
[36mi32.const[0m [33m18[0m
|
403
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
404
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
405
|
-
[95mend[0m
|
406
|
-
[36mi32.const[0m [33m6[0m
|
407
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError('Member expression is not supported for non-string non-array yet')[0m
|
408
|
-
[36mf64.const[0m [33m0[0m
|
409
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
410
|
-
[31mlocal.set[0m [33m15[0m[90m ;; $#logicinner_tmp[0m
|
411
|
-
[31mlocal.get[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
412
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
413
|
-
[95mblock[0m [36mf64[0m[90m ;; label @6[0m
|
414
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
415
|
-
[36mi32.const[0m [33m18[0m
|
416
|
-
[36mi32.eq[0m
|
417
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @7[0m
|
418
|
-
[31mlocal.get[0m [33m15[0m[90m ;; $#logicinner_tmp[0m
|
419
|
-
[36mi32.trunc_sat_f64_u[0m
|
420
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
421
|
-
[36mi32.eqz[0m
|
422
|
-
[36mf64.convert_i32_u[0m
|
423
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
424
|
-
[95mend[0m
|
425
|
-
[31mlocal.get[0m [33m15[0m[90m ;; $#logicinner_tmp[0m
|
426
|
-
[36mf64.const[0m [33m0[0m
|
427
|
-
[36mf64.eq[0m
|
428
|
-
[36mf64.convert_i32_u[0m
|
429
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
430
|
-
[36mi32.trunc_sat_f64_s[0m
|
431
|
-
[36mi32.eqz[0m
|
432
|
-
[36mi32.eqz[0m
|
433
|
-
[95mif[0m[90m ;; label @6[0m
|
434
|
-
[36mf64.const[0m [33m1[0m
|
435
|
-
[31mlocal.set[0m [33m16[0m[90m ;; $depth[0m
|
436
|
-
[36mi32.const[0m [33m0[0m
|
437
|
-
[31mlocal.set[0m [33m17[0m[90m ;; $depth#type (i32)[0m
|
438
|
-
[95mloop[0m[90m ;; label @7[0m
|
439
|
-
[31mlocal.get[0m [33m16[0m[90m ;; $depth[0m
|
440
|
-
[36mf64.const[0m [33m0[0m
|
441
|
-
[36mf64.ne[0m
|
442
|
-
[95mif[0m[90m ;; label @8[0m
|
443
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $str[0m
|
444
|
-
[36mi32.trunc_sat_f64_u[0m
|
445
|
-
[31mlocal.tee[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
446
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
447
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
448
|
-
[31mlocal.get[0m [33m1[0m[90m ;; $str#type (i32)[0m
|
449
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
450
|
-
[95mblock[0m [36mf64[0m[90m ;; label @9[0m
|
451
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
452
|
-
[36mi32.const[0m [33m18[0m
|
453
|
-
[36mi32.eq[0m
|
454
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @10[0m
|
455
|
-
[95mblock[0m [36mf64[0m[90m ;; label @11[0m
|
456
|
-
[31mlocal.get[0m [33m8[0m[90m ;; $i[0m
|
457
|
-
[36mf64.const[0m [33m1[0m
|
458
|
-
[36mf64.add[0m
|
459
|
-
[31mlocal.tee[0m [33m8[0m[90m ;; $i[0m
|
460
|
-
[36mi32.trunc_sat_f64_s[0m
|
461
|
-
[31mlocal.tee[0m [33m10[0m[90m ;; $__charCodeAt_tmp (i32)[0m
|
462
|
-
[36mi32.const[0m [33m0[0m
|
463
|
-
[36mi32.lt_s[0m
|
464
|
-
[31mlocal.get[0m [33m10[0m[90m ;; $__charCodeAt_tmp (i32)[0m
|
465
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
466
|
-
[36mi32.ge_s[0m
|
467
|
-
[36mi32.or[0m
|
468
|
-
[95mif[0m[90m ;; label @12[0m
|
469
|
-
[36mf64.const[0m NaN
|
470
|
-
[35mbr[0m [33m1[0m[90m ;; goto @11[0m
|
471
|
-
[95mend[0m
|
472
|
-
[31mlocal.get[0m [33m10[0m[90m ;; $__charCodeAt_tmp (i32)[0m
|
473
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
474
|
-
[36mi32.add[0m
|
475
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
476
|
-
[36mf64.convert_i32_u[0m
|
477
|
-
[36mi32.const[0m [33m0[0m
|
478
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
479
|
-
[95mend[0m
|
480
|
-
[35mbr[0m [33m1[0m[90m ;; goto @9[0m
|
481
|
-
[95mend[0m
|
482
|
-
[36mi32.const[0m [33m7[0m
|
483
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError(''charCodeAt' proto func tried to be called on a type without an impl')[0m
|
484
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
485
|
-
[31mlocal.set[0m [33m18[0m[90m ;; $c2[0m
|
486
|
-
[31mlocal.get[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
487
|
-
[31mlocal.set[0m [33m19[0m[90m ;; $c2#type (i32)[0m
|
488
|
-
[31mlocal.get[0m [33m18[0m[90m ;; $c2[0m
|
489
|
-
[36mf64.const[0m [33m91[0m
|
490
|
-
[36mf64.eq[0m
|
491
|
-
[95mif[0m[90m ;; label @9[0m
|
492
|
-
[31mlocal.get[0m [33m16[0m[90m ;; $depth[0m
|
493
|
-
[36mf64.const[0m [33m1[0m
|
494
|
-
[36mf64.add[0m
|
495
|
-
[31mlocal.set[0m [33m16[0m[90m ;; $depth[0m
|
496
|
-
[95mend[0m
|
497
|
-
[31mlocal.get[0m [33m18[0m[90m ;; $c2[0m
|
498
|
-
[36mf64.const[0m [33m93[0m
|
499
|
-
[36mf64.eq[0m
|
500
|
-
[95mif[0m[90m ;; label @9[0m
|
501
|
-
[31mlocal.get[0m [33m16[0m[90m ;; $depth[0m
|
502
|
-
[36mf64.const[0m [33m1[0m
|
503
|
-
[36mf64.sub[0m
|
504
|
-
[31mlocal.set[0m [33m16[0m[90m ;; $depth[0m
|
505
|
-
[95mend[0m
|
506
|
-
[35mbr[0m [33m1[0m[90m ;; goto @7[0m
|
507
|
-
[95mend[0m
|
508
|
-
[95mend[0m
|
509
|
-
[31mlocal.get[0m [33m8[0m[90m ;; $i[0m
|
510
|
-
[36mf64.const[0m [33m1[0m
|
511
|
-
[36mf64.sub[0m
|
512
|
-
[31mlocal.set[0m [33m8[0m[90m ;; $i[0m
|
513
|
-
[35mbr[0m [33m2[0m[90m ;; goto @4[0m
|
514
|
-
[95mend[0m
|
515
|
-
[95mend[0m
|
516
|
-
[31mlocal.get[0m [33m9[0m[90m ;; $c[0m
|
517
|
-
[36mf64.const[0m [33m93[0m
|
518
|
-
[36mf64.eq[0m
|
519
|
-
[95mif[0m[90m ;; label @5[0m
|
520
|
-
[36mi32.const[0m [33m16[0m
|
521
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
522
|
-
[95mblock[0m [36mf64[0m[90m ;; label @6[0m
|
523
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
524
|
-
[36mi32.const[0m [33m16[0m
|
525
|
-
[36mi32.eq[0m
|
526
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
527
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
528
|
-
[36mi32.trunc_sat_f64_u[0m
|
529
|
-
[36mi32.const[0m [33m9[0m
|
530
|
-
[36mi32.mul[0m
|
531
|
-
[36mf64.const[0m [33m1[0m
|
532
|
-
[36mi32.trunc_sat_f64_u[0m
|
533
|
-
[36mi32.add[0m
|
534
|
-
[31mlocal.tee[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
535
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
536
|
-
[31mlocal.get[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
537
|
-
[36mi32.load8_u[0m [33m0[0m [33m12[0m
|
538
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
539
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
540
|
-
[95mend[0m
|
541
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
542
|
-
[36mi32.const[0m [33m18[0m
|
543
|
-
[36mi32.eq[0m
|
544
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @7[0m
|
545
|
-
[36mi32.const[0m [33m0[0m
|
546
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $ptr[0m
|
547
|
-
[36mi32.trunc_sat_f64_u[0m
|
548
|
-
[36mf64.const[0m [33m1[0m
|
549
|
-
[36mi32.trunc_sat_f64_u[0m
|
550
|
-
[36mi32.add[0m
|
551
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
552
|
-
[36mi32.store8[0m [33m0[0m [33m3[0m
|
553
|
-
[36mf64.const[0m [33m-1[0m
|
554
|
-
[36mi32.const[0m [33m18[0m
|
555
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
556
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
557
|
-
[95mend[0m
|
558
|
-
[36mi32.const[0m [33m8[0m
|
559
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError('Member expression is not supported for non-string non-array yet')[0m
|
560
|
-
[36mf64.const[0m [33m0[0m
|
561
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
562
|
-
[31mlocal.set[0m [33m15[0m[90m ;; $#logicinner_tmp[0m
|
563
|
-
[31mlocal.get[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
564
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
565
|
-
[95mblock[0m [36mf64[0m[90m ;; label @6[0m
|
566
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
567
|
-
[36mi32.const[0m [33m18[0m
|
568
|
-
[36mi32.eq[0m
|
569
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @7[0m
|
570
|
-
[31mlocal.get[0m [33m15[0m[90m ;; $#logicinner_tmp[0m
|
571
|
-
[36mi32.trunc_sat_f64_u[0m
|
572
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
573
|
-
[36mi32.eqz[0m
|
574
|
-
[36mf64.convert_i32_u[0m
|
575
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
576
|
-
[95mend[0m
|
577
|
-
[31mlocal.get[0m [33m15[0m[90m ;; $#logicinner_tmp[0m
|
578
|
-
[36mf64.const[0m [33m0[0m
|
579
|
-
[36mf64.eq[0m
|
580
|
-
[36mf64.convert_i32_u[0m
|
581
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
582
|
-
[36mi32.trunc_sat_f64_s[0m
|
583
|
-
[36mi32.eqz[0m
|
584
|
-
[36mi32.eqz[0m
|
585
|
-
[95mif[0m[90m ;; label @6[0m
|
586
|
-
[36mf64.const[0m [33m65536[0m
|
587
|
-
[36mi32.trunc_sat_f64_u[0m
|
588
|
-
[31mlocal.tee[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
589
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
590
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
591
|
-
[36mi32.const[0m [33m16[0m
|
592
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
593
|
-
[95mblock[0m[90m ;; label @7[0m
|
594
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
595
|
-
[36mi32.const[0m [33m16[0m
|
596
|
-
[36mi32.eq[0m
|
597
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @8[0m
|
598
|
-
[95mblock[0m[90m ;; label @9[0m
|
599
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
600
|
-
[36mi32.eqz[0m
|
601
|
-
[95mif[0m[90m ;; label @10[0m
|
602
|
-
[35mbr[0m [33m1[0m[90m ;; goto @9[0m
|
603
|
-
[95mend[0m
|
604
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $__proto_pointer_cache (i32)[0m
|
605
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $__proto_length_cache (i32)[0m
|
606
|
-
[36mi32.const[0m [33m1[0m
|
607
|
-
[36mi32.sub[0m
|
608
|
-
[36mi32.store[0m [33m1[0m [33m0[0m
|
609
|
-
[95mend[0m
|
610
|
-
[35mbr[0m [33m1[0m[90m ;; goto @7[0m
|
611
|
-
[95mend[0m
|
612
|
-
[36mi32.const[0m [33m9[0m
|
613
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError(''pop' proto func tried to be called on a type without an impl')[0m
|
614
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
615
|
-
[35mbr[0m [33m2[0m[90m ;; goto @4[0m
|
616
|
-
[95mend[0m
|
617
|
-
[36mi32.const[0m [33m16[0m
|
618
|
-
[31mlocal.set[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
619
|
-
[95mblock[0m [36mf64[0m[90m ;; label @6[0m
|
620
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
621
|
-
[36mi32.const[0m [33m16[0m
|
622
|
-
[36mi32.eq[0m
|
623
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @7[0m
|
624
|
-
[36mi32.const[0m [33m16[0m
|
625
|
-
[36mi32.const[0m [33m2[0m
|
626
|
-
[36mi32.eq[0m
|
627
|
-
[36mi32.const[0m [33m16[0m
|
628
|
-
[36mi32.const[0m [33m18[0m
|
629
|
-
[36mi32.eq[0m
|
630
|
-
[36mi32.or[0m
|
631
|
-
[36mi32.const[0m [33m16[0m
|
632
|
-
[36mi32.const[0m [33m16[0m
|
633
|
-
[36mi32.eq[0m
|
634
|
-
[36mi32.or[0m
|
635
|
-
[95mif[0m [36mf64[0m[90m ;; label @8[0m
|
636
|
-
[36mf64.const[0m [33m65536[0m
|
637
|
-
[36mi32.trunc_sat_f64_u[0m
|
638
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
639
|
-
[36mf64.convert_i32_u[0m
|
640
|
-
[36mi32.const[0m [33m0[0m
|
641
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
642
|
-
[95melse[0m[90m ;; label @8[0m
|
643
|
-
[36mf64.const[0m [33m0[0m
|
644
|
-
[36mi32.const[0m [33m3[0m
|
645
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
646
|
-
[95mend[0m
|
647
|
-
[36mf64.const[0m [33m1[0m
|
648
|
-
[36mf64.sub[0m
|
649
|
-
[36mi32.trunc_sat_f64_u[0m
|
650
|
-
[36mi32.const[0m [33m9[0m
|
651
|
-
[36mi32.mul[0m
|
652
|
-
[36mf64.const[0m [33m65536[0m
|
653
|
-
[36mi32.trunc_sat_f64_u[0m
|
654
|
-
[36mi32.add[0m
|
655
|
-
[31mlocal.tee[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
656
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
657
|
-
[31mlocal.get[0m [33m13[0m[90m ;; $#loadArray_offset (i32)[0m
|
658
|
-
[36mi32.load8_u[0m [33m0[0m [33m12[0m
|
659
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
660
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
661
|
-
[95mend[0m
|
662
|
-
[31mlocal.get[0m [33m7[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
663
|
-
[36mi32.const[0m [33m18[0m
|
664
|
-
[36mi32.eq[0m
|
665
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @7[0m
|
666
|
-
[36mi32.const[0m [33m0[0m
|
667
|
-
[36mi32.const[0m [33m16[0m
|
668
|
-
[36mi32.const[0m [33m2[0m
|
669
|
-
[36mi32.eq[0m
|
670
|
-
[36mi32.const[0m [33m16[0m
|
671
|
-
[36mi32.const[0m [33m18[0m
|
672
|
-
[36mi32.eq[0m
|
673
|
-
[36mi32.or[0m
|
674
|
-
[36mi32.const[0m [33m16[0m
|
675
|
-
[36mi32.const[0m [33m16[0m
|
676
|
-
[36mi32.eq[0m
|
677
|
-
[36mi32.or[0m
|
678
|
-
[95mif[0m [36mf64[0m[90m ;; label @8[0m
|
679
|
-
[36mf64.const[0m [33m65536[0m
|
680
|
-
[36mi32.trunc_sat_f64_u[0m
|
681
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
682
|
-
[36mf64.convert_i32_u[0m
|
683
|
-
[36mi32.const[0m [33m0[0m
|
684
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
685
|
-
[95melse[0m[90m ;; label @8[0m
|
686
|
-
[36mf64.const[0m [33m0[0m
|
687
|
-
[36mi32.const[0m [33m3[0m
|
688
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
689
|
-
[95mend[0m
|
690
|
-
[36mf64.const[0m [33m1[0m
|
691
|
-
[36mf64.sub[0m
|
692
|
-
[36mi32.trunc_sat_f64_u[0m
|
693
|
-
[36mf64.const[0m [33m65536[0m
|
694
|
-
[36mi32.trunc_sat_f64_u[0m
|
695
|
-
[36mi32.add[0m
|
696
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
697
|
-
[36mi32.store8[0m [33m0[0m [33m3[0m
|
698
|
-
[36mf64.const[0m [33m-1[0m
|
699
|
-
[36mi32.const[0m [33m18[0m
|
700
|
-
[31mlocal.set[0m [33m6[0m[90m ;; $#last_type (i32)[0m
|
701
|
-
[35mbr[0m [33m1[0m[90m ;; goto @6[0m
|
702
|
-
[95mend[0m
|
703
|
-
[36mi32.const[0m [33m10[0m
|
704
|
-
[35mthrow[0m [33m0[0m[90m ;; TypeError('Member expression is not supported for non-string non-array yet')[0m
|
705
|
-
[36mf64.const[0m [33m0[0m
|
706
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
707
|
-
[31mlocal.set[0m [33m8[0m[90m ;; $i[0m
|
708
|
-
[95mend[0m
|
709
|
-
[95mend[0m
|
710
|
-
[31mlocal.get[0m [33m8[0m[90m ;; $i[0m
|
711
|
-
[36mf64.const[0m [33m1[0m
|
712
|
-
[36mf64.add[0m
|
713
|
-
[31mlocal.set[0m [33m8[0m[90m ;; $i[0m
|
714
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
715
|
-
[95mend[0m
|
716
|
-
[95mend[0m
|
717
|
-
[36mf64.const[0m [33m0[0m
|
718
|
-
[36mi32.const[0m [33m3[0m
|
719
|
-
[35mreturn[0m
|
720
|
-
[95mend[0m
|
721
|
-
|
722
|
-
([36mf64[0m, [36mi32[0m) -> ()[90m ;; $__Porffor_print (6)[0m
|
723
|
-
local [36mi32[0m [36mi32[0m [36mi32[0m
|
724
|
-
[31mlocal.get[0m [33m1[0m[90m ;; $y (i32)[0m
|
725
|
-
[31mlocal.set[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
726
|
-
[95mblock[0m[90m ;; label @2[0m
|
727
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
728
|
-
[36mi32.const[0m [33m0[0m
|
729
|
-
[36mi32.eq[0m
|
730
|
-
[95mif[0m[90m ;; TYPESWITCH|Number ;; label @3[0m
|
731
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $x[0m
|
732
|
-
[35mcall[0m [33m3[0m[90m ;; import print (f64) -> ()[0m
|
733
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
734
|
-
[95mend[0m
|
735
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
736
|
-
[36mi32.const[0m [33m1[0m
|
737
|
-
[36mi32.eq[0m
|
738
|
-
[95mif[0m[90m ;; TYPESWITCH|Boolean ;; label @3[0m
|
739
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $x[0m
|
740
|
-
[36mi32.trunc_sat_f64_u[0m
|
741
|
-
[95mif[0m[90m ;; label @4[0m
|
742
|
-
[36mf64.const[0m [33m116[0m
|
743
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
744
|
-
[36mf64.const[0m [33m114[0m
|
745
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
746
|
-
[36mf64.const[0m [33m117[0m
|
747
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
748
|
-
[36mf64.const[0m [33m101[0m
|
749
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
750
|
-
[95melse[0m[90m ;; label @4[0m
|
751
|
-
[36mf64.const[0m [33m102[0m
|
752
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
753
|
-
[36mf64.const[0m [33m97[0m
|
754
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
755
|
-
[36mf64.const[0m [33m108[0m
|
756
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
757
|
-
[36mf64.const[0m [33m115[0m
|
758
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
759
|
-
[36mf64.const[0m [33m101[0m
|
760
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
761
|
-
[95mend[0m
|
762
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
763
|
-
[95mend[0m
|
764
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
765
|
-
[36mi32.const[0m [33m3[0m
|
766
|
-
[36mi32.eq[0m
|
767
|
-
[95mif[0m[90m ;; TYPESWITCH|undefined ;; label @3[0m
|
768
|
-
[36mf64.const[0m [33m117[0m
|
769
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
770
|
-
[36mf64.const[0m [33m110[0m
|
771
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
772
|
-
[36mf64.const[0m [33m100[0m
|
773
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
774
|
-
[36mf64.const[0m [33m101[0m
|
775
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
776
|
-
[36mf64.const[0m [33m102[0m
|
777
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
778
|
-
[36mf64.const[0m [33m105[0m
|
779
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
780
|
-
[36mf64.const[0m [33m110[0m
|
781
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
782
|
-
[36mf64.const[0m [33m101[0m
|
783
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
784
|
-
[36mf64.const[0m [33m100[0m
|
785
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
786
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
787
|
-
[95mend[0m
|
788
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
789
|
-
[36mi32.const[0m [33m4[0m
|
790
|
-
[36mi32.eq[0m
|
791
|
-
[95mif[0m[90m ;; TYPESWITCH|Object ;; label @3[0m
|
792
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $x[0m
|
793
|
-
[36mi32.trunc_sat_f64_u[0m
|
794
|
-
[95mif[0m[90m ;; label @4[0m
|
795
|
-
[36mf64.const[0m [33m123[0m
|
796
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
797
|
-
[36mf64.const[0m [33m125[0m
|
798
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
799
|
-
[95melse[0m[90m ;; label @4[0m
|
800
|
-
[36mf64.const[0m [33m110[0m
|
801
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
802
|
-
[36mf64.const[0m [33m117[0m
|
803
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
804
|
-
[36mf64.const[0m [33m108[0m
|
805
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
806
|
-
[36mf64.const[0m [33m108[0m
|
807
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
808
|
-
[95mend[0m
|
809
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
810
|
-
[95mend[0m
|
811
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
812
|
-
[36mi32.const[0m [33m5[0m
|
813
|
-
[36mi32.eq[0m
|
814
|
-
[95mif[0m[90m ;; TYPESWITCH|Function ;; label @3[0m
|
815
|
-
[36mf64.const[0m [33m102[0m
|
816
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
817
|
-
[36mf64.const[0m [33m117[0m
|
818
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
819
|
-
[36mf64.const[0m [33m110[0m
|
820
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
821
|
-
[36mf64.const[0m [33m99[0m
|
822
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
823
|
-
[36mf64.const[0m [33m116[0m
|
824
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
825
|
-
[36mf64.const[0m [33m105[0m
|
826
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
827
|
-
[36mf64.const[0m [33m111[0m
|
828
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
829
|
-
[36mf64.const[0m [33m110[0m
|
830
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
831
|
-
[36mf64.const[0m [33m32[0m
|
832
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
833
|
-
[36mf64.const[0m [33m40[0m
|
834
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
835
|
-
[36mf64.const[0m [33m41[0m
|
836
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
837
|
-
[36mf64.const[0m [33m32[0m
|
838
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
839
|
-
[36mf64.const[0m [33m123[0m
|
840
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
841
|
-
[36mf64.const[0m [33m125[0m
|
842
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
843
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
844
|
-
[95mend[0m
|
845
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
846
|
-
[36mi32.const[0m [33m16[0m
|
847
|
-
[36mi32.eq[0m
|
848
|
-
[95mif[0m[90m ;; TYPESWITCH|Array ;; label @3[0m
|
849
|
-
[36mf64.const[0m [33m91[0m
|
850
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
851
|
-
[36mf64.const[0m [33m32[0m
|
852
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
853
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $x[0m
|
854
|
-
[36mi32.trunc_sat_f64_u[0m
|
855
|
-
[31mlocal.tee[0m [33m2[0m[90m ;; $a (i32)[0m
|
856
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
857
|
-
[36mi32.const[0m [33m9[0m
|
858
|
-
[36mi32.mul[0m
|
859
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
860
|
-
[36mi32.add[0m
|
861
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $b (i32)[0m
|
862
|
-
[95mloop[0m[90m ;; label @4[0m
|
863
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
864
|
-
[36mf64.load[0m [33m0[0m [33m4[0m
|
865
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
866
|
-
[36mi32.load8_u[0m [33m0[0m [33m12[0m
|
867
|
-
[35mcall[0m [33m6[0m[90m ;; $__Porffor_print (f64, i32) -> ()[0m
|
868
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
869
|
-
[36mi32.const[0m [33m9[0m
|
870
|
-
[36mi32.add[0m
|
871
|
-
[31mlocal.tee[0m [33m2[0m[90m ;; $a (i32)[0m
|
872
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $b (i32)[0m
|
873
|
-
[36mi32.ne[0m
|
874
|
-
[95mif[0m[90m ;; label @5[0m
|
875
|
-
[36mf64.const[0m [33m44[0m
|
876
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
877
|
-
[36mf64.const[0m [33m32[0m
|
878
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
879
|
-
[35mbr[0m [33m1[0m[90m ;; goto @4[0m
|
880
|
-
[95mend[0m
|
881
|
-
[95mend[0m
|
882
|
-
[36mf64.const[0m [33m32[0m
|
883
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
884
|
-
[36mf64.const[0m [33m93[0m
|
885
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
886
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
887
|
-
[95mend[0m
|
888
|
-
[31mlocal.get[0m [33m4[0m[90m ;; $#typeswitch_tmp (i32)[0m
|
889
|
-
[36mi32.const[0m [33m18[0m
|
890
|
-
[36mi32.eq[0m
|
891
|
-
[95mif[0m[90m ;; TYPESWITCH|ByteString ;; label @3[0m
|
892
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $x[0m
|
893
|
-
[36mi32.trunc_sat_f64_u[0m
|
894
|
-
[31mlocal.tee[0m [33m2[0m[90m ;; $a (i32)[0m
|
895
|
-
[36mi32.load[0m [33m1[0m [33m0[0m
|
896
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
897
|
-
[36mi32.add[0m
|
898
|
-
[31mlocal.set[0m [33m3[0m[90m ;; $b (i32)[0m
|
899
|
-
[95mloop[0m[90m ;; label @4[0m
|
900
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
901
|
-
[36mi32.load8_u[0m [33m0[0m [33m4[0m
|
902
|
-
[36mf64.convert_i32_u[0m
|
903
|
-
[35mcall[0m [33m1[0m[90m ;; import printChar (f64) -> ()[0m
|
904
|
-
[31mlocal.get[0m [33m2[0m[90m ;; $a (i32)[0m
|
905
|
-
[36mi32.const[0m [33m1[0m
|
906
|
-
[36mi32.add[0m
|
907
|
-
[31mlocal.tee[0m [33m2[0m[90m ;; $a (i32)[0m
|
908
|
-
[31mlocal.get[0m [33m3[0m[90m ;; $b (i32)[0m
|
909
|
-
[36mi32.ne[0m
|
910
|
-
[35mbr_[95mif[0m[0m [33m0[0m[90m ;; goto @4[0m
|
911
|
-
[95mend[0m
|
912
|
-
[35mbr[0m [33m1[0m[90m ;; goto @2[0m
|
913
|
-
[95mend[0m
|
914
|
-
[31mlocal.get[0m [33m0[0m[90m ;; $x[0m
|
915
|
-
[35mcall[0m [33m3[0m[90m ;; import print (f64) -> ()[0m
|
916
|
-
[95mend[0m[90m ;; TYPESWITCH_end[0m
|
917
|
-
[95mend[0m
|
918
|
-
|
919
|
-
|
920
|
-
Hello World!
|