From 6725c77528b371e2c25d785d86e68a963b6f2d9b Mon Sep 17 00:00:00 2001 From: dcode Date: Fri, 25 Mar 2022 23:56:56 +0100 Subject: [PATCH 1/2] Fix setUTCMonth check off by one --- std/assembly/date.ts | 6 +- std/assembly/index.d.ts | 2 +- tests/compiler/std/date.debug.wat | 954 ++++++++++++++++------------ tests/compiler/std/date.release.wat | 761 ++++++++++++---------- tests/compiler/std/date.ts | 27 +- 5 files changed, 1011 insertions(+), 739 deletions(-) diff --git a/std/assembly/date.ts b/std/assembly/date.ts index 53d83c4476..230f995c6d 100644 --- a/std/assembly/date.ts +++ b/std/assembly/date.ts @@ -168,10 +168,10 @@ export class Date { this.setTime(i64(daysSinceEpoch(this.year, this.month, day)) * MILLIS_PER_DAY + ms); } - setUTCMonth(month: i32): void { - if (this.month == month) return; + setUTCMonth(month: i32, day: i32 = this.day): void { + if (this.month == month + 1) return; var ms = euclidRem(this.epochMillis, MILLIS_PER_DAY); - this.setTime(i64(daysSinceEpoch(this.year, month + 1, this.day)) * MILLIS_PER_DAY + ms); + this.setTime(i64(daysSinceEpoch(this.year, month + 1, day)) * MILLIS_PER_DAY + ms); } setUTCFullYear(year: i32): void { diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index d51ebf5c91..7a6cc9e7e5 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -1887,7 +1887,7 @@ declare class Date { getUTCMilliseconds(): i32; setUTCFullYear(value: i32): void; - setUTCMonth(value: i32): void; + setUTCMonth(value: i32, day?: i32): void; setUTCDate(value: i32): void; setUTCHours(value: i32): void; setUTCMinutes(value: i32): void; diff --git a/tests/compiler/std/date.debug.wat b/tests/compiler/std/date.debug.wat index 2eaa891b49..be80fca614 100644 --- a/tests/compiler/std/date.debug.wat +++ b/tests/compiler/std/date.debug.wat @@ -12,6 +12,7 @@ (type $none_=>_i32 (func (result i32))) (type $i32_i64_=>_none (func (param i32 i64))) (type $i32_i64_=>_i64 (func (param i32 i64) (result i64))) + (type $i32_i32_f64_f64_f64_f64_f64_=>_none (func (param i32 i32 f64 f64 f64 f64 f64))) (type $i32_i64_i32_=>_none (func (param i32 i64 i32))) (type $i64_i32_=>_i32 (func (param i64 i32) (result i32))) (type $i32_i64_i32_i32_=>_none (func (param i32 i64 i32 i32))) @@ -19,6 +20,7 @@ (type $i32_i64_=>_i32 (func (param i32 i64) (result i32))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) + (import "env" "trace" (func $~lib/builtins/trace (param i32 i32 f64 f64 f64 f64 f64))) (global $~lib/date/_day (mut i32) (i32.const 0)) (global $~lib/date/_month (mut i32) (i32.const 0)) (global $~lib/rt/itcms/total (mut i32) (i32.const 0)) @@ -35,6 +37,7 @@ (global $~lib/rt/itcms/fromSpace (mut i32) (i32.const 0)) (global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0)) (global $~lib/native/ASC_LOW_MEMORY_LIMIT i32 (i32.const 0)) + (global $~argumentsLength (mut i32) (i32.const 0)) (global $~lib/native/ASC_SHRINK_LEVEL i32 (i32.const 0)) (global $~lib/builtins/i32.MAX_VALUE i32 (i32.const 2147483647)) (global $~lib/native/ASC_RUNTIME i32 (i32.const 2)) @@ -55,16 +58,16 @@ (data (i32.const 412) ",\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\14\00\00\00~\00l\00i\00b\00/\00r\00t\00.\00t\00s\00\00\00\00\00\00\00\00\00") (data (i32.const 464) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 492) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 556) "\00\03\02\05\00\03\05\01\04\06\02\04") - (data (i32.const 572) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 604) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 636) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006\00\00\00\00\00\00\00\00\00") - (data (i32.const 764) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s\00\00\00\00\00\00\00") - (data (i32.const 828) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 860) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\00") - (data (i32.const 1260) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 2316) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z\00\00\00\00\00") - (data (i32.const 2412) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 556) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 588) "\00\03\02\05\00\03\05\01\04\06\02\04") + (data (i32.const 604) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 636) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 668) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006\00\00\00\00\00\00\00\00\00") + (data (i32.const 796) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s\00\00\00\00\00\00\00") + (data (i32.const 860) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 892) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\00") + (data (i32.const 1292) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 2348) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z\00\00\00\00\00") (data (i32.const 2444) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00T\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 2476) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00:\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 2508) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00.\00\00\00\00\00\00\00\00\00\00\00") @@ -2742,57 +2745,78 @@ call $~lib/date/Date#setTime drop ) - (func $~lib/date/Date#setUTCMonth (param $0 i32) (param $1 i32) - (local $2 i64) + (func $~lib/date/Date#setUTCMonth (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i64) (local $4 i64) (local $5 i64) + (local $6 i64) local.get $0 i32.load offset=4 local.get $1 + i32.const 1 + i32.add i32.eq if return end local.get $0 i64.load offset=16 - local.set $3 + local.set $4 i32.const 86400000 i64.extend_i32_s - local.set $2 + local.set $3 + local.get $4 local.get $3 - local.get $2 i64.rem_s - local.set $4 - local.get $4 - local.get $4 + local.set $5 + local.get $5 + local.get $5 i64.const 0 i64.lt_s if (result i64) - local.get $2 + local.get $3 else i64.const 0 end i64.add - local.set $5 + local.set $6 local.get $0 local.get $0 i32.load local.get $1 i32.const 1 i32.add - local.get $0 - i32.load offset=8 + local.get $2 call $~lib/date/daysSinceEpoch i64.extend_i32_s i32.const 86400000 i64.extend_i32_s i64.mul - local.get $5 + local.get $6 i64.add call $~lib/date/Date#setTime drop ) + (func $~lib/date/Date#setUTCMonth@varargs (param $0 i32) (param $1 i32) (param $2 i32) + block $1of1 + block $0of1 + block $outOfRange + global.get $~argumentsLength + i32.const 1 + i32.sub + br_table $0of1 $1of1 $outOfRange + end + unreachable + end + local.get $0 + i32.load offset=8 + local.set $2 + end + local.get $0 + local.get $1 + local.get $2 + call $~lib/date/Date#setUTCMonth + ) (func $~lib/date/Date#setUTCFullYear (param $0 i32) (param $1 i32) (local $2 i64) (local $3 i64) @@ -2911,7 +2935,7 @@ i32.add i32.add local.set $0 - i32.const 556 + i32.const 588 local.get $1 i32.add i32.const 1 @@ -3031,14 +3055,14 @@ i32.const 100 i32.rem_u local.set $7 - i32.const 860 + i32.const 892 local.get $6 i32.const 2 i32.shl i32.add i64.load32_u local.set $8 - i32.const 860 + i32.const 892 local.get $7 i32.const 2 i32.shl @@ -3081,7 +3105,7 @@ i32.const 2 i32.sub local.set $2 - i32.const 860 + i32.const 892 local.get $10 i32.const 2 i32.shl @@ -3104,7 +3128,7 @@ i32.const 2 i32.sub local.set $2 - i32.const 860 + i32.const 892 local.get $1 i32.const 2 i32.shl @@ -3154,7 +3178,7 @@ i32.const 1 i32.shl i32.add - i32.const 1280 + i32.const 1312 local.get $1 i32.wrap_i64 i32.const 255 @@ -3176,7 +3200,7 @@ i32.and if local.get $0 - i32.const 1280 + i32.const 1312 local.get $1 i32.wrap_i64 i32.const 6 @@ -3298,7 +3322,7 @@ i32.const 1 i32.shl i32.add - i32.const 2336 + i32.const 2368 local.get $1 local.get $6 i64.and @@ -3332,7 +3356,7 @@ i32.const 1 i32.shl i32.add - i32.const 2336 + i32.const 2368 local.get $1 local.get $6 local.get $4 @@ -4317,10 +4341,10 @@ i32.const 32 local.get $0 call $~lib/rt/itcms/__visit - i32.const 1280 + i32.const 1312 local.get $0 call $~lib/rt/itcms/__visit - i32.const 2336 + i32.const 2368 local.get $0 call $~lib/rt/itcms/__visit ) @@ -4543,9 +4567,9 @@ global.get $~lib/memory/__stack_pointer local.get $3 if (result i32) - i32.const 592 - else i32.const 624 + else + i32.const 656 end local.set $6 global.get $~lib/memory/__stack_pointer @@ -4569,7 +4593,7 @@ i32.store offset=8 local.get $6 i32.const 6 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4595,7 +4619,7 @@ i32.store local.get $6 i32.const 4 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4606,7 +4630,7 @@ i32.store offset=16 end local.get $1 - i32.const 592 + i32.const 624 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4628,7 +4652,7 @@ i32.store offset=104 local.get $6 i32.const 2 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4646,7 +4670,7 @@ local.get $6 i32.store offset=84 local.get $6 - i32.const 592 + i32.const 624 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4668,7 +4692,7 @@ i32.store offset=84 local.get $6 i32.const 2 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4708,7 +4732,7 @@ i32.store offset=68 local.get $6 i32.const 2 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4748,7 +4772,7 @@ i32.store offset=52 local.get $6 i32.const 2 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4788,7 +4812,7 @@ i32.store offset=36 local.get $6 i32.const 2 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4828,7 +4852,7 @@ i32.store offset=12 local.get $6 i32.const 3 - i32.const 848 + i32.const 880 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4926,7 +4950,7 @@ i32.store offset=8 local.get $10 i32.const 4 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -4940,7 +4964,7 @@ i32.lt_s if global.get $~lib/memory/__stack_pointer - i32.const 592 + i32.const 624 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -4984,7 +5008,7 @@ i32.store offset=32 local.get $10 i32.const 2 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5044,7 +5068,7 @@ i32.store offset=32 local.get $1 i32.const 2 - i32.const 848 + i32.const 880 local.set $1 global.get $~lib/memory/__stack_pointer local.get $1 @@ -5078,7 +5102,7 @@ i32.store offset=24 local.get $1 i32.const 2 - i32.const 848 + i32.const 880 local.set $1 global.get $~lib/memory/__stack_pointer local.get $1 @@ -5118,7 +5142,7 @@ i32.store offset=8 local.get $1 i32.const 2 - i32.const 848 + i32.const 880 local.set $1 global.get $~lib/memory/__stack_pointer local.get $1 @@ -5204,7 +5228,7 @@ i32.store offset=8 local.get $10 i32.const 4 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5218,7 +5242,7 @@ i32.lt_s if global.get $~lib/memory/__stack_pointer - i32.const 592 + i32.const 624 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5246,7 +5270,7 @@ i32.store offset=88 local.get $10 i32.const 2 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5309,7 +5333,7 @@ i32.store offset=60 local.get $10 i32.const 2 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5349,7 +5373,7 @@ i32.store offset=44 local.get $10 i32.const 2 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5389,7 +5413,7 @@ i32.store offset=28 local.get $10 i32.const 2 - i32.const 848 + i32.const 880 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5605,7 +5629,7 @@ i32.store offset=4 local.get $4 i32.load offset=4 - i32.const 2432 + i32.const 576 i32.store local.get $4 local.set $15 @@ -5674,7 +5698,7 @@ drop else local.get $10 - i32.const 2432 + i32.const 576 local.set $15 global.get $~lib/memory/__stack_pointer local.get $15 @@ -5754,7 +5778,7 @@ drop else local.get $10 - i32.const 2432 + i32.const 576 local.set $15 global.get $~lib/memory/__stack_pointer local.get $15 @@ -5957,7 +5981,7 @@ end global.get $~lib/memory/__stack_pointer local.get $5 - i32.const 592 + i32.const 624 local.set $17 global.get $~lib/memory/__stack_pointer local.get $17 @@ -7258,20 +7282,60 @@ i32.const 30 call $~lib/date/Date#setUTCDate local.get $1 + i32.const 0 i32.const 1 - call $~lib/date/Date#setUTCMonth + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs local.get $1 i32.const 1 call $~lib/date/Date#setUTCDate local.get $1 i32.const 31 call $~lib/date/Date#setUTCDate + i32.const 576 + local.set $8 + global.get $~lib/memory/__stack_pointer + local.get $8 + i32.store offset=4 + local.get $8 + i32.const 1 + local.get $1 + local.set $3 + local.get $3 + i64.load offset=16 + f64.convert_i64_s + f64.const 0 + f64.const 0 + f64.const 0 + f64.const 0 + call $~lib/builtins/trace local.get $1 i32.const 2024 call $~lib/date/Date#setUTCFullYear local.get $1 + i32.const 1 + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs + local.get $1 + local.set $2 + local.get $2 + i32.load offset=4 + i32.const 1 + i32.sub i32.const 2 - call $~lib/date/Date#setUTCMonth + i32.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 142 + i32.const 3 + call $~lib/builtins/abort + unreachable + end local.get $1 i32.const 1 call $~lib/date/Date#setUTCDate @@ -7279,23 +7343,46 @@ i32.const 29 call $~lib/date/Date#setUTCDate local.get $1 - local.set $3 - local.get $3 + i32.const 1 + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs + local.get $1 + local.set $0 + local.get $0 i64.load offset=16 - i64.const 1711674191274 + i64.const 1709168591274 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 144 + i32.const 147 i32.const 3 call $~lib/builtins/abort unreachable end local.get $1 - local.set $2 - local.get $2 + local.set $6 + local.get $6 + i32.load offset=4 + i32.const 1 + i32.sub + i32.const 1 + i32.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 148 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + local.get $1 + local.set $5 + local.get $5 i32.load offset=8 i32.const 29 i32.eq @@ -7303,7 +7390,7 @@ if i32.const 0 i32.const 128 - i32.const 145 + i32.const 149 i32.const 3 call $~lib/builtins/abort unreachable @@ -7316,7 +7403,7 @@ if i32.const 0 i32.const 128 - i32.const 146 + i32.const 150 i32.const 3 call $~lib/builtins/abort unreachable @@ -7329,7 +7416,7 @@ if i32.const 0 i32.const 128 - i32.const 147 + i32.const 151 i32.const 3 call $~lib/builtins/abort unreachable @@ -7342,7 +7429,7 @@ if i32.const 0 i32.const 128 - i32.const 148 + i32.const 152 i32.const 3 call $~lib/builtins/abort unreachable @@ -7357,8 +7444,8 @@ i32.const 20 call $~lib/date/Date#setUTCDate local.get $1 - local.set $0 - local.get $0 + local.set $4 + local.get $4 i64.load offset=16 i64.const 1363748399999 i64.eq @@ -7366,7 +7453,7 @@ if i32.const 0 i32.const 128 - i32.const 152 + i32.const 156 i32.const 3 call $~lib/builtins/abort unreachable @@ -7375,8 +7462,8 @@ i32.const 1 call $~lib/date/Date#setUTCDate local.get $1 - local.set $6 - local.get $6 + local.set $3 + local.get $3 i64.load offset=16 i64.const 1362106799999 i64.eq @@ -7384,7 +7471,7 @@ if i32.const 0 i32.const 128 - i32.const 154 + i32.const 158 i32.const 3 call $~lib/builtins/abort unreachable @@ -7393,8 +7480,8 @@ i32.const 1000 call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $5 - local.get $5 + local.set $2 + local.get $2 i64.load offset=16 i64.const 1362106800000 i64.eq @@ -7402,7 +7489,7 @@ if i32.const 0 i32.const 128 - i32.const 157 + i32.const 161 i32.const 3 call $~lib/builtins/abort unreachable @@ -7415,8 +7502,8 @@ i32.mul call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $4 - local.get $4 + local.set $0 + local.get $0 i64.load offset=16 i64.const 1362110400000 i64.eq @@ -7424,7 +7511,7 @@ if i32.const 0 i32.const 128 - i32.const 160 + i32.const 164 i32.const 3 call $~lib/builtins/abort unreachable @@ -7439,8 +7526,8 @@ i32.add call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $3 - local.get $3 + local.set $6 + local.get $6 i64.load offset=16 i64.const 1362114000001 i64.eq @@ -7448,7 +7535,7 @@ if i32.const 0 i32.const 128 - i32.const 163 + i32.const 167 i32.const 3 call $~lib/builtins/abort unreachable @@ -7463,8 +7550,8 @@ i32.add call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $2 - local.get $2 + local.set $5 + local.get $5 i64.load offset=16 i64.const 1362117600001 i64.eq @@ -7472,7 +7559,7 @@ if i32.const 0 i32.const 128 - i32.const 166 + i32.const 170 i32.const 3 call $~lib/builtins/abort unreachable @@ -7487,8 +7574,8 @@ i32.const -2208 call $~lib/date/Date#setUTCDate local.get $1 - local.set $0 - local.get $0 + local.set $4 + local.get $4 i64.load offset=16 i64.const -67301808726 i64.eq @@ -7496,7 +7583,7 @@ if i32.const 0 i32.const 128 - i32.const 170 + i32.const 174 i32.const 3 call $~lib/builtins/abort unreachable @@ -7511,8 +7598,8 @@ i32.const 2208 call $~lib/date/Date#setUTCDate local.get $1 - local.set $6 - local.get $6 + local.set $3 + local.get $3 i64.load offset=16 i64.const 314240591274 i64.eq @@ -7520,7 +7607,7 @@ if i32.const 0 i32.const 128 - i32.const 174 + i32.const 178 i32.const 3 call $~lib/builtins/abort unreachable @@ -7529,13 +7616,13 @@ i32.const 0 i64.const 1467763200000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 i32.load - local.get $5 + local.get $2 i32.load offset=4 - local.get $5 + local.get $2 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 3 @@ -7544,7 +7631,7 @@ if i32.const 0 i32.const 128 - i32.const 184 + i32.const 188 i32.const 3 call $~lib/builtins/abort unreachable @@ -7555,13 +7642,13 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $4 - i32.store offset=8 - local.get $4 + local.tee $0 + i32.store offset=12 + local.get $0 i32.load - local.get $4 + local.get $0 i32.load offset=4 - local.get $4 + local.get $0 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 2 @@ -7570,7 +7657,7 @@ if i32.const 0 i32.const 128 - i32.const 185 + i32.const 189 i32.const 3 call $~lib/builtins/abort unreachable @@ -7583,13 +7670,13 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $3 - i32.store offset=12 - local.get $3 + local.tee $6 + i32.store offset=16 + local.get $6 i32.load - local.get $3 + local.get $6 i32.load offset=4 - local.get $3 + local.get $6 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 3 @@ -7598,7 +7685,7 @@ if i32.const 0 i32.const 128 - i32.const 186 + i32.const 190 i32.const 3 call $~lib/builtins/abort unreachable @@ -7609,13 +7696,13 @@ i64.const 86400000 i64.add call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=16 - local.get $2 + local.tee $5 + i32.store offset=20 + local.get $5 i32.load - local.get $2 + local.get $5 i32.load offset=4 - local.get $2 + local.get $5 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 4 @@ -7624,7 +7711,7 @@ if i32.const 0 i32.const 128 - i32.const 187 + i32.const 191 i32.const 3 call $~lib/builtins/abort unreachable @@ -7633,13 +7720,13 @@ i32.const 0 i64.const 1468022400000 call $~lib/date/Date#constructor - local.tee $0 - i32.store offset=20 - local.get $0 + local.tee $4 + i32.store offset=24 + local.get $4 i32.load - local.get $0 + local.get $4 i32.load offset=4 - local.get $0 + local.get $4 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 6 @@ -7648,7 +7735,7 @@ if i32.const 0 i32.const 128 - i32.const 189 + i32.const 193 i32.const 3 call $~lib/builtins/abort unreachable @@ -7659,13 +7746,13 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $6 - i32.store offset=24 - local.get $6 + local.tee $3 + i32.store offset=28 + local.get $3 i32.load - local.get $6 + local.get $3 i32.load offset=4 - local.get $6 + local.get $3 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 5 @@ -7674,7 +7761,7 @@ if i32.const 0 i32.const 128 - i32.const 190 + i32.const 194 i32.const 3 call $~lib/builtins/abort unreachable @@ -7702,7 +7789,7 @@ if i32.const 0 i32.const 128 - i32.const 191 + i32.const 195 i32.const 3 call $~lib/builtins/abort unreachable @@ -7713,13 +7800,13 @@ i64.const 86400000 i64.add call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 i32.load - local.get $5 + local.get $2 i32.load offset=4 - local.get $5 + local.get $2 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 0 @@ -7728,7 +7815,7 @@ if i32.const 0 i32.const 128 - i32.const 192 + i32.const 196 i32.const 3 call $~lib/builtins/abort unreachable @@ -7737,11 +7824,11 @@ i32.const 0 i64.const 7899943856218720 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 - local.set $4 - local.get $4 + local.tee $2 + i32.store offset=8 + local.get $2 + local.set $0 + local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -7751,17 +7838,20 @@ if i32.const 0 i32.const 128 - i32.const 198 + i32.const 202 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 i32.const 10 - call $~lib/date/Date#setUTCMonth - local.get $5 - local.set $3 - local.get $3 + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs + local.get $2 + local.set $6 + local.get $6 i32.load offset=4 i32.const 1 i32.sub @@ -7771,17 +7861,20 @@ if i32.const 0 i32.const 128 - i32.const 200 + i32.const 204 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 i32.const 2 - call $~lib/date/Date#setUTCMonth - local.get $5 - local.set $2 + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs local.get $2 + local.set $5 + local.get $5 i32.load offset=4 i32.const 1 i32.sub @@ -7791,79 +7884,140 @@ if i32.const 0 i32.const 128 - i32.const 202 + i32.const 206 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 - local.set $0 - local.get $0 - i64.load offset=16 + local.get $2 + local.set $4 + local.get $4 + i64.load offset=16 i64.const 7899941177818720 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 203 + i32.const 207 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 + i32.const 0 i32.const 1 - call $~lib/date/Date#setUTCMonth - local.get $5 - i32.const 12 - call $~lib/date/Date#setUTCMonth - local.get $5 - local.set $6 - local.get $6 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs + local.get $2 + local.set $3 + local.get $3 i64.load offset=16 - i64.const 7899967616218720 + i64.const 7899936080218720 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 207 + i32.const 210 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 + i32.const 11 + i32.const 1 + global.set $~argumentsLength i32.const 0 - call $~lib/date/Date#setUTCMonth - local.get $5 + call $~lib/date/Date#setUTCMonth@varargs + local.get $2 local.set $1 local.get $1 i64.load offset=16 - i64.const 7899967616218720 + i64.const 7899964937818720 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 211 + i32.const 212 i32.const 3 call $~lib/builtins/abort unreachable end + local.get $2 + i32.const -1 + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs + local.get $2 + local.set $0 + local.get $0 + i32.load offset=4 + i32.const 1 + i32.sub + i32.const 11 + i32.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 216 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + local.get $2 + local.set $6 + local.get $6 + i64.load offset=16 + i64.const 7899933401818720 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 217 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + local.get $2 + i32.const 12 + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs + local.get $2 + local.set $5 local.get $5 - i32.const 13 - call $~lib/date/Date#setUTCMonth - local.get $5 + i32.load offset=4 + i32.const 1 + i32.sub + i32.const 0 + i32.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 219 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + local.get $2 local.set $4 local.get $4 i64.load offset=16 - i64.const 7900001830618720 + i64.const 7899936080218720 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 213 + i32.const 220 i32.const 3 call $~lib/builtins/abort unreachable @@ -7872,9 +8026,9 @@ i32.const 0 i64.const 7941202527925698 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $3 local.get $3 i32.load @@ -7884,17 +8038,17 @@ if i32.const 0 i32.const 128 - i32.const 219 + i32.const 226 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 i32.const 1976 call $~lib/date/Date#setUTCFullYear - local.get $5 - local.set $2 local.get $2 + local.set $1 + local.get $1 i32.load i32.const 1976 i32.eq @@ -7902,15 +8056,15 @@ if i32.const 0 i32.const 128 - i32.const 221 + i32.const 228 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 i32.const 20212 call $~lib/date/Date#setUTCFullYear - local.get $5 + local.get $2 local.set $0 local.get $0 i32.load @@ -7920,15 +8074,15 @@ if i32.const 0 i32.const 128 - i32.const 223 + i32.const 230 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 i32.const 71 call $~lib/date/Date#setUTCFullYear - local.get $5 + local.get $2 local.set $6 local.get $6 i32.load @@ -7938,7 +8092,7 @@ if i32.const 0 i32.const 128 - i32.const 225 + i32.const 232 i32.const 3 call $~lib/builtins/abort unreachable @@ -7947,14 +8101,14 @@ i32.const 0 i64.const -62167219200000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 2592 local.set $8 @@ -7967,7 +8121,7 @@ if i32.const 0 i32.const 128 - i32.const 231 + i32.const 238 i32.const 3 call $~lib/builtins/abort unreachable @@ -7978,14 +8132,14 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 2672 local.set $8 @@ -7998,7 +8152,7 @@ if i32.const 0 i32.const 128 - i32.const 233 + i32.const 240 i32.const 3 call $~lib/builtins/abort unreachable @@ -8007,14 +8161,14 @@ i32.const 0 i64.const -62127219200000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 2752 local.set $8 @@ -8027,7 +8181,7 @@ if i32.const 0 i32.const 128 - i32.const 235 + i32.const 242 i32.const 3 call $~lib/builtins/abort unreachable @@ -8036,14 +8190,14 @@ i32.const 0 i64.const 1231231231020 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 2832 local.set $8 @@ -8056,7 +8210,7 @@ if i32.const 0 i32.const 128 - i32.const 237 + i32.const 244 i32.const 3 call $~lib/builtins/abort unreachable @@ -8065,14 +8219,14 @@ i32.const 0 i64.const 1231231231456 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 2912 local.set $8 @@ -8085,7 +8239,7 @@ if i32.const 0 i32.const 128 - i32.const 239 + i32.const 246 i32.const 3 call $~lib/builtins/abort unreachable @@ -8094,14 +8248,14 @@ i32.const 0 i64.const 322331231231020 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 2992 local.set $8 @@ -8114,7 +8268,7 @@ if i32.const 0 i32.const 128 - i32.const 241 + i32.const 248 i32.const 3 call $~lib/builtins/abort unreachable @@ -8123,14 +8277,14 @@ i32.const 0 i64.const 253402300799999 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 3072 local.set $8 @@ -8143,7 +8297,7 @@ if i32.const 0 i32.const 128 - i32.const 243 + i32.const 250 i32.const 3 call $~lib/builtins/abort unreachable @@ -8152,14 +8306,14 @@ i32.const 0 i64.const 253402300800000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 3152 local.set $8 @@ -8172,7 +8326,7 @@ if i32.const 0 i32.const 128 - i32.const 245 + i32.const 252 i32.const 3 call $~lib/builtins/abort unreachable @@ -8181,14 +8335,14 @@ i32.const 0 i64.const -62847038769226 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 3232 local.set $8 @@ -8201,7 +8355,7 @@ if i32.const 0 i32.const 128 - i32.const 247 + i32.const 254 i32.const 3 call $~lib/builtins/abort unreachable @@ -8210,14 +8364,14 @@ i32.const 0 i64.const -61536067200000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toDateString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 4080 local.set $8 @@ -8230,7 +8384,7 @@ if i32.const 0 i32.const 128 - i32.const 253 + i32.const 260 i32.const 3 call $~lib/builtins/abort unreachable @@ -8239,14 +8393,14 @@ i32.const 0 i64.const 1580601600000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toDateString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 4144 local.set $8 @@ -8259,7 +8413,7 @@ if i32.const 0 i32.const 128 - i32.const 255 + i32.const 262 i32.const 3 call $~lib/builtins/abort unreachable @@ -8268,14 +8422,14 @@ i32.const 0 i64.const -62183116800000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toDateString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 4208 local.set $8 @@ -8288,7 +8442,7 @@ if i32.const 0 i32.const 128 - i32.const 258 + i32.const 265 i32.const 3 call $~lib/builtins/abort unreachable @@ -8297,14 +8451,14 @@ i32.const 0 i64.const -61536067200000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toTimeString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 4272 local.set $8 @@ -8317,7 +8471,7 @@ if i32.const 0 i32.const 128 - i32.const 264 + i32.const 271 i32.const 3 call $~lib/builtins/abort unreachable @@ -8326,14 +8480,14 @@ i32.const 0 i64.const 253402300799999 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toTimeString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 4320 local.set $8 @@ -8346,7 +8500,7 @@ if i32.const 0 i32.const 128 - i32.const 267 + i32.const 274 i32.const 3 call $~lib/builtins/abort unreachable @@ -8355,14 +8509,14 @@ i32.const 0 i64.const -61536067200000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toUTCString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 5136 local.set $8 @@ -8375,7 +8529,7 @@ if i32.const 0 i32.const 128 - i32.const 273 + i32.const 280 i32.const 3 call $~lib/builtins/abort unreachable @@ -8384,14 +8538,14 @@ i32.const 0 i64.const 1580741613467 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toUTCString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 5216 local.set $8 @@ -8404,7 +8558,7 @@ if i32.const 0 i32.const 128 - i32.const 275 + i32.const 282 i32.const 3 call $~lib/builtins/abort unreachable @@ -8413,14 +8567,14 @@ i32.const 0 i64.const -62183116800000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 call $~lib/date/Date#toUTCString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 5296 local.set $8 @@ -8433,7 +8587,7 @@ if i32.const 0 i32.const 128 - i32.const 278 + i32.const 285 i32.const 3 call $~lib/builtins/abort unreachable @@ -8443,14 +8597,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 + local.tee $2 + i32.store offset=8 + local.get $2 + local.set $5 local.get $5 - local.set $1 - local.get $1 i64.load offset=16 i64.const 192067200000 i64.eq @@ -8458,7 +8612,7 @@ if i32.const 0 i32.const 128 - i32.const 285 + i32.const 292 i32.const 3 call $~lib/builtins/abort unreachable @@ -8468,12 +8622,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $4 local.get $4 i64.load offset=16 @@ -8483,7 +8637,7 @@ if i32.const 0 i32.const 128 - i32.const 287 + i32.const 294 i32.const 3 call $~lib/builtins/abort unreachable @@ -8493,12 +8647,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $3 local.get $3 i64.load offset=16 @@ -8508,7 +8662,7 @@ if i32.const 0 i32.const 128 - i32.const 289 + i32.const 296 i32.const 3 call $~lib/builtins/abort unreachable @@ -8518,14 +8672,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 - local.set $2 + local.tee $2 + i32.store offset=8 local.get $2 + local.set $1 + local.get $1 i64.load offset=16 i64.const 192112496000 i64.eq @@ -8533,7 +8687,7 @@ if i32.const 0 i32.const 128 - i32.const 293 + i32.const 300 i32.const 3 call $~lib/builtins/abort unreachable @@ -8543,12 +8697,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $0 local.get $0 i64.load offset=16 @@ -8558,7 +8712,7 @@ if i32.const 0 i32.const 128 - i32.const 297 + i32.const 304 i32.const 3 call $~lib/builtins/abort unreachable @@ -8568,12 +8722,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $6 local.get $6 i64.load offset=16 @@ -8583,7 +8737,7 @@ if i32.const 0 i32.const 128 - i32.const 301 + i32.const 308 i32.const 3 call $~lib/builtins/abort unreachable @@ -8593,14 +8747,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 + local.tee $2 + i32.store offset=8 + local.get $2 + local.set $5 local.get $5 - local.set $1 - local.get $1 i64.load offset=16 i64.const -62167219200000 i64.eq @@ -8608,7 +8762,7 @@ if i32.const 0 i32.const 128 - i32.const 304 + i32.const 311 i32.const 3 call $~lib/builtins/abort unreachable @@ -8618,12 +8772,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $4 local.get $4 i64.load offset=16 @@ -8633,7 +8787,7 @@ if i32.const 0 i32.const 128 - i32.const 307 + i32.const 314 i32.const 3 call $~lib/builtins/abort unreachable @@ -8643,12 +8797,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $3 local.get $3 i64.load offset=16 @@ -8658,7 +8812,7 @@ if i32.const 0 i32.const 128 - i32.const 310 + i32.const 317 i32.const 3 call $~lib/builtins/abort unreachable @@ -8668,14 +8822,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 - local.set $2 + local.tee $2 + i32.store offset=8 local.get $2 + local.set $1 + local.get $1 i64.load offset=16 i64.const 191980800000 i64.eq @@ -8683,7 +8837,7 @@ if i32.const 0 i32.const 128 - i32.const 313 + i32.const 320 i32.const 3 call $~lib/builtins/abort unreachable @@ -8693,12 +8847,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $0 local.get $0 i64.load offset=16 @@ -8708,7 +8862,7 @@ if i32.const 0 i32.const 128 - i32.const 316 + i32.const 323 i32.const 3 call $~lib/builtins/abort unreachable @@ -8718,12 +8872,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 - local.get $5 + local.tee $2 + i32.store offset=8 + local.get $2 local.set $6 local.get $6 i64.load offset=16 @@ -8733,7 +8887,7 @@ if i32.const 0 i32.const 128 - i32.const 319 + i32.const 326 i32.const 3 call $~lib/builtins/abort unreachable @@ -8743,14 +8897,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 call $~lib/date/Date.fromString - local.tee $5 - i32.store offset=4 + local.tee $2 + i32.store offset=8 + local.get $2 + local.set $5 local.get $5 - local.set $1 - local.get $1 i64.load offset=16 i64.const 192112496000 i64.eq @@ -8758,7 +8912,7 @@ if i32.const 0 i32.const 128 - i32.const 322 + i32.const 329 i32.const 3 call $~lib/builtins/abort unreachable @@ -8767,15 +8921,15 @@ i32.const 0 i64.const -8640000000000000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=4 + local.tee $2 + i32.store offset=8 global.get $~lib/memory/__stack_pointer i32.const 0 i64.const 8640000000000000 call $~lib/date/Date#constructor - local.tee $1 - i32.store - local.get $5 + local.tee $5 + i32.store offset=20 + local.get $2 local.set $4 local.get $4 i64.load offset=16 @@ -8785,12 +8939,12 @@ if i32.const 0 i32.const 128 - i32.const 340 + i32.const 347 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $1 + local.get $5 local.set $3 local.get $3 i64.load offset=16 @@ -8800,14 +8954,14 @@ if i32.const 0 i32.const 128 - i32.const 341 + i32.const 348 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 - local.set $2 local.get $2 + local.set $1 + local.get $1 i32.load i32.const -271821 i32.eq @@ -8815,12 +8969,12 @@ if i32.const 0 i32.const 128 - i32.const 343 + i32.const 350 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $1 + local.get $5 local.set $0 local.get $0 i32.load @@ -8830,12 +8984,12 @@ if i32.const 0 i32.const 128 - i32.const 344 + i32.const 351 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 local.set $6 local.get $6 i32.load offset=4 @@ -8847,12 +9001,12 @@ if i32.const 0 i32.const 128 - i32.const 346 + i32.const 353 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $1 + local.get $5 local.set $4 local.get $4 i32.load offset=4 @@ -8864,12 +9018,12 @@ if i32.const 0 i32.const 128 - i32.const 347 + i32.const 354 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 local.set $3 local.get $3 i32.load offset=8 @@ -8879,14 +9033,14 @@ if i32.const 0 i32.const 128 - i32.const 349 + i32.const 356 i32.const 3 call $~lib/builtins/abort unreachable end + local.get $5 + local.set $1 local.get $1 - local.set $2 - local.get $2 i32.load offset=8 i32.const 13 i32.eq @@ -8894,17 +9048,17 @@ if i32.const 0 i32.const 128 - i32.const 350 + i32.const 357 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $2 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 6176 local.set $8 @@ -8917,17 +9071,17 @@ if i32.const 0 i32.const 128 - i32.const 352 + i32.const 359 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $1 + local.get $5 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 6256 local.set $8 @@ -8940,7 +9094,7 @@ if i32.const 0 i32.const 128 - i32.const 353 + i32.const 360 i32.const 3 call $~lib/builtins/abort unreachable @@ -8951,8 +9105,8 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=16 + local.tee $1 + i32.store global.get $~lib/memory/__stack_pointer i32.const 0 i64.const -8640000000000000 @@ -8960,7 +9114,7 @@ i64.add call $~lib/date/Date#constructor local.tee $3 - i32.store offset=12 + i32.store offset=28 local.get $3 local.set $0 local.get $0 @@ -8971,7 +9125,7 @@ if i32.const 0 i32.const 128 - i32.const 358 + i32.const 365 i32.const 3 call $~lib/builtins/abort unreachable @@ -8988,7 +9142,7 @@ if i32.const 0 i32.const 128 - i32.const 359 + i32.const 366 i32.const 3 call $~lib/builtins/abort unreachable @@ -9003,7 +9157,7 @@ if i32.const 0 i32.const 128 - i32.const 360 + i32.const 367 i32.const 3 call $~lib/builtins/abort unreachable @@ -9016,7 +9170,7 @@ if i32.const 0 i32.const 128 - i32.const 361 + i32.const 368 i32.const 3 call $~lib/builtins/abort unreachable @@ -9029,7 +9183,7 @@ if i32.const 0 i32.const 128 - i32.const 362 + i32.const 369 i32.const 3 call $~lib/builtins/abort unreachable @@ -9042,7 +9196,7 @@ if i32.const 0 i32.const 128 - i32.const 363 + i32.const 370 i32.const 3 call $~lib/builtins/abort unreachable @@ -9055,17 +9209,17 @@ if i32.const 0 i32.const 128 - i32.const 364 + i32.const 371 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $1 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 6336 local.set $8 @@ -9078,7 +9232,7 @@ if i32.const 0 i32.const 128 - i32.const 366 + i32.const 373 i32.const 3 call $~lib/builtins/abort unreachable @@ -9088,7 +9242,7 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=28 + i32.store offset=4 local.get $8 i32.const 6416 local.set $8 @@ -9101,7 +9255,7 @@ if i32.const 0 i32.const 128 - i32.const 367 + i32.const 374 i32.const 3 call $~lib/builtins/abort unreachable @@ -9219,8 +9373,8 @@ i32.gt_s end if - i32.const 656 - i32.const 784 + i32.const 688 + i32.const 816 i32.const 373 i32.const 5 call $~lib/builtins/abort @@ -9229,7 +9383,7 @@ local.get $0 i32.eqz if - i32.const 848 + i32.const 880 local.set $8 global.get $~lib/memory/__stack_pointer i32.const 4 @@ -9501,7 +9655,7 @@ i32.const 0 i32.eq if - i32.const 2432 + i32.const 576 local.set $6 global.get $~lib/memory/__stack_pointer i32.const 4 @@ -9617,7 +9771,7 @@ local.get $10 i32.eqz if - i32.const 2432 + i32.const 576 local.set $12 global.get $~lib/memory/__stack_pointer i32.const 4 diff --git a/tests/compiler/std/date.release.wat b/tests/compiler/std/date.release.wat index 8f122fe148..59517ada73 100644 --- a/tests/compiler/std/date.release.wat +++ b/tests/compiler/std/date.release.wat @@ -10,9 +10,11 @@ (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32))) (type $none_=>_i32 (func (result i32))) (type $i32_i64_=>_none (func (param i32 i64))) + (type $i32_i32_f64_f64_f64_f64_f64_=>_none (func (param i32 i32 f64 f64 f64 f64 f64))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (type $i64_=>_i32 (func (param i64) (result i32))) (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) + (import "env" "trace" (func $~lib/builtins/trace (param i32 i32 f64 f64 f64 f64 f64))) (global $~lib/date/_day (mut i32) (i32.const 0)) (global $~lib/date/_month (mut i32) (i32.const 0)) (global $~lib/rt/itcms/total (mut i32) (i32.const 0)) @@ -25,6 +27,7 @@ (global $~lib/rt/itcms/white (mut i32) (i32.const 0)) (global $~lib/rt/itcms/fromSpace (mut i32) (i32.const 0)) (global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0)) + (global $~argumentsLength (mut i32) (i32.const 0)) (global $~lib/memory/__stack_pointer (mut i32) (i32.const 23948)) (global $~started (mut i32) (i32.const 0)) (memory $0 1) @@ -36,16 +39,16 @@ (data (i32.const 1372) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00$\00\00\00I\00n\00d\00e\00x\00 \00o\00u\00t\00 \00o\00f\00 \00r\00a\00n\00g\00e") (data (i32.const 1436) ",\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\14\00\00\00~\00l\00i\00b\00/\00r\00t\00.\00t\00s") (data (i32.const 1516) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s") - (data (i32.const 1581) "\03\02\05\00\03\05\01\04\06\02\04") - (data (i32.const 1596) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-") - (data (i32.const 1628) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+") - (data (i32.const 1660) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006") - (data (i32.const 1788) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s") - (data (i32.const 1852) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000") - (data (i32.const 1884) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009") - (data (i32.const 2284) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f") - (data (i32.const 3340) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z") - (data (i32.const 3436) "\1c\00\00\00\00\00\00\00\00\00\00\00\01") + (data (i32.const 1580) "\1c\00\00\00\00\00\00\00\00\00\00\00\01") + (data (i32.const 1613) "\03\02\05\00\03\05\01\04\06\02\04") + (data (i32.const 1628) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-") + (data (i32.const 1660) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+") + (data (i32.const 1692) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006") + (data (i32.const 1820) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s") + (data (i32.const 1884) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000") + (data (i32.const 1916) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009") + (data (i32.const 2316) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f") + (data (i32.const 3372) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z") (data (i32.const 3468) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00T") (data (i32.const 3500) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00:") (data (i32.const 3532) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00.") @@ -315,9 +318,9 @@ call $byn-split-outlined-A$~lib/rt/itcms/__visit i32.const 1056 call $byn-split-outlined-A$~lib/rt/itcms/__visit - i32.const 2304 + i32.const 2336 call $byn-split-outlined-A$~lib/rt/itcms/__visit - i32.const 3360 + i32.const 3392 call $byn-split-outlined-A$~lib/rt/itcms/__visit global.get $~lib/rt/itcms/pinSpace local.tee $1 @@ -2016,95 +2019,109 @@ i64.add call $~lib/date/Date#setTime ) - (func $~lib/date/Date#setUTCMonth (param $0 i32) (param $1 i32) - (local $2 i64) - (local $3 i32) + (func $~lib/date/Date#setUTCMonth@varargs (param $0 i32) (param $1 i32) + (local $2 i32) + (local $3 i64) (local $4 i32) - local.get $1 - local.get $0 - i32.load offset=4 - i32.eq - if - return + block $1of1 + block $0of1 + block $outOfRange + global.get $~argumentsLength + i32.const 1 + i32.sub + br_table $0of1 $1of1 $outOfRange + end + unreachable + end + local.get $0 + i32.load offset=8 + local.set $2 end local.get $0 - i32.load + i32.load offset=4 local.get $1 i32.const 1 i32.add - local.tee $4 - i32.const 2 - i32.le_s - i32.sub - local.tee $3 - local.get $3 - i32.const 399 - i32.sub - local.get $3 - i32.const 0 - i32.ge_s - select - i32.const 400 - i32.div_s - local.set $1 - local.get $0 - i64.const 86400000 - i64.const 0 - local.get $0 - i64.load offset=16 - i64.const 86400000 - i64.rem_s - local.tee $2 - i64.const 0 - i64.lt_s - select - local.get $2 - i64.add - local.get $0 - i32.load offset=8 - i32.const -3 - i32.const 9 - local.get $4 - i32.const 2 - i32.gt_s - select - local.get $4 - i32.add - i32.const 153 - i32.mul - i32.const 2 - i32.add - i32.const 5 - i32.div_u - i32.add - local.get $3 - local.get $1 - i32.const 400 - i32.mul - i32.sub - local.tee $0 - i32.const 365 - i32.mul - local.get $0 - i32.const 2 - i32.shr_u - i32.add - local.get $0 - i32.const 100 - i32.div_u - i32.sub - i32.add - local.get $1 - i32.const 146097 - i32.mul - i32.add - i32.const 719469 - i32.sub - i64.extend_i32_s - i64.const 86400000 - i64.mul - i64.add - call $~lib/date/Date#setTime + i32.ne + if + local.get $0 + i64.const 86400000 + i64.const 0 + local.get $0 + i64.load offset=16 + i64.const 86400000 + i64.rem_s + local.tee $3 + i64.const 0 + i64.lt_s + select + local.get $3 + i64.add + local.get $0 + i32.load + local.get $1 + i32.const 1 + i32.add + local.tee $1 + i32.const 2 + i32.le_s + i32.sub + local.tee $0 + local.get $0 + i32.const 399 + i32.sub + local.get $0 + i32.const 0 + i32.ge_s + select + i32.const 400 + i32.div_s + local.set $4 + local.get $2 + i32.const -3 + i32.const 9 + local.get $1 + i32.const 2 + i32.gt_s + select + local.get $1 + i32.add + i32.const 153 + i32.mul + i32.const 2 + i32.add + i32.const 5 + i32.div_u + i32.add + local.get $0 + local.get $4 + i32.const 400 + i32.mul + i32.sub + local.tee $0 + i32.const 365 + i32.mul + local.get $0 + i32.const 2 + i32.shr_u + i32.add + local.get $0 + i32.const 100 + i32.div_u + i32.sub + i32.add + local.get $4 + i32.const 146097 + i32.mul + i32.add + i32.const 719469 + i32.sub + i64.extend_i32_s + i64.const 86400000 + i64.mul + i64.add + call $~lib/date/Date#setTime + end ) (func $~lib/date/Date#setUTCFullYear (param $0 i32) (param $1 i32) (local $2 i64) @@ -2225,7 +2242,7 @@ i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 local.set $1 br $__inlined_func$~lib/util/number/itoa32 end @@ -2320,7 +2337,7 @@ i32.div_u i32.const 2 i32.shl - i32.const 1884 + i32.const 1916 i32.add i64.load32_u local.get $4 @@ -2328,7 +2345,7 @@ i32.rem_u i32.const 2 i32.shl - i32.const 1884 + i32.const 1916 i32.add i64.load32_u i64.const 32 @@ -2355,7 +2372,7 @@ i32.rem_u i32.const 2 i32.shl - i32.const 1884 + i32.const 1916 i32.add i32.load i32.store @@ -2378,7 +2395,7 @@ local.get $0 i32.const 2 i32.shl - i32.const 1884 + i32.const 1916 i32.add i32.load i32.store @@ -2457,7 +2474,7 @@ i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - i32.const 3456 + i32.const 1600 local.set $2 br $__inlined_func$~lib/string/String#concat end @@ -3220,8 +3237,8 @@ if global.get $~lib/memory/__stack_pointer local.tee $4 - i32.const 1616 i32.const 1648 + i32.const 1680 local.get $3 select local.tee $3 @@ -3240,7 +3257,7 @@ local.get $1 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=12 local.get $1 i32.const 6 @@ -3264,7 +3281,7 @@ local.get $1 i32.store global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=8 local.get $1 i32.const 4 @@ -3273,10 +3290,10 @@ i32.store offset=16 end global.get $~lib/memory/__stack_pointer - i32.const 1616 + i32.const 1648 i32.store offset=100 local.get $1 - i32.const 1616 + i32.const 1648 call $~lib/string/String.__concat local.set $1 global.get $~lib/memory/__stack_pointer @@ -3290,7 +3307,7 @@ local.get $3 i32.store offset=104 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=108 local.get $3 i32.const 2 @@ -3307,10 +3324,10 @@ local.get $1 i32.store offset=84 global.get $~lib/memory/__stack_pointer - i32.const 1616 + i32.const 1648 i32.store offset=88 local.get $1 - i32.const 1616 + i32.const 1648 call $~lib/string/String.__concat local.set $1 global.get $~lib/memory/__stack_pointer @@ -3324,7 +3341,7 @@ local.get $3 i32.store offset=84 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=92 local.get $3 i32.const 2 @@ -3371,7 +3388,7 @@ local.get $3 i32.store offset=68 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=76 local.get $3 i32.const 2 @@ -3418,7 +3435,7 @@ local.get $3 i32.store offset=52 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=60 local.get $3 i32.const 2 @@ -3465,7 +3482,7 @@ local.get $3 i32.store offset=36 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=44 local.get $3 i32.const 2 @@ -3510,7 +3527,7 @@ local.get $0 i32.store offset=12 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=28 local.get $0 i32.const 3 @@ -3601,7 +3618,7 @@ i32.load offset=8 local.tee $1 local.get $5 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $6 @@ -3661,7 +3678,7 @@ local.get $7 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=12 local.get $7 i32.const 4 @@ -3674,10 +3691,10 @@ if global.get $~lib/memory/__stack_pointer local.tee $4 - i32.const 1616 + i32.const 1648 i32.store offset=8 local.get $4 - i32.const 1616 + i32.const 1648 local.get $0 call $~lib/string/String.__concat local.tee $0 @@ -3718,7 +3735,7 @@ local.get $1 i32.store offset=32 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=40 local.get $1 i32.const 2 @@ -3796,7 +3813,7 @@ local.get $2 i32.store offset=32 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=36 local.get $2 i32.const 2 @@ -3836,7 +3853,7 @@ local.get $3 i32.store offset=24 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=32 local.get $3 i32.const 2 @@ -3883,7 +3900,7 @@ local.get $0 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=16 local.get $0 i32.const 2 @@ -3966,7 +3983,7 @@ i32.load offset=8 local.tee $7 local.get $6 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $1 @@ -4026,7 +4043,7 @@ local.get $9 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=12 local.get $9 i32.const 4 @@ -4039,10 +4056,10 @@ if global.get $~lib/memory/__stack_pointer local.tee $5 - i32.const 1616 + i32.const 1648 i32.store offset=8 local.get $5 - i32.const 1616 + i32.const 1648 local.get $1 call $~lib/string/String.__concat local.tee $1 @@ -4064,7 +4081,7 @@ local.get $5 i32.store offset=88 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=92 local.get $5 i32.const 2 @@ -4136,7 +4153,7 @@ local.get $3 i32.store offset=60 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=68 local.get $3 i32.const 2 @@ -4183,7 +4200,7 @@ local.get $3 i32.store offset=44 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=52 local.get $3 i32.const 2 @@ -4230,7 +4247,7 @@ local.get $0 i32.store offset=28 global.get $~lib/memory/__stack_pointer - i32.const 1872 + i32.const 1904 i32.store offset=36 local.get $0 i32.const 2 @@ -4338,7 +4355,7 @@ i32.store offset=4 local.get $0 i32.load offset=4 - i32.const 3456 + i32.const 1600 i32.store global.get $~lib/memory/__stack_pointer i32.const 24 @@ -4450,10 +4467,10 @@ call $~lib/array/Array<~lib/string/String>#push else global.get $~lib/memory/__stack_pointer - i32.const 3456 + i32.const 1600 i32.store offset=20 local.get $5 - i32.const 3456 + i32.const 1600 call $~lib/array/Array<~lib/string/String>#push end local.get $3 @@ -4507,10 +4524,10 @@ call $~lib/array/Array<~lib/string/String>#push else global.get $~lib/memory/__stack_pointer - i32.const 3456 + i32.const 1600 i32.store offset=20 local.get $5 - i32.const 3456 + i32.const 1600 call $~lib/array/Array<~lib/string/String>#push end global.get $~lib/memory/__stack_pointer @@ -4704,11 +4721,11 @@ end global.get $~lib/memory/__stack_pointer local.tee $0 - i32.const 1616 + i32.const 1648 i32.store local.get $0 local.get $1 - i32.const 1616 + i32.const 1648 call $~lib/string/String#split local.tee $0 i32.store offset=24 @@ -5923,35 +5940,81 @@ local.get $0 i32.const 30 call $~lib/date/Date#setUTCDate - local.get $0 i32.const 1 - call $~lib/date/Date#setUTCMonth + global.set $~argumentsLength + local.get $0 + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs local.get $0 i32.const 1 call $~lib/date/Date#setUTCDate local.get $0 i32.const 31 call $~lib/date/Date#setUTCDate + global.get $~lib/memory/__stack_pointer + i32.const 1600 + i32.store offset=4 + i32.const 1600 + i32.const 1 + local.get $0 + i64.load offset=16 + f64.convert_i64_s + f64.const 0 + f64.const 0 + f64.const 0 + f64.const 0 + call $~lib/builtins/trace local.get $0 i32.const 2024 call $~lib/date/Date#setUTCFullYear + i32.const 1 + global.set $~argumentsLength local.get $0 - i32.const 2 - call $~lib/date/Date#setUTCMonth + i32.const 1 + call $~lib/date/Date#setUTCMonth@varargs + local.get $0 + i32.load offset=4 + i32.const 3 + i32.ne + if + i32.const 0 + i32.const 1152 + i32.const 142 + i32.const 3 + call $~lib/builtins/abort + unreachable + end local.get $0 i32.const 1 call $~lib/date/Date#setUTCDate local.get $0 i32.const 29 call $~lib/date/Date#setUTCDate + i32.const 1 + global.set $~argumentsLength + local.get $0 + i32.const 1 + call $~lib/date/Date#setUTCMonth@varargs local.get $0 i64.load offset=16 - i64.const 1711674191274 + i64.const 1709168591274 i64.ne if i32.const 0 i32.const 1152 - i32.const 144 + i32.const 147 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + local.get $0 + i32.load offset=4 + i32.const 2 + i32.ne + if + i32.const 0 + i32.const 1152 + i32.const 148 i32.const 3 call $~lib/builtins/abort unreachable @@ -5963,7 +6026,7 @@ if i32.const 0 i32.const 1152 - i32.const 145 + i32.const 149 i32.const 3 call $~lib/builtins/abort unreachable @@ -5988,7 +6051,7 @@ if i32.const 0 i32.const 1152 - i32.const 146 + i32.const 150 i32.const 3 call $~lib/builtins/abort unreachable @@ -6013,7 +6076,7 @@ if i32.const 0 i32.const 1152 - i32.const 147 + i32.const 151 i32.const 3 call $~lib/builtins/abort unreachable @@ -6036,7 +6099,7 @@ if i32.const 0 i32.const 1152 - i32.const 148 + i32.const 152 i32.const 3 call $~lib/builtins/abort unreachable @@ -6056,7 +6119,7 @@ if i32.const 0 i32.const 1152 - i32.const 152 + i32.const 156 i32.const 3 call $~lib/builtins/abort unreachable @@ -6071,7 +6134,7 @@ if i32.const 0 i32.const 1152 - i32.const 154 + i32.const 158 i32.const 3 call $~lib/builtins/abort unreachable @@ -6086,7 +6149,7 @@ if i32.const 0 i32.const 1152 - i32.const 157 + i32.const 161 i32.const 3 call $~lib/builtins/abort unreachable @@ -6101,7 +6164,7 @@ if i32.const 0 i32.const 1152 - i32.const 160 + i32.const 164 i32.const 3 call $~lib/builtins/abort unreachable @@ -6116,7 +6179,7 @@ if i32.const 0 i32.const 1152 - i32.const 163 + i32.const 167 i32.const 3 call $~lib/builtins/abort unreachable @@ -6131,7 +6194,7 @@ if i32.const 0 i32.const 1152 - i32.const 166 + i32.const 170 i32.const 3 call $~lib/builtins/abort unreachable @@ -6151,7 +6214,7 @@ if i32.const 0 i32.const 1152 - i32.const 170 + i32.const 174 i32.const 3 call $~lib/builtins/abort unreachable @@ -6171,7 +6234,7 @@ if i32.const 0 i32.const 1152 - i32.const 174 + i32.const 178 i32.const 3 call $~lib/builtins/abort unreachable @@ -6180,7 +6243,7 @@ i64.const 1467763200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i32.load local.get $0 @@ -6195,7 +6258,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6244,7 +6307,7 @@ if i32.const 0 i32.const 1152 - i32.const 184 + i32.const 188 i32.const 3 call $~lib/builtins/abort unreachable @@ -6253,7 +6316,7 @@ i64.const 1467763199999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=12 local.get $0 i32.load local.get $0 @@ -6268,7 +6331,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6317,7 +6380,7 @@ if i32.const 0 i32.const 1152 - i32.const 185 + i32.const 189 i32.const 3 call $~lib/builtins/abort unreachable @@ -6326,7 +6389,7 @@ i64.const 1467849599999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=12 + i32.store offset=16 local.get $0 i32.load local.get $0 @@ -6341,7 +6404,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6390,7 +6453,7 @@ if i32.const 0 i32.const 1152 - i32.const 186 + i32.const 190 i32.const 3 call $~lib/builtins/abort unreachable @@ -6399,7 +6462,7 @@ i64.const 1467849600000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=16 + i32.store offset=20 local.get $0 i32.load local.get $0 @@ -6414,7 +6477,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6463,7 +6526,7 @@ if i32.const 0 i32.const 1152 - i32.const 187 + i32.const 191 i32.const 3 call $~lib/builtins/abort unreachable @@ -6472,7 +6535,7 @@ i64.const 1468022400000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=20 + i32.store offset=24 local.get $0 i32.load local.get $0 @@ -6487,7 +6550,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6536,7 +6599,7 @@ if i32.const 0 i32.const 1152 - i32.const 189 + i32.const 193 i32.const 3 call $~lib/builtins/abort unreachable @@ -6545,7 +6608,7 @@ i64.const 1468022399999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=24 + i32.store offset=28 local.get $0 i32.load local.get $0 @@ -6560,7 +6623,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6609,7 +6672,7 @@ if i32.const 0 i32.const 1152 - i32.const 190 + i32.const 194 i32.const 3 call $~lib/builtins/abort unreachable @@ -6633,7 +6696,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6682,7 +6745,7 @@ if i32.const 0 i32.const 1152 - i32.const 191 + i32.const 195 i32.const 3 call $~lib/builtins/abort unreachable @@ -6691,7 +6754,7 @@ i64.const 1468108800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i32.load local.get $0 @@ -6706,7 +6769,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1579 + i32.const 1611 i32.add i32.load8_u local.get $3 @@ -6753,7 +6816,7 @@ if i32.const 0 i32.const 1152 - i32.const 192 + i32.const 196 i32.const 3 call $~lib/builtins/abort unreachable @@ -6762,7 +6825,7 @@ i64.const 7899943856218720 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i32.load offset=4 i32.const 4 @@ -6770,14 +6833,16 @@ if i32.const 0 i32.const 1152 - i32.const 198 + i32.const 202 i32.const 3 call $~lib/builtins/abort unreachable end + i32.const 1 + global.set $~argumentsLength local.get $0 i32.const 10 - call $~lib/date/Date#setUTCMonth + call $~lib/date/Date#setUTCMonth@varargs local.get $0 i32.load offset=4 i32.const 11 @@ -6785,14 +6850,16 @@ if i32.const 0 i32.const 1152 - i32.const 200 + i32.const 204 i32.const 3 call $~lib/builtins/abort unreachable end + i32.const 1 + global.set $~argumentsLength local.get $0 i32.const 2 - call $~lib/date/Date#setUTCMonth + call $~lib/date/Date#setUTCMonth@varargs local.get $0 i32.load offset=4 i32.const 3 @@ -6800,7 +6867,7 @@ if i32.const 0 i32.const 1152 - i32.const 202 + i32.const 206 i32.const 3 call $~lib/builtins/abort unreachable @@ -6812,55 +6879,99 @@ if i32.const 0 i32.const 1152 - i32.const 203 + i32.const 207 i32.const 3 call $~lib/builtins/abort unreachable end + i32.const 1 + global.set $~argumentsLength + local.get $0 + i32.const 0 + call $~lib/date/Date#setUTCMonth@varargs local.get $0 + i64.load offset=16 + i64.const 7899936080218720 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 210 + i32.const 3 + call $~lib/builtins/abort + unreachable + end i32.const 1 - call $~lib/date/Date#setUTCMonth + global.set $~argumentsLength local.get $0 - i32.const 12 - call $~lib/date/Date#setUTCMonth + i32.const 11 + call $~lib/date/Date#setUTCMonth@varargs local.get $0 i64.load offset=16 - i64.const 7899967616218720 + i64.const 7899964937818720 i64.ne if i32.const 0 i32.const 1152 - i32.const 207 + i32.const 212 i32.const 3 call $~lib/builtins/abort unreachable end + i32.const 1 + global.set $~argumentsLength local.get $0 - i32.const 0 - call $~lib/date/Date#setUTCMonth + i32.const -1 + call $~lib/date/Date#setUTCMonth@varargs + local.get $0 + i32.load offset=4 + i32.const 12 + i32.ne + if + i32.const 0 + i32.const 1152 + i32.const 216 + i32.const 3 + call $~lib/builtins/abort + unreachable + end local.get $0 i64.load offset=16 - i64.const 7899967616218720 + i64.const 7899933401818720 i64.ne if i32.const 0 i32.const 1152 - i32.const 211 + i32.const 217 i32.const 3 call $~lib/builtins/abort unreachable end + i32.const 1 + global.set $~argumentsLength local.get $0 - i32.const 13 - call $~lib/date/Date#setUTCMonth + i32.const 12 + call $~lib/date/Date#setUTCMonth@varargs + local.get $0 + i32.load offset=4 + i32.const 1 + i32.sub + if + i32.const 0 + i32.const 1152 + i32.const 219 + i32.const 3 + call $~lib/builtins/abort + unreachable + end local.get $0 i64.load offset=16 - i64.const 7900001830618720 + i64.const 7899936080218720 i64.ne if i32.const 0 i32.const 1152 - i32.const 213 + i32.const 220 i32.const 3 call $~lib/builtins/abort unreachable @@ -6869,7 +6980,7 @@ i64.const 7941202527925698 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i32.load i32.const 253616 @@ -6877,7 +6988,7 @@ if i32.const 0 i32.const 1152 - i32.const 219 + i32.const 226 i32.const 3 call $~lib/builtins/abort unreachable @@ -6892,7 +7003,7 @@ if i32.const 0 i32.const 1152 - i32.const 221 + i32.const 228 i32.const 3 call $~lib/builtins/abort unreachable @@ -6907,7 +7018,7 @@ if i32.const 0 i32.const 1152 - i32.const 223 + i32.const 230 i32.const 3 call $~lib/builtins/abort unreachable @@ -6922,7 +7033,7 @@ if i32.const 0 i32.const 1152 - i32.const 225 + i32.const 232 i32.const 3 call $~lib/builtins/abort unreachable @@ -6931,13 +7042,13 @@ i64.const -62167219200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 3616 i32.store offset=32 @@ -6948,7 +7059,7 @@ if i32.const 0 i32.const 1152 - i32.const 231 + i32.const 238 i32.const 3 call $~lib/builtins/abort unreachable @@ -6957,13 +7068,13 @@ i64.const -62167219200001 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 3696 i32.store offset=32 @@ -6974,7 +7085,7 @@ if i32.const 0 i32.const 1152 - i32.const 233 + i32.const 240 i32.const 3 call $~lib/builtins/abort unreachable @@ -6983,13 +7094,13 @@ i64.const -62127219200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 3776 i32.store offset=32 @@ -7000,7 +7111,7 @@ if i32.const 0 i32.const 1152 - i32.const 235 + i32.const 242 i32.const 3 call $~lib/builtins/abort unreachable @@ -7009,13 +7120,13 @@ i64.const 1231231231020 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 3856 i32.store offset=32 @@ -7026,7 +7137,7 @@ if i32.const 0 i32.const 1152 - i32.const 237 + i32.const 244 i32.const 3 call $~lib/builtins/abort unreachable @@ -7035,13 +7146,13 @@ i64.const 1231231231456 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 3936 i32.store offset=32 @@ -7052,7 +7163,7 @@ if i32.const 0 i32.const 1152 - i32.const 239 + i32.const 246 i32.const 3 call $~lib/builtins/abort unreachable @@ -7061,13 +7172,13 @@ i64.const 322331231231020 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 4016 i32.store offset=32 @@ -7078,7 +7189,7 @@ if i32.const 0 i32.const 1152 - i32.const 241 + i32.const 248 i32.const 3 call $~lib/builtins/abort unreachable @@ -7087,13 +7198,13 @@ i64.const 253402300799999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 4096 i32.store offset=32 @@ -7104,7 +7215,7 @@ if i32.const 0 i32.const 1152 - i32.const 243 + i32.const 250 i32.const 3 call $~lib/builtins/abort unreachable @@ -7113,13 +7224,13 @@ i64.const 253402300800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 4176 i32.store offset=32 @@ -7130,7 +7241,7 @@ if i32.const 0 i32.const 1152 - i32.const 245 + i32.const 252 i32.const 3 call $~lib/builtins/abort unreachable @@ -7139,13 +7250,13 @@ i64.const -62847038769226 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 4256 i32.store offset=32 @@ -7156,7 +7267,7 @@ if i32.const 0 i32.const 1152 - i32.const 247 + i32.const 254 i32.const 3 call $~lib/builtins/abort unreachable @@ -7165,13 +7276,13 @@ i64.const -61536067200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toDateString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 5104 i32.store offset=32 @@ -7182,7 +7293,7 @@ if i32.const 0 i32.const 1152 - i32.const 253 + i32.const 260 i32.const 3 call $~lib/builtins/abort unreachable @@ -7191,13 +7302,13 @@ i64.const 1580601600000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toDateString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 5168 i32.store offset=32 @@ -7208,7 +7319,7 @@ if i32.const 0 i32.const 1152 - i32.const 255 + i32.const 262 i32.const 3 call $~lib/builtins/abort unreachable @@ -7217,13 +7328,13 @@ i64.const -62183116800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toDateString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 5232 i32.store offset=32 @@ -7234,7 +7345,7 @@ if i32.const 0 i32.const 1152 - i32.const 258 + i32.const 265 i32.const 3 call $~lib/builtins/abort unreachable @@ -7243,13 +7354,13 @@ i64.const -61536067200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toTimeString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 5296 i32.store offset=32 @@ -7260,7 +7371,7 @@ if i32.const 0 i32.const 1152 - i32.const 264 + i32.const 271 i32.const 3 call $~lib/builtins/abort unreachable @@ -7269,13 +7380,13 @@ i64.const 253402300799999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toTimeString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 5344 i32.store offset=32 @@ -7286,7 +7397,7 @@ if i32.const 0 i32.const 1152 - i32.const 267 + i32.const 274 i32.const 3 call $~lib/builtins/abort unreachable @@ -7295,13 +7406,13 @@ i64.const -61536067200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toUTCString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 6160 i32.store offset=32 @@ -7312,7 +7423,7 @@ if i32.const 0 i32.const 1152 - i32.const 273 + i32.const 280 i32.const 3 call $~lib/builtins/abort unreachable @@ -7321,13 +7432,13 @@ i64.const 1580741613467 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toUTCString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 6240 i32.store offset=32 @@ -7338,7 +7449,7 @@ if i32.const 0 i32.const 1152 - i32.const 275 + i32.const 282 i32.const 3 call $~lib/builtins/abort unreachable @@ -7347,13 +7458,13 @@ i64.const -62183116800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 call $~lib/date/Date#toUTCString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=28 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 6320 i32.store offset=32 @@ -7364,7 +7475,7 @@ if i32.const 0 i32.const 1152 - i32.const 278 + i32.const 285 i32.const 3 call $~lib/builtins/abort unreachable @@ -7372,12 +7483,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6400 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6400 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192067200000 @@ -7385,7 +7496,7 @@ if i32.const 0 i32.const 1152 - i32.const 285 + i32.const 292 i32.const 3 call $~lib/builtins/abort unreachable @@ -7393,12 +7504,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6672 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6672 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192067200000 @@ -7406,7 +7517,7 @@ if i32.const 0 i32.const 1152 - i32.const 287 + i32.const 294 i32.const 3 call $~lib/builtins/abort unreachable @@ -7414,12 +7525,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6720 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6720 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 11860387200000 @@ -7427,7 +7538,7 @@ if i32.const 0 i32.const 1152 - i32.const 289 + i32.const 296 i32.const 3 call $~lib/builtins/abort unreachable @@ -7435,12 +7546,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6768 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6768 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192112496000 @@ -7448,7 +7559,7 @@ if i32.const 0 i32.const 1152 - i32.const 293 + i32.const 300 i32.const 3 call $~lib/builtins/abort unreachable @@ -7456,12 +7567,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6832 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6832 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192112496456 @@ -7469,7 +7580,7 @@ if i32.const 0 i32.const 1152 - i32.const 297 + i32.const 304 i32.const 3 call $~lib/builtins/abort unreachable @@ -7477,12 +7588,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6912 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6912 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192112496456 @@ -7490,7 +7601,7 @@ if i32.const 0 i32.const 1152 - i32.const 301 + i32.const 308 i32.const 3 call $~lib/builtins/abort unreachable @@ -7498,12 +7609,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6992 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6992 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const -62167219200000 @@ -7511,7 +7622,7 @@ if i32.const 0 i32.const 1152 - i32.const 304 + i32.const 311 i32.const 3 call $~lib/builtins/abort unreachable @@ -7519,12 +7630,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7024 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 7024 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const -62135596800000 @@ -7532,7 +7643,7 @@ if i32.const 0 i32.const 1152 - i32.const 307 + i32.const 314 i32.const 3 call $~lib/builtins/abort unreachable @@ -7540,12 +7651,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7056 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 7056 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 189302400000 @@ -7553,7 +7664,7 @@ if i32.const 0 i32.const 1152 - i32.const 310 + i32.const 317 i32.const 3 call $~lib/builtins/abort unreachable @@ -7561,12 +7672,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7088 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 7088 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 191980800000 @@ -7574,7 +7685,7 @@ if i32.const 0 i32.const 1152 - i32.const 313 + i32.const 320 i32.const 3 call $~lib/builtins/abort unreachable @@ -7582,12 +7693,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6400 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6400 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192067200000 @@ -7595,7 +7706,7 @@ if i32.const 0 i32.const 1152 - i32.const 316 + i32.const 323 i32.const 3 call $~lib/builtins/abort unreachable @@ -7603,12 +7714,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7136 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 7136 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192112440000 @@ -7616,7 +7727,7 @@ if i32.const 0 i32.const 1152 - i32.const 319 + i32.const 326 i32.const 3 call $~lib/builtins/abort unreachable @@ -7624,12 +7735,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6768 - i32.store offset=28 + i32.store offset=4 local.get $0 i32.const 6768 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=4 + i32.store offset=8 local.get $0 i64.load offset=16 i64.const 192112496000 @@ -7637,7 +7748,7 @@ if i32.const 0 i32.const 1152 - i32.const 322 + i32.const 329 i32.const 3 call $~lib/builtins/abort unreachable @@ -7646,12 +7757,12 @@ i64.const -8640000000000000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=4 + i32.store offset=8 global.get $~lib/memory/__stack_pointer i64.const 8640000000000000 call $~lib/date/Date#constructor local.tee $2 - i32.store + i32.store offset=20 local.get $0 i64.load offset=16 i64.const -8640000000000000 @@ -7659,7 +7770,7 @@ if i32.const 0 i32.const 1152 - i32.const 340 + i32.const 347 i32.const 3 call $~lib/builtins/abort unreachable @@ -7671,7 +7782,7 @@ if i32.const 0 i32.const 1152 - i32.const 341 + i32.const 348 i32.const 3 call $~lib/builtins/abort unreachable @@ -7683,7 +7794,7 @@ if i32.const 0 i32.const 1152 - i32.const 343 + i32.const 350 i32.const 3 call $~lib/builtins/abort unreachable @@ -7695,7 +7806,7 @@ if i32.const 0 i32.const 1152 - i32.const 344 + i32.const 351 i32.const 3 call $~lib/builtins/abort unreachable @@ -7707,7 +7818,7 @@ if i32.const 0 i32.const 1152 - i32.const 346 + i32.const 353 i32.const 3 call $~lib/builtins/abort unreachable @@ -7719,7 +7830,7 @@ if i32.const 0 i32.const 1152 - i32.const 347 + i32.const 354 i32.const 3 call $~lib/builtins/abort unreachable @@ -7731,7 +7842,7 @@ if i32.const 0 i32.const 1152 - i32.const 349 + i32.const 356 i32.const 3 call $~lib/builtins/abort unreachable @@ -7743,7 +7854,7 @@ if i32.const 0 i32.const 1152 - i32.const 350 + i32.const 357 i32.const 3 call $~lib/builtins/abort unreachable @@ -7754,7 +7865,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=28 + i32.store offset=4 local.get $3 i32.const 7200 i32.store offset=32 @@ -7765,7 +7876,7 @@ if i32.const 0 i32.const 1152 - i32.const 352 + i32.const 359 i32.const 3 call $~lib/builtins/abort unreachable @@ -7776,7 +7887,7 @@ global.get $~lib/memory/__stack_pointer local.tee $2 local.get $0 - i32.store offset=28 + i32.store offset=4 local.get $2 i32.const 7280 i32.store offset=32 @@ -7787,7 +7898,7 @@ if i32.const 0 i32.const 1152 - i32.const 353 + i32.const 360 i32.const 3 call $~lib/builtins/abort unreachable @@ -7796,12 +7907,12 @@ i64.const 8639999999999999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=16 + i32.store global.get $~lib/memory/__stack_pointer i64.const -8639999999999999 call $~lib/date/Date#constructor local.tee $2 - i32.store offset=12 + i32.store offset=28 local.get $2 i32.load i32.const -271821 @@ -7809,7 +7920,7 @@ if i32.const 0 i32.const 1152 - i32.const 358 + i32.const 365 i32.const 3 call $~lib/builtins/abort unreachable @@ -7821,7 +7932,7 @@ if i32.const 0 i32.const 1152 - i32.const 359 + i32.const 366 i32.const 3 call $~lib/builtins/abort unreachable @@ -7833,7 +7944,7 @@ if i32.const 0 i32.const 1152 - i32.const 360 + i32.const 367 i32.const 3 call $~lib/builtins/abort unreachable @@ -7856,7 +7967,7 @@ if i32.const 0 i32.const 1152 - i32.const 361 + i32.const 368 i32.const 3 call $~lib/builtins/abort unreachable @@ -7879,7 +7990,7 @@ if i32.const 0 i32.const 1152 - i32.const 362 + i32.const 369 i32.const 3 call $~lib/builtins/abort unreachable @@ -7902,7 +8013,7 @@ if i32.const 0 i32.const 1152 - i32.const 363 + i32.const 370 i32.const 3 call $~lib/builtins/abort unreachable @@ -7925,7 +8036,7 @@ if i32.const 0 i32.const 1152 - i32.const 364 + i32.const 371 i32.const 3 call $~lib/builtins/abort unreachable @@ -7936,7 +8047,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=28 + i32.store offset=4 local.get $3 i32.const 7360 i32.store offset=32 @@ -7947,7 +8058,7 @@ if i32.const 0 i32.const 1152 - i32.const 366 + i32.const 373 i32.const 3 call $~lib/builtins/abort unreachable @@ -7958,7 +8069,7 @@ global.get $~lib/memory/__stack_pointer local.tee $2 local.get $0 - i32.store offset=28 + i32.store offset=4 local.get $2 i32.const 7440 i32.store offset=32 @@ -7969,7 +8080,7 @@ if i32.const 0 i32.const 1152 - i32.const 367 + i32.const 374 i32.const 3 call $~lib/builtins/abort unreachable @@ -8093,7 +8204,7 @@ global.get $~lib/memory/__stack_pointer i32.const 0 i32.store - i32.const 1868 + i32.const 1900 i32.load i32.const 1 i32.shr_u @@ -8161,7 +8272,7 @@ local.get $3 local.get $5 i32.add - i32.const 1872 + i32.const 1904 local.get $2 memory.copy local.get $2 @@ -8174,12 +8285,12 @@ local.get $5 local.get $8 i32.add - i32.const 1872 + i32.const 1904 local.get $1 memory.copy else local.get $5 - i32.const 1872 + i32.const 1904 local.get $6 memory.copy end @@ -8273,7 +8384,7 @@ i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - i32.const 3456 + i32.const 1600 return end i32.const 0 diff --git a/tests/compiler/std/date.ts b/tests/compiler/std/date.ts index 87cbab1df5..71aa38c4b6 100644 --- a/tests/compiler/std/date.ts +++ b/tests/compiler/std/date.ts @@ -131,17 +131,21 @@ date.setUTCDate(30); // jan has 31 days - date.setUTCMonth(1); + date.setUTCMonth(0); date.setUTCDate(1); date.setUTCDate(31); // feb on leap year + trace("", 1, date.getTime()); date.setUTCFullYear(2024); - date.setUTCMonth(2); + date.setUTCMonth(1); + assert(date.getUTCMonth() == 2); // overflows to march due to day=31 date.setUTCDate(1); date.setUTCDate(29); + date.setUTCMonth(1); - assert(date.getTime() == 1711674191274); + assert(date.getTime() == 1709168591274); + assert(date.getUTCMonth() == 1); assert(date.getUTCDate() == 29); assert(date.getUTCMinutes() == 3); assert(date.getUTCSeconds() == 11); @@ -202,15 +206,18 @@ assert(date.getUTCMonth() == 2); assert(date.getTime() == 7899941177818720); // test boundaries - date.setUTCMonth(1); - date.setUTCMonth(12); - assert(date.getTime() == 7899967616218720); + date.setUTCMonth(0); + assert(date.getTime() == 7899936080218720); + date.setUTCMonth(11); + assert(date.getTime() == 7899964937818720); // test out of boundaries - date.setUTCMonth(0); - assert(date.getTime() == 7899967616218720); - date.setUTCMonth(13); - assert(date.getTime() == 7900001830618720); + date.setUTCMonth(-1); + assert(date.getUTCMonth() == 11); + assert(date.getTime() == 7899933401818720); + date.setUTCMonth(12); + assert(date.getUTCMonth() == 0); + assert(date.getTime() == 7899936080218720); } // Date#setUTCFullYear ///////////////////////////////////////////////////////////////////////////// From 0505c1a88b880cfd0e4daac87e841b17b9b09e9f Mon Sep 17 00:00:00 2001 From: dcode Date: Sat, 26 Mar 2022 00:04:46 +0100 Subject: [PATCH 2/2] remove trace --- tests/compiler/std/date.debug.wat | 871 ++++++++++++++-------------- tests/compiler/std/date.release.wat | 473 ++++++++------- tests/compiler/std/date.ts | 1 - 3 files changed, 655 insertions(+), 690 deletions(-) diff --git a/tests/compiler/std/date.debug.wat b/tests/compiler/std/date.debug.wat index be80fca614..59f9c2984d 100644 --- a/tests/compiler/std/date.debug.wat +++ b/tests/compiler/std/date.debug.wat @@ -12,7 +12,6 @@ (type $none_=>_i32 (func (result i32))) (type $i32_i64_=>_none (func (param i32 i64))) (type $i32_i64_=>_i64 (func (param i32 i64) (result i64))) - (type $i32_i32_f64_f64_f64_f64_f64_=>_none (func (param i32 i32 f64 f64 f64 f64 f64))) (type $i32_i64_i32_=>_none (func (param i32 i64 i32))) (type $i64_i32_=>_i32 (func (param i64 i32) (result i32))) (type $i32_i64_i32_i32_=>_none (func (param i32 i64 i32 i32))) @@ -20,7 +19,6 @@ (type $i32_i64_=>_i32 (func (param i32 i64) (result i32))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) - (import "env" "trace" (func $~lib/builtins/trace (param i32 i32 f64 f64 f64 f64 f64))) (global $~lib/date/_day (mut i32) (i32.const 0)) (global $~lib/date/_month (mut i32) (i32.const 0)) (global $~lib/rt/itcms/total (mut i32) (i32.const 0)) @@ -58,16 +56,16 @@ (data (i32.const 412) ",\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\14\00\00\00~\00l\00i\00b\00/\00r\00t\00.\00t\00s\00\00\00\00\00\00\00\00\00") (data (i32.const 464) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 492) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 556) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 588) "\00\03\02\05\00\03\05\01\04\06\02\04") - (data (i32.const 604) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 636) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 668) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006\00\00\00\00\00\00\00\00\00") - (data (i32.const 796) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s\00\00\00\00\00\00\00") - (data (i32.const 860) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 892) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\00") - (data (i32.const 1292) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data (i32.const 2348) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z\00\00\00\00\00") + (data (i32.const 556) "\00\03\02\05\00\03\05\01\04\06\02\04") + (data (i32.const 572) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 604) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 636) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006\00\00\00\00\00\00\00\00\00") + (data (i32.const 764) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s\00\00\00\00\00\00\00") + (data (i32.const 828) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 860) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\00") + (data (i32.const 1260) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data (i32.const 2316) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z\00\00\00\00\00") + (data (i32.const 2412) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 2444) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00T\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 2476) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00:\00\00\00\00\00\00\00\00\00\00\00") (data (i32.const 2508) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00.\00\00\00\00\00\00\00\00\00\00\00") @@ -2935,7 +2933,7 @@ i32.add i32.add local.set $0 - i32.const 588 + i32.const 556 local.get $1 i32.add i32.const 1 @@ -3055,14 +3053,14 @@ i32.const 100 i32.rem_u local.set $7 - i32.const 892 + i32.const 860 local.get $6 i32.const 2 i32.shl i32.add i64.load32_u local.set $8 - i32.const 892 + i32.const 860 local.get $7 i32.const 2 i32.shl @@ -3105,7 +3103,7 @@ i32.const 2 i32.sub local.set $2 - i32.const 892 + i32.const 860 local.get $10 i32.const 2 i32.shl @@ -3128,7 +3126,7 @@ i32.const 2 i32.sub local.set $2 - i32.const 892 + i32.const 860 local.get $1 i32.const 2 i32.shl @@ -3178,7 +3176,7 @@ i32.const 1 i32.shl i32.add - i32.const 1312 + i32.const 1280 local.get $1 i32.wrap_i64 i32.const 255 @@ -3200,7 +3198,7 @@ i32.and if local.get $0 - i32.const 1312 + i32.const 1280 local.get $1 i32.wrap_i64 i32.const 6 @@ -3322,7 +3320,7 @@ i32.const 1 i32.shl i32.add - i32.const 2368 + i32.const 2336 local.get $1 local.get $6 i64.and @@ -3356,7 +3354,7 @@ i32.const 1 i32.shl i32.add - i32.const 2368 + i32.const 2336 local.get $1 local.get $6 local.get $4 @@ -4341,10 +4339,10 @@ i32.const 32 local.get $0 call $~lib/rt/itcms/__visit - i32.const 1312 + i32.const 1280 local.get $0 call $~lib/rt/itcms/__visit - i32.const 2368 + i32.const 2336 local.get $0 call $~lib/rt/itcms/__visit ) @@ -4567,9 +4565,9 @@ global.get $~lib/memory/__stack_pointer local.get $3 if (result i32) - i32.const 624 + i32.const 592 else - i32.const 656 + i32.const 624 end local.set $6 global.get $~lib/memory/__stack_pointer @@ -4593,7 +4591,7 @@ i32.store offset=8 local.get $6 i32.const 6 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4619,7 +4617,7 @@ i32.store local.get $6 i32.const 4 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4630,7 +4628,7 @@ i32.store offset=16 end local.get $1 - i32.const 624 + i32.const 592 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4652,7 +4650,7 @@ i32.store offset=104 local.get $6 i32.const 2 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4670,7 +4668,7 @@ local.get $6 i32.store offset=84 local.get $6 - i32.const 624 + i32.const 592 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4692,7 +4690,7 @@ i32.store offset=84 local.get $6 i32.const 2 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4732,7 +4730,7 @@ i32.store offset=68 local.get $6 i32.const 2 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4772,7 +4770,7 @@ i32.store offset=52 local.get $6 i32.const 2 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4812,7 +4810,7 @@ i32.store offset=36 local.get $6 i32.const 2 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4852,7 +4850,7 @@ i32.store offset=12 local.get $6 i32.const 3 - i32.const 880 + i32.const 848 local.set $6 global.get $~lib/memory/__stack_pointer local.get $6 @@ -4950,7 +4948,7 @@ i32.store offset=8 local.get $10 i32.const 4 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -4964,7 +4962,7 @@ i32.lt_s if global.get $~lib/memory/__stack_pointer - i32.const 624 + i32.const 592 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5008,7 +5006,7 @@ i32.store offset=32 local.get $10 i32.const 2 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5068,7 +5066,7 @@ i32.store offset=32 local.get $1 i32.const 2 - i32.const 880 + i32.const 848 local.set $1 global.get $~lib/memory/__stack_pointer local.get $1 @@ -5102,7 +5100,7 @@ i32.store offset=24 local.get $1 i32.const 2 - i32.const 880 + i32.const 848 local.set $1 global.get $~lib/memory/__stack_pointer local.get $1 @@ -5142,7 +5140,7 @@ i32.store offset=8 local.get $1 i32.const 2 - i32.const 880 + i32.const 848 local.set $1 global.get $~lib/memory/__stack_pointer local.get $1 @@ -5228,7 +5226,7 @@ i32.store offset=8 local.get $10 i32.const 4 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5242,7 +5240,7 @@ i32.lt_s if global.get $~lib/memory/__stack_pointer - i32.const 624 + i32.const 592 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5270,7 +5268,7 @@ i32.store offset=88 local.get $10 i32.const 2 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5333,7 +5331,7 @@ i32.store offset=60 local.get $10 i32.const 2 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5373,7 +5371,7 @@ i32.store offset=44 local.get $10 i32.const 2 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5413,7 +5411,7 @@ i32.store offset=28 local.get $10 i32.const 2 - i32.const 880 + i32.const 848 local.set $10 global.get $~lib/memory/__stack_pointer local.get $10 @@ -5629,7 +5627,7 @@ i32.store offset=4 local.get $4 i32.load offset=4 - i32.const 576 + i32.const 2432 i32.store local.get $4 local.set $15 @@ -5698,7 +5696,7 @@ drop else local.get $10 - i32.const 576 + i32.const 2432 local.set $15 global.get $~lib/memory/__stack_pointer local.get $15 @@ -5778,7 +5776,7 @@ drop else local.get $10 - i32.const 576 + i32.const 2432 local.set $15 global.get $~lib/memory/__stack_pointer local.get $15 @@ -5981,7 +5979,7 @@ end global.get $~lib/memory/__stack_pointer local.get $5 - i32.const 624 + i32.const 592 local.set $17 global.get $~lib/memory/__stack_pointer local.get $17 @@ -7293,23 +7291,6 @@ local.get $1 i32.const 31 call $~lib/date/Date#setUTCDate - i32.const 576 - local.set $8 - global.get $~lib/memory/__stack_pointer - local.get $8 - i32.store offset=4 - local.get $8 - i32.const 1 - local.get $1 - local.set $3 - local.get $3 - i64.load offset=16 - f64.convert_i64_s - f64.const 0 - f64.const 0 - f64.const 0 - f64.const 0 - call $~lib/builtins/trace local.get $1 i32.const 2024 call $~lib/date/Date#setUTCFullYear @@ -7320,8 +7301,8 @@ i32.const 0 call $~lib/date/Date#setUTCMonth@varargs local.get $1 - local.set $2 - local.get $2 + local.set $3 + local.get $3 i32.load offset=4 i32.const 1 i32.sub @@ -7331,7 +7312,7 @@ if i32.const 0 i32.const 128 - i32.const 142 + i32.const 141 i32.const 3 call $~lib/builtins/abort unreachable @@ -7349,8 +7330,8 @@ i32.const 0 call $~lib/date/Date#setUTCMonth@varargs local.get $1 - local.set $0 - local.get $0 + local.set $2 + local.get $2 i64.load offset=16 i64.const 1709168591274 i64.eq @@ -7358,14 +7339,14 @@ if i32.const 0 i32.const 128 - i32.const 147 + i32.const 146 i32.const 3 call $~lib/builtins/abort unreachable end local.get $1 - local.set $6 - local.get $6 + local.set $0 + local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -7375,14 +7356,14 @@ if i32.const 0 i32.const 128 - i32.const 148 + i32.const 147 i32.const 3 call $~lib/builtins/abort unreachable end local.get $1 - local.set $5 - local.get $5 + local.set $6 + local.get $6 i32.load offset=8 i32.const 29 i32.eq @@ -7390,7 +7371,7 @@ if i32.const 0 i32.const 128 - i32.const 149 + i32.const 148 i32.const 3 call $~lib/builtins/abort unreachable @@ -7403,7 +7384,7 @@ if i32.const 0 i32.const 128 - i32.const 150 + i32.const 149 i32.const 3 call $~lib/builtins/abort unreachable @@ -7416,7 +7397,7 @@ if i32.const 0 i32.const 128 - i32.const 151 + i32.const 150 i32.const 3 call $~lib/builtins/abort unreachable @@ -7429,7 +7410,7 @@ if i32.const 0 i32.const 128 - i32.const 152 + i32.const 151 i32.const 3 call $~lib/builtins/abort unreachable @@ -7444,8 +7425,8 @@ i32.const 20 call $~lib/date/Date#setUTCDate local.get $1 - local.set $4 - local.get $4 + local.set $5 + local.get $5 i64.load offset=16 i64.const 1363748399999 i64.eq @@ -7453,7 +7434,7 @@ if i32.const 0 i32.const 128 - i32.const 156 + i32.const 155 i32.const 3 call $~lib/builtins/abort unreachable @@ -7462,8 +7443,8 @@ i32.const 1 call $~lib/date/Date#setUTCDate local.get $1 - local.set $3 - local.get $3 + local.set $4 + local.get $4 i64.load offset=16 i64.const 1362106799999 i64.eq @@ -7471,7 +7452,7 @@ if i32.const 0 i32.const 128 - i32.const 158 + i32.const 157 i32.const 3 call $~lib/builtins/abort unreachable @@ -7480,8 +7461,8 @@ i32.const 1000 call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $2 - local.get $2 + local.set $3 + local.get $3 i64.load offset=16 i64.const 1362106800000 i64.eq @@ -7489,7 +7470,7 @@ if i32.const 0 i32.const 128 - i32.const 161 + i32.const 160 i32.const 3 call $~lib/builtins/abort unreachable @@ -7502,8 +7483,8 @@ i32.mul call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $0 - local.get $0 + local.set $2 + local.get $2 i64.load offset=16 i64.const 1362110400000 i64.eq @@ -7511,7 +7492,7 @@ if i32.const 0 i32.const 128 - i32.const 164 + i32.const 163 i32.const 3 call $~lib/builtins/abort unreachable @@ -7526,8 +7507,8 @@ i32.add call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $6 - local.get $6 + local.set $0 + local.get $0 i64.load offset=16 i64.const 1362114000001 i64.eq @@ -7535,7 +7516,7 @@ if i32.const 0 i32.const 128 - i32.const 167 + i32.const 166 i32.const 3 call $~lib/builtins/abort unreachable @@ -7550,8 +7531,8 @@ i32.add call $~lib/date/Date#setUTCMilliseconds local.get $1 - local.set $5 - local.get $5 + local.set $6 + local.get $6 i64.load offset=16 i64.const 1362117600001 i64.eq @@ -7559,7 +7540,7 @@ if i32.const 0 i32.const 128 - i32.const 170 + i32.const 169 i32.const 3 call $~lib/builtins/abort unreachable @@ -7574,8 +7555,8 @@ i32.const -2208 call $~lib/date/Date#setUTCDate local.get $1 - local.set $4 - local.get $4 + local.set $5 + local.get $5 i64.load offset=16 i64.const -67301808726 i64.eq @@ -7583,7 +7564,7 @@ if i32.const 0 i32.const 128 - i32.const 174 + i32.const 173 i32.const 3 call $~lib/builtins/abort unreachable @@ -7598,8 +7579,8 @@ i32.const 2208 call $~lib/date/Date#setUTCDate local.get $1 - local.set $3 - local.get $3 + local.set $4 + local.get $4 i64.load offset=16 i64.const 314240591274 i64.eq @@ -7607,7 +7588,7 @@ if i32.const 0 i32.const 128 - i32.const 178 + i32.const 177 i32.const 3 call $~lib/builtins/abort unreachable @@ -7616,13 +7597,13 @@ i32.const 0 i64.const 1467763200000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 i32.load - local.get $2 + local.get $3 i32.load offset=4 - local.get $2 + local.get $3 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 3 @@ -7631,7 +7612,7 @@ if i32.const 0 i32.const 128 - i32.const 188 + i32.const 187 i32.const 3 call $~lib/builtins/abort unreachable @@ -7642,13 +7623,13 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $0 - i32.store offset=12 - local.get $0 + local.tee $2 + i32.store offset=8 + local.get $2 i32.load - local.get $0 + local.get $2 i32.load offset=4 - local.get $0 + local.get $2 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 2 @@ -7657,7 +7638,7 @@ if i32.const 0 i32.const 128 - i32.const 189 + i32.const 188 i32.const 3 call $~lib/builtins/abort unreachable @@ -7670,13 +7651,13 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $6 - i32.store offset=16 - local.get $6 + local.tee $0 + i32.store offset=12 + local.get $0 i32.load - local.get $6 + local.get $0 i32.load offset=4 - local.get $6 + local.get $0 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 3 @@ -7685,7 +7666,7 @@ if i32.const 0 i32.const 128 - i32.const 190 + i32.const 189 i32.const 3 call $~lib/builtins/abort unreachable @@ -7696,13 +7677,13 @@ i64.const 86400000 i64.add call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=20 - local.get $5 + local.tee $6 + i32.store offset=16 + local.get $6 i32.load - local.get $5 + local.get $6 i32.load offset=4 - local.get $5 + local.get $6 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 4 @@ -7711,7 +7692,7 @@ if i32.const 0 i32.const 128 - i32.const 191 + i32.const 190 i32.const 3 call $~lib/builtins/abort unreachable @@ -7720,13 +7701,13 @@ i32.const 0 i64.const 1468022400000 call $~lib/date/Date#constructor - local.tee $4 - i32.store offset=24 - local.get $4 + local.tee $5 + i32.store offset=20 + local.get $5 i32.load - local.get $4 + local.get $5 i32.load offset=4 - local.get $4 + local.get $5 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 6 @@ -7735,7 +7716,7 @@ if i32.const 0 i32.const 128 - i32.const 193 + i32.const 192 i32.const 3 call $~lib/builtins/abort unreachable @@ -7746,13 +7727,13 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $3 - i32.store offset=28 - local.get $3 + local.tee $4 + i32.store offset=24 + local.get $4 i32.load - local.get $3 + local.get $4 i32.load offset=4 - local.get $3 + local.get $4 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 5 @@ -7761,7 +7742,7 @@ if i32.const 0 i32.const 128 - i32.const 194 + i32.const 193 i32.const 3 call $~lib/builtins/abort unreachable @@ -7789,7 +7770,7 @@ if i32.const 0 i32.const 128 - i32.const 195 + i32.const 194 i32.const 3 call $~lib/builtins/abort unreachable @@ -7800,13 +7781,13 @@ i64.const 86400000 i64.add call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 i32.load - local.get $2 + local.get $3 i32.load offset=4 - local.get $2 + local.get $3 i32.load offset=8 call $~lib/date/dayOfWeek i32.const 0 @@ -7815,7 +7796,7 @@ if i32.const 0 i32.const 128 - i32.const 196 + i32.const 195 i32.const 3 call $~lib/builtins/abort unreachable @@ -7824,11 +7805,11 @@ i32.const 0 i64.const 7899943856218720 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $2 local.get $2 - local.set $0 - local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -7838,20 +7819,20 @@ if i32.const 0 i32.const 128 - i32.const 202 + i32.const 201 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 10 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs - local.get $2 - local.set $6 - local.get $6 + local.get $3 + local.set $0 + local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -7861,20 +7842,20 @@ if i32.const 0 i32.const 128 - i32.const 204 + i32.const 203 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 2 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs - local.get $2 - local.set $5 - local.get $5 + local.get $3 + local.set $6 + local.get $6 i32.load offset=4 i32.const 1 i32.sub @@ -7884,14 +7865,14 @@ if i32.const 0 i32.const 128 - i32.const 206 + i32.const 205 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 - local.set $4 - local.get $4 + local.get $3 + local.set $5 + local.get $5 i64.load offset=16 i64.const 7899941177818720 i64.eq @@ -7899,20 +7880,20 @@ if i32.const 0 i32.const 128 - i32.const 207 + i32.const 206 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 0 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs - local.get $2 - local.set $3 local.get $3 + local.set $4 + local.get $4 i64.load offset=16 i64.const 7899936080218720 i64.eq @@ -7920,18 +7901,18 @@ if i32.const 0 i32.const 128 - i32.const 210 + i32.const 209 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 11 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs - local.get $2 + local.get $3 local.set $1 local.get $1 i64.load offset=16 @@ -7941,20 +7922,20 @@ if i32.const 0 i32.const 128 - i32.const 212 + i32.const 211 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const -1 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs + local.get $3 + local.set $2 local.get $2 - local.set $0 - local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -7964,14 +7945,14 @@ if i32.const 0 i32.const 128 - i32.const 216 + i32.const 215 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 - local.set $6 - local.get $6 + local.get $3 + local.set $0 + local.get $0 i64.load offset=16 i64.const 7899933401818720 i64.eq @@ -7979,20 +7960,20 @@ if i32.const 0 i32.const 128 - i32.const 217 + i32.const 216 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 12 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs - local.get $2 - local.set $5 - local.get $5 + local.get $3 + local.set $6 + local.get $6 i32.load offset=4 i32.const 1 i32.sub @@ -8002,14 +7983,14 @@ if i32.const 0 i32.const 128 - i32.const 219 + i32.const 218 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 - local.set $4 - local.get $4 + local.get $3 + local.set $5 + local.get $5 i64.load offset=16 i64.const 7899936080218720 i64.eq @@ -8017,7 +7998,7 @@ if i32.const 0 i32.const 128 - i32.const 220 + i32.const 219 i32.const 3 call $~lib/builtins/abort unreachable @@ -8026,11 +8007,11 @@ i32.const 0 i64.const 7941202527925698 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $3 + local.tee $3 + i32.store offset=4 local.get $3 + local.set $4 + local.get $4 i32.load i32.const 253616 i32.eq @@ -8038,15 +8019,15 @@ if i32.const 0 i32.const 128 - i32.const 226 + i32.const 225 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 1976 call $~lib/date/Date#setUTCFullYear - local.get $2 + local.get $3 local.set $1 local.get $1 i32.load @@ -8056,17 +8037,17 @@ if i32.const 0 i32.const 128 - i32.const 228 + i32.const 227 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 20212 call $~lib/date/Date#setUTCFullYear + local.get $3 + local.set $2 local.get $2 - local.set $0 - local.get $0 i32.load i32.const 20212 i32.eq @@ -8074,17 +8055,17 @@ if i32.const 0 i32.const 128 - i32.const 230 + i32.const 229 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 i32.const 71 call $~lib/date/Date#setUTCFullYear - local.get $2 - local.set $6 - local.get $6 + local.get $3 + local.set $0 + local.get $0 i32.load i32.const 71 i32.eq @@ -8092,7 +8073,7 @@ if i32.const 0 i32.const 128 - i32.const 232 + i32.const 231 i32.const 3 call $~lib/builtins/abort unreachable @@ -8101,14 +8082,14 @@ i32.const 0 i64.const -62167219200000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 2592 local.set $8 @@ -8121,7 +8102,7 @@ if i32.const 0 i32.const 128 - i32.const 238 + i32.const 237 i32.const 3 call $~lib/builtins/abort unreachable @@ -8132,14 +8113,14 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 2672 local.set $8 @@ -8152,7 +8133,7 @@ if i32.const 0 i32.const 128 - i32.const 240 + i32.const 239 i32.const 3 call $~lib/builtins/abort unreachable @@ -8161,14 +8142,14 @@ i32.const 0 i64.const -62127219200000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 2752 local.set $8 @@ -8181,7 +8162,7 @@ if i32.const 0 i32.const 128 - i32.const 242 + i32.const 241 i32.const 3 call $~lib/builtins/abort unreachable @@ -8190,14 +8171,14 @@ i32.const 0 i64.const 1231231231020 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 2832 local.set $8 @@ -8210,7 +8191,7 @@ if i32.const 0 i32.const 128 - i32.const 244 + i32.const 243 i32.const 3 call $~lib/builtins/abort unreachable @@ -8219,14 +8200,14 @@ i32.const 0 i64.const 1231231231456 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 2912 local.set $8 @@ -8239,7 +8220,7 @@ if i32.const 0 i32.const 128 - i32.const 246 + i32.const 245 i32.const 3 call $~lib/builtins/abort unreachable @@ -8248,14 +8229,14 @@ i32.const 0 i64.const 322331231231020 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 2992 local.set $8 @@ -8268,7 +8249,7 @@ if i32.const 0 i32.const 128 - i32.const 248 + i32.const 247 i32.const 3 call $~lib/builtins/abort unreachable @@ -8277,14 +8258,14 @@ i32.const 0 i64.const 253402300799999 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 3072 local.set $8 @@ -8297,7 +8278,7 @@ if i32.const 0 i32.const 128 - i32.const 250 + i32.const 249 i32.const 3 call $~lib/builtins/abort unreachable @@ -8306,14 +8287,14 @@ i32.const 0 i64.const 253402300800000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 3152 local.set $8 @@ -8326,7 +8307,7 @@ if i32.const 0 i32.const 128 - i32.const 252 + i32.const 251 i32.const 3 call $~lib/builtins/abort unreachable @@ -8335,14 +8316,14 @@ i32.const 0 i64.const -62847038769226 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 3232 local.set $8 @@ -8355,7 +8336,7 @@ if i32.const 0 i32.const 128 - i32.const 254 + i32.const 253 i32.const 3 call $~lib/builtins/abort unreachable @@ -8364,14 +8345,14 @@ i32.const 0 i64.const -61536067200000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toDateString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 4080 local.set $8 @@ -8384,7 +8365,7 @@ if i32.const 0 i32.const 128 - i32.const 260 + i32.const 259 i32.const 3 call $~lib/builtins/abort unreachable @@ -8393,14 +8374,14 @@ i32.const 0 i64.const 1580601600000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toDateString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 4144 local.set $8 @@ -8413,7 +8394,7 @@ if i32.const 0 i32.const 128 - i32.const 262 + i32.const 261 i32.const 3 call $~lib/builtins/abort unreachable @@ -8422,14 +8403,14 @@ i32.const 0 i64.const -62183116800000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toDateString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 4208 local.set $8 @@ -8442,7 +8423,7 @@ if i32.const 0 i32.const 128 - i32.const 265 + i32.const 264 i32.const 3 call $~lib/builtins/abort unreachable @@ -8451,14 +8432,14 @@ i32.const 0 i64.const -61536067200000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toTimeString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 4272 local.set $8 @@ -8471,7 +8452,7 @@ if i32.const 0 i32.const 128 - i32.const 271 + i32.const 270 i32.const 3 call $~lib/builtins/abort unreachable @@ -8480,14 +8461,14 @@ i32.const 0 i64.const 253402300799999 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toTimeString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 4320 local.set $8 @@ -8500,7 +8481,7 @@ if i32.const 0 i32.const 128 - i32.const 274 + i32.const 273 i32.const 3 call $~lib/builtins/abort unreachable @@ -8509,14 +8490,14 @@ i32.const 0 i64.const -61536067200000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toUTCString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 5136 local.set $8 @@ -8529,7 +8510,7 @@ if i32.const 0 i32.const 128 - i32.const 280 + i32.const 279 i32.const 3 call $~lib/builtins/abort unreachable @@ -8538,14 +8519,14 @@ i32.const 0 i64.const 1580741613467 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toUTCString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 5216 local.set $8 @@ -8558,7 +8539,7 @@ if i32.const 0 i32.const 128 - i32.const 282 + i32.const 281 i32.const 3 call $~lib/builtins/abort unreachable @@ -8567,14 +8548,14 @@ i32.const 0 i64.const -62183116800000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 call $~lib/date/Date#toUTCString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 5296 local.set $8 @@ -8587,7 +8568,7 @@ if i32.const 0 i32.const 128 - i32.const 285 + i32.const 284 i32.const 3 call $~lib/builtins/abort unreachable @@ -8597,14 +8578,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $5 - local.get $5 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $6 + local.get $6 i64.load offset=16 i64.const 192067200000 i64.eq @@ -8612,7 +8593,7 @@ if i32.const 0 i32.const 128 - i32.const 292 + i32.const 291 i32.const 3 call $~lib/builtins/abort unreachable @@ -8622,14 +8603,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $4 - local.get $4 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $5 + local.get $5 i64.load offset=16 i64.const 192067200000 i64.eq @@ -8637,7 +8618,7 @@ if i32.const 0 i32.const 128 - i32.const 294 + i32.const 293 i32.const 3 call $~lib/builtins/abort unreachable @@ -8647,14 +8628,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $3 + local.tee $3 + i32.store offset=4 local.get $3 + local.set $4 + local.get $4 i64.load offset=16 i64.const 11860387200000 i64.eq @@ -8662,7 +8643,7 @@ if i32.const 0 i32.const 128 - i32.const 296 + i32.const 295 i32.const 3 call $~lib/builtins/abort unreachable @@ -8672,12 +8653,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 local.set $1 local.get $1 i64.load offset=16 @@ -8687,7 +8668,7 @@ if i32.const 0 i32.const 128 - i32.const 300 + i32.const 299 i32.const 3 call $~lib/builtins/abort unreachable @@ -8697,14 +8678,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $2 local.get $2 - local.set $0 - local.get $0 i64.load offset=16 i64.const 192112496456 i64.eq @@ -8712,7 +8693,7 @@ if i32.const 0 i32.const 128 - i32.const 304 + i32.const 303 i32.const 3 call $~lib/builtins/abort unreachable @@ -8722,14 +8703,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $6 - local.get $6 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $0 + local.get $0 i64.load offset=16 i64.const 192112496456 i64.eq @@ -8737,7 +8718,7 @@ if i32.const 0 i32.const 128 - i32.const 308 + i32.const 307 i32.const 3 call $~lib/builtins/abort unreachable @@ -8747,14 +8728,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $5 - local.get $5 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $6 + local.get $6 i64.load offset=16 i64.const -62167219200000 i64.eq @@ -8762,7 +8743,7 @@ if i32.const 0 i32.const 128 - i32.const 311 + i32.const 310 i32.const 3 call $~lib/builtins/abort unreachable @@ -8772,14 +8753,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $4 - local.get $4 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $5 + local.get $5 i64.load offset=16 i64.const -62135596800000 i64.eq @@ -8787,7 +8768,7 @@ if i32.const 0 i32.const 128 - i32.const 314 + i32.const 313 i32.const 3 call $~lib/builtins/abort unreachable @@ -8797,14 +8778,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $3 + local.tee $3 + i32.store offset=4 local.get $3 + local.set $4 + local.get $4 i64.load offset=16 i64.const 189302400000 i64.eq @@ -8812,7 +8793,7 @@ if i32.const 0 i32.const 128 - i32.const 317 + i32.const 316 i32.const 3 call $~lib/builtins/abort unreachable @@ -8822,12 +8803,12 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 + local.tee $3 + i32.store offset=4 + local.get $3 local.set $1 local.get $1 i64.load offset=16 @@ -8837,7 +8818,7 @@ if i32.const 0 i32.const 128 - i32.const 320 + i32.const 319 i32.const 3 call $~lib/builtins/abort unreachable @@ -8847,14 +8828,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $2 local.get $2 - local.set $0 - local.get $0 i64.load offset=16 i64.const 192067200000 i64.eq @@ -8862,7 +8843,7 @@ if i32.const 0 i32.const 128 - i32.const 323 + i32.const 322 i32.const 3 call $~lib/builtins/abort unreachable @@ -8872,14 +8853,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $6 - local.get $6 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $0 + local.get $0 i64.load offset=16 i64.const 192112440000 i64.eq @@ -8887,7 +8868,7 @@ if i32.const 0 i32.const 128 - i32.const 326 + i32.const 325 i32.const 3 call $~lib/builtins/abort unreachable @@ -8897,14 +8878,14 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 call $~lib/date/Date.fromString - local.tee $2 - i32.store offset=8 - local.get $2 - local.set $5 - local.get $5 + local.tee $3 + i32.store offset=4 + local.get $3 + local.set $6 + local.get $6 i64.load offset=16 i64.const 192112496000 i64.eq @@ -8912,7 +8893,7 @@ if i32.const 0 i32.const 128 - i32.const 329 + i32.const 328 i32.const 3 call $~lib/builtins/abort unreachable @@ -8921,17 +8902,17 @@ i32.const 0 i64.const -8640000000000000 call $~lib/date/Date#constructor - local.tee $2 - i32.store offset=8 + local.tee $3 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i32.const 0 i64.const 8640000000000000 call $~lib/date/Date#constructor - local.tee $5 - i32.store offset=20 - local.get $2 - local.set $4 - local.get $4 + local.tee $6 + i32.store offset=16 + local.get $3 + local.set $5 + local.get $5 i64.load offset=16 i64.const -8640000000000000 i64.eq @@ -8939,14 +8920,14 @@ if i32.const 0 i32.const 128 - i32.const 347 + i32.const 346 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 - local.set $3 - local.get $3 + local.get $6 + local.set $4 + local.get $4 i64.load offset=16 i64.const 8640000000000000 i64.eq @@ -8954,12 +8935,12 @@ if i32.const 0 i32.const 128 - i32.const 348 + i32.const 347 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 local.set $1 local.get $1 i32.load @@ -8969,14 +8950,14 @@ if i32.const 0 i32.const 128 - i32.const 350 + i32.const 349 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 - local.set $0 - local.get $0 + local.get $6 + local.set $2 + local.get $2 i32.load i32.const 275760 i32.eq @@ -8984,14 +8965,14 @@ if i32.const 0 i32.const 128 - i32.const 351 + i32.const 350 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 - local.set $6 - local.get $6 + local.get $3 + local.set $0 + local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -9001,14 +8982,14 @@ if i32.const 0 i32.const 128 - i32.const 353 + i32.const 352 i32.const 3 call $~lib/builtins/abort unreachable end + local.get $6 + local.set $5 local.get $5 - local.set $4 - local.get $4 i32.load offset=4 i32.const 1 i32.sub @@ -9018,14 +8999,14 @@ if i32.const 0 i32.const 128 - i32.const 354 + i32.const 353 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 - local.set $3 local.get $3 + local.set $4 + local.get $4 i32.load offset=8 i32.const 20 i32.eq @@ -9033,12 +9014,12 @@ if i32.const 0 i32.const 128 - i32.const 356 + i32.const 355 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $6 local.set $1 local.get $1 i32.load offset=8 @@ -9048,17 +9029,17 @@ if i32.const 0 i32.const 128 - i32.const 357 + i32.const 356 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $2 + local.get $3 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 6176 local.set $8 @@ -9071,17 +9052,17 @@ if i32.const 0 i32.const 128 - i32.const 359 + i32.const 358 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $5 + local.get $6 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 6256 local.set $8 @@ -9094,7 +9075,7 @@ if i32.const 0 i32.const 128 - i32.const 360 + i32.const 359 i32.const 3 call $~lib/builtins/abort unreachable @@ -9113,11 +9094,11 @@ i64.const 1 i64.add call $~lib/date/Date#constructor - local.tee $3 - i32.store offset=28 - local.get $3 - local.set $0 - local.get $0 + local.tee $4 + i32.store offset=24 + local.get $4 + local.set $2 + local.get $2 i32.load i32.const -271821 i32.eq @@ -9125,14 +9106,14 @@ if i32.const 0 i32.const 128 - i32.const 365 + i32.const 364 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 - local.set $6 - local.get $6 + local.get $4 + local.set $0 + local.get $0 i32.load offset=4 i32.const 1 i32.sub @@ -9142,14 +9123,14 @@ if i32.const 0 i32.const 128 - i32.const 366 + i32.const 365 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 - local.set $4 local.get $4 + local.set $5 + local.get $5 i32.load offset=8 i32.const 20 i32.eq @@ -9157,12 +9138,12 @@ if i32.const 0 i32.const 128 - i32.const 367 + i32.const 366 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 + local.get $4 call $~lib/date/Date#getUTCHours i32.const 0 i32.eq @@ -9170,12 +9151,12 @@ if i32.const 0 i32.const 128 - i32.const 368 + i32.const 367 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 + local.get $4 call $~lib/date/Date#getUTCMinutes i32.const 0 i32.eq @@ -9183,12 +9164,12 @@ if i32.const 0 i32.const 128 - i32.const 369 + i32.const 368 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 + local.get $4 call $~lib/date/Date#getUTCSeconds i32.const 0 i32.eq @@ -9196,12 +9177,12 @@ if i32.const 0 i32.const 128 - i32.const 370 + i32.const 369 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 + local.get $4 call $~lib/date/Date#getUTCMilliseconds i32.const 1 i32.eq @@ -9209,7 +9190,7 @@ if i32.const 0 i32.const 128 - i32.const 371 + i32.const 370 i32.const 3 call $~lib/builtins/abort unreachable @@ -9219,7 +9200,7 @@ local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 6336 local.set $8 @@ -9232,17 +9213,17 @@ if i32.const 0 i32.const 128 - i32.const 373 + i32.const 372 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $3 + local.get $4 call $~lib/date/Date#toISOString local.set $8 global.get $~lib/memory/__stack_pointer local.get $8 - i32.store offset=4 + i32.store offset=28 local.get $8 i32.const 6416 local.set $8 @@ -9255,7 +9236,7 @@ if i32.const 0 i32.const 128 - i32.const 374 + i32.const 373 i32.const 3 call $~lib/builtins/abort unreachable @@ -9373,8 +9354,8 @@ i32.gt_s end if - i32.const 688 - i32.const 816 + i32.const 656 + i32.const 784 i32.const 373 i32.const 5 call $~lib/builtins/abort @@ -9383,7 +9364,7 @@ local.get $0 i32.eqz if - i32.const 880 + i32.const 848 local.set $8 global.get $~lib/memory/__stack_pointer i32.const 4 @@ -9655,7 +9636,7 @@ i32.const 0 i32.eq if - i32.const 576 + i32.const 2432 local.set $6 global.get $~lib/memory/__stack_pointer i32.const 4 @@ -9771,7 +9752,7 @@ local.get $10 i32.eqz if - i32.const 576 + i32.const 2432 local.set $12 global.get $~lib/memory/__stack_pointer i32.const 4 diff --git a/tests/compiler/std/date.release.wat b/tests/compiler/std/date.release.wat index 59517ada73..8c297b3419 100644 --- a/tests/compiler/std/date.release.wat +++ b/tests/compiler/std/date.release.wat @@ -10,11 +10,9 @@ (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32))) (type $none_=>_i32 (func (result i32))) (type $i32_i64_=>_none (func (param i32 i64))) - (type $i32_i32_f64_f64_f64_f64_f64_=>_none (func (param i32 i32 f64 f64 f64 f64 f64))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (type $i64_=>_i32 (func (param i64) (result i32))) (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) - (import "env" "trace" (func $~lib/builtins/trace (param i32 i32 f64 f64 f64 f64 f64))) (global $~lib/date/_day (mut i32) (i32.const 0)) (global $~lib/date/_month (mut i32) (i32.const 0)) (global $~lib/rt/itcms/total (mut i32) (i32.const 0)) @@ -39,16 +37,16 @@ (data (i32.const 1372) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00$\00\00\00I\00n\00d\00e\00x\00 \00o\00u\00t\00 \00o\00f\00 \00r\00a\00n\00g\00e") (data (i32.const 1436) ",\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\14\00\00\00~\00l\00i\00b\00/\00r\00t\00.\00t\00s") (data (i32.const 1516) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s") - (data (i32.const 1580) "\1c\00\00\00\00\00\00\00\00\00\00\00\01") - (data (i32.const 1613) "\03\02\05\00\03\05\01\04\06\02\04") - (data (i32.const 1628) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-") - (data (i32.const 1660) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+") - (data (i32.const 1692) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006") - (data (i32.const 1820) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s") - (data (i32.const 1884) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000") - (data (i32.const 1916) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009") - (data (i32.const 2316) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f") - (data (i32.const 3372) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z") + (data (i32.const 1581) "\03\02\05\00\03\05\01\04\06\02\04") + (data (i32.const 1596) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00-") + (data (i32.const 1628) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00+") + (data (i32.const 1660) "|\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00d\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00(\00)\00 \00r\00a\00d\00i\00x\00 \00a\00r\00g\00u\00m\00e\00n\00t\00 \00m\00u\00s\00t\00 \00b\00e\00 \00b\00e\00t\00w\00e\00e\00n\00 \002\00 \00a\00n\00d\00 \003\006") + (data (i32.const 1788) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00n\00u\00m\00b\00e\00r\00.\00t\00s") + (data (i32.const 1852) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\000") + (data (i32.const 1884) "0\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009") + (data (i32.const 2284) "\1c\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\04\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\000\00a\000\00b\000\00c\000\00d\000\00e\000\00f\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\001\00a\001\00b\001\00c\001\00d\001\00e\001\00f\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\002\00a\002\00b\002\00c\002\00d\002\00e\002\00f\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\003\00a\003\00b\003\00c\003\00d\003\00e\003\00f\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\004\00a\004\00b\004\00c\004\00d\004\00e\004\00f\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\005\00a\005\00b\005\00c\005\00d\005\00e\005\00f\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\006\00a\006\00b\006\00c\006\00d\006\00e\006\00f\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\007\00a\007\00b\007\00c\007\00d\007\00e\007\00f\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\008\00a\008\00b\008\00c\008\00d\008\00e\008\00f\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009\009\00a\009\00b\009\00c\009\00d\009\00e\009\00f\00a\000\00a\001\00a\002\00a\003\00a\004\00a\005\00a\006\00a\007\00a\008\00a\009\00a\00a\00a\00b\00a\00c\00a\00d\00a\00e\00a\00f\00b\000\00b\001\00b\002\00b\003\00b\004\00b\005\00b\006\00b\007\00b\008\00b\009\00b\00a\00b\00b\00b\00c\00b\00d\00b\00e\00b\00f\00c\000\00c\001\00c\002\00c\003\00c\004\00c\005\00c\006\00c\007\00c\008\00c\009\00c\00a\00c\00b\00c\00c\00c\00d\00c\00e\00c\00f\00d\000\00d\001\00d\002\00d\003\00d\004\00d\005\00d\006\00d\007\00d\008\00d\009\00d\00a\00d\00b\00d\00c\00d\00d\00d\00e\00d\00f\00e\000\00e\001\00e\002\00e\003\00e\004\00e\005\00e\006\00e\007\00e\008\00e\009\00e\00a\00e\00b\00e\00c\00e\00d\00e\00e\00e\00f\00f\000\00f\001\00f\002\00f\003\00f\004\00f\005\00f\006\00f\007\00f\008\00f\009\00f\00a\00f\00b\00f\00c\00f\00d\00f\00e\00f\00f") + (data (i32.const 3340) "\\\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00H\00\00\000\001\002\003\004\005\006\007\008\009\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z") + (data (i32.const 3436) "\1c\00\00\00\00\00\00\00\00\00\00\00\01") (data (i32.const 3468) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00T") (data (i32.const 3500) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00:") (data (i32.const 3532) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00.") @@ -318,9 +316,9 @@ call $byn-split-outlined-A$~lib/rt/itcms/__visit i32.const 1056 call $byn-split-outlined-A$~lib/rt/itcms/__visit - i32.const 2336 + i32.const 2304 call $byn-split-outlined-A$~lib/rt/itcms/__visit - i32.const 3392 + i32.const 3360 call $byn-split-outlined-A$~lib/rt/itcms/__visit global.get $~lib/rt/itcms/pinSpace local.tee $1 @@ -2242,7 +2240,7 @@ i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 local.set $1 br $__inlined_func$~lib/util/number/itoa32 end @@ -2337,7 +2335,7 @@ i32.div_u i32.const 2 i32.shl - i32.const 1916 + i32.const 1884 i32.add i64.load32_u local.get $4 @@ -2345,7 +2343,7 @@ i32.rem_u i32.const 2 i32.shl - i32.const 1916 + i32.const 1884 i32.add i64.load32_u i64.const 32 @@ -2372,7 +2370,7 @@ i32.rem_u i32.const 2 i32.shl - i32.const 1916 + i32.const 1884 i32.add i32.load i32.store @@ -2395,7 +2393,7 @@ local.get $0 i32.const 2 i32.shl - i32.const 1916 + i32.const 1884 i32.add i32.load i32.store @@ -2474,7 +2472,7 @@ i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - i32.const 1600 + i32.const 3456 local.set $2 br $__inlined_func$~lib/string/String#concat end @@ -3237,8 +3235,8 @@ if global.get $~lib/memory/__stack_pointer local.tee $4 + i32.const 1616 i32.const 1648 - i32.const 1680 local.get $3 select local.tee $3 @@ -3257,7 +3255,7 @@ local.get $1 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=12 local.get $1 i32.const 6 @@ -3281,7 +3279,7 @@ local.get $1 i32.store global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=8 local.get $1 i32.const 4 @@ -3290,10 +3288,10 @@ i32.store offset=16 end global.get $~lib/memory/__stack_pointer - i32.const 1648 + i32.const 1616 i32.store offset=100 local.get $1 - i32.const 1648 + i32.const 1616 call $~lib/string/String.__concat local.set $1 global.get $~lib/memory/__stack_pointer @@ -3307,7 +3305,7 @@ local.get $3 i32.store offset=104 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=108 local.get $3 i32.const 2 @@ -3324,10 +3322,10 @@ local.get $1 i32.store offset=84 global.get $~lib/memory/__stack_pointer - i32.const 1648 + i32.const 1616 i32.store offset=88 local.get $1 - i32.const 1648 + i32.const 1616 call $~lib/string/String.__concat local.set $1 global.get $~lib/memory/__stack_pointer @@ -3341,7 +3339,7 @@ local.get $3 i32.store offset=84 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=92 local.get $3 i32.const 2 @@ -3388,7 +3386,7 @@ local.get $3 i32.store offset=68 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=76 local.get $3 i32.const 2 @@ -3435,7 +3433,7 @@ local.get $3 i32.store offset=52 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=60 local.get $3 i32.const 2 @@ -3482,7 +3480,7 @@ local.get $3 i32.store offset=36 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=44 local.get $3 i32.const 2 @@ -3527,7 +3525,7 @@ local.get $0 i32.store offset=12 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=28 local.get $0 i32.const 3 @@ -3618,7 +3616,7 @@ i32.load offset=8 local.tee $1 local.get $5 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $6 @@ -3678,7 +3676,7 @@ local.get $7 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=12 local.get $7 i32.const 4 @@ -3691,10 +3689,10 @@ if global.get $~lib/memory/__stack_pointer local.tee $4 - i32.const 1648 + i32.const 1616 i32.store offset=8 local.get $4 - i32.const 1648 + i32.const 1616 local.get $0 call $~lib/string/String.__concat local.tee $0 @@ -3735,7 +3733,7 @@ local.get $1 i32.store offset=32 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=40 local.get $1 i32.const 2 @@ -3813,7 +3811,7 @@ local.get $2 i32.store offset=32 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=36 local.get $2 i32.const 2 @@ -3853,7 +3851,7 @@ local.get $3 i32.store offset=24 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=32 local.get $3 i32.const 2 @@ -3900,7 +3898,7 @@ local.get $0 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=16 local.get $0 i32.const 2 @@ -3983,7 +3981,7 @@ i32.load offset=8 local.tee $7 local.get $6 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $1 @@ -4043,7 +4041,7 @@ local.get $9 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=12 local.get $9 i32.const 4 @@ -4056,10 +4054,10 @@ if global.get $~lib/memory/__stack_pointer local.tee $5 - i32.const 1648 + i32.const 1616 i32.store offset=8 local.get $5 - i32.const 1648 + i32.const 1616 local.get $1 call $~lib/string/String.__concat local.tee $1 @@ -4081,7 +4079,7 @@ local.get $5 i32.store offset=88 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=92 local.get $5 i32.const 2 @@ -4153,7 +4151,7 @@ local.get $3 i32.store offset=60 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=68 local.get $3 i32.const 2 @@ -4200,7 +4198,7 @@ local.get $3 i32.store offset=44 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=52 local.get $3 i32.const 2 @@ -4247,7 +4245,7 @@ local.get $0 i32.store offset=28 global.get $~lib/memory/__stack_pointer - i32.const 1904 + i32.const 1872 i32.store offset=36 local.get $0 i32.const 2 @@ -4355,7 +4353,7 @@ i32.store offset=4 local.get $0 i32.load offset=4 - i32.const 1600 + i32.const 3456 i32.store global.get $~lib/memory/__stack_pointer i32.const 24 @@ -4467,10 +4465,10 @@ call $~lib/array/Array<~lib/string/String>#push else global.get $~lib/memory/__stack_pointer - i32.const 1600 + i32.const 3456 i32.store offset=20 local.get $5 - i32.const 1600 + i32.const 3456 call $~lib/array/Array<~lib/string/String>#push end local.get $3 @@ -4524,10 +4522,10 @@ call $~lib/array/Array<~lib/string/String>#push else global.get $~lib/memory/__stack_pointer - i32.const 1600 + i32.const 3456 i32.store offset=20 local.get $5 - i32.const 1600 + i32.const 3456 call $~lib/array/Array<~lib/string/String>#push end global.get $~lib/memory/__stack_pointer @@ -4721,11 +4719,11 @@ end global.get $~lib/memory/__stack_pointer local.tee $0 - i32.const 1648 + i32.const 1616 i32.store local.get $0 local.get $1 - i32.const 1648 + i32.const 1616 call $~lib/string/String#split local.tee $0 i32.store offset=24 @@ -5951,19 +5949,6 @@ local.get $0 i32.const 31 call $~lib/date/Date#setUTCDate - global.get $~lib/memory/__stack_pointer - i32.const 1600 - i32.store offset=4 - i32.const 1600 - i32.const 1 - local.get $0 - i64.load offset=16 - f64.convert_i64_s - f64.const 0 - f64.const 0 - f64.const 0 - f64.const 0 - call $~lib/builtins/trace local.get $0 i32.const 2024 call $~lib/date/Date#setUTCFullYear @@ -5979,7 +5964,7 @@ if i32.const 0 i32.const 1152 - i32.const 142 + i32.const 141 i32.const 3 call $~lib/builtins/abort unreachable @@ -6002,7 +5987,7 @@ if i32.const 0 i32.const 1152 - i32.const 147 + i32.const 146 i32.const 3 call $~lib/builtins/abort unreachable @@ -6014,7 +5999,7 @@ if i32.const 0 i32.const 1152 - i32.const 148 + i32.const 147 i32.const 3 call $~lib/builtins/abort unreachable @@ -6026,7 +6011,7 @@ if i32.const 0 i32.const 1152 - i32.const 149 + i32.const 148 i32.const 3 call $~lib/builtins/abort unreachable @@ -6051,7 +6036,7 @@ if i32.const 0 i32.const 1152 - i32.const 150 + i32.const 149 i32.const 3 call $~lib/builtins/abort unreachable @@ -6076,7 +6061,7 @@ if i32.const 0 i32.const 1152 - i32.const 151 + i32.const 150 i32.const 3 call $~lib/builtins/abort unreachable @@ -6099,7 +6084,7 @@ if i32.const 0 i32.const 1152 - i32.const 152 + i32.const 151 i32.const 3 call $~lib/builtins/abort unreachable @@ -6119,7 +6104,7 @@ if i32.const 0 i32.const 1152 - i32.const 156 + i32.const 155 i32.const 3 call $~lib/builtins/abort unreachable @@ -6134,7 +6119,7 @@ if i32.const 0 i32.const 1152 - i32.const 158 + i32.const 157 i32.const 3 call $~lib/builtins/abort unreachable @@ -6149,7 +6134,7 @@ if i32.const 0 i32.const 1152 - i32.const 161 + i32.const 160 i32.const 3 call $~lib/builtins/abort unreachable @@ -6164,7 +6149,7 @@ if i32.const 0 i32.const 1152 - i32.const 164 + i32.const 163 i32.const 3 call $~lib/builtins/abort unreachable @@ -6179,7 +6164,7 @@ if i32.const 0 i32.const 1152 - i32.const 167 + i32.const 166 i32.const 3 call $~lib/builtins/abort unreachable @@ -6194,7 +6179,7 @@ if i32.const 0 i32.const 1152 - i32.const 170 + i32.const 169 i32.const 3 call $~lib/builtins/abort unreachable @@ -6214,7 +6199,7 @@ if i32.const 0 i32.const 1152 - i32.const 174 + i32.const 173 i32.const 3 call $~lib/builtins/abort unreachable @@ -6234,7 +6219,7 @@ if i32.const 0 i32.const 1152 - i32.const 178 + i32.const 177 i32.const 3 call $~lib/builtins/abort unreachable @@ -6243,7 +6228,7 @@ i64.const 1467763200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i32.load local.get $0 @@ -6258,7 +6243,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6307,7 +6292,7 @@ if i32.const 0 i32.const 1152 - i32.const 188 + i32.const 187 i32.const 3 call $~lib/builtins/abort unreachable @@ -6316,7 +6301,7 @@ i64.const 1467763199999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=12 + i32.store offset=8 local.get $0 i32.load local.get $0 @@ -6331,7 +6316,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6380,7 +6365,7 @@ if i32.const 0 i32.const 1152 - i32.const 189 + i32.const 188 i32.const 3 call $~lib/builtins/abort unreachable @@ -6389,7 +6374,7 @@ i64.const 1467849599999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=16 + i32.store offset=12 local.get $0 i32.load local.get $0 @@ -6404,7 +6389,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6453,7 +6438,7 @@ if i32.const 0 i32.const 1152 - i32.const 190 + i32.const 189 i32.const 3 call $~lib/builtins/abort unreachable @@ -6462,7 +6447,7 @@ i64.const 1467849600000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=20 + i32.store offset=16 local.get $0 i32.load local.get $0 @@ -6477,7 +6462,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6526,7 +6511,7 @@ if i32.const 0 i32.const 1152 - i32.const 191 + i32.const 190 i32.const 3 call $~lib/builtins/abort unreachable @@ -6535,7 +6520,7 @@ i64.const 1468022400000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=24 + i32.store offset=20 local.get $0 i32.load local.get $0 @@ -6550,7 +6535,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6599,7 +6584,7 @@ if i32.const 0 i32.const 1152 - i32.const 193 + i32.const 192 i32.const 3 call $~lib/builtins/abort unreachable @@ -6608,7 +6593,7 @@ i64.const 1468022399999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=28 + i32.store offset=24 local.get $0 i32.load local.get $0 @@ -6623,7 +6608,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6672,7 +6657,7 @@ if i32.const 0 i32.const 1152 - i32.const 194 + i32.const 193 i32.const 3 call $~lib/builtins/abort unreachable @@ -6696,7 +6681,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6745,7 +6730,7 @@ if i32.const 0 i32.const 1152 - i32.const 195 + i32.const 194 i32.const 3 call $~lib/builtins/abort unreachable @@ -6754,7 +6739,7 @@ i64.const 1468108800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i32.load local.get $0 @@ -6769,7 +6754,7 @@ local.get $0 i32.load offset=8 local.get $2 - i32.const 1611 + i32.const 1579 i32.add i32.load8_u local.get $3 @@ -6816,7 +6801,7 @@ if i32.const 0 i32.const 1152 - i32.const 196 + i32.const 195 i32.const 3 call $~lib/builtins/abort unreachable @@ -6825,7 +6810,7 @@ i64.const 7899943856218720 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i32.load offset=4 i32.const 4 @@ -6833,7 +6818,7 @@ if i32.const 0 i32.const 1152 - i32.const 202 + i32.const 201 i32.const 3 call $~lib/builtins/abort unreachable @@ -6850,7 +6835,7 @@ if i32.const 0 i32.const 1152 - i32.const 204 + i32.const 203 i32.const 3 call $~lib/builtins/abort unreachable @@ -6867,7 +6852,7 @@ if i32.const 0 i32.const 1152 - i32.const 206 + i32.const 205 i32.const 3 call $~lib/builtins/abort unreachable @@ -6879,7 +6864,7 @@ if i32.const 0 i32.const 1152 - i32.const 207 + i32.const 206 i32.const 3 call $~lib/builtins/abort unreachable @@ -6896,7 +6881,7 @@ if i32.const 0 i32.const 1152 - i32.const 210 + i32.const 209 i32.const 3 call $~lib/builtins/abort unreachable @@ -6913,7 +6898,7 @@ if i32.const 0 i32.const 1152 - i32.const 212 + i32.const 211 i32.const 3 call $~lib/builtins/abort unreachable @@ -6930,7 +6915,7 @@ if i32.const 0 i32.const 1152 - i32.const 216 + i32.const 215 i32.const 3 call $~lib/builtins/abort unreachable @@ -6942,7 +6927,7 @@ if i32.const 0 i32.const 1152 - i32.const 217 + i32.const 216 i32.const 3 call $~lib/builtins/abort unreachable @@ -6959,7 +6944,7 @@ if i32.const 0 i32.const 1152 - i32.const 219 + i32.const 218 i32.const 3 call $~lib/builtins/abort unreachable @@ -6971,7 +6956,7 @@ if i32.const 0 i32.const 1152 - i32.const 220 + i32.const 219 i32.const 3 call $~lib/builtins/abort unreachable @@ -6980,7 +6965,7 @@ i64.const 7941202527925698 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i32.load i32.const 253616 @@ -6988,7 +6973,7 @@ if i32.const 0 i32.const 1152 - i32.const 226 + i32.const 225 i32.const 3 call $~lib/builtins/abort unreachable @@ -7003,7 +6988,7 @@ if i32.const 0 i32.const 1152 - i32.const 228 + i32.const 227 i32.const 3 call $~lib/builtins/abort unreachable @@ -7018,7 +7003,7 @@ if i32.const 0 i32.const 1152 - i32.const 230 + i32.const 229 i32.const 3 call $~lib/builtins/abort unreachable @@ -7033,7 +7018,7 @@ if i32.const 0 i32.const 1152 - i32.const 232 + i32.const 231 i32.const 3 call $~lib/builtins/abort unreachable @@ -7042,13 +7027,13 @@ i64.const -62167219200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 3616 i32.store offset=32 @@ -7059,7 +7044,7 @@ if i32.const 0 i32.const 1152 - i32.const 238 + i32.const 237 i32.const 3 call $~lib/builtins/abort unreachable @@ -7068,13 +7053,13 @@ i64.const -62167219200001 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 3696 i32.store offset=32 @@ -7085,7 +7070,7 @@ if i32.const 0 i32.const 1152 - i32.const 240 + i32.const 239 i32.const 3 call $~lib/builtins/abort unreachable @@ -7094,13 +7079,13 @@ i64.const -62127219200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 3776 i32.store offset=32 @@ -7111,7 +7096,7 @@ if i32.const 0 i32.const 1152 - i32.const 242 + i32.const 241 i32.const 3 call $~lib/builtins/abort unreachable @@ -7120,13 +7105,13 @@ i64.const 1231231231020 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 3856 i32.store offset=32 @@ -7137,7 +7122,7 @@ if i32.const 0 i32.const 1152 - i32.const 244 + i32.const 243 i32.const 3 call $~lib/builtins/abort unreachable @@ -7146,13 +7131,13 @@ i64.const 1231231231456 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 3936 i32.store offset=32 @@ -7163,7 +7148,7 @@ if i32.const 0 i32.const 1152 - i32.const 246 + i32.const 245 i32.const 3 call $~lib/builtins/abort unreachable @@ -7172,13 +7157,13 @@ i64.const 322331231231020 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 4016 i32.store offset=32 @@ -7189,7 +7174,7 @@ if i32.const 0 i32.const 1152 - i32.const 248 + i32.const 247 i32.const 3 call $~lib/builtins/abort unreachable @@ -7198,13 +7183,13 @@ i64.const 253402300799999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 4096 i32.store offset=32 @@ -7215,7 +7200,7 @@ if i32.const 0 i32.const 1152 - i32.const 250 + i32.const 249 i32.const 3 call $~lib/builtins/abort unreachable @@ -7224,13 +7209,13 @@ i64.const 253402300800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 4176 i32.store offset=32 @@ -7241,7 +7226,7 @@ if i32.const 0 i32.const 1152 - i32.const 252 + i32.const 251 i32.const 3 call $~lib/builtins/abort unreachable @@ -7250,13 +7235,13 @@ i64.const -62847038769226 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toISOString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 4256 i32.store offset=32 @@ -7267,7 +7252,7 @@ if i32.const 0 i32.const 1152 - i32.const 254 + i32.const 253 i32.const 3 call $~lib/builtins/abort unreachable @@ -7276,13 +7261,13 @@ i64.const -61536067200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toDateString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 5104 i32.store offset=32 @@ -7293,7 +7278,7 @@ if i32.const 0 i32.const 1152 - i32.const 260 + i32.const 259 i32.const 3 call $~lib/builtins/abort unreachable @@ -7302,13 +7287,13 @@ i64.const 1580601600000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toDateString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 5168 i32.store offset=32 @@ -7319,7 +7304,7 @@ if i32.const 0 i32.const 1152 - i32.const 262 + i32.const 261 i32.const 3 call $~lib/builtins/abort unreachable @@ -7328,13 +7313,13 @@ i64.const -62183116800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toDateString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 5232 i32.store offset=32 @@ -7345,7 +7330,7 @@ if i32.const 0 i32.const 1152 - i32.const 265 + i32.const 264 i32.const 3 call $~lib/builtins/abort unreachable @@ -7354,13 +7339,13 @@ i64.const -61536067200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toTimeString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 5296 i32.store offset=32 @@ -7371,7 +7356,7 @@ if i32.const 0 i32.const 1152 - i32.const 271 + i32.const 270 i32.const 3 call $~lib/builtins/abort unreachable @@ -7380,13 +7365,13 @@ i64.const 253402300799999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toTimeString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 5344 i32.store offset=32 @@ -7397,7 +7382,7 @@ if i32.const 0 i32.const 1152 - i32.const 274 + i32.const 273 i32.const 3 call $~lib/builtins/abort unreachable @@ -7406,13 +7391,13 @@ i64.const -61536067200000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toUTCString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 6160 i32.store offset=32 @@ -7423,7 +7408,7 @@ if i32.const 0 i32.const 1152 - i32.const 280 + i32.const 279 i32.const 3 call $~lib/builtins/abort unreachable @@ -7432,13 +7417,13 @@ i64.const 1580741613467 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toUTCString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 6240 i32.store offset=32 @@ -7449,7 +7434,7 @@ if i32.const 0 i32.const 1152 - i32.const 282 + i32.const 281 i32.const 3 call $~lib/builtins/abort unreachable @@ -7458,13 +7443,13 @@ i64.const -62183116800000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 call $~lib/date/Date#toUTCString local.set $0 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=4 + i32.store offset=28 global.get $~lib/memory/__stack_pointer i32.const 6320 i32.store offset=32 @@ -7475,7 +7460,7 @@ if i32.const 0 i32.const 1152 - i32.const 285 + i32.const 284 i32.const 3 call $~lib/builtins/abort unreachable @@ -7483,12 +7468,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6400 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6400 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192067200000 @@ -7496,7 +7481,7 @@ if i32.const 0 i32.const 1152 - i32.const 292 + i32.const 291 i32.const 3 call $~lib/builtins/abort unreachable @@ -7504,12 +7489,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6672 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6672 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192067200000 @@ -7517,7 +7502,7 @@ if i32.const 0 i32.const 1152 - i32.const 294 + i32.const 293 i32.const 3 call $~lib/builtins/abort unreachable @@ -7525,12 +7510,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6720 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6720 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 11860387200000 @@ -7538,7 +7523,7 @@ if i32.const 0 i32.const 1152 - i32.const 296 + i32.const 295 i32.const 3 call $~lib/builtins/abort unreachable @@ -7546,12 +7531,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6768 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6768 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192112496000 @@ -7559,7 +7544,7 @@ if i32.const 0 i32.const 1152 - i32.const 300 + i32.const 299 i32.const 3 call $~lib/builtins/abort unreachable @@ -7567,12 +7552,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6832 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6832 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192112496456 @@ -7580,7 +7565,7 @@ if i32.const 0 i32.const 1152 - i32.const 304 + i32.const 303 i32.const 3 call $~lib/builtins/abort unreachable @@ -7588,12 +7573,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6912 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6912 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192112496456 @@ -7601,7 +7586,7 @@ if i32.const 0 i32.const 1152 - i32.const 308 + i32.const 307 i32.const 3 call $~lib/builtins/abort unreachable @@ -7609,12 +7594,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6992 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6992 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const -62167219200000 @@ -7622,7 +7607,7 @@ if i32.const 0 i32.const 1152 - i32.const 311 + i32.const 310 i32.const 3 call $~lib/builtins/abort unreachable @@ -7630,12 +7615,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7024 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 7024 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const -62135596800000 @@ -7643,7 +7628,7 @@ if i32.const 0 i32.const 1152 - i32.const 314 + i32.const 313 i32.const 3 call $~lib/builtins/abort unreachable @@ -7651,12 +7636,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7056 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 7056 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 189302400000 @@ -7664,7 +7649,7 @@ if i32.const 0 i32.const 1152 - i32.const 317 + i32.const 316 i32.const 3 call $~lib/builtins/abort unreachable @@ -7672,12 +7657,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7088 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 7088 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 191980800000 @@ -7685,7 +7670,7 @@ if i32.const 0 i32.const 1152 - i32.const 320 + i32.const 319 i32.const 3 call $~lib/builtins/abort unreachable @@ -7693,12 +7678,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6400 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6400 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192067200000 @@ -7706,7 +7691,7 @@ if i32.const 0 i32.const 1152 - i32.const 323 + i32.const 322 i32.const 3 call $~lib/builtins/abort unreachable @@ -7714,12 +7699,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 7136 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 7136 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192112440000 @@ -7727,7 +7712,7 @@ if i32.const 0 i32.const 1152 - i32.const 326 + i32.const 325 i32.const 3 call $~lib/builtins/abort unreachable @@ -7735,12 +7720,12 @@ global.get $~lib/memory/__stack_pointer local.tee $0 i32.const 6768 - i32.store offset=4 + i32.store offset=28 local.get $0 i32.const 6768 call $~lib/date/Date.fromString local.tee $0 - i32.store offset=8 + i32.store offset=4 local.get $0 i64.load offset=16 i64.const 192112496000 @@ -7748,7 +7733,7 @@ if i32.const 0 i32.const 1152 - i32.const 329 + i32.const 328 i32.const 3 call $~lib/builtins/abort unreachable @@ -7757,12 +7742,12 @@ i64.const -8640000000000000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=8 + i32.store offset=4 global.get $~lib/memory/__stack_pointer i64.const 8640000000000000 call $~lib/date/Date#constructor local.tee $2 - i32.store offset=20 + i32.store offset=16 local.get $0 i64.load offset=16 i64.const -8640000000000000 @@ -7770,7 +7755,7 @@ if i32.const 0 i32.const 1152 - i32.const 347 + i32.const 346 i32.const 3 call $~lib/builtins/abort unreachable @@ -7782,7 +7767,7 @@ if i32.const 0 i32.const 1152 - i32.const 348 + i32.const 347 i32.const 3 call $~lib/builtins/abort unreachable @@ -7794,7 +7779,7 @@ if i32.const 0 i32.const 1152 - i32.const 350 + i32.const 349 i32.const 3 call $~lib/builtins/abort unreachable @@ -7806,7 +7791,7 @@ if i32.const 0 i32.const 1152 - i32.const 351 + i32.const 350 i32.const 3 call $~lib/builtins/abort unreachable @@ -7818,7 +7803,7 @@ if i32.const 0 i32.const 1152 - i32.const 353 + i32.const 352 i32.const 3 call $~lib/builtins/abort unreachable @@ -7830,7 +7815,7 @@ if i32.const 0 i32.const 1152 - i32.const 354 + i32.const 353 i32.const 3 call $~lib/builtins/abort unreachable @@ -7842,7 +7827,7 @@ if i32.const 0 i32.const 1152 - i32.const 356 + i32.const 355 i32.const 3 call $~lib/builtins/abort unreachable @@ -7854,7 +7839,7 @@ if i32.const 0 i32.const 1152 - i32.const 357 + i32.const 356 i32.const 3 call $~lib/builtins/abort unreachable @@ -7865,7 +7850,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=4 + i32.store offset=28 local.get $3 i32.const 7200 i32.store offset=32 @@ -7876,7 +7861,7 @@ if i32.const 0 i32.const 1152 - i32.const 359 + i32.const 358 i32.const 3 call $~lib/builtins/abort unreachable @@ -7887,7 +7872,7 @@ global.get $~lib/memory/__stack_pointer local.tee $2 local.get $0 - i32.store offset=4 + i32.store offset=28 local.get $2 i32.const 7280 i32.store offset=32 @@ -7898,7 +7883,7 @@ if i32.const 0 i32.const 1152 - i32.const 360 + i32.const 359 i32.const 3 call $~lib/builtins/abort unreachable @@ -7912,7 +7897,7 @@ i64.const -8639999999999999 call $~lib/date/Date#constructor local.tee $2 - i32.store offset=28 + i32.store offset=24 local.get $2 i32.load i32.const -271821 @@ -7920,7 +7905,7 @@ if i32.const 0 i32.const 1152 - i32.const 365 + i32.const 364 i32.const 3 call $~lib/builtins/abort unreachable @@ -7932,7 +7917,7 @@ if i32.const 0 i32.const 1152 - i32.const 366 + i32.const 365 i32.const 3 call $~lib/builtins/abort unreachable @@ -7944,7 +7929,7 @@ if i32.const 0 i32.const 1152 - i32.const 367 + i32.const 366 i32.const 3 call $~lib/builtins/abort unreachable @@ -7967,7 +7952,7 @@ if i32.const 0 i32.const 1152 - i32.const 368 + i32.const 367 i32.const 3 call $~lib/builtins/abort unreachable @@ -7990,7 +7975,7 @@ if i32.const 0 i32.const 1152 - i32.const 369 + i32.const 368 i32.const 3 call $~lib/builtins/abort unreachable @@ -8013,7 +7998,7 @@ if i32.const 0 i32.const 1152 - i32.const 370 + i32.const 369 i32.const 3 call $~lib/builtins/abort unreachable @@ -8036,7 +8021,7 @@ if i32.const 0 i32.const 1152 - i32.const 371 + i32.const 370 i32.const 3 call $~lib/builtins/abort unreachable @@ -8047,7 +8032,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=4 + i32.store offset=28 local.get $3 i32.const 7360 i32.store offset=32 @@ -8058,7 +8043,7 @@ if i32.const 0 i32.const 1152 - i32.const 373 + i32.const 372 i32.const 3 call $~lib/builtins/abort unreachable @@ -8069,7 +8054,7 @@ global.get $~lib/memory/__stack_pointer local.tee $2 local.get $0 - i32.store offset=4 + i32.store offset=28 local.get $2 i32.const 7440 i32.store offset=32 @@ -8080,7 +8065,7 @@ if i32.const 0 i32.const 1152 - i32.const 374 + i32.const 373 i32.const 3 call $~lib/builtins/abort unreachable @@ -8204,7 +8189,7 @@ global.get $~lib/memory/__stack_pointer i32.const 0 i32.store - i32.const 1900 + i32.const 1868 i32.load i32.const 1 i32.shr_u @@ -8272,7 +8257,7 @@ local.get $3 local.get $5 i32.add - i32.const 1904 + i32.const 1872 local.get $2 memory.copy local.get $2 @@ -8285,12 +8270,12 @@ local.get $5 local.get $8 i32.add - i32.const 1904 + i32.const 1872 local.get $1 memory.copy else local.get $5 - i32.const 1904 + i32.const 1872 local.get $6 memory.copy end @@ -8384,7 +8369,7 @@ i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - i32.const 1600 + i32.const 3456 return end i32.const 0 diff --git a/tests/compiler/std/date.ts b/tests/compiler/std/date.ts index 71aa38c4b6..c2152d8aa4 100644 --- a/tests/compiler/std/date.ts +++ b/tests/compiler/std/date.ts @@ -136,7 +136,6 @@ date.setUTCDate(31); // feb on leap year - trace("", 1, date.getTime()); date.setUTCFullYear(2024); date.setUTCMonth(1); assert(date.getUTCMonth() == 2); // overflows to march due to day=31