porffor 0.2.0-b9abe0d → 0.2.0-bae0c5b
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 +71 -44
- package/asur/index.js +1 -1
- package/compiler/assemble.js +1 -1
- package/compiler/builtins/date.ts +1364 -3
- package/compiler/builtins.js +2 -18
- package/compiler/codegen.js +68 -26
- package/compiler/generated_builtins.js +547 -7
- package/compiler/parse.js +4 -2
- package/compiler/precompile.js +2 -2
- package/compiler/prefs.js +6 -5
- package/compiler/wasmSpec.js +1 -0
- package/compiler/wrap.js +7 -4
- package/fib.js +10 -0
- package/package.json +1 -1
- package/rhemyn/compile.js +42 -25
- package/rhemyn/parse.js +4 -5
- package/runner/index.js +45 -4
- package/runner/repl.js +2 -2
- package/runner/sizes.js +1 -1
- package/.vscode/launch.json +0 -18
- package/test262_changes_from_1afe9b87d2_to_04-09.md +0 -270
@@ -317,17 +317,215 @@ export const BuiltinFuncs = function() {
|
|
317
317
|
localNames: ["bytes","bytesPtr","a","aEndPtr","output","i","j","endPtr","byte","lower","upper"],
|
318
318
|
data: [{"offset":0,"bytes":[16,0,0,0,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46]},{"offset":65536,"bytes":[36,0,0,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45]}],
|
319
319
|
};
|
320
|
-
this.
|
321
|
-
wasm: (scope, { allocPage, builtin }) => [[
|
322
|
-
params: [],
|
320
|
+
this.__ecma262_Day = {
|
321
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,112,153,148,65],[163],[16, builtin('__Math_floor')],[15]],
|
322
|
+
params: [124,127],
|
323
323
|
typedParams: true,
|
324
324
|
returns: [124],
|
325
325
|
returnType: 0,
|
326
326
|
locals: [],
|
327
|
-
localNames: [],
|
327
|
+
localNames: ["t","t#type"],
|
328
|
+
};
|
329
|
+
this.__ecma262_TimeWithinDay = {
|
330
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,112,153,148,65],[16, builtin('f64_%')],[15]],
|
331
|
+
params: [124,127],
|
332
|
+
typedParams: true,
|
333
|
+
returns: [124],
|
334
|
+
returnType: 0,
|
335
|
+
locals: [],
|
336
|
+
localNames: ["t","t#type"],
|
337
|
+
};
|
338
|
+
this.__ecma262_DaysInYear = {
|
339
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,0,0,121,64],[16, builtin('f64_%')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,224,118,64],[15],[11],[32,0],[68,0,0,0,0,0,0,89,64],[16, builtin('f64_%')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,208,118,64],[15],[11],[32,0],[68,0,0,0,0,0,0,16,64],[16, builtin('f64_%')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,224,118,64],[15],[11],[68,0,0,0,0,0,208,118,64],[15]],
|
340
|
+
params: [124,127],
|
341
|
+
typedParams: true,
|
342
|
+
returns: [124],
|
343
|
+
returnType: 0,
|
344
|
+
locals: [],
|
345
|
+
localNames: ["y","y#type"],
|
346
|
+
};
|
347
|
+
this.__ecma262_DayFromYear = {
|
348
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,0,200,158,64],[161],[33,2],[32,0],[68,0,0,0,0,0,196,158,64],[161],[68,0,0,0,0,0,0,16,64],[163],[16, builtin('__Math_floor')],[33,3],[32,0],[68,0,0,0,0,0,180,157,64],[161],[68,0,0,0,0,0,0,89,64],[163],[16, builtin('__Math_floor')],[33,4],[32,0],[68,0,0,0,0,0,4,153,64],[161],[68,0,0,0,0,0,0,121,64],[163],[16, builtin('__Math_floor')],[33,5],[68,0,0,0,0,0,208,118,64],[32,2],[162],[32,3],[160],[32,4],[161],[32,5],[160],[15]],
|
349
|
+
params: [124,127],
|
350
|
+
typedParams: true,
|
351
|
+
returns: [124],
|
352
|
+
returnType: 0,
|
353
|
+
locals: [124,124,124,124],
|
354
|
+
localNames: ["y","y#type","numYears1","numYears4","numYears100","numYears400"],
|
355
|
+
};
|
356
|
+
this.__ecma262_TimeFromYear = {
|
357
|
+
wasm: (scope, { allocPage, builtin }) => [[68,0,0,0,0,112,153,148,65],[32,0],[65,0],[16, builtin('__ecma262_DayFromYear')],[162],[15]],
|
358
|
+
params: [124,127],
|
359
|
+
typedParams: true,
|
360
|
+
returns: [124],
|
361
|
+
returnType: 0,
|
362
|
+
locals: [],
|
363
|
+
localNames: ["y","y#type"],
|
364
|
+
};
|
365
|
+
this.__ecma262_YearFromTime = {
|
366
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,127,195,99,29,66],[163],[16, builtin('__Math_floor')],[68,0,0,0,0,0,200,158,64],[160],[34,2],[65,0],[16, builtin('__ecma262_TimeFromYear')],[34,3],[32,0],[100],[4,64],[32,2],[68,0,0,0,0,0,0,240,63],[161],[15],[11],[32,3],[32,2],[65,0],[16, builtin('__ecma262_DaysInYear')],[68,0,0,0,0,112,153,148,65],[162],[160],[32,0],[101],[4,64],[32,2],[68,0,0,0,0,0,0,240,63],[160],[15],[11],[32,2],[15]],
|
367
|
+
params: [124,127],
|
368
|
+
typedParams: true,
|
369
|
+
returns: [124],
|
370
|
+
returnType: 0,
|
371
|
+
locals: [124,124],
|
372
|
+
localNames: ["t","t#type","y","t2"],
|
373
|
+
};
|
374
|
+
this.__ecma262_DayWithinYear = {
|
375
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,0],[16, builtin('__ecma262_Day')],[32,0],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[16, builtin('__ecma262_DayFromYear')],[161],[15]],
|
376
|
+
params: [124,127],
|
377
|
+
typedParams: true,
|
378
|
+
returns: [124],
|
379
|
+
returnType: 0,
|
380
|
+
locals: [],
|
381
|
+
localNames: ["t","t#type"],
|
382
|
+
};
|
383
|
+
this.__ecma262_InLeapYear = {
|
384
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[16, builtin('__ecma262_DaysInYear')],[68,0,0,0,0,0,224,118,64],[97],[4,124],[68,0,0,0,0,0,0,240,63],[5],[68,0,0,0,0,0,0,0,0],[11],[15]],
|
385
|
+
params: [124,127],
|
386
|
+
typedParams: true,
|
387
|
+
returns: [124],
|
388
|
+
returnType: 0,
|
389
|
+
locals: [127],
|
390
|
+
localNames: ["t","t#type","#last_type"],
|
391
|
+
};
|
392
|
+
this.__ecma262_MonthFromTime = {
|
393
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,0],[16, builtin('__ecma262_InLeapYear')],[33,2],[32,0],[65,0],[16, builtin('__ecma262_DayWithinYear')],[34,3],[68,0,0,0,0,0,0,63,64],[99],[4,64],[68,0,0,0,0,0,0,0,0],[15],[11],[32,3],[68,0,0,0,0,0,128,77,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,240,63],[15],[11],[32,3],[68,0,0,0,0,0,128,86,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,0,64],[15],[11],[32,3],[68,0,0,0,0,0,0,94,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,8,64],[15],[11],[32,3],[68,0,0,0,0,0,224,98,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,16,64],[15],[11],[32,3],[68,0,0,0,0,0,160,102,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,20,64],[15],[11],[32,3],[68,0,0,0,0,0,128,106,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,24,64],[15],[11],[32,3],[68,0,0,0,0,0,96,110,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,28,64],[15],[11],[32,3],[68,0,0,0,0,0,16,113,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,32,64],[15],[11],[32,3],[68,0,0,0,0,0,0,115,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,34,64],[15],[11],[32,3],[68,0,0,0,0,0,224,116,64],[32,2],[160],[99],[4,64],[68,0,0,0,0,0,0,36,64],[15],[11],[68,0,0,0,0,0,0,38,64],[15]],
|
394
|
+
params: [124,127],
|
395
|
+
typedParams: true,
|
396
|
+
returns: [124],
|
397
|
+
returnType: 0,
|
398
|
+
locals: [124,124],
|
399
|
+
localNames: ["t","t#type","inLeapYear","dayWithinYear"],
|
400
|
+
};
|
401
|
+
this.__ecma262_DateFromTime = {
|
402
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,0],[16, builtin('__ecma262_InLeapYear')],[33,2],[32,0],[65,0],[16, builtin('__ecma262_DayWithinYear')],[33,3],[32,0],[65,0],[16, builtin('__ecma262_MonthFromTime')],[33,4],[65,0],[33,5],[32,4],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,3],[68,0,0,0,0,0,0,240,63],[160],[15],[11],[32,4],[68,0,0,0,0,0,0,240,63],[97],[4,64],[32,3],[68,0,0,0,0,0,0,62,64],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,0,64],[97],[4,64],[32,3],[68,0,0,0,0,0,0,77,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,3],[68,0,0,0,0,0,64,86,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,16,64],[97],[4,64],[32,3],[68,0,0,0,0,0,192,93,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,20,64],[97],[4,64],[32,3],[68,0,0,0,0,0,192,98,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,24,64],[97],[4,64],[32,3],[68,0,0,0,0,0,128,102,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,28,64],[97],[4,64],[32,3],[68,0,0,0,0,0,96,106,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,32,64],[97],[4,64],[32,3],[68,0,0,0,0,0,64,110,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,34,64],[97],[4,64],[32,3],[68,0,0,0,0,0,0,113,64],[161],[32,2],[161],[15],[11],[32,4],[68,0,0,0,0,0,0,36,64],[97],[4,64],[32,3],[68,0,0,0,0,0,240,114,64],[161],[32,2],[161],[15],[11],[32,3],[68,0,0,0,0,0,208,116,64],[161],[32,2],[161],[15]],
|
403
|
+
params: [124,127],
|
404
|
+
typedParams: true,
|
405
|
+
returns: [124],
|
406
|
+
returnType: 0,
|
407
|
+
locals: [124,124,124,127],
|
408
|
+
localNames: ["t","t#type","inLeapYear","dayWithinYear","month","month#type"],
|
409
|
+
};
|
410
|
+
this.__ecma262_WeekDay = {
|
411
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,0],[16, builtin('__ecma262_Day')],[68,0,0,0,0,0,0,16,64],[160],[68,0,0,0,0,0,0,28,64],[16, builtin('f64_%')],[15]],
|
412
|
+
params: [124,127],
|
413
|
+
typedParams: true,
|
414
|
+
returns: [124],
|
415
|
+
returnType: 0,
|
416
|
+
locals: [],
|
417
|
+
localNames: ["t","t#type"],
|
418
|
+
};
|
419
|
+
this.__ecma262_HourFromTime = {
|
420
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,64,119,75,65],[163],[16, builtin('__Math_floor')],[68,0,0,0,0,0,0,56,64],[16, builtin('f64_%')],[15]],
|
421
|
+
params: [124,127],
|
422
|
+
typedParams: true,
|
423
|
+
returns: [124],
|
424
|
+
returnType: 0,
|
425
|
+
locals: [],
|
426
|
+
localNames: ["t","t#type"],
|
427
|
+
};
|
428
|
+
this.__ecma262_MinFromTime = {
|
429
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,0,76,237,64],[163],[16, builtin('__Math_floor')],[68,0,0,0,0,0,0,78,64],[16, builtin('f64_%')],[15]],
|
430
|
+
params: [124,127],
|
431
|
+
typedParams: true,
|
432
|
+
returns: [124],
|
433
|
+
returnType: 0,
|
434
|
+
locals: [],
|
435
|
+
localNames: ["t","t#type"],
|
436
|
+
};
|
437
|
+
this.__ecma262_SecFromTime = {
|
438
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,0,64,143,64],[163],[16, builtin('__Math_floor')],[68,0,0,0,0,0,0,78,64],[16, builtin('f64_%')],[15]],
|
439
|
+
params: [124,127],
|
440
|
+
typedParams: true,
|
441
|
+
returns: [124],
|
442
|
+
returnType: 0,
|
443
|
+
locals: [],
|
444
|
+
localNames: ["t","t#type"],
|
445
|
+
};
|
446
|
+
this.__ecma262_msFromTime = {
|
447
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[68,0,0,0,0,0,64,143,64],[16, builtin('f64_%')],[15]],
|
448
|
+
params: [124,127],
|
449
|
+
typedParams: true,
|
450
|
+
returns: [124],
|
451
|
+
returnType: 0,
|
452
|
+
locals: [],
|
453
|
+
localNames: ["t","t#type"],
|
454
|
+
};
|
455
|
+
this.__ecma262_LocalTime = {
|
456
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[15]],
|
457
|
+
params: [124,127],
|
458
|
+
typedParams: true,
|
459
|
+
returns: [124],
|
460
|
+
returnType: 0,
|
461
|
+
locals: [],
|
462
|
+
localNames: ["t","t#type"],
|
463
|
+
};
|
464
|
+
this.__ecma262_UTC = {
|
465
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[15]],
|
466
|
+
params: [124,127],
|
467
|
+
typedParams: true,
|
468
|
+
returns: [124],
|
469
|
+
returnType: 0,
|
470
|
+
locals: [],
|
471
|
+
localNames: ["t","t#type"],
|
472
|
+
};
|
473
|
+
this.__ecma262_ToIntegerOrInfinity = {
|
474
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('Number')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[15],[11],[32,2],[16, builtin('__Math_trunc')],[15]],
|
475
|
+
params: [124,127],
|
476
|
+
typedParams: true,
|
477
|
+
returns: [124],
|
478
|
+
returnType: 0,
|
479
|
+
locals: [124],
|
480
|
+
localNames: ["argument","argument#type","number"],
|
481
|
+
};
|
482
|
+
this.__ecma262_MakeTime = {
|
483
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[32,2],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[114],[32,4],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[114],[32,6],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[114],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,8],[32,2],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,9],[32,4],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,10],[32,6],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,11],[32,8],[68,0,0,0,0,64,119,75,65],[162],[32,9],[68,0,0,0,0,0,76,237,64],[162],[160],[32,10],[68,0,0,0,0,0,64,143,64],[162],[160],[32,11],[160],[15]],
|
484
|
+
params: [124,127,124,127,124,127,124,127],
|
485
|
+
typedParams: true,
|
486
|
+
returns: [124],
|
487
|
+
returnType: 0,
|
488
|
+
locals: [124,124,124,124],
|
489
|
+
localNames: ["hour","hour#type","min","min#type","sec","sec#type","ms","ms#type","h","m","s","milli"],
|
490
|
+
};
|
491
|
+
this.__ecma262_MakeDay = {
|
492
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[32,2],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[114],[32,4],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[114],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,6],[32,2],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,7],[32,4],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[33,8],[32,6],[32,7],[68,0,0,0,0,0,0,40,64],[163],[16, builtin('__Math_floor')],[160],[34,9],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,7],[68,0,0,0,0,0,0,40,64],[16, builtin('f64_%')],[34,10],[68,0,0,0,0,0,0,240,63],[101],[4,64],[32,9],[68,0,0,0,0,0,0,240,63],[161],[33,9],[11],[32,9],[68,0,0,0,0,0,0,0,0],[102],[4,124],[32,9],[65,0],[33,12],[5],[32,9],[68,0,0,0,0,0,240,120,64],[161],[65,0],[33,12],[11],[68,0,0,0,0,0,0,121,64],[163],[16, builtin('__Math_trunc')],[33,11],[32,9],[32,11],[68,0,0,0,0,0,0,121,64],[162],[161],[33,13],[68,0,0,0,0,0,32,99,64],[32,10],[32,10],[68,0,0,0,0,0,0,240,63],[100],[4,124],[68,0,0,0,0,0,0,0,192],[65,0],[33,12],[5],[68,0,0,0,0,0,0,36,64],[65,0],[33,12],[11],[160],[162],[68,0,0,0,0,0,0,0,64],[160],[68,0,0,0,0,0,0,20,64],[163],[16, builtin('__Math_trunc')],[33,14],[32,13],[68,0,0,0,0,0,208,118,64],[162],[32,13],[68,0,0,0,0,0,0,16,64],[163],[16, builtin('__Math_trunc')],[160],[32,13],[68,0,0,0,0,0,0,89,64],[163],[16, builtin('__Math_trunc')],[161],[32,14],[160],[33,15],[32,11],[68,0,0,0,0,136,213,1,65],[162],[32,15],[160],[68,0,0,0,0,216,244,37,65],[161],[34,16],[32,8],[160],[68,0,0,0,0,0,0,240,63],[161],[15]],
|
493
|
+
params: [124,127,124,127,124,127],
|
494
|
+
typedParams: true,
|
495
|
+
returns: [124],
|
496
|
+
returnType: 0,
|
497
|
+
locals: [124,124,124,124,124,124,127,124,124,124,124],
|
498
|
+
localNames: ["year","year#type","month","month#type","date","date#type","y","m","dt","ym","mn","era","#last_type","yoe","doy","doe","day"],
|
499
|
+
};
|
500
|
+
this.__ecma262_MakeDate = {
|
501
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[32,2],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[114],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[68,0,0,0,0,112,153,148,65],[162],[32,2],[160],[34,4],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,4],[15]],
|
502
|
+
params: [124,127,124,127],
|
503
|
+
typedParams: true,
|
504
|
+
returns: [124],
|
505
|
+
returnType: 0,
|
506
|
+
locals: [124],
|
507
|
+
localNames: ["day","day#type","time","time#type","tv"],
|
508
|
+
};
|
509
|
+
this.__ecma262_MakeFullYear = {
|
510
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[34,2],[68,0,0,0,0,0,0,0,0],[102],[34,3],[4,127],[32,2],[68,0,0,0,0,0,192,88,64],[101],[65,1],[33,4],[5],[32,3],[65,1],[33,4],[11],[4,64],[68,0,0,0,0,0,176,157,64],[32,2],[160],[15],[11],[32,2],[15]],
|
511
|
+
params: [124,127],
|
512
|
+
typedParams: true,
|
513
|
+
returns: [124],
|
514
|
+
returnType: 0,
|
515
|
+
locals: [124,127,127],
|
516
|
+
localNames: ["year","year#type","truncated","logictmpi","#last_type"],
|
517
|
+
};
|
518
|
+
this.__ecma262_TimeClip = {
|
519
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[16, builtin('__Math_abs')],[68,0,0,220,194,8,178,62,67],[100],[4,64],[68,0,0,0,0,0,0,248,127],[15],[11],[32,0],[65,0],[16, builtin('__ecma262_ToIntegerOrInfinity')],[15]],
|
520
|
+
params: [124,127],
|
521
|
+
typedParams: true,
|
522
|
+
returns: [124],
|
523
|
+
returnType: 0,
|
524
|
+
locals: [],
|
525
|
+
localNames: ["time","time#type"],
|
328
526
|
};
|
329
527
|
this.Date = {
|
330
|
-
wasm: (scope, { allocPage, builtin }) => [[68,0,0,0,0,0,0,0,0],[
|
528
|
+
wasm: (scope, { allocPage, builtin }) => [[68,0,0,0,0,0,0,0,0],[15]],
|
331
529
|
params: [],
|
332
530
|
typedParams: true,
|
333
531
|
returns: [124],
|
@@ -335,15 +533,357 @@ export const BuiltinFuncs = function() {
|
|
335
533
|
locals: [],
|
336
534
|
localNames: [],
|
337
535
|
};
|
338
|
-
this.
|
339
|
-
wasm: (scope, { allocPage, builtin }) => [
|
536
|
+
this.__Porffor_date_allocate = {
|
537
|
+
wasm: (scope, { allocPage, builtin }) => [...number(allocPage(scope, '__Porffor_date_allocate | bytestring: hack', 'i8') * pageSize, 124),[34,0],[252,3],[40,1,0],[184],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[252,3],[65,1],[64,0],[26],[63,0],[65,1],[107],[65,128,128,4],[108],[184],[34,1],[252,3],[54,1,0],[11],[32,0],[252,3],[40,1,0],[184],[33,2],[32,0],[252,3],[32,2],[68,0,0,0,0,0,0,32,64],[160],[34,1],[252,3],[54,1,0],[32,2],[15]],
|
340
538
|
params: [],
|
341
539
|
typedParams: true,
|
342
540
|
returns: [124],
|
343
541
|
returnType: 19,
|
542
|
+
locals: [124,124,124],
|
543
|
+
localNames: ["hack","__length_setter_tmp","ptr"],
|
544
|
+
};
|
545
|
+
this.__Porffor_date_read = {
|
546
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[252,2],[43,0,0],[15]],
|
547
|
+
params: [124,127],
|
548
|
+
typedParams: true,
|
549
|
+
returns: [124],
|
550
|
+
returnType: 0,
|
551
|
+
locals: [],
|
552
|
+
localNames: ["ptr","ptr#type"],
|
553
|
+
};
|
554
|
+
this.__Porffor_date_write = {
|
555
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[252,2],[32,2],[57,0,0],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
|
556
|
+
params: [124,127,124,127],
|
557
|
+
typedParams: true,
|
558
|
+
returns: [124,127],
|
559
|
+
typedReturns: true,
|
560
|
+
locals: [],
|
561
|
+
localNames: ["ptr","ptr#type","val","val#type"],
|
562
|
+
};
|
563
|
+
this.Date$constructor = {
|
564
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[32,1],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[32,2],[32,3],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[160],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[160],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[160],[32,8],[32,9],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[160],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[160],[32,12],[32,13],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[184],[160],[33,14],[68,0,0,0,0,0,0,0,0],[33,15],[32,14],[68,0,0,0,0,0,0,0,0],[97],[4,64],[16, builtin('__Date_now')],[33,15],[5],[32,14],[68,0,0,0,0,0,0,240,63],[97],[4,64],[32,0],[33,16],[32,1],[33,17],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[33,18],[68,0,0,0,0,0,0,0,0],[33,19],[32,18],[68,0,0,0,0,0,0,51,64],[97],[4,64],[32,16],[32,17],[16, builtin('__Porffor_date_read')],[33,19],[5],[32,18],[68,0,0,0,0,0,0,0,64],[97],[34,20],[69],[4,127],[32,18],[68,0,0,0,0,0,0,50,64],[97],[65,1],[33,21],[5],[32,20],[65,1],[33,21],[11],[4,64],[5],[32,16],[16, builtin('Number')],[33,19],[11],[11],[32,19],[65,0],[16, builtin('__ecma262_TimeClip')],[33,15],[5],[32,0],[16, builtin('Number')],[33,22],[32,2],[16, builtin('Number')],[33,23],[68,0,0,0,0,0,0,240,63],[33,24],[32,14],[68,0,0,0,0,0,0,0,64],[100],[4,64],[32,4],[16, builtin('Number')],[33,24],[11],[68,0,0,0,0,0,0,0,0],[33,25],[32,14],[68,0,0,0,0,0,0,8,64],[100],[4,64],[32,6],[16, builtin('Number')],[33,25],[11],[68,0,0,0,0,0,0,0,0],[33,26],[32,14],[68,0,0,0,0,0,0,16,64],[100],[4,64],[32,8],[16, builtin('Number')],[33,26],[11],[68,0,0,0,0,0,0,0,0],[33,27],[32,14],[68,0,0,0,0,0,0,20,64],[100],[4,64],[32,10],[16, builtin('Number')],[33,27],[11],[68,0,0,0,0,0,0,0,0],[33,28],[32,14],[68,0,0,0,0,0,0,24,64],[100],[4,64],[32,12],[16, builtin('Number')],[33,28],[11],[32,22],[65,0],[16, builtin('__ecma262_MakeFullYear')],[34,29],[65,0],[32,23],[65,0],[32,24],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,25],[65,0],[32,26],[65,0],[32,27],[65,0],[32,28],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,30],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,15],[11],[11],[16, builtin('__Porffor_date_allocate')],[34,31],[65,19],[32,15],[65,0],[16, builtin('__Porffor_date_write')],[33,21],[26],[32,31],[15]],
|
565
|
+
params: [124,127,124,127,124,127,124,127,124,127,124,127,124,127],
|
566
|
+
typedParams: true,
|
567
|
+
returns: [124],
|
568
|
+
returnType: 19,
|
569
|
+
locals: [124,124,124,127,124,124,127,127,124,124,124,124,124,124,124,124,124,124],
|
570
|
+
localNames: ["v0","v0#type","v1","v1#type","v2","v2#type","v3","v3#type","v4","v4#type","v5","v5#type","v6","v6#type","numberOfArgs","dv","value","value#type","valueType","tv","logictmpi","#last_type","y","m","dt","h","min","s","milli","yr","finalDate","O"],
|
571
|
+
};
|
572
|
+
this.__Date_now = {
|
573
|
+
wasm: (scope, { allocPage, builtin }) => [[16,3],[16, builtin('__performance_now')],[160],[16, builtin('__Math_trunc')],[15]],
|
574
|
+
params: [],
|
575
|
+
typedParams: true,
|
576
|
+
returns: [124],
|
577
|
+
returnType: 0,
|
344
578
|
locals: [],
|
345
579
|
localNames: [],
|
346
580
|
};
|
581
|
+
this.__Date_UTC = {
|
582
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[16, builtin('Number')],[33,14],[68,0,0,0,0,0,0,0,0],[33,15],[32,2],[32,3],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,2],[16, builtin('Number')],[33,15],[11],[68,0,0,0,0,0,0,240,63],[33,16],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,16],[11],[68,0,0,0,0,0,0,0,0],[33,17],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,6],[16, builtin('Number')],[33,17],[11],[68,0,0,0,0,0,0,0,0],[33,18],[32,8],[32,9],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,8],[16, builtin('Number')],[33,18],[11],[68,0,0,0,0,0,0,0,0],[33,19],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,10],[16, builtin('Number')],[33,19],[11],[68,0,0,0,0,0,0,0,0],[33,20],[32,12],[32,13],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,12],[16, builtin('Number')],[33,17],[11],[32,14],[65,0],[16, builtin('__ecma262_MakeFullYear')],[34,21],[65,0],[32,15],[65,0],[32,16],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,17],[65,0],[32,18],[65,0],[32,19],[65,0],[32,20],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[65,0],[16, builtin('__ecma262_TimeClip')],[15]],
|
583
|
+
params: [124,127,124,127,124,127,124,127,124,127,124,127,124,127],
|
584
|
+
typedParams: true,
|
585
|
+
returns: [124],
|
586
|
+
returnType: 0,
|
587
|
+
locals: [124,124,124,124,124,124,124,124],
|
588
|
+
localNames: ["year","year#type","month","month#type","date","date#type","hours","hours#type","minutes","minutes#type","seconds","seconds#type","ms","ms#type","y","m","dt","h","min","s","milli","yr"],
|
589
|
+
};
|
590
|
+
this.___date_prototype_getDate = {
|
591
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_DateFromTime')],[65,0],[15]],
|
592
|
+
params: [124,127],
|
593
|
+
typedParams: true,
|
594
|
+
returns: [124,127],
|
595
|
+
typedReturns: true,
|
596
|
+
locals: [124],
|
597
|
+
localNames: ["_this","_this#type","t"],
|
598
|
+
};
|
599
|
+
this.___date_prototype_getDay = {
|
600
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_WeekDay')],[65,0],[15]],
|
601
|
+
params: [124,127],
|
602
|
+
typedParams: true,
|
603
|
+
returns: [124,127],
|
604
|
+
typedReturns: true,
|
605
|
+
locals: [124],
|
606
|
+
localNames: ["_this","_this#type","t"],
|
607
|
+
};
|
608
|
+
this.___date_prototype_getFullYear = {
|
609
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[15]],
|
610
|
+
params: [124,127],
|
611
|
+
typedParams: true,
|
612
|
+
returns: [124,127],
|
613
|
+
typedReturns: true,
|
614
|
+
locals: [124],
|
615
|
+
localNames: ["_this","_this#type","t"],
|
616
|
+
};
|
617
|
+
this.___date_prototype_getHours = {
|
618
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[15]],
|
619
|
+
params: [124,127],
|
620
|
+
typedParams: true,
|
621
|
+
returns: [124,127],
|
622
|
+
typedReturns: true,
|
623
|
+
locals: [124],
|
624
|
+
localNames: ["_this","_this#type","t"],
|
625
|
+
};
|
626
|
+
this.___date_prototype_getMilliseconds = {
|
627
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_msFromTime')],[65,0],[15]],
|
628
|
+
params: [124,127],
|
629
|
+
typedParams: true,
|
630
|
+
returns: [124,127],
|
631
|
+
typedReturns: true,
|
632
|
+
locals: [124],
|
633
|
+
localNames: ["_this","_this#type","t"],
|
634
|
+
};
|
635
|
+
this.___date_prototype_getMinutes = {
|
636
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_MinFromTime')],[65,0],[15]],
|
637
|
+
params: [124,127],
|
638
|
+
typedParams: true,
|
639
|
+
returns: [124,127],
|
640
|
+
typedReturns: true,
|
641
|
+
locals: [124],
|
642
|
+
localNames: ["_this","_this#type","t"],
|
643
|
+
};
|
644
|
+
this.___date_prototype_getMonth = {
|
645
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_MonthFromTime')],[65,0],[15]],
|
646
|
+
params: [124,127],
|
647
|
+
typedParams: true,
|
648
|
+
returns: [124,127],
|
649
|
+
typedReturns: true,
|
650
|
+
locals: [124],
|
651
|
+
localNames: ["_this","_this#type","t"],
|
652
|
+
};
|
653
|
+
this.___date_prototype_getSeconds = {
|
654
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[65,0],[16, builtin('__ecma262_SecFromTime')],[65,0],[15]],
|
655
|
+
params: [124,127],
|
656
|
+
typedParams: true,
|
657
|
+
returns: [124,127],
|
658
|
+
typedReturns: true,
|
659
|
+
locals: [124],
|
660
|
+
localNames: ["_this","_this#type","t"],
|
661
|
+
};
|
662
|
+
this.___date_prototype_getTime = {
|
663
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[65,0],[15]],
|
664
|
+
params: [124,127],
|
665
|
+
typedParams: true,
|
666
|
+
returns: [124,127],
|
667
|
+
typedReturns: true,
|
668
|
+
locals: [],
|
669
|
+
localNames: ["_this","_this#type"],
|
670
|
+
};
|
671
|
+
this.___date_prototype_getTimezoneOffset = {
|
672
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[32,2],[65,0],[16, builtin('__ecma262_LocalTime')],[161],[68,0,0,0,0,0,76,237,64],[163],[65,0],[15]],
|
673
|
+
params: [124,127],
|
674
|
+
typedParams: true,
|
675
|
+
returns: [124,127],
|
676
|
+
typedReturns: true,
|
677
|
+
locals: [124],
|
678
|
+
localNames: ["_this","_this#type","t"],
|
679
|
+
};
|
680
|
+
this.___date_prototype_getUTCDate = {
|
681
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_DateFromTime')],[65,0],[15]],
|
682
|
+
params: [124,127],
|
683
|
+
typedParams: true,
|
684
|
+
returns: [124,127],
|
685
|
+
typedReturns: true,
|
686
|
+
locals: [124],
|
687
|
+
localNames: ["_this","_this#type","t"],
|
688
|
+
};
|
689
|
+
this.___date_prototype_getUTCDay = {
|
690
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_WeekDay')],[65,0],[15]],
|
691
|
+
params: [124,127],
|
692
|
+
typedParams: true,
|
693
|
+
returns: [124,127],
|
694
|
+
typedReturns: true,
|
695
|
+
locals: [124],
|
696
|
+
localNames: ["_this","_this#type","t"],
|
697
|
+
};
|
698
|
+
this.___date_prototype_getUTCFullYear = {
|
699
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[15]],
|
700
|
+
params: [124,127],
|
701
|
+
typedParams: true,
|
702
|
+
returns: [124,127],
|
703
|
+
typedReturns: true,
|
704
|
+
locals: [124],
|
705
|
+
localNames: ["_this","_this#type","t"],
|
706
|
+
};
|
707
|
+
this.___date_prototype_getUTCHours = {
|
708
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[15]],
|
709
|
+
params: [124,127],
|
710
|
+
typedParams: true,
|
711
|
+
returns: [124,127],
|
712
|
+
typedReturns: true,
|
713
|
+
locals: [124],
|
714
|
+
localNames: ["_this","_this#type","t"],
|
715
|
+
};
|
716
|
+
this.___date_prototype_getUTCMilliseconds = {
|
717
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_msFromTime')],[65,0],[15]],
|
718
|
+
params: [124,127],
|
719
|
+
typedParams: true,
|
720
|
+
returns: [124,127],
|
721
|
+
typedReturns: true,
|
722
|
+
locals: [124],
|
723
|
+
localNames: ["_this","_this#type","t"],
|
724
|
+
};
|
725
|
+
this.___date_prototype_getUTCMinutes = {
|
726
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_MinFromTime')],[65,0],[15]],
|
727
|
+
params: [124,127],
|
728
|
+
typedParams: true,
|
729
|
+
returns: [124,127],
|
730
|
+
typedReturns: true,
|
731
|
+
locals: [124],
|
732
|
+
localNames: ["_this","_this#type","t"],
|
733
|
+
};
|
734
|
+
this.___date_prototype_getUTCMonth = {
|
735
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_MonthFromTime')],[65,0],[15]],
|
736
|
+
params: [124,127],
|
737
|
+
typedParams: true,
|
738
|
+
returns: [124,127],
|
739
|
+
typedReturns: true,
|
740
|
+
locals: [124],
|
741
|
+
localNames: ["_this","_this#type","t"],
|
742
|
+
};
|
743
|
+
this.___date_prototype_getUTCSeconds = {
|
744
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,2],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,2],[65,0],[16, builtin('__ecma262_SecFromTime')],[65,0],[15]],
|
745
|
+
params: [124,127],
|
746
|
+
typedParams: true,
|
747
|
+
returns: [124,127],
|
748
|
+
typedReturns: true,
|
749
|
+
locals: [124],
|
750
|
+
localNames: ["_this","_this#type","t"],
|
751
|
+
};
|
752
|
+
this.___date_prototype_setDate = {
|
753
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,4],[32,2],[16, builtin('Number')],[33,5],[32,4],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[65,0],[16, builtin('__ecma262_LocalTime')],[34,4],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_MonthFromTime')],[65,0],[32,5],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_TimeWithinDay')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,6],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,7],[32,0],[65,19],[32,7],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,7],[65,0],[15]],
|
754
|
+
params: [124,127,124,127],
|
755
|
+
typedParams: true,
|
756
|
+
returns: [124,127],
|
757
|
+
typedReturns: true,
|
758
|
+
locals: [124,124,124,124,127],
|
759
|
+
localNames: ["_this","_this#type","date","date#type","t","dt","newDate","u","#last_type"],
|
760
|
+
};
|
761
|
+
this.___date_prototype_setFullYear = {
|
762
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,8],[32,2],[16, builtin('Number')],[33,9],[32,8],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[5],[32,8],[65,0],[16, builtin('__ecma262_LocalTime')],[33,8],[11],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[65,0],[16, builtin('__ecma262_MonthFromTime')],[33,10],[5],[32,4],[16, builtin('Number')],[33,10],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[65,0],[16, builtin('__ecma262_DateFromTime')],[33,11],[5],[32,6],[16, builtin('Number')],[33,11],[11],[32,9],[65,0],[32,10],[65,0],[32,11],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,8],[65,0],[16, builtin('__ecma262_TimeWithinDay')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,12],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,13],[32,0],[65,19],[32,13],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,13],[65,0],[15]],
|
763
|
+
params: [124,127,124,127,124,127,124,127],
|
764
|
+
typedParams: true,
|
765
|
+
returns: [124,127],
|
766
|
+
typedReturns: true,
|
767
|
+
locals: [124,124,124,124,124,124,127],
|
768
|
+
localNames: ["_this","_this#type","year","year#type","month","month#type","date","date#type","t","y","m","dt","newDate","u","#last_type"],
|
769
|
+
};
|
770
|
+
this.___date_prototype_setHours = {
|
771
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,10],[32,2],[16, builtin('Number')],[33,11],[32,10],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,10],[65,0],[16, builtin('__ecma262_LocalTime')],[33,10],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,12],[5],[32,10],[65,0],[16, builtin('__ecma262_MinFromTime')],[33,12],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,6],[16, builtin('Number')],[33,13],[5],[32,10],[65,0],[16, builtin('__ecma262_SecFromTime')],[33,13],[11],[32,8],[32,9],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,8],[16, builtin('Number')],[33,14],[5],[32,10],[65,0],[16, builtin('__ecma262_msFromTime')],[33,14],[11],[32,10],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,11],[65,0],[32,12],[65,0],[32,13],[65,0],[32,14],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,15],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,16],[32,0],[65,19],[32,16],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,16],[65,0],[15]],
|
772
|
+
params: [124,127,124,127,124,127,124,127,124,127],
|
773
|
+
typedParams: true,
|
774
|
+
returns: [124,127],
|
775
|
+
typedReturns: true,
|
776
|
+
locals: [124,124,124,124,124,124,124,127],
|
777
|
+
localNames: ["_this","_this#type","hour","hour#type","min","min#type","sec","sec#type","ms","ms#type","t","h","m","s","milli","date","u","#last_type"],
|
778
|
+
};
|
779
|
+
this.___date_prototype_setMilliseconds = {
|
780
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,4],[32,2],[16, builtin('Number')],[33,5],[32,4],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[65,0],[16, builtin('__ecma262_LocalTime')],[34,4],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_MinFromTime')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_SecFromTime')],[65,0],[32,5],[65,0],[16, builtin('__ecma262_MakeTime')],[33,6],[32,4],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_MakeDate')],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,7],[32,0],[65,19],[32,7],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,7],[65,0],[15]],
|
781
|
+
params: [124,127,124,127],
|
782
|
+
typedParams: true,
|
783
|
+
returns: [124,127],
|
784
|
+
typedReturns: true,
|
785
|
+
locals: [124,124,124,124,127],
|
786
|
+
localNames: ["_this","_this#type","ms","ms#type","t","milli","time","u","#last_type"],
|
787
|
+
};
|
788
|
+
this.___date_prototype_setMinutes = {
|
789
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,8],[32,2],[16, builtin('Number')],[33,9],[32,8],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,8],[65,0],[16, builtin('__ecma262_LocalTime')],[33,8],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,10],[5],[32,8],[65,0],[16, builtin('__ecma262_SecFromTime')],[33,10],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,6],[16, builtin('Number')],[33,11],[5],[32,8],[65,0],[16, builtin('__ecma262_msFromTime')],[33,11],[11],[32,8],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,8],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[32,9],[65,0],[32,10],[65,0],[32,11],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,12],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,13],[32,0],[65,19],[32,13],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,13],[65,0],[15]],
|
790
|
+
params: [124,127,124,127,124,127,124,127],
|
791
|
+
typedParams: true,
|
792
|
+
returns: [124,127],
|
793
|
+
typedReturns: true,
|
794
|
+
locals: [124,124,124,124,124,124,127],
|
795
|
+
localNames: ["_this","_this#type","min","min#type","sec","sec#type","ms","ms#type","t","m","s","milli","date","u","#last_type"],
|
796
|
+
};
|
797
|
+
this.___date_prototype_setMonth = {
|
798
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,6],[32,2],[16, builtin('Number')],[33,7],[32,6],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,6],[65,0],[16, builtin('__ecma262_LocalTime')],[33,6],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,8],[5],[32,6],[65,0],[16, builtin('__ecma262_DateFromTime')],[33,8],[11],[32,6],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[32,7],[65,0],[32,8],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_TimeWithinDay')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,9],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,10],[32,0],[65,19],[32,10],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,10],[65,0],[15]],
|
799
|
+
params: [124,127,124,127,124,127],
|
800
|
+
typedParams: true,
|
801
|
+
returns: [124,127],
|
802
|
+
typedReturns: true,
|
803
|
+
locals: [124,124,124,124,124,127],
|
804
|
+
localNames: ["_this","_this#type","month","month#type","date","date#type","t","m","dt","newDate","u","#last_type"],
|
805
|
+
};
|
806
|
+
this.___date_prototype_setSeconds = {
|
807
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,6],[32,2],[16, builtin('Number')],[33,7],[32,6],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,6],[65,0],[16, builtin('__ecma262_LocalTime')],[33,6],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,8],[5],[32,6],[65,0],[16, builtin('__ecma262_msFromTime')],[33,8],[11],[32,6],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_MinFromTime')],[65,0],[32,7],[65,0],[32,8],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,9],[65,0],[16, builtin('__ecma262_UTC')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,10],[32,0],[65,19],[32,10],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,10],[65,0],[15]],
|
808
|
+
params: [124,127,124,127,124,127],
|
809
|
+
typedParams: true,
|
810
|
+
returns: [124,127],
|
811
|
+
typedReturns: true,
|
812
|
+
locals: [124,124,124,124,124,127],
|
813
|
+
localNames: ["_this","_this#type","sec","sec#type","ms","ms#type","t","s","milli","date","u","#last_type"],
|
814
|
+
};
|
815
|
+
this.___date_prototype_setTime = {
|
816
|
+
wasm: (scope, { allocPage, builtin }) => [[32,2],[16, builtin('Number')],[34,4],[65,0],[16, builtin('__ecma262_TimeClip')],[33,5],[32,0],[65,19],[32,5],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,5],[65,0],[15]],
|
817
|
+
params: [124,127,124,127],
|
818
|
+
typedParams: true,
|
819
|
+
returns: [124,127],
|
820
|
+
typedReturns: true,
|
821
|
+
locals: [124,124,127],
|
822
|
+
localNames: ["_this","_this#type","time","time#type","t","v","#last_type"],
|
823
|
+
};
|
824
|
+
this.___date_prototype_setUTCDate = {
|
825
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,4],[32,2],[16, builtin('Number')],[33,5],[32,4],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_MonthFromTime')],[65,0],[32,5],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_TimeWithinDay')],[65,0],[16, builtin('__ecma262_MakeDate')],[33,6],[65,0],[33,7],[32,6],[32,7],[16, builtin('__ecma262_TimeClip')],[33,8],[32,0],[65,19],[32,8],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,8],[65,0],[15]],
|
826
|
+
params: [124,127,124,127],
|
827
|
+
typedParams: true,
|
828
|
+
returns: [124,127],
|
829
|
+
typedReturns: true,
|
830
|
+
locals: [124,124,124,127,124,127],
|
831
|
+
localNames: ["_this","_this#type","date","date#type","t","dt","newDate","newDate#type","v","#last_type"],
|
832
|
+
};
|
833
|
+
this.___date_prototype_setUTCFullYear = {
|
834
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[34,8],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,2],[16, builtin('Number')],[33,9],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[65,0],[16, builtin('__ecma262_MonthFromTime')],[33,10],[5],[32,4],[16, builtin('Number')],[33,10],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[65,0],[16, builtin('__ecma262_DateFromTime')],[33,11],[5],[32,6],[16, builtin('Number')],[33,11],[11],[32,9],[65,0],[32,10],[65,0],[32,11],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,8],[65,0],[16, builtin('__ecma262_TimeWithinDay')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,12],[65,0],[16, builtin('__ecma262_TimeClip')],[33,13],[32,0],[65,19],[32,13],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,13],[65,0],[15]],
|
835
|
+
params: [124,127,124,127,124,127,124,127],
|
836
|
+
typedParams: true,
|
837
|
+
returns: [124,127],
|
838
|
+
typedReturns: true,
|
839
|
+
locals: [124,124,124,124,124,124,127],
|
840
|
+
localNames: ["_this","_this#type","year","year#type","month","month#type","date","date#type","t","y","m","dt","newDate","v","#last_type"],
|
841
|
+
};
|
842
|
+
this.___date_prototype_setUTCHours = {
|
843
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,10],[32,2],[16, builtin('Number')],[33,11],[32,10],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,12],[5],[32,10],[65,0],[16, builtin('__ecma262_MinFromTime')],[33,12],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,6],[16, builtin('Number')],[33,13],[5],[32,10],[65,0],[16, builtin('__ecma262_SecFromTime')],[33,13],[11],[32,8],[32,9],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,8],[16, builtin('Number')],[33,14],[5],[32,10],[65,0],[16, builtin('__ecma262_msFromTime')],[33,14],[11],[32,10],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,11],[65,0],[32,12],[65,0],[32,13],[65,0],[32,14],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,15],[65,0],[16, builtin('__ecma262_TimeClip')],[33,16],[32,0],[65,19],[32,16],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,16],[65,0],[15]],
|
844
|
+
params: [124,127,124,127,124,127,124,127,124,127],
|
845
|
+
typedParams: true,
|
846
|
+
returns: [124,127],
|
847
|
+
typedReturns: true,
|
848
|
+
locals: [124,124,124,124,124,124,124,127],
|
849
|
+
localNames: ["_this","_this#type","hour","hour#type","min","min#type","sec","sec#type","ms","ms#type","t","h","m","s","milli","date","v","#last_type"],
|
850
|
+
};
|
851
|
+
this.___date_prototype_setUTCMilliseconds = {
|
852
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,4],[32,2],[16, builtin('Number')],[33,5],[32,4],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_MinFromTime')],[65,0],[32,4],[65,0],[16, builtin('__ecma262_SecFromTime')],[65,0],[32,5],[65,0],[16, builtin('__ecma262_MakeTime')],[33,6],[32,4],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_MakeDate')],[65,0],[16, builtin('__ecma262_TimeClip')],[33,7],[32,0],[65,19],[32,7],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,7],[65,0],[15]],
|
853
|
+
params: [124,127,124,127],
|
854
|
+
typedParams: true,
|
855
|
+
returns: [124,127],
|
856
|
+
typedReturns: true,
|
857
|
+
locals: [124,124,124,124,127],
|
858
|
+
localNames: ["_this","_this#type","ms","ms#type","t","milli","time","v","#last_type"],
|
859
|
+
};
|
860
|
+
this.___date_prototype_setUTCMinutes = {
|
861
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,8],[32,2],[16, builtin('Number')],[33,9],[32,8],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,10],[5],[32,8],[65,0],[16, builtin('__ecma262_SecFromTime')],[33,10],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,6],[16, builtin('Number')],[33,11],[5],[32,8],[65,0],[16, builtin('__ecma262_msFromTime')],[33,11],[11],[32,8],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,8],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[32,9],[65,0],[32,10],[65,0],[32,11],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,12],[65,0],[16, builtin('__ecma262_TimeClip')],[33,13],[32,0],[65,19],[32,13],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,13],[65,0],[15]],
|
862
|
+
params: [124,127,124,127,124,127,124,127],
|
863
|
+
typedParams: true,
|
864
|
+
returns: [124,127],
|
865
|
+
typedReturns: true,
|
866
|
+
locals: [124,124,124,124,124,124,127],
|
867
|
+
localNames: ["_this","_this#type","min","min#type","sec","sec#type","ms","ms#type","t","m","s","milli","date","v","#last_type"],
|
868
|
+
};
|
869
|
+
this.___date_prototype_setUTCMonth = {
|
870
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,6],[32,2],[16, builtin('Number')],[33,7],[32,6],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,8],[5],[32,6],[65,0],[16, builtin('__ecma262_DateFromTime')],[33,8],[11],[32,6],[65,0],[16, builtin('__ecma262_YearFromTime')],[65,0],[32,7],[65,0],[32,8],[65,0],[16, builtin('__ecma262_MakeDay')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_TimeWithinDay')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,9],[65,0],[16, builtin('__ecma262_TimeClip')],[33,10],[32,0],[65,19],[32,10],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,10],[65,0],[15]],
|
871
|
+
params: [124,127,124,127,124,127],
|
872
|
+
typedParams: true,
|
873
|
+
returns: [124,127],
|
874
|
+
typedReturns: true,
|
875
|
+
locals: [124,124,124,124,124,127],
|
876
|
+
localNames: ["_this","_this#type","month","month#type","date","date#type","t","m","dt","newDate","v","#last_type"],
|
877
|
+
};
|
878
|
+
this.___date_prototype_setUTCSeconds = {
|
879
|
+
wasm: (scope, { allocPage, builtin }) => [[32,0],[65,19],[16, builtin('__Porffor_date_read')],[33,6],[32,2],[16, builtin('Number')],[33,7],[32,6],[16, builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,0],[15],[11],[32,4],[32,5],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[98],[4,64],[32,4],[16, builtin('Number')],[33,8],[5],[32,6],[65,0],[16, builtin('__ecma262_msFromTime')],[33,8],[11],[32,6],[65,0],[16, builtin('__ecma262_Day')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_HourFromTime')],[65,0],[32,6],[65,0],[16, builtin('__ecma262_MinFromTime')],[65,0],[32,7],[65,0],[32,8],[65,0],[16, builtin('__ecma262_MakeTime')],[65,0],[16, builtin('__ecma262_MakeDate')],[34,9],[65,0],[16, builtin('__ecma262_TimeClip')],[33,10],[32,0],[65,19],[32,10],[65,0],[16, builtin('__Porffor_date_write')],[26],[26],[32,10],[65,0],[15]],
|
880
|
+
params: [124,127,124,127,124,127],
|
881
|
+
typedParams: true,
|
882
|
+
returns: [124,127],
|
883
|
+
typedReturns: true,
|
884
|
+
locals: [124,124,124,124,124,127],
|
885
|
+
localNames: ["_this","_this#type","sec","sec#type","ms","ms#type","t","s","milli","date","v","#last_type"],
|
886
|
+
};
|
347
887
|
this.escape = {
|
348
888
|
wasm: (scope, { allocPage, builtin }) => [...number(allocPage(scope, 'escape | bytestring: lut', 'i8') * pageSize, 127),[33,2],[32,0],[40,1,0],[34,3],[33,4],[32,0],[33,5],[32,1],[65,18],[70],[4,64],[32,5],[32,3],[106],[33,6],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[32,5],[65,1],[106],[33,5],[45,0,4],[34,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[12,3],[11],[11],[32,4],[65,2],[106],[33,4],[12,1],[11],[11],[32,4],[32,3],[70],[4,64],[32,0],[15],[11],...number(allocPage(scope, 'escape | bytestring: output', 'i8') * pageSize, 127),[34,8],[32,4],[34,9],[54,1,0],[32,0],[33,5],[32,8],[33,10],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[32,5],[65,1],[106],[33,5],[45,0,4],[34,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[32,10],[32,10],[65,1],[106],[33,10],[32,7],[58,0,4],[12,3],[11],[11],[32,10],[32,10],[65,1],[106],[33,10],[65,37],[58,0,4],[32,7],[65,15],[113],[65,48],[106],[34,11],[65,57],[74],[4,64],[32,11],[65,7],[106],[33,11],[11],[32,7],[65,4],[117],[65,48],[106],[34,12],[65,57],[74],[4,64],[32,12],[65,7],[106],[33,12],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,12],[58,0,4],[32,10],[32,10],[65,1],[106],[33,10],[32,11],[58,0,4],[12,1],[11],[11],[32,8],[15],[11],[32,5],[32,3],[65,2],[108],[106],[33,6],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[47,0,4],[33,7],[32,5],[65,2],[106],[33,5],[32,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[12,3],[11],[11],[32,7],[65,128,2],[72],[4,64],[32,4],[65,2],[106],[33,4],[5],[32,4],[65,5],[106],[33,4],[11],[12,1],[11],[11],[32,4],[32,3],[70],[4,64],[32,0],[15],[11],[65,0],[65,0],[54,1,128,128,4],[65,128,128,4],[34,8],[32,4],[34,9],[54,1,0],[32,0],[33,5],[32,8],[33,10],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[47,0,4],[33,7],[32,5],[65,2],[106],[33,5],[32,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[32,10],[32,10],[65,1],[106],[33,10],[32,7],[58,0,4],[12,3],[11],[11],[32,7],[65,128,2],[72],[4,64],[32,10],[32,10],[65,1],[106],[33,10],[65,37],[58,0,4],[32,7],[65,15],[113],[65,48],[106],[34,11],[65,57],[74],[4,64],[32,11],[65,7],[106],[33,11],[11],[32,7],[65,4],[117],[65,48],[106],[34,12],[65,57],[74],[4,64],[32,12],[65,7],[106],[33,12],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,12],[58,0,4],[32,10],[32,10],[65,1],[106],[33,10],[32,11],[58,0,4],[5],[32,10],[65,165,234,1],[59,0,4],[32,10],[65,2],[106],[33,10],[32,7],[65,12],[117],[65,15],[113],[65,48],[106],[34,13],[65,57],[74],[4,64],[32,13],[65,7],[106],[33,13],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,13],[58,0,4],[32,7],[65,8],[117],[65,15],[113],[65,48],[106],[34,13],[65,57],[74],[4,64],[32,13],[65,7],[106],[33,13],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,13],[58,0,4],[32,7],[65,4],[117],[65,15],[113],[65,48],[106],[34,13],[65,57],[74],[4,64],[32,13],[65,7],[106],[33,13],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,13],[58,0,4],[32,7],[65,15],[113],[65,48],[106],[34,13],[65,57],[74],[4,64],[32,13],[65,7],[106],[33,13],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,13],[58,0,4],[11],[12,1],[11],[11],[32,8],[15]],
|
349
889
|
params: [127,127],
|
package/compiler/parse.js
CHANGED
@@ -9,8 +9,10 @@ if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
|
|
9
9
|
globalThis.process = { argv: ['', '', ...Deno.args], stdout: { write: str => Deno.writeAllSync(Deno.stdout, textEncoder.encode(str)) } };
|
10
10
|
}
|
11
11
|
|
12
|
+
const file = process.argv.slice(2).find(x => x[0] !== '-');
|
13
|
+
|
12
14
|
// should we try to support types (while parsing)
|
13
|
-
const types = Prefs.parseTypes;
|
15
|
+
const types = Prefs.parseTypes || file?.endsWith('.ts');
|
14
16
|
globalThis.typedInput = types && Prefs.optTypes;
|
15
17
|
|
16
18
|
// todo: review which to use by default
|
@@ -23,7 +25,7 @@ globalThis.typedInput = types && Prefs.optTypes;
|
|
23
25
|
globalThis.parser = '';
|
24
26
|
let parse;
|
25
27
|
const loadParser = async (fallbackParser = 'acorn', forceParser) => {
|
26
|
-
parser = forceParser ?? process.argv.find(x => x.startsWith('
|
28
|
+
parser = forceParser ?? process.argv.find(x => x.startsWith('--parser='))?.split('=')?.[1] ?? fallbackParser;
|
27
29
|
0, { parse } = (await import((globalThis.document || globalThis.Deno ? 'https://esm.sh/' : '') + parser));
|
28
30
|
};
|
29
31
|
globalThis._porf_loadParser = loadParser;
|