porffor 0.17.0-3c2d70d66 โ 0.17.0-3d806f394
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/compiler/builtins/array.ts +45 -0
- package/compiler/codegen.js +20 -2
- package/compiler/generated_builtins.js +100 -0
- package/package.json +1 -1
@@ -305,6 +305,51 @@ export const __Array_prototype_reduceRight = (_this: any[], callbackFn: any, ini
|
|
305
305
|
return acc;
|
306
306
|
};
|
307
307
|
|
308
|
+
// @porf-typed-array
|
309
|
+
export const __Array_prototype_sort = (_this: any[], callbackFn: any) => {
|
310
|
+
// todo: default callbackFn
|
311
|
+
|
312
|
+
// insertion sort, i guess
|
313
|
+
const len: i32 = _this.length;
|
314
|
+
for (let i: i32 = 0; i < len; i++) {
|
315
|
+
const x: any = _this[i];
|
316
|
+
let j: i32 = i;
|
317
|
+
while (j > 0) {
|
318
|
+
const y: any = _this[j - 1];
|
319
|
+
|
320
|
+
// 23.1.3.30.2 CompareArrayElements (x, y, comparefn)
|
321
|
+
// https://tc39.es/ecma262/#sec-comparearrayelements
|
322
|
+
const xt: i32 = Porffor.rawType(x);
|
323
|
+
const yt: i32 = Porffor.rawType(y);
|
324
|
+
let v: number;
|
325
|
+
|
326
|
+
// 1. If x and y are both undefined, return +0๐ฝ.
|
327
|
+
if (xt == Porffor.TYPES.undefined && yt == Porffor.TYPES.undefined) v = 0;
|
328
|
+
// 2. If x is undefined, return 1๐ฝ.
|
329
|
+
else if (xt == Porffor.TYPES.undefined) v = 1;
|
330
|
+
// 3. If y is undefined, return -1๐ฝ.
|
331
|
+
else if (yt == Porffor.TYPES.undefined) v = -1;
|
332
|
+
else {
|
333
|
+
// 4. If comparefn is not undefined, then
|
334
|
+
// a. Let v be ? ToNumber(? Call(comparefn, undefined, ยซ x, y ยป)).
|
335
|
+
v = callbackFn(x, y);
|
336
|
+
|
337
|
+
// b. If v is NaN, return +0๐ฝ.
|
338
|
+
// if (Number.isNaN(v)) v = 0;
|
339
|
+
|
340
|
+
// c. Return v.
|
341
|
+
}
|
342
|
+
|
343
|
+
if (v >= 0) break;
|
344
|
+
_this[j--] = y;
|
345
|
+
}
|
346
|
+
|
347
|
+
_this[j] = x;
|
348
|
+
}
|
349
|
+
|
350
|
+
return _this;
|
351
|
+
};
|
352
|
+
|
308
353
|
// @porf-typed-array
|
309
354
|
export const __Array_prototype_toString = (_this: any[]) => {
|
310
355
|
// todo: this is bytestring only!
|
package/compiler/codegen.js
CHANGED
@@ -2083,12 +2083,24 @@ const generateCall = (scope, decl, _global, _name, unusedValue = false) => {
|
|
2083
2083
|
} else if (decl._new)
|
2084
2084
|
return internalThrow(scope, 'TypeError', `${unhackName(name)} is not a constructor`, true);
|
2085
2085
|
|
2086
|
-
let args = decl.arguments;
|
2087
|
-
if (func && args.length < paramCount) {
|
2086
|
+
let args = [...decl.arguments];
|
2087
|
+
if (func && !func.hasRestArgument && args.length < paramCount) {
|
2088
2088
|
// too little args, push undefineds
|
2089
2089
|
args = args.concat(new Array(paramCount - args.length).fill(DEFAULT_VALUE));
|
2090
2090
|
}
|
2091
2091
|
|
2092
|
+
if (func && func.hasRestArgument) {
|
2093
|
+
if (args.length < paramCount) {
|
2094
|
+
args = args.concat(new Array(paramCount - 1 - args.length).fill(DEFAULT_VALUE));
|
2095
|
+
}
|
2096
|
+
const restArgs = args.slice(paramCount - 1);
|
2097
|
+
args = args.slice(0, paramCount - 1);
|
2098
|
+
args.push({
|
2099
|
+
type: 'ArrayExpression',
|
2100
|
+
elements: restArgs
|
2101
|
+
})
|
2102
|
+
}
|
2103
|
+
|
2092
2104
|
if (func && args.length > paramCount) {
|
2093
2105
|
// too many args, slice extras off
|
2094
2106
|
args = args.slice(0, paramCount);
|
@@ -4390,6 +4402,12 @@ const generateFunc = (scope, decl) => {
|
|
4390
4402
|
defaultValues[name] = x.right;
|
4391
4403
|
break;
|
4392
4404
|
}
|
4405
|
+
|
4406
|
+
case 'RestElement': {
|
4407
|
+
name = x.argument.name;
|
4408
|
+
func.hasRestArgument = true;
|
4409
|
+
break;
|
4410
|
+
}
|
4393
4411
|
}
|
4394
4412
|
|
4395
4413
|
// if (name == null) return todo('non-identifier args are not supported');
|
@@ -418,6 +418,16 @@ export const BuiltinFuncs = function() {
|
|
418
418
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
419
419
|
table: true,
|
420
420
|
};
|
421
|
+
this.__Array_prototype_sort = {
|
422
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,8],[43,0,4],[32,8],[45,0,12],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,8],[43,0,4],[32,8],[45,0,12],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,9],[108],[106],[34,27],[32,11],[34,26],[57,0,4],[32,27],[32,12],[58,0,12],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,9],[108],[106],[34,27],[32,6],[34,26],[57,0,4],[32,27],[32,7],[58,0,12],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,208,0],[15]],
|
423
|
+
params: [124,127,124,127],
|
424
|
+
typedParams: true,
|
425
|
+
returns: [124,127],
|
426
|
+
typedReturns: true,
|
427
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
428
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
429
|
+
table: true,
|
430
|
+
};
|
421
431
|
this.__Array_prototype_toString = {
|
422
432
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,9],[43,0,4],[32,9],[45,0,12],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
423
433
|
params: [124,127],
|
@@ -2335,6 +2345,16 @@ export const BuiltinFuncs = function() {
|
|
2335
2345
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
2336
2346
|
table: true,
|
2337
2347
|
};
|
2348
|
+
this.__Uint8Array_prototype_sort = {
|
2349
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[106],[45,0,4],[184],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[106],[45,0,4],[184],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[106],[32,11],[34,26],[252,3],[58,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[106],[32,6],[34,26],[252,3],[58,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,213,0],[15]],
|
2350
|
+
params: [124,127,124,127],
|
2351
|
+
typedParams: true,
|
2352
|
+
returns: [124,127],
|
2353
|
+
typedReturns: true,
|
2354
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
2355
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2356
|
+
table: true,
|
2357
|
+
};
|
2338
2358
|
this.__Uint8Array_prototype_toString = {
|
2339
2359
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Uint8Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[106],[45,0,4],[184],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
2340
2360
|
params: [124,127],
|
@@ -2573,6 +2593,16 @@ export const BuiltinFuncs = function() {
|
|
2573
2593
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
2574
2594
|
table: true,
|
2575
2595
|
};
|
2596
|
+
this.__Int8Array_prototype_sort = {
|
2597
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[106],[44,0,4],[183],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[106],[44,0,4],[183],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[106],[32,11],[34,26],[252,2],[58,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[106],[32,6],[34,26],[252,2],[58,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,214,0],[15]],
|
2598
|
+
params: [124,127,124,127],
|
2599
|
+
typedParams: true,
|
2600
|
+
returns: [124,127],
|
2601
|
+
typedReturns: true,
|
2602
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
2603
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2604
|
+
table: true,
|
2605
|
+
};
|
2576
2606
|
this.__Int8Array_prototype_toString = {
|
2577
2607
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Int8Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[106],[44,0,4],[183],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
2578
2608
|
params: [124,127],
|
@@ -2811,6 +2841,16 @@ export const BuiltinFuncs = function() {
|
|
2811
2841
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
2812
2842
|
table: true,
|
2813
2843
|
};
|
2844
|
+
this.__Uint8ClampedArray_prototype_sort = {
|
2845
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[106],[45,0,4],[184],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[106],[45,0,4],[184],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[106],[32,11],[34,26],[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,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[106],[32,6],[34,26],[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,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,215,0],[15]],
|
2846
|
+
params: [124,127,124,127],
|
2847
|
+
typedParams: true,
|
2848
|
+
returns: [124,127],
|
2849
|
+
typedReturns: true,
|
2850
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
2851
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2852
|
+
table: true,
|
2853
|
+
};
|
2814
2854
|
this.__Uint8ClampedArray_prototype_toString = {
|
2815
2855
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Uint8ClampedArray_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[106],[45,0,4],[184],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
2816
2856
|
params: [124,127],
|
@@ -3049,6 +3089,16 @@ export const BuiltinFuncs = function() {
|
|
3049
3089
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
3050
3090
|
table: true,
|
3051
3091
|
};
|
3092
|
+
this.__Uint16Array_prototype_sort = {
|
3093
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,2],[108],[106],[32,11],[34,26],[252,3],[59,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,2],[108],[106],[32,6],[34,26],[252,3],[59,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,216,0],[15]],
|
3094
|
+
params: [124,127,124,127],
|
3095
|
+
typedParams: true,
|
3096
|
+
returns: [124,127],
|
3097
|
+
typedReturns: true,
|
3098
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
3099
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3100
|
+
table: true,
|
3101
|
+
};
|
3052
3102
|
this.__Uint16Array_prototype_toString = {
|
3053
3103
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Uint16Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
3054
3104
|
params: [124,127],
|
@@ -3287,6 +3337,16 @@ export const BuiltinFuncs = function() {
|
|
3287
3337
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
3288
3338
|
table: true,
|
3289
3339
|
};
|
3340
|
+
this.__Int16Array_prototype_sort = {
|
3341
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,2],[108],[106],[32,11],[34,26],[252,2],[59,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,2],[108],[106],[32,6],[34,26],[252,2],[59,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,217,0],[15]],
|
3342
|
+
params: [124,127,124,127],
|
3343
|
+
typedParams: true,
|
3344
|
+
returns: [124,127],
|
3345
|
+
typedReturns: true,
|
3346
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
3347
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3348
|
+
table: true,
|
3349
|
+
};
|
3290
3350
|
this.__Int16Array_prototype_toString = {
|
3291
3351
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Int16Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
3292
3352
|
params: [124,127],
|
@@ -3525,6 +3585,16 @@ export const BuiltinFuncs = function() {
|
|
3525
3585
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
3526
3586
|
table: true,
|
3527
3587
|
};
|
3588
|
+
this.__Uint32Array_prototype_sort = {
|
3589
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,4],[108],[106],[32,11],[34,26],[252,3],[54,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,4],[108],[106],[32,6],[34,26],[252,3],[54,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,218,0],[15]],
|
3590
|
+
params: [124,127,124,127],
|
3591
|
+
typedParams: true,
|
3592
|
+
returns: [124,127],
|
3593
|
+
typedReturns: true,
|
3594
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
3595
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3596
|
+
table: true,
|
3597
|
+
};
|
3528
3598
|
this.__Uint32Array_prototype_toString = {
|
3529
3599
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Uint32Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
3530
3600
|
params: [124,127],
|
@@ -3763,6 +3833,16 @@ export const BuiltinFuncs = function() {
|
|
3763
3833
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
3764
3834
|
table: true,
|
3765
3835
|
};
|
3836
|
+
this.__Int32Array_prototype_sort = {
|
3837
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,4],[108],[106],[32,11],[34,26],[252,2],[54,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,4],[108],[106],[32,6],[34,26],[252,2],[54,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,219,0],[15]],
|
3838
|
+
params: [124,127,124,127],
|
3839
|
+
typedParams: true,
|
3840
|
+
returns: [124,127],
|
3841
|
+
typedReturns: true,
|
3842
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
3843
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3844
|
+
table: true,
|
3845
|
+
};
|
3766
3846
|
this.__Int32Array_prototype_toString = {
|
3767
3847
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Int32Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
3768
3848
|
params: [124,127],
|
@@ -4001,6 +4081,16 @@ export const BuiltinFuncs = function() {
|
|
4001
4081
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
4002
4082
|
table: true,
|
4003
4083
|
};
|
4084
|
+
this.__Float32Array_prototype_sort = {
|
4085
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,4],[108],[106],[32,11],[34,26],[182],[56,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,4],[108],[106],[32,6],[34,26],[182],[56,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,220,0],[15]],
|
4086
|
+
params: [124,127,124,127],
|
4087
|
+
typedParams: true,
|
4088
|
+
returns: [124,127],
|
4089
|
+
typedReturns: true,
|
4090
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
4091
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
4092
|
+
table: true,
|
4093
|
+
};
|
4004
4094
|
this.__Float32Array_prototype_toString = {
|
4005
4095
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Float32Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
4006
4096
|
params: [124,127],
|
@@ -4239,6 +4329,16 @@ export const BuiltinFuncs = function() {
|
|
4239
4329
|
localNames: ["_this","_this#type","callbackFn","callbackFn#type","initialValue","initialValue#type","len","acc","acc#type","#loadArray_offset","#last_type","logictmp","#logicinner_tmp","#typeswitch_tmp","i","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_arg3_type","#indirect_arg3_val","#indirect_func","#indirect_flags"],
|
4240
4330
|
table: true,
|
4241
4331
|
};
|
4332
|
+
this.__Float64Array_prototype_sort = {
|
4333
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[2,64],[32,0],[252,3],[32,5],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,9],[33,6],[32,9],[33,7],[32,5],[33,10],[3,64],[32,10],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,0],[252,3],[32,10],[68,0,0,0,0,0,0,240,63],[161],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,9],[33,11],[32,9],[33,12],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[33,13],[32,11],[32,12],[16, builtin('__Porffor_rawType')],[33,14],[32,13],[68,0,0,0,0,0,0,8,64],[97],[34,16],[4,127],[32,14],[68,0,0,0,0,0,0,8,64],[97],[65,1],[33,9],[5],[32,16],[65,1],[33,9],[11],[4,64],[68,0,0,0,0,0,0,0,0],[33,15],[5],[32,13],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,15],[5],[32,14],[68,0,0,0,0,0,0,8,64],[97],[4,64],[68,0,0,0,0,0,0,240,191],[33,15],[5],[32,3],[33,25],[2,124],[32,25],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,17],[33,18],[32,11],[32,12],[33,19],[33,20],[68,0,0,0,0,0,0,0,0],[65,3],[33,21],[33,22],[32,2],[252,3],[34,23],[65,3],[108],[65,2],[106],[45,0,0,"read func lut"],[34,24],[65,2],[113],[69],[65,0],[113],[4,64],...internalThrow(scope, 'TypeError', `callbackFn is not a constructor`),[11],[2,124],[2,64],[2,64],[2,64],[2,64],[32,23],[65,3],[108],[47,0,0,"read func lut"],[14,4,0,1,2,3,0],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"no_type_return","constr"],[5],[32,23],[17,0,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,23],[17,0,0,"constr"],[33,9],[5],[32,23],[17,0,0],[33,9],[11],[11],[12,3],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,23],[17,1,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,23],[17,1,0,"constr"],[33,9],[5],[32,18],[32,17],[32,23],[17,1,0],[33,9],[11],[11],[12,2],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,23],[17,2,0],[33,9],[11],[11],[12,1],[11],[32,24],[65,1],[113],[4,124],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return","constr"],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"no_type_return"],[11],[5],[32,24],[65,2],[113],[4,124],[65,0],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0,"constr"],[33,9],[5],[32,18],[32,17],[32,20],[32,19],[32,22],[32,21],[32,23],[17,3,0],[33,9],[11],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[11],[11],[11],[32,15],[68,0,0,0,0,0,0,0,0],[102],[4,64],[12,1],[11],[32,0],[252,3],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[161],[33,10],[252,3],[65,8],[108],[106],[32,11],[34,26],[57,0,4],[65,0],[33,9],[12,1],[11],[11],[32,0],[252,3],[32,10],[252,3],[65,8],[108],[106],[32,6],[34,26],[57,0,4],[65,0],[33,9],[11],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[12,1],[11],[11],[32,0],[65,221,0],[15]],
|
4334
|
+
params: [124,127,124,127],
|
4335
|
+
typedParams: true,
|
4336
|
+
returns: [124,127],
|
4337
|
+
typedReturns: true,
|
4338
|
+
locals: [124,124,124,127,127,127,124,124,127,124,124,124,127,127,124,127,124,127,124,127,127,127,124,127],
|
4339
|
+
localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","x","x#type","#loadArray_offset","#last_type","j","y","y#type","xt","yt","v","logictmpi","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#indirect_flags","#typeswitch_tmp","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
4340
|
+
table: true,
|
4341
|
+
};
|
4242
4342
|
this.__Float64Array_prototype_toString = {
|
4243
4343
|
wasm: (scope, {allocPage,builtin,}) => [...number(allocPage(scope, 'bytestring: __Float64Array_prototype_toString/out', 'i8') * pageSize, 124),[34,2],[252,3],[68,0,0,0,0,0,0,0,0],[34,3],[252,3],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,2],[65,210,0],[68,0,0,0,0,0,0,70,64],[65,0],[16, builtin('__Porffor_bytestring_appendChar')],[33,6],[26],[11],[32,0],[252,3],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,6],[33,7],[32,6],[33,8],[32,7],[32,8],[16, builtin('__Porffor_rawType')],[33,10],[32,7],[68,0,0,0,0,0,0,0,0],[98],[34,11],[69],[4,127],[32,10],[68,0,0,0,0,0,0,8,64],[98],[32,10],[68,0,0,0,0,0,0,16,64],[98],[113],[65,1],[33,6],[5],[32,11],[65,1],[33,6],[11],[4,64],[32,2],[65,210,0],[32,7],[32,8],[16, builtin('__ecma262_ToString')],[34,6],[16, builtin('__Porffor_bytestring_appendStr')],[33,6],[26],[11],[12,1],[11],[11],[32,2],[65,210,0],[15]],
|
4244
4344
|
params: [124,127],
|
package/package.json
CHANGED