porffor 0.18.4 → 0.18.6
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 +1 -7
- package/compiler/builtins/array.ts +26 -0
- package/compiler/codegen.js +3 -1
- package/compiler/generated_builtins.js +107 -7
- package/compiler/precompile.js +1 -1
- package/package.json +1 -1
- package/runner/index.js +1 -1
- package/bf +0 -0
package/README.md
CHANGED
@@ -254,25 +254,18 @@ Basically none right now (other than giving people headaches). Potential ideas:
|
|
254
254
|
## Todo
|
255
255
|
No particular order and no guarentees, just what could happen soon™
|
256
256
|
|
257
|
-
- Arrays
|
258
|
-
- Destructuring
|
259
257
|
- Objects
|
260
258
|
- Basic object expressions (eg `{}`, `{ a: 0 }`)
|
261
259
|
- Asur
|
262
260
|
- Support memory
|
263
261
|
- Support exceptions
|
264
|
-
- More math operators (`**`, etc)
|
265
|
-
- Typed export inputs (array)
|
266
262
|
- Exceptions
|
267
|
-
- Rewrite to use actual strings (optional?)
|
268
263
|
- `try { } finally { }`
|
269
264
|
- Rethrowing inside catch
|
270
265
|
- Optimizations
|
271
266
|
- Rewrite local indexes per func for smallest local header and remove unused idxs
|
272
267
|
- Smarter inline selection (snapshots?)
|
273
|
-
- Remove const ifs (`if (true)`, etc)
|
274
268
|
- Memory alignment
|
275
|
-
- Add general pref for always using "fast" (non-short circuiting) or/and
|
276
269
|
- Runtime
|
277
270
|
- WASI target
|
278
271
|
- Run precompiled Wasm file if given
|
@@ -292,6 +285,7 @@ No particular order and no guarentees, just what could happen soon™
|
|
292
285
|
- Precompiled TS built-ins
|
293
286
|
- Asur
|
294
287
|
- `escape()` optimization
|
288
|
+
- PGO
|
295
289
|
- Self hosted testing?
|
296
290
|
|
297
291
|
## VSCode extension
|
@@ -46,6 +46,8 @@ export const __Array_prototype_slice = (_this: any[], start: number, end: number
|
|
46
46
|
return out;
|
47
47
|
};
|
48
48
|
|
49
|
+
// todo: splice
|
50
|
+
|
49
51
|
// @porf-typed-array
|
50
52
|
export const __Array_prototype_fill = (_this: any[], value: any, start: any, end: any) => {
|
51
53
|
const len: i32 = _this.length;
|
@@ -174,6 +176,30 @@ export const __Array_prototype_copyWithin = (_this: any[], target: number, start
|
|
174
176
|
return _this;
|
175
177
|
};
|
176
178
|
|
179
|
+
// @porf-typed-array
|
180
|
+
export const __Array_prototype_concat = (_this: any[], ...vals: any[]) => {
|
181
|
+
// todo/perf: rewrite to use memory.copy (via some Porffor.array.append thing?)
|
182
|
+
let out: any[] = Porffor.allocate();
|
183
|
+
Porffor.clone(_this, out);
|
184
|
+
|
185
|
+
let len: i32 = _this.length;
|
186
|
+
|
187
|
+
for (const x of vals) {
|
188
|
+
if (Porffor.rawType(x) & 0b01000000) { // value is iterable
|
189
|
+
// todo: for..of is broken here because ??
|
190
|
+
const l: i32 = x.length;
|
191
|
+
for (let i: i32 = 0; i < l; i++) {
|
192
|
+
out[len++] = x[i];
|
193
|
+
}
|
194
|
+
} else {
|
195
|
+
out[len++] = x;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
out.length = len;
|
200
|
+
return out;
|
201
|
+
};
|
202
|
+
|
177
203
|
// @porf-typed-array
|
178
204
|
export const __Array_prototype_reverse = (_this: any[]) => {
|
179
205
|
const len: i32 = _this.length;
|
package/compiler/codegen.js
CHANGED
@@ -1035,7 +1035,7 @@ const asmFuncToAsm = (func, scope) => {
|
|
1035
1035
|
});
|
1036
1036
|
};
|
1037
1037
|
|
1038
|
-
const asmFunc = (name, { wasm, params, locals: localTypes, globals: globalTypes = [], globalInits = [], returns, returnType, localNames = [], globalNames = [], data: _data = [], table = false, constr = false }) => {
|
1038
|
+
const asmFunc = (name, { wasm, params, locals: localTypes, globals: globalTypes = [], globalInits = [], returns, returnType, localNames = [], globalNames = [], data: _data = [], table = false, constr = false, hasRestArgument = false }) => {
|
1039
1039
|
const existing = funcs.find(x => x.name === name);
|
1040
1040
|
if (existing) return existing;
|
1041
1041
|
|
@@ -1122,6 +1122,8 @@ const asmFunc = (name, { wasm, params, locals: localTypes, globals: globalTypes
|
|
1122
1122
|
}
|
1123
1123
|
}
|
1124
1124
|
|
1125
|
+
if (hasRestArgument) func.hasRestArgument = true;
|
1126
|
+
|
1125
1127
|
func.wasm = wasm;
|
1126
1128
|
|
1127
1129
|
return func;
|
@@ -290,6 +290,16 @@ export const BuiltinFuncs = function() {
|
|
290
290
|
locals: [124,124,127,127,127],
|
291
291
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
292
292
|
};
|
293
|
+
this.__Array_prototype_concat = {
|
294
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[3,64],[32,7],[43,0,4],[32,7],[45,0,12],[33,11],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,9],[108],[106],[34,15],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,0,0],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,0,0],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[57,0,4],[32,15],[32,5],[58,0,12],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,9],[108],[106],[34,15],[32,10],[34,14],[57,0,4],[32,15],[32,11],[58,0,12],[11],[11],[32,7],[65,9],[106],[33,7],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,208,0],[15]],
|
295
|
+
params: [124,127,124,127],
|
296
|
+
typedParams: true,
|
297
|
+
returns: [124,127],
|
298
|
+
typedReturns: true,
|
299
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
300
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
301
|
+
hasRestArgument: true,
|
302
|
+
};
|
293
303
|
this.__Array_prototype_reverse = {
|
294
304
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,3],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,9],[108],[106],[34,9],[32,4],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[34,8],[57,0,4],[32,9],[32,7],[58,0,12],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,9],[108],[106],[34,9],[32,5],[34,8],[57,0,4],[32,9],[65,0],[58,0,12],[12,1],[11],[11],[32,0],[65,208,0],[15]],
|
295
305
|
params: [124,127],
|
@@ -2226,6 +2236,16 @@ export const BuiltinFuncs = function() {
|
|
2226
2236
|
locals: [124,124,127,127,127],
|
2227
2237
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2228
2238
|
};
|
2239
|
+
this.__Uint8Array_prototype_concat = {
|
2240
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[106],[45,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,0,0],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,0,0],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,3],[58,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,10],[34,14],[252,3],[58,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,213,0],[15]],
|
2241
|
+
params: [124,127,124,127],
|
2242
|
+
typedParams: true,
|
2243
|
+
returns: [124,127],
|
2244
|
+
typedReturns: true,
|
2245
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
2246
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
2247
|
+
hasRestArgument: true,
|
2248
|
+
};
|
2229
2249
|
this.__Uint8Array_prototype_reverse = {
|
2230
2250
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[106],[32,0],[252,3],[32,4],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[34,8],[252,3],[58,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[106],[32,5],[34,8],[252,3],[58,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,213,0],[15]],
|
2231
2251
|
params: [124,127],
|
@@ -2483,6 +2503,16 @@ export const BuiltinFuncs = function() {
|
|
2483
2503
|
locals: [124,124,127,127,127],
|
2484
2504
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2485
2505
|
};
|
2506
|
+
this.__Int8Array_prototype_concat = {
|
2507
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[106],[44,0,4],[183],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,192,1],[65,1],[54,0,0],[65,128,128,192,1],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,72,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,192,1],[65,1],[54,0,0],[65,128,128,192,1],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,72,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,2],[58,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,10],[34,14],[252,2],[58,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,214,0],[15]],
|
2508
|
+
params: [124,127,124,127],
|
2509
|
+
typedParams: true,
|
2510
|
+
returns: [124,127],
|
2511
|
+
typedReturns: true,
|
2512
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
2513
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
2514
|
+
hasRestArgument: true,
|
2515
|
+
};
|
2486
2516
|
this.__Int8Array_prototype_reverse = {
|
2487
2517
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[106],[44,0,4],[183],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[106],[32,0],[252,3],[32,4],[252,3],[106],[44,0,4],[183],[65,0],[33,7],[34,8],[252,2],[58,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[106],[32,5],[34,8],[252,2],[58,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,214,0],[15]],
|
2488
2518
|
params: [124,127],
|
@@ -2650,7 +2680,7 @@ export const BuiltinFuncs = function() {
|
|
2650
2680
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
2651
2681
|
};
|
2652
2682
|
this.Uint8ClampedArray = {
|
2653
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint8ClampedArray requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
2683
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint8ClampedArray requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,232,1],[65,1],[54,0,0],[3,64],[65,128,128,232,1],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,77,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,232,1],[65,1],[54,0,0],[3,64],[65,128,128,232,1],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,77,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,215,0],[15]],
|
2654
2684
|
params: [124,127],
|
2655
2685
|
typedParams: true,
|
2656
2686
|
returns: [124,127],
|
@@ -2740,6 +2770,16 @@ export const BuiltinFuncs = function() {
|
|
2740
2770
|
locals: [124,124,127,127,127],
|
2741
2771
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2742
2772
|
};
|
2773
|
+
this.__Uint8ClampedArray_prototype_concat = {
|
2774
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[106],[45,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,148,3],[65,1],[54,0,0],[65,128,128,148,3],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,64,89,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,148,3],[65,1],[54,0,0],[65,128,128,148,3],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,64,89,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,10],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,215,0],[15]],
|
2775
|
+
params: [124,127,124,127],
|
2776
|
+
typedParams: true,
|
2777
|
+
returns: [124,127],
|
2778
|
+
typedReturns: true,
|
2779
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
2780
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
2781
|
+
hasRestArgument: true,
|
2782
|
+
};
|
2743
2783
|
this.__Uint8ClampedArray_prototype_reverse = {
|
2744
2784
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[106],[32,0],[252,3],[32,4],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[34,8],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[106],[32,5],[34,8],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,215,0],[15]],
|
2745
2785
|
params: [124,127],
|
@@ -2907,7 +2947,7 @@ export const BuiltinFuncs = function() {
|
|
2907
2947
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
2908
2948
|
};
|
2909
2949
|
this.Uint16Array = {
|
2910
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
2950
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,192,3],[65,1],[54,0,0],[3,64],[65,128,128,192,3],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,92,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,192,3],[65,1],[54,0,0],[3,64],[65,128,128,192,3],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,92,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,216,0],[15]],
|
2911
2951
|
params: [124,127],
|
2912
2952
|
typedParams: true,
|
2913
2953
|
returns: [124,127],
|
@@ -2997,6 +3037,16 @@ export const BuiltinFuncs = function() {
|
|
2997
3037
|
locals: [124,124,127,127,127],
|
2998
3038
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2999
3039
|
};
|
3040
|
+
this.__Uint16Array_prototype_concat = {
|
3041
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,2],[108],[106],[47,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,244,4],[65,1],[54,0,0],[65,128,128,244,4],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,160,99,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,244,4],[65,1],[54,0,0],[65,128,128,244,4],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,160,99,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,3],[59,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,10],[34,14],[252,3],[59,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,216,0],[15]],
|
3042
|
+
params: [124,127,124,127],
|
3043
|
+
typedParams: true,
|
3044
|
+
returns: [124,127],
|
3045
|
+
typedReturns: true,
|
3046
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3047
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3048
|
+
hasRestArgument: true,
|
3049
|
+
};
|
3000
3050
|
this.__Uint16Array_prototype_reverse = {
|
3001
3051
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,2],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,7],[34,8],[252,3],[59,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,2],[108],[106],[32,5],[34,8],[252,3],[59,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,216,0],[15]],
|
3002
3052
|
params: [124,127],
|
@@ -3164,7 +3214,7 @@ export const BuiltinFuncs = function() {
|
|
3164
3214
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3165
3215
|
};
|
3166
3216
|
this.Int16Array = {
|
3167
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
3217
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,152,5],[65,1],[54,0,0],[3,64],[65,128,128,152,5],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,192,100,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,152,5],[65,1],[54,0,0],[3,64],[65,128,128,152,5],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,192,100,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,217,0],[15]],
|
3168
3218
|
params: [124,127],
|
3169
3219
|
typedParams: true,
|
3170
3220
|
returns: [124,127],
|
@@ -3254,6 +3304,16 @@ export const BuiltinFuncs = function() {
|
|
3254
3304
|
locals: [124,124,127,127,127],
|
3255
3305
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3256
3306
|
};
|
3307
|
+
this.__Int16Array_prototype_concat = {
|
3308
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,2],[108],[106],[46,0,4],[183],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,208,6],[65,1],[54,0,0],[65,128,128,208,6],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,128,106,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,208,6],[65,1],[54,0,0],[65,128,128,208,6],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,128,106,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,2],[59,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,10],[34,14],[252,2],[59,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,217,0],[15]],
|
3309
|
+
params: [124,127,124,127],
|
3310
|
+
typedParams: true,
|
3311
|
+
returns: [124,127],
|
3312
|
+
typedReturns: true,
|
3313
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3314
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3315
|
+
hasRestArgument: true,
|
3316
|
+
};
|
3257
3317
|
this.__Int16Array_prototype_reverse = {
|
3258
3318
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,2],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,7],[34,8],[252,2],[59,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,2],[108],[106],[32,5],[34,8],[252,2],[59,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,217,0],[15]],
|
3259
3319
|
params: [124,127],
|
@@ -3421,7 +3481,7 @@ export const BuiltinFuncs = function() {
|
|
3421
3481
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3422
3482
|
};
|
3423
3483
|
this.Uint32Array = {
|
3424
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
3484
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,240,6],[65,1],[54,0,0],[3,64],[65,128,128,240,6],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,128,107,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,240,6],[65,1],[54,0,0],[3,64],[65,128,128,240,6],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,128,107,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,218,0],[15]],
|
3425
3485
|
params: [124,127],
|
3426
3486
|
typedParams: true,
|
3427
3487
|
returns: [124,127],
|
@@ -3511,6 +3571,16 @@ export const BuiltinFuncs = function() {
|
|
3511
3571
|
locals: [124,124,127,127,127],
|
3512
3572
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3513
3573
|
};
|
3574
|
+
this.__Uint32Array_prototype_concat = {
|
3575
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,4],[108],[106],[40,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,172,8],[65,1],[54,0,0],[65,128,128,172,8],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,176,112,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,172,8],[65,1],[54,0,0],[65,128,128,172,8],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,176,112,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,3],[54,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,10],[34,14],[252,3],[54,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,218,0],[15]],
|
3576
|
+
params: [124,127,124,127],
|
3577
|
+
typedParams: true,
|
3578
|
+
returns: [124,127],
|
3579
|
+
typedReturns: true,
|
3580
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3581
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3582
|
+
hasRestArgument: true,
|
3583
|
+
};
|
3514
3584
|
this.__Uint32Array_prototype_reverse = {
|
3515
3585
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,7],[34,8],[252,3],[54,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,4],[108],[106],[32,5],[34,8],[252,3],[54,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,218,0],[15]],
|
3516
3586
|
params: [124,127],
|
@@ -3678,7 +3748,7 @@ export const BuiltinFuncs = function() {
|
|
3678
3748
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3679
3749
|
};
|
3680
3750
|
this.Int32Array = {
|
3681
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
3751
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,200,8],[65,1],[54,0,0],[3,64],[65,128,128,200,8],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,32,113,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,200,8],[65,1],[54,0,0],[3,64],[65,128,128,200,8],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,32,113,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,219,0],[15]],
|
3682
3752
|
params: [124,127],
|
3683
3753
|
typedParams: true,
|
3684
3754
|
returns: [124,127],
|
@@ -3768,6 +3838,16 @@ export const BuiltinFuncs = function() {
|
|
3768
3838
|
locals: [124,124,127,127,127],
|
3769
3839
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3770
3840
|
};
|
3841
|
+
this.__Int32Array_prototype_concat = {
|
3842
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,4],[108],[106],[40,0,4],[183],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,136,10],[65,1],[54,0,0],[65,128,128,136,10],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,32,116,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,136,10],[65,1],[54,0,0],[65,128,128,136,10],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,32,116,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,2],[54,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,10],[34,14],[252,2],[54,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,219,0],[15]],
|
3843
|
+
params: [124,127,124,127],
|
3844
|
+
typedParams: true,
|
3845
|
+
returns: [124,127],
|
3846
|
+
typedReturns: true,
|
3847
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3848
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3849
|
+
hasRestArgument: true,
|
3850
|
+
};
|
3771
3851
|
this.__Int32Array_prototype_reverse = {
|
3772
3852
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,7],[34,8],[252,2],[54,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,4],[108],[106],[32,5],[34,8],[252,2],[54,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,219,0],[15]],
|
3773
3853
|
params: [124,127],
|
@@ -3935,7 +4015,7 @@ export const BuiltinFuncs = function() {
|
|
3935
4015
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3936
4016
|
};
|
3937
4017
|
this.Float32Array = {
|
3938
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
4018
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,160,10],[65,1],[54,0,0],[3,64],[65,128,128,160,10],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,128,116,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,160,10],[65,1],[54,0,0],[3,64],[65,128,128,160,10],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,128,116,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,220,0],[15]],
|
3939
4019
|
params: [124,127],
|
3940
4020
|
typedParams: true,
|
3941
4021
|
returns: [124,127],
|
@@ -4025,6 +4105,16 @@ export const BuiltinFuncs = function() {
|
|
4025
4105
|
locals: [124,124,127,127,127],
|
4026
4106
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
4027
4107
|
};
|
4108
|
+
this.__Float32Array_prototype_concat = {
|
4109
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,4],[108],[106],[42,0,4],[187],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,228,11],[65,1],[54,0,0],[65,128,128,228,11],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,144,119,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,228,11],[65,1],[54,0,0],[65,128,128,228,11],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,144,119,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[182],[56,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,10],[34,14],[182],[56,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,220,0],[15]],
|
4110
|
+
params: [124,127,124,127],
|
4111
|
+
typedParams: true,
|
4112
|
+
returns: [124,127],
|
4113
|
+
typedReturns: true,
|
4114
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
4115
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
4116
|
+
hasRestArgument: true,
|
4117
|
+
};
|
4028
4118
|
this.__Float32Array_prototype_reverse = {
|
4029
4119
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,7],[34,8],[182],[56,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,4],[108],[106],[32,5],[34,8],[182],[56,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,220,0],[15]],
|
4030
4120
|
params: [124,127],
|
@@ -4192,7 +4282,7 @@ export const BuiltinFuncs = function() {
|
|
4192
4282
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
4193
4283
|
};
|
4194
4284
|
this.Float64Array = {
|
4195
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float64Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
4285
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float64Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,248,11],[65,1],[54,0,0],[3,64],[65,128,128,248,11],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,224,119,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,248,11],[65,1],[54,0,0],[3,64],[65,128,128,248,11],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,224,119,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,221,0],[15]],
|
4196
4286
|
params: [124,127],
|
4197
4287
|
typedParams: true,
|
4198
4288
|
returns: [124,127],
|
@@ -4282,6 +4372,16 @@ export const BuiltinFuncs = function() {
|
|
4282
4372
|
locals: [124,124,127,127,127],
|
4283
4373
|
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
4284
4374
|
};
|
4375
|
+
this.__Float64Array_prototype_concat = {
|
4376
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,8],[108],[106],[43,0,4],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,8],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,192,13],[65,1],[54,0,0],[65,128,128,192,13],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,123,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,192,13],[65,1],[54,0,0],[65,128,128,192,13],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,123,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[57,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,8],[108],[106],[32,10],[34,14],[57,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,221,0],[15]],
|
4377
|
+
params: [124,127,124,127],
|
4378
|
+
typedParams: true,
|
4379
|
+
returns: [124,127],
|
4380
|
+
typedReturns: true,
|
4381
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
4382
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
4383
|
+
hasRestArgument: true,
|
4384
|
+
};
|
4285
4385
|
this.__Float64Array_prototype_reverse = {
|
4286
4386
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,8],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,7],[34,8],[57,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,8],[108],[106],[32,5],[34,8],[57,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,221,0],[15]],
|
4287
4387
|
params: [124,127],
|
package/compiler/precompile.js
CHANGED
@@ -119,7 +119,7 @@ ${funcs.map(x => {
|
|
119
119
|
locals: ${JSON.stringify(Object.values(x.locals).slice(x.params.length).map(x => x.type))},
|
120
120
|
localNames: ${JSON.stringify(Object.keys(x.locals))},
|
121
121
|
${x.data && x.data.length > 0 ? ` data: ${JSON.stringify(x.data)},` : ''}
|
122
|
-
${x.table ? ` table: true,` : ''}${x.constr ? ` constr: true,` : ''}
|
122
|
+
${x.table ? ` table: true,` : ''}${x.constr ? ` constr: true,` : ''}${x.hasRestArgument ? ` hasRestArgument: true,` : ''}
|
123
123
|
};`.replaceAll('\n\n', '\n').replaceAll('\n\n', '\n').replaceAll('\n\n', '\n');
|
124
124
|
}).join('\n')}
|
125
125
|
};`;
|
package/package.json
CHANGED
package/runner/index.js
CHANGED
package/bf
DELETED
Binary file
|