diff --git a/NOTICE b/NOTICE index 4962c2400e..adca27c800 100644 --- a/NOTICE +++ b/NOTICE @@ -56,6 +56,7 @@ under the licensing terms detailed in LICENSE: * Abdul Rauf * Bach Le * Xinquan Xu +* Matt Johnson-Pint Portions of this software are derived from third-party works licensed under the following terms: diff --git a/std/assembly/date.ts b/std/assembly/date.ts index 5d77fdcbde..2f847e1786 100644 --- a/std/assembly/date.ts +++ b/std/assembly/date.ts @@ -52,7 +52,8 @@ export class Date { hour: i32 = 0, min: i32 = 0, sec: i32 = 0, - ms: i32 = 0; + ms: i32 = 0, + offsetMs: i32 = 0; let dateString = dateTimeString; let posT = dateTimeString.indexOf("T"); @@ -61,37 +62,67 @@ export class Date { let timeString: string; dateString = dateTimeString.substring(0, posT); timeString = dateTimeString.substring(posT + 1); - // parse the HH-MM-SS component + + // might end with an offset ("Z", "+05:30", "-08:00", etc.) + for (let i = timeString.length - 1; i >= 0; i--) { + let c = timeString.charCodeAt(i); + if (c == 90) { // Z + timeString = timeString.substring(0, i); + break; + } else if (c == 43 || c == 45) { // + or - + if (i == timeString.length - 1) { + throw new RangeError(E_INVALIDDATE); + } + + let posColon = timeString.indexOf(":", i + 1); + if (~posColon) { + let offsetHours = i32.parse(timeString.substring(i + 1, posColon)); + let offsetMinutes = i32.parse(timeString.substring(posColon + 1)); + offsetMs = (offsetHours * 60 + offsetMinutes) * MILLIS_PER_MINUTE; + } else { + let offsetHours = i32.parse(timeString.substring(i + 1)); + offsetMs = offsetHours * MILLIS_PER_HOUR; + } + + if (c == 45) offsetMs = -offsetMs; // negative offset + timeString = timeString.substring(0, i); + break; + } + } + + // parse the HH:MM:SS component let timeParts = timeString.split(":"); let len = timeParts.length; if (len <= 1) throw new RangeError(E_INVALIDDATE); - hour = I32.parseInt(timeParts[0]); - min = I32.parseInt(timeParts[1]); + hour = i32.parse(timeParts[0]); + min = i32.parse(timeParts[1]); if (len >= 3) { - let secAndMs = timeParts[2]; - let posDot = secAndMs.indexOf("."); + let secAndFrac = timeParts[2]; + let posDot = secAndFrac.indexOf("."); if (~posDot) { - // includes milliseconds - sec = I32.parseInt(secAndMs.substring(0, posDot)); - ms = I32.parseInt(secAndMs.substring(posDot + 1)); + // includes fractional seconds (truncate to milliseconds) + sec = i32.parse(secAndFrac.substring(0, posDot)); + ms = i32.parse(secAndFrac.substr(posDot + 1, 3).padEnd(3, "0")); } else { - sec = I32.parseInt(secAndMs); + sec = i32.parse(secAndFrac); } } } + // parse the YYYY-MM-DD component let parts = dateString.split("-"); - let year = I32.parseInt(parts[0]); + let year = i32.parse(parts[0]); let month = 1, day = 1; let len = parts.length; if (len >= 2) { - month = I32.parseInt(parts[1]); + month = i32.parse(parts[1]); if (len >= 3) { - day = I32.parseInt(parts[2]); + day = i32.parse(parts[2]); } } - return new Date(epochMillis(year, month, day, hour, min, sec, ms)); + + return new Date(epochMillis(year, month, day, hour, min, sec, ms) - offsetMs); } constructor(private epochMillis: i64) { diff --git a/tests/compiler/std/date.debug.wat b/tests/compiler/std/date.debug.wat index 38f16b3ed2..dd23468444 100644 --- a/tests/compiler/std/date.debug.wat +++ b/tests/compiler/std/date.debug.wat @@ -43,10 +43,10 @@ (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)) - (global $~lib/rt/__rtti_base i32 (i32.const 6768)) - (global $~lib/memory/__data_end i32 (i32.const 6804)) - (global $~lib/memory/__stack_pointer (mut i32) (i32.const 39572)) - (global $~lib/memory/__heap_base i32 (i32.const 39572)) + (global $~lib/rt/__rtti_base i32 (i32.const 7408)) + (global $~lib/memory/__data_end i32 (i32.const 7444)) + (global $~lib/memory/__stack_pointer (mut i32) (i32.const 40212)) + (global $~lib/memory/__heap_base i32 (i32.const 40212)) (global $~started (mut i32) (i32.const 0)) (memory $0 1) (data $0 (i32.const 12) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\18\00\00\00I\00n\00v\00a\00l\00i\00d\00 \00D\00a\00t\00e\00\00\00\00\00") @@ -149,16 +149,24 @@ (data $97 (i32.const 6012) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00&\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00\00\00\00\00\00\00") (data $98 (i32.const 6076) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00.\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (data $99 (i32.const 6156) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\000\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00Z\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data $100 (i32.const 6236) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\000\000\000\000\00\00\00\00\00") - (data $101 (i32.const 6268) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\000\000\000\001\00\00\00\00\00") - (data $102 (i32.const 6300) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\001\009\007\006\00\00\00\00\00") - (data $103 (i32.const 6332) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\0e\00\00\001\009\007\006\00-\000\002\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data $104 (i32.const 6380) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00 \00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00\00\00\00\00\00\00\00\00\00\00\00\00") - (data $105 (i32.const 6444) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z\00\00\00\00\00\00\00") - (data $106 (i32.const 6524) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\003\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z\00\00\00\00\00\00\00") - (data $107 (i32.const 6604) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\002\00T\002\003\00:\005\009\00:\005\009\00.\009\009\009\00Z\00\00\00\00\00\00\00") - (data $108 (i32.const 6684) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\001\00Z\00\00\00\00\00\00\00") - (data $109 (i32.const 6768) "\08\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00 \00\00\00\04A\00\00\02A\00\00\02\t\00\00") + (data $100 (i32.const 6236) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00:\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00-\000\008\00:\000\000\00\00\00") + (data $101 (i32.const 6316) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00:\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00+\000\005\00:\003\000\00\00\00") + (data $102 (i32.const 6396) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00,\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\00") + (data $103 (i32.const 6460) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00.\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\00Z\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data $104 (i32.const 6540) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\008\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\00+\000\000\00:\000\000\00\00\00\00\00") + (data $105 (i32.const 6620) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\004\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\007\008\009\00\00\00\00\00\00\00\00\00") + (data $106 (i32.const 6700) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\007\008\009\00Z\00\00\00\00\00\00\00") + (data $107 (i32.const 6780) "\\\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00@\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\007\008\009\00+\000\000\00:\000\000\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data $108 (i32.const 6876) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\000\000\000\000\00\00\00\00\00") + (data $109 (i32.const 6908) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\000\000\000\001\00\00\00\00\00") + (data $110 (i32.const 6940) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\001\009\007\006\00\00\00\00\00") + (data $111 (i32.const 6972) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\0e\00\00\001\009\007\006\00-\000\002\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data $112 (i32.const 7020) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00 \00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00\00\00\00\00\00\00\00\00\00\00\00\00") + (data $113 (i32.const 7084) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z\00\00\00\00\00\00\00") + (data $114 (i32.const 7164) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\003\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z\00\00\00\00\00\00\00") + (data $115 (i32.const 7244) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\002\00T\002\003\00:\005\009\00:\005\009\00.\009\009\009\00Z\00\00\00\00\00\00\00") + (data $116 (i32.const 7324) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\001\00Z\00\00\00\00\00\00\00") + (data $117 (i32.const 7408) "\08\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00 \00\00\00\04A\00\00\02A\00\00\02\t\00\00") (table $0 1 1 funcref) (elem $0 (i32.const 1)) (export "memory" (memory $0)) @@ -3487,77 +3495,6 @@ i32.load return ) - (func $~lib/array/Array<~lib/string/String>#get:length_ (param $this i32) (result i32) - local.get $this - i32.load offset=12 - ) - (func $~lib/arraybuffer/ArrayBufferView#get:byteLength (param $this i32) (result i32) - local.get $this - i32.load offset=8 - ) - (func $~lib/arraybuffer/ArrayBufferView#get:buffer (param $this i32) (result i32) - local.get $this - i32.load - ) - (func $~lib/rt/itcms/Object#get:rtSize (param $this i32) (result i32) - local.get $this - i32.load offset=16 - ) - (func $~lib/rt/itcms/__renew (param $oldPtr i32) (param $size i32) (result i32) - (local $oldObj i32) - (local $newPtr i32) - (local $4 i32) - (local $5 i32) - local.get $oldPtr - i32.const 20 - i32.sub - local.set $oldObj - local.get $size - local.get $oldObj - call $~lib/rt/common/BLOCK#get:mmInfo - i32.const 3 - i32.const -1 - i32.xor - i32.and - i32.const 16 - i32.sub - i32.le_u - if - local.get $oldObj - local.get $size - call $~lib/rt/itcms/Object#set:rtSize - local.get $oldPtr - return - end - local.get $size - local.get $oldObj - call $~lib/rt/itcms/Object#get:rtId - call $~lib/rt/itcms/__new - local.set $newPtr - local.get $newPtr - local.get $oldPtr - local.get $size - local.tee $4 - local.get $oldObj - call $~lib/rt/itcms/Object#get:rtSize - local.tee $5 - local.get $4 - local.get $5 - i32.lt_u - select - memory.copy - local.get $newPtr - return - ) - (func $~lib/array/Array<~lib/string/String>#set:length_ (param $this i32) (param $length_ i32) - local.get $this - local.get $length_ - i32.store offset=12 - ) - (func $~lib/array/Array<~lib/string/String>#get:dataStart (param $this i32) (result i32) - local.get $this - i32.load offset=4 - ) (func $~lib/util/string/isSpace (param $c i32) (result i32) (local $1 i32) local.get $c @@ -3645,6 +3582,77 @@ i32.const 0 return ) + (func $~lib/array/Array<~lib/string/String>#get:length_ (param $this i32) (result i32) + local.get $this + i32.load offset=12 + ) + (func $~lib/arraybuffer/ArrayBufferView#get:byteLength (param $this i32) (result i32) + local.get $this + i32.load offset=8 + ) + (func $~lib/arraybuffer/ArrayBufferView#get:buffer (param $this i32) (result i32) + local.get $this + i32.load + ) + (func $~lib/rt/itcms/Object#get:rtSize (param $this i32) (result i32) + local.get $this + i32.load offset=16 + ) + (func $~lib/rt/itcms/__renew (param $oldPtr i32) (param $size i32) (result i32) + (local $oldObj i32) + (local $newPtr i32) + (local $4 i32) + (local $5 i32) + local.get $oldPtr + i32.const 20 + i32.sub + local.set $oldObj + local.get $size + local.get $oldObj + call $~lib/rt/common/BLOCK#get:mmInfo + i32.const 3 + i32.const -1 + i32.xor + i32.and + i32.const 16 + i32.sub + i32.le_u + if + local.get $oldObj + local.get $size + call $~lib/rt/itcms/Object#set:rtSize + local.get $oldPtr + return + end + local.get $size + local.get $oldObj + call $~lib/rt/itcms/Object#get:rtId + call $~lib/rt/itcms/__new + local.set $newPtr + local.get $newPtr + local.get $oldPtr + local.get $size + local.tee $4 + local.get $oldObj + call $~lib/rt/itcms/Object#get:rtSize + local.tee $5 + local.get $4 + local.get $5 + i32.lt_u + select + memory.copy + local.get $newPtr + return + ) + (func $~lib/array/Array<~lib/string/String>#set:length_ (param $this i32) (param $length_ i32) + local.get $this + local.get $length_ + i32.store offset=12 + ) + (func $~lib/array/Array<~lib/string/String>#get:dataStart (param $this i32) (result i32) + local.get $this + i32.load offset=4 + ) (func $~lib/rt/__visit_globals (param $0 i32) (local $1 i32) i32.const 368 @@ -3814,8 +3822,8 @@ global.get $~lib/memory/__data_end i32.lt_s if - i32.const 39600 - i32.const 39648 + i32.const 40240 + i32.const 40288 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3879,7 +3887,7 @@ if i32.const 32 i32.const 80 - i32.const 100 + i32.const 131 i32.const 35 call $~lib/builtins/abort unreachable @@ -3933,7 +3941,7 @@ if i32.const 32 i32.const 80 - i32.const 112 + i32.const 143 i32.const 28 call $~lib/builtins/abort unreachable @@ -6528,18 +6536,59 @@ global.set $~lib/memory/__stack_pointer local.get $3 ) - (func $~lib/array/ensureCapacity (param $array i32) (param $newSize i32) (param $alignLog2 i32) (param $canGrow i32) - (local $oldCapacity i32) - (local $oldData i32) + (func $~lib/string/String#charCodeAt (param $this i32) (param $pos i32) (result i32) + (local $2 i32) + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.sub + global.set $~lib/memory/__stack_pointer + call $~stack_check + global.get $~lib/memory/__stack_pointer + i32.const 0 + i32.store + local.get $pos + local.get $this + local.set $2 + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store + local.get $2 + call $~lib/string/String#get:length + i32.ge_u + if + i32.const -1 + local.set $2 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $2 + return + end + local.get $this + local.get $pos + i32.const 1 + i32.shl + i32.add + i32.load16_u + local.set $2 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $2 + return + ) + (func $~lib/util/string/strtol (param $str i32) (param $radix i32) (result i32) + (local $len i32) + (local $ptr i32) + (local $code i32) + (local $sign i32) (local $6 i32) - (local $7 i32) - (local $newCapacity i32) + (local $num i32) + (local $initial i32) (local $9 i32) (local $10 i32) - (local $11 i32) - (local $12 i32) - (local $newData i32) - (local $14 i32) global.get $~lib/memory/__stack_pointer i32.const 4 i32.sub @@ -6548,715 +6597,351 @@ global.get $~lib/memory/__stack_pointer i32.const 0 i32.store - local.get $array - local.set $14 + local.get $str + local.set $10 global.get $~lib/memory/__stack_pointer - local.get $14 + local.get $10 i32.store - local.get $14 - call $~lib/arraybuffer/ArrayBufferView#get:byteLength - local.set $oldCapacity - local.get $newSize - local.get $oldCapacity - local.get $alignLog2 - i32.shr_u - i32.gt_u + local.get $10 + call $~lib/string/String#get:length + local.set $len + local.get $len + i32.eqz if - local.get $newSize - i32.const 1073741820 - local.get $alignLog2 - i32.shr_u - i32.gt_u - if - i32.const 5760 - i32.const 5712 - i32.const 19 - i32.const 48 - call $~lib/builtins/abort - unreachable - end - local.get $array - local.set $14 + i32.const 0 + drop + i32.const 0 + local.set $10 global.get $~lib/memory/__stack_pointer - local.get $14 - i32.store - local.get $14 - call $~lib/arraybuffer/ArrayBufferView#get:buffer - local.set $oldData - local.get $newSize - local.tee $6 - i32.const 8 - local.tee $7 - local.get $6 - local.get $7 - i32.gt_u - select - local.get $alignLog2 - i32.shl - local.set $newCapacity - local.get $canGrow - if - local.get $oldCapacity + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $10 + return + end + local.get $str + local.set $ptr + local.get $ptr + i32.load16_u + local.set $code + loop $while-continue|0 + local.get $code + call $~lib/util/string/isSpace + if + local.get $ptr + i32.const 2 + i32.add + local.tee $ptr + i32.load16_u + local.set $code + local.get $len i32.const 1 - i32.shl - local.tee $9 - i32.const 1073741820 - local.tee $10 - local.get $9 - local.get $10 - i32.lt_u - select - local.tee $11 - local.get $newCapacity - local.tee $12 - local.get $11 - local.get $12 - i32.gt_u - select - local.set $newCapacity + i32.sub + local.set $len + br $while-continue|0 end - local.get $oldData - local.get $newCapacity - call $~lib/rt/itcms/__renew - local.set $newData - i32.const 2 - global.get $~lib/shared/runtime/Runtime.Incremental - i32.ne - drop - local.get $newData - local.get $oldData - i32.ne + end + i32.const 1 + local.set $sign + local.get $code + i32.const 45 + i32.eq + if (result i32) + i32.const 1 + else + local.get $code + i32.const 43 + i32.eq + end + if + local.get $len + i32.const 1 + i32.sub + local.tee $len + i32.eqz if - local.get $array - local.get $newData - i32.store - local.get $array - local.get $newData - i32.store offset=4 - local.get $array - local.get $newData i32.const 0 - call $~lib/rt/itcms/__link + drop + i32.const 0 + local.set $10 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $10 + return end - local.get $array - local.get $newCapacity - i32.store offset=8 - end - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.add - global.set $~lib/memory/__stack_pointer - ) - (func $~lib/array/Array<~lib/string/String>#__set (param $this i32) (param $index i32) (param $value i32) - (local $3 i32) - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.sub - global.set $~lib/memory/__stack_pointer - call $~stack_check - global.get $~lib/memory/__stack_pointer - i32.const 0 - i32.store - local.get $index - local.get $this - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.store - local.get $3 - call $~lib/array/Array<~lib/string/String>#get:length_ - i32.ge_u - if - local.get $index - i32.const 0 - i32.lt_s + local.get $code + i32.const 45 + i32.eq if - i32.const 368 - i32.const 5712 - i32.const 130 - i32.const 22 - call $~lib/builtins/abort - unreachable + i32.const -1 + local.set $sign end - local.get $this - local.get $index - i32.const 1 - i32.add + local.get $ptr i32.const 2 - i32.const 1 - call $~lib/array/ensureCapacity - local.get $this - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.store - local.get $3 - local.get $index - i32.const 1 i32.add - call $~lib/array/Array<~lib/string/String>#set:length_ + local.tee $ptr + i32.load16_u + local.set $code end - local.get $this - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.store - local.get $3 - call $~lib/array/Array<~lib/string/String>#get:dataStart - local.get $index - i32.const 2 - i32.shl - i32.add - local.get $value - i32.store - i32.const 1 - drop - local.get $this - local.get $value - i32.const 1 - call $~lib/rt/itcms/__link - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.add - global.set $~lib/memory/__stack_pointer - ) - (func $~lib/array/Array<~lib/string/String>#push (param $this i32) (param $value i32) (result i32) - (local $oldLen i32) - (local $len i32) - (local $4 i32) - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.sub - global.set $~lib/memory/__stack_pointer - call $~stack_check - global.get $~lib/memory/__stack_pointer - i32.const 0 - i32.store - local.get $this - local.set $4 - global.get $~lib/memory/__stack_pointer - local.get $4 - i32.store - local.get $4 - call $~lib/array/Array<~lib/string/String>#get:length_ - local.set $oldLen - local.get $oldLen - i32.const 1 - i32.add - local.set $len - local.get $this - local.get $len - i32.const 2 - i32.const 1 - call $~lib/array/ensureCapacity - i32.const 1 - drop - local.get $this - local.set $4 - global.get $~lib/memory/__stack_pointer - local.get $4 - i32.store - local.get $4 - call $~lib/array/Array<~lib/string/String>#get:dataStart - local.get $oldLen - i32.const 2 - i32.shl - i32.add - local.get $value - i32.store - local.get $this - local.get $value - i32.const 1 - call $~lib/rt/itcms/__link - local.get $this - local.set $4 - global.get $~lib/memory/__stack_pointer - local.get $4 - i32.store - local.get $4 - local.get $len - call $~lib/array/Array<~lib/string/String>#set:length_ - local.get $len - local.set $4 - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $4 - return - ) - (func $~lib/string/String#split (param $this i32) (param $separator i32) (param $limit i32) (result i32) - (local $3 i32) - (local $4 i32) - (local $length i32) - (local $sepLen i32) - (local $7 i32) - (local $8 i32) - (local $result i32) - (local $resultStart i32) - (local $i i32) - (local $charStr i32) - (local $result|13 i32) - (local $result|14 i32) - (local $end i32) - (local $start i32) - (local $i|17 i32) - (local $len i32) - (local $out i32) - (local $len|20 i32) - (local $out|21 i32) - (local $22 i32) - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.sub - global.set $~lib/memory/__stack_pointer - call $~stack_check - global.get $~lib/memory/__stack_pointer - i32.const 0 - i32.const 40 - memory.fill - local.get $limit - i32.eqz - if - i32.const 0 - i32.const 2 - i32.const 6 - i32.const 0 - call $~lib/rt/__newArray - local.set $22 - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $22 - return - end - local.get $separator - i32.const 0 - i32.eq + local.get $radix if - global.get $~lib/memory/__stack_pointer - i32.const 1 + local.get $radix i32.const 2 - i32.const 6 - i32.const 0 - call $~lib/rt/__newArray - local.tee $3 - i32.store - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.load offset=4 - local.tee $4 - i32.store offset=4 - local.get $3 - i32.const 0 - local.get $this - call $~lib/array/Array<~lib/string/String>#__set - local.get $3 - local.set $22 - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $22 - return - end - local.get $this - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - call $~lib/string/String#get:length - local.set $length - local.get $separator - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - call $~lib/string/String#get:length - local.set $sepLen - local.get $limit - i32.const 0 - i32.lt_s - if - global.get $~lib/builtins/i32.MAX_VALUE - local.set $limit - end - local.get $sepLen - i32.eqz - if - local.get $length - i32.eqz + i32.lt_s + if (result i32) + i32.const 1 + else + local.get $radix + i32.const 36 + i32.gt_s + end if i32.const 0 - i32.const 2 - i32.const 6 + drop i32.const 0 - call $~lib/rt/__newArray - local.set $22 + local.set $10 global.get $~lib/memory/__stack_pointer - i32.const 40 + i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $22 + local.get $10 return end - local.get $length - local.tee $7 - local.get $limit - local.tee $8 - local.get $7 - local.get $8 - i32.lt_s - select - local.set $length - global.get $~lib/memory/__stack_pointer - local.get $length - i32.const 2 - i32.const 6 - i32.const 0 - call $~lib/rt/__newArray - local.tee $result - i32.store offset=12 - local.get $result - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - call $~lib/array/Array<~lib/string/String>#get:dataStart - local.set $resultStart - i32.const 0 - local.set $i - loop $for-loop|0 - local.get $i - local.get $length - i32.lt_s + local.get $radix + i32.const 16 + i32.eq + if + local.get $len + i32.const 2 + i32.gt_s + if (result i32) + local.get $code + i32.const 48 + i32.eq + else + i32.const 0 + end + if (result i32) + local.get $ptr + i32.load16_u offset=2 + i32.const 32 + i32.or + i32.const 120 + i32.eq + else + i32.const 0 + end if - global.get $~lib/memory/__stack_pointer - i32.const 2 - i32.const 2 - call $~lib/rt/itcms/__new - local.tee $charStr - i32.store offset=16 - local.get $charStr - local.get $this - local.get $i - i32.const 1 - i32.shl + local.get $ptr + i32.const 4 i32.add - i32.load16_u - i32.store16 - local.get $resultStart - local.get $i + local.set $ptr + local.get $len i32.const 2 - i32.shl - i32.add - local.get $charStr - i32.store - local.get $result - local.get $charStr - i32.const 1 - call $~lib/rt/itcms/__link - local.get $i - i32.const 1 - i32.add - local.set $i - br $for-loop|0 + i32.sub + local.set $len end end - local.get $result - local.set $22 - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $22 - return else - local.get $length - i32.eqz - if - global.get $~lib/memory/__stack_pointer - i32.const 1 + local.get $code + i32.const 48 + i32.eq + if (result i32) + local.get $len i32.const 2 - i32.const 6 + i32.gt_s + else i32.const 0 - call $~lib/rt/__newArray - local.tee $result|13 - i32.store offset=20 - local.get $result|13 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - call $~lib/array/Array<~lib/string/String>#get:dataStart - i32.const 2432 - i32.store - local.get $result|13 - local.set $22 - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $22 - return end - end - global.get $~lib/memory/__stack_pointer - i32.const 0 - i32.const 2 - i32.const 6 - i32.const 0 - call $~lib/rt/__newArray - local.tee $result|14 - i32.store offset=24 - i32.const 0 - local.set $end - i32.const 0 - local.set $start - i32.const 0 - local.set $i|17 - loop $while-continue|1 - local.get $this - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - local.get $separator - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=28 - local.get $22 - local.get $start - call $~lib/string/String#indexOf - local.tee $end - i32.const -1 - i32.xor if - local.get $end - local.get $start - i32.sub - local.set $len - local.get $len - i32.const 0 - i32.gt_s - if - global.get $~lib/memory/__stack_pointer - local.get $len - i32.const 1 - i32.shl - i32.const 2 - call $~lib/rt/itcms/__new - local.tee $out - i32.store offset=32 - local.get $out - local.get $this - local.get $start - i32.const 1 - i32.shl + block $break|1 + block $case2|1 + block $case1|1 + block $case0|1 + local.get $ptr + i32.load16_u offset=2 + i32.const 32 + i32.or + local.set $6 + local.get $6 + i32.const 98 + i32.eq + br_if $case0|1 + local.get $6 + i32.const 111 + i32.eq + br_if $case1|1 + local.get $6 + i32.const 120 + i32.eq + br_if $case2|1 + br $break|1 + end + local.get $ptr + i32.const 4 + i32.add + local.set $ptr + local.get $len + i32.const 2 + i32.sub + local.set $len + i32.const 2 + local.set $radix + br $break|1 + end + local.get $ptr + i32.const 4 + i32.add + local.set $ptr + local.get $len + i32.const 2 + i32.sub + local.set $len + i32.const 8 + local.set $radix + br $break|1 + end + local.get $ptr + i32.const 4 i32.add + local.set $ptr local.get $len - i32.const 1 - i32.shl - memory.copy - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - local.get $out - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=28 - local.get $22 - call $~lib/array/Array<~lib/string/String>#push - drop - else - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - i32.const 2432 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=28 - local.get $22 - call $~lib/array/Array<~lib/string/String>#push - drop + i32.const 2 + i32.sub + local.set $len + i32.const 16 + local.set $radix + br $break|1 end - local.get $i|17 + end + local.get $radix + i32.eqz + if + i32.const 10 + local.set $radix + end + end + i32.const 0 + local.set $num + local.get $len + i32.const 1 + i32.sub + local.set $initial + block $while-break|2 + loop $while-continue|2 + local.get $len + local.tee $9 i32.const 1 - i32.add - local.tee $i|17 - local.get $limit - i32.eq + i32.sub + local.set $len + local.get $9 if - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - i32.const 40 + local.get $ptr + i32.load16_u + local.set $code + local.get $code + i32.const 48 + i32.sub + i32.const 10 + i32.lt_u + if + local.get $code + i32.const 48 + i32.sub + local.set $code + else + local.get $code + i32.const 65 + i32.sub + i32.const 90 + i32.const 65 + i32.sub + i32.le_u + if + local.get $code + i32.const 65 + i32.const 10 + i32.sub + i32.sub + local.set $code + else + local.get $code + i32.const 97 + i32.sub + i32.const 122 + i32.const 97 + i32.sub + i32.le_u + if + local.get $code + i32.const 97 + i32.const 10 + i32.sub + i32.sub + local.set $code + end + end + end + local.get $code + local.get $radix + i32.ge_u + if + local.get $initial + local.get $len + i32.eq + if + i32.const 0 + drop + i32.const 0 + local.set $10 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $10 + return + end + br $while-break|2 + end + local.get $num + local.get $radix + i32.mul + local.get $code i32.add - global.set $~lib/memory/__stack_pointer - local.get $22 - return + local.set $num + local.get $ptr + i32.const 2 + i32.add + local.set $ptr + br $while-continue|2 end - local.get $end - local.get $sepLen - i32.add - local.set $start - br $while-continue|1 end end - local.get $start - i32.eqz - if - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - local.get $this - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=28 - local.get $22 - call $~lib/array/Array<~lib/string/String>#push - drop - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $22 - return - end - local.get $length - local.get $start - i32.sub - local.set $len|20 - local.get $len|20 - i32.const 0 - i32.gt_s - if - global.get $~lib/memory/__stack_pointer - local.get $len|20 - i32.const 1 - i32.shl - i32.const 2 - call $~lib/rt/itcms/__new - local.tee $out|21 - i32.store offset=36 - local.get $out|21 - local.get $this - local.get $start - i32.const 1 - i32.shl - i32.add - local.get $len|20 - i32.const 1 - i32.shl - memory.copy - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - local.get $out|21 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=28 - local.get $22 - call $~lib/array/Array<~lib/string/String>#push - drop - else - local.get $result|14 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=8 - local.get $22 - i32.const 2432 - local.set $22 - global.get $~lib/memory/__stack_pointer - local.get $22 - i32.store offset=28 - local.get $22 - call $~lib/array/Array<~lib/string/String>#push - drop - end - local.get $result|14 - local.set $22 + local.get $sign + local.get $num + i32.mul + local.set $10 global.get $~lib/memory/__stack_pointer - i32.const 40 + i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $22 + local.get $10 return ) - (func $~lib/string/String#split@varargs (param $this i32) (param $separator i32) (param $limit i32) (result i32) - (local $3 i32) - global.get $~lib/memory/__stack_pointer - i32.const 8 - i32.sub - global.set $~lib/memory/__stack_pointer - call $~stack_check - global.get $~lib/memory/__stack_pointer - i64.const 0 - i64.store - block $2of2 - block $1of2 - block $0of2 - block $outOfRange - global.get $~argumentsLength - br_table $0of2 $1of2 $2of2 $outOfRange - end - unreachable - end - i32.const 0 - local.set $separator - end - global.get $~lib/builtins/i32.MAX_VALUE - local.set $limit - end - local.get $this - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.store - local.get $3 - local.get $separator - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.store offset=4 - local.get $3 - local.get $limit - call $~lib/string/String#split - local.set $3 - global.get $~lib/memory/__stack_pointer - i32.const 8 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $3 - ) - (func $~lib/array/Array<~lib/string/String>#get:length (param $this i32) (result i32) - (local $1 i32) + (func $~lib/array/ensureCapacity (param $array i32) (param $newSize i32) (param $alignLog2 i32) (param $canGrow i32) + (local $oldCapacity i32) + (local $oldData i32) + (local $6 i32) + (local $7 i32) + (local $newCapacity i32) + (local $9 i32) + (local $10 i32) + (local $11 i32) + (local $12 i32) + (local $newData i32) + (local $14 i32) global.get $~lib/memory/__stack_pointer i32.const 4 i32.sub @@ -7265,32 +6950,115 @@ global.get $~lib/memory/__stack_pointer i32.const 0 i32.store - local.get $this - local.set $1 + local.get $array + local.set $14 global.get $~lib/memory/__stack_pointer - local.get $1 + local.get $14 i32.store - local.get $1 - call $~lib/array/Array<~lib/string/String>#get:length_ - local.set $1 + local.get $14 + call $~lib/arraybuffer/ArrayBufferView#get:byteLength + local.set $oldCapacity + local.get $newSize + local.get $oldCapacity + local.get $alignLog2 + i32.shr_u + i32.gt_u + if + local.get $newSize + i32.const 1073741820 + local.get $alignLog2 + i32.shr_u + i32.gt_u + if + i32.const 5760 + i32.const 5712 + i32.const 19 + i32.const 48 + call $~lib/builtins/abort + unreachable + end + local.get $array + local.set $14 + global.get $~lib/memory/__stack_pointer + local.get $14 + i32.store + local.get $14 + call $~lib/arraybuffer/ArrayBufferView#get:buffer + local.set $oldData + local.get $newSize + local.tee $6 + i32.const 8 + local.tee $7 + local.get $6 + local.get $7 + i32.gt_u + select + local.get $alignLog2 + i32.shl + local.set $newCapacity + local.get $canGrow + if + local.get $oldCapacity + i32.const 1 + i32.shl + local.tee $9 + i32.const 1073741820 + local.tee $10 + local.get $9 + local.get $10 + i32.lt_u + select + local.tee $11 + local.get $newCapacity + local.tee $12 + local.get $11 + local.get $12 + i32.gt_u + select + local.set $newCapacity + end + local.get $oldData + local.get $newCapacity + call $~lib/rt/itcms/__renew + local.set $newData + i32.const 2 + global.get $~lib/shared/runtime/Runtime.Incremental + i32.ne + drop + local.get $newData + local.get $oldData + i32.ne + if + local.get $array + local.get $newData + i32.store + local.get $array + local.get $newData + i32.store offset=4 + local.get $array + local.get $newData + i32.const 0 + call $~lib/rt/itcms/__link + end + local.get $array + local.get $newCapacity + i32.store offset=8 + end global.get $~lib/memory/__stack_pointer i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $1 - return ) - (func $~lib/array/Array<~lib/string/String>#__get (param $this i32) (param $index i32) (result i32) - (local $value i32) + (func $~lib/array/Array<~lib/string/String>#__set (param $this i32) (param $index i32) (param $value i32) (local $3 i32) global.get $~lib/memory/__stack_pointer - i32.const 8 + i32.const 4 i32.sub global.set $~lib/memory/__stack_pointer call $~stack_check global.get $~lib/memory/__stack_pointer - i64.const 0 - i64.store + i32.const 0 + i32.store local.get $index local.get $this local.set $3 @@ -7301,62 +7069,63 @@ call $~lib/array/Array<~lib/string/String>#get:length_ i32.ge_u if - i32.const 368 - i32.const 5712 - i32.const 114 - i32.const 42 - call $~lib/builtins/abort - unreachable - end - global.get $~lib/memory/__stack_pointer - local.get $this - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $3 - i32.store - local.get $3 + local.get $index + i32.const 0 + i32.lt_s + if + i32.const 368 + i32.const 5712 + i32.const 130 + i32.const 22 + call $~lib/builtins/abort + unreachable + end + local.get $this + local.get $index + i32.const 1 + i32.add + i32.const 2 + i32.const 1 + call $~lib/array/ensureCapacity + local.get $this + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store + local.get $3 + local.get $index + i32.const 1 + i32.add + call $~lib/array/Array<~lib/string/String>#set:length_ + end + local.get $this + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store + local.get $3 call $~lib/array/Array<~lib/string/String>#get:dataStart local.get $index i32.const 2 i32.shl i32.add - i32.load - local.tee $value - i32.store offset=4 + local.get $value + i32.store i32.const 1 drop - i32.const 0 - i32.eqz - drop - local.get $value - i32.eqz - if - i32.const 5808 - i32.const 5712 - i32.const 118 - i32.const 40 - call $~lib/builtins/abort - unreachable - end + local.get $this local.get $value - local.set $3 + i32.const 1 + call $~lib/rt/itcms/__link global.get $~lib/memory/__stack_pointer - i32.const 8 + i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $3 - return ) - (func $~lib/util/string/strtol (param $str i32) (param $radix i32) (result i32) + (func $~lib/array/Array<~lib/string/String>#push (param $this i32) (param $value i32) (result i32) + (local $oldLen i32) (local $len i32) - (local $ptr i32) - (local $code i32) - (local $sign i32) - (local $6 i32) - (local $num i32) - (local $initial i32) - (local $9 i32) - (local $10 i32) + (local $4 i32) global.get $~lib/memory/__stack_pointer i32.const 4 i32.sub @@ -7365,363 +7134,849 @@ global.get $~lib/memory/__stack_pointer i32.const 0 i32.store - local.get $str - local.set $10 + local.get $this + local.set $4 global.get $~lib/memory/__stack_pointer - local.get $10 + local.get $4 i32.store - local.get $10 - call $~lib/string/String#get:length + local.get $4 + call $~lib/array/Array<~lib/string/String>#get:length_ + local.set $oldLen + local.get $oldLen + i32.const 1 + i32.add local.set $len + local.get $this + local.get $len + i32.const 2 + i32.const 1 + call $~lib/array/ensureCapacity + i32.const 1 + drop + local.get $this + local.set $4 + global.get $~lib/memory/__stack_pointer + local.get $4 + i32.store + local.get $4 + call $~lib/array/Array<~lib/string/String>#get:dataStart + local.get $oldLen + i32.const 2 + i32.shl + i32.add + local.get $value + i32.store + local.get $this + local.get $value + i32.const 1 + call $~lib/rt/itcms/__link + local.get $this + local.set $4 + global.get $~lib/memory/__stack_pointer + local.get $4 + i32.store + local.get $4 + local.get $len + call $~lib/array/Array<~lib/string/String>#set:length_ local.get $len + local.set $4 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $4 + return + ) + (func $~lib/string/String#split (param $this i32) (param $separator i32) (param $limit i32) (result i32) + (local $3 i32) + (local $4 i32) + (local $length i32) + (local $sepLen i32) + (local $7 i32) + (local $8 i32) + (local $result i32) + (local $resultStart i32) + (local $i i32) + (local $charStr i32) + (local $result|13 i32) + (local $result|14 i32) + (local $end i32) + (local $start i32) + (local $i|17 i32) + (local $len i32) + (local $out i32) + (local $len|20 i32) + (local $out|21 i32) + (local $22 i32) + global.get $~lib/memory/__stack_pointer + i32.const 40 + i32.sub + global.set $~lib/memory/__stack_pointer + call $~stack_check + global.get $~lib/memory/__stack_pointer + i32.const 0 + i32.const 40 + memory.fill + local.get $limit i32.eqz if i32.const 0 - drop + i32.const 2 + i32.const 6 i32.const 0 - local.set $10 + call $~lib/rt/__newArray + local.set $22 global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 40 i32.add global.set $~lib/memory/__stack_pointer - local.get $10 + local.get $22 return end - local.get $str - local.set $ptr - local.get $ptr - i32.load16_u - local.set $code - loop $while-continue|0 - local.get $code - call $~lib/util/string/isSpace - if - local.get $ptr - i32.const 2 - i32.add - local.tee $ptr - i32.load16_u - local.set $code - local.get $len - i32.const 1 - i32.sub - local.set $len - br $while-continue|0 - end - end - i32.const 1 - local.set $sign - local.get $code - i32.const 45 + local.get $separator + i32.const 0 i32.eq - if (result i32) + if + global.get $~lib/memory/__stack_pointer i32.const 1 - else - local.get $code - i32.const 43 - i32.eq + i32.const 2 + i32.const 6 + i32.const 0 + call $~lib/rt/__newArray + local.tee $3 + i32.store + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.load offset=4 + local.tee $4 + i32.store offset=4 + local.get $3 + i32.const 0 + local.get $this + call $~lib/array/Array<~lib/string/String>#__set + local.get $3 + local.set $22 + global.get $~lib/memory/__stack_pointer + i32.const 40 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $22 + return + end + local.get $this + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + call $~lib/string/String#get:length + local.set $length + local.get $separator + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + call $~lib/string/String#get:length + local.set $sepLen + local.get $limit + i32.const 0 + i32.lt_s + if + global.get $~lib/builtins/i32.MAX_VALUE + local.set $limit end + local.get $sepLen + i32.eqz if - local.get $len - i32.const 1 - i32.sub - local.tee $len + local.get $length i32.eqz if i32.const 0 - drop + i32.const 2 + i32.const 6 i32.const 0 - local.set $10 + call $~lib/rt/__newArray + local.set $22 global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 40 i32.add global.set $~lib/memory/__stack_pointer - local.get $10 + local.get $22 return end - local.get $code - i32.const 45 - i32.eq - if - i32.const -1 - local.set $sign - end - local.get $ptr - i32.const 2 - i32.add - local.tee $ptr - i32.load16_u - local.set $code - end - local.get $radix - if - local.get $radix - i32.const 2 + local.get $length + local.tee $7 + local.get $limit + local.tee $8 + local.get $7 + local.get $8 i32.lt_s - if (result i32) - i32.const 1 - else - local.get $radix - i32.const 36 - i32.gt_s + select + local.set $length + global.get $~lib/memory/__stack_pointer + local.get $length + i32.const 2 + i32.const 6 + i32.const 0 + call $~lib/rt/__newArray + local.tee $result + i32.store offset=12 + local.get $result + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + call $~lib/array/Array<~lib/string/String>#get:dataStart + local.set $resultStart + i32.const 0 + local.set $i + loop $for-loop|0 + local.get $i + local.get $length + i32.lt_s + if + global.get $~lib/memory/__stack_pointer + i32.const 2 + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $charStr + i32.store offset=16 + local.get $charStr + local.get $this + local.get $i + i32.const 1 + i32.shl + i32.add + i32.load16_u + i32.store16 + local.get $resultStart + local.get $i + i32.const 2 + i32.shl + i32.add + local.get $charStr + i32.store + local.get $result + local.get $charStr + i32.const 1 + call $~lib/rt/itcms/__link + local.get $i + i32.const 1 + i32.add + local.set $i + br $for-loop|0 + end end + local.get $result + local.set $22 + global.get $~lib/memory/__stack_pointer + i32.const 40 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $22 + return + else + local.get $length + i32.eqz if + global.get $~lib/memory/__stack_pointer + i32.const 1 + i32.const 2 + i32.const 6 i32.const 0 - drop - i32.const 0 - local.set $10 + call $~lib/rt/__newArray + local.tee $result|13 + i32.store offset=20 + local.get $result|13 + local.set $22 global.get $~lib/memory/__stack_pointer - i32.const 4 + local.get $22 + i32.store offset=8 + local.get $22 + call $~lib/array/Array<~lib/string/String>#get:dataStart + i32.const 2432 + i32.store + local.get $result|13 + local.set $22 + global.get $~lib/memory/__stack_pointer + i32.const 40 i32.add global.set $~lib/memory/__stack_pointer - local.get $10 + local.get $22 return end - local.get $radix - i32.const 16 - i32.eq + end + global.get $~lib/memory/__stack_pointer + i32.const 0 + i32.const 2 + i32.const 6 + i32.const 0 + call $~lib/rt/__newArray + local.tee $result|14 + i32.store offset=24 + i32.const 0 + local.set $end + i32.const 0 + local.set $start + i32.const 0 + local.set $i|17 + loop $while-continue|1 + local.get $this + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + local.get $separator + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=28 + local.get $22 + local.get $start + call $~lib/string/String#indexOf + local.tee $end + i32.const -1 + i32.xor if + local.get $end + local.get $start + i32.sub + local.set $len local.get $len - i32.const 2 + i32.const 0 i32.gt_s - if (result i32) - local.get $code - i32.const 48 - i32.eq - else - i32.const 0 - end - if (result i32) - local.get $ptr - i32.load16_u offset=2 - i32.const 32 - i32.or - i32.const 120 - i32.eq + if + global.get $~lib/memory/__stack_pointer + local.get $len + i32.const 1 + i32.shl + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $out + i32.store offset=32 + local.get $out + local.get $this + local.get $start + i32.const 1 + i32.shl + i32.add + local.get $len + i32.const 1 + i32.shl + memory.copy + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + local.get $out + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=28 + local.get $22 + call $~lib/array/Array<~lib/string/String>#push + drop else - i32.const 0 + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + i32.const 2432 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=28 + local.get $22 + call $~lib/array/Array<~lib/string/String>#push + drop end + local.get $i|17 + i32.const 1 + i32.add + local.tee $i|17 + local.get $limit + i32.eq if - local.get $ptr - i32.const 4 + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + i32.const 40 i32.add - local.set $ptr - local.get $len - i32.const 2 - i32.sub - local.set $len + global.set $~lib/memory/__stack_pointer + local.get $22 + return end + local.get $end + local.get $sepLen + i32.add + local.set $start + br $while-continue|1 end + end + local.get $start + i32.eqz + if + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + local.get $this + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=28 + local.get $22 + call $~lib/array/Array<~lib/string/String>#push + drop + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + i32.const 40 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $22 + return + end + local.get $length + local.get $start + i32.sub + local.set $len|20 + local.get $len|20 + i32.const 0 + i32.gt_s + if + global.get $~lib/memory/__stack_pointer + local.get $len|20 + i32.const 1 + i32.shl + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $out|21 + i32.store offset=36 + local.get $out|21 + local.get $this + local.get $start + i32.const 1 + i32.shl + i32.add + local.get $len|20 + i32.const 1 + i32.shl + memory.copy + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + local.get $out|21 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=28 + local.get $22 + call $~lib/array/Array<~lib/string/String>#push + drop else - local.get $code - i32.const 48 - i32.eq - if (result i32) - local.get $len - i32.const 2 - i32.gt_s - else - i32.const 0 - end - if - block $break|1 - block $case2|1 - block $case1|1 - block $case0|1 - local.get $ptr - i32.load16_u offset=2 - i32.const 32 - i32.or - local.set $6 - local.get $6 - i32.const 98 - i32.eq - br_if $case0|1 - local.get $6 - i32.const 111 - i32.eq - br_if $case1|1 - local.get $6 - i32.const 120 - i32.eq - br_if $case2|1 - br $break|1 - end - local.get $ptr - i32.const 4 - i32.add - local.set $ptr - local.get $len - i32.const 2 - i32.sub - local.set $len - i32.const 2 - local.set $radix - br $break|1 - end - local.get $ptr - i32.const 4 - i32.add - local.set $ptr - local.get $len - i32.const 2 - i32.sub - local.set $len - i32.const 8 - local.set $radix - br $break|1 + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=8 + local.get $22 + i32.const 2432 + local.set $22 + global.get $~lib/memory/__stack_pointer + local.get $22 + i32.store offset=28 + local.get $22 + call $~lib/array/Array<~lib/string/String>#push + drop + end + local.get $result|14 + local.set $22 + global.get $~lib/memory/__stack_pointer + i32.const 40 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $22 + return + ) + (func $~lib/string/String#split@varargs (param $this i32) (param $separator i32) (param $limit i32) (result i32) + (local $3 i32) + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.sub + global.set $~lib/memory/__stack_pointer + call $~stack_check + global.get $~lib/memory/__stack_pointer + i64.const 0 + i64.store + block $2of2 + block $1of2 + block $0of2 + block $outOfRange + global.get $~argumentsLength + br_table $0of2 $1of2 $2of2 $outOfRange end - local.get $ptr - i32.const 4 - i32.add - local.set $ptr - local.get $len - i32.const 2 - i32.sub - local.set $len - i32.const 16 - local.set $radix - br $break|1 + unreachable end + i32.const 0 + local.set $separator end - local.get $radix - i32.eqz - if - i32.const 10 - local.set $radix - end + global.get $~lib/builtins/i32.MAX_VALUE + local.set $limit end + local.get $this + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store + local.get $3 + local.get $separator + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store offset=4 + local.get $3 + local.get $limit + call $~lib/string/String#split + local.set $3 + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $3 + ) + (func $~lib/array/Array<~lib/string/String>#get:length (param $this i32) (result i32) + (local $1 i32) + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.sub + global.set $~lib/memory/__stack_pointer + call $~stack_check + global.get $~lib/memory/__stack_pointer i32.const 0 - local.set $num - local.get $len + i32.store + local.get $this + local.set $1 + global.get $~lib/memory/__stack_pointer + local.get $1 + i32.store + local.get $1 + call $~lib/array/Array<~lib/string/String>#get:length_ + local.set $1 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $1 + return + ) + (func $~lib/array/Array<~lib/string/String>#__get (param $this i32) (param $index i32) (result i32) + (local $value i32) + (local $3 i32) + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.sub + global.set $~lib/memory/__stack_pointer + call $~stack_check + global.get $~lib/memory/__stack_pointer + i64.const 0 + i64.store + local.get $index + local.get $this + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store + local.get $3 + call $~lib/array/Array<~lib/string/String>#get:length_ + i32.ge_u + if + i32.const 368 + i32.const 5712 + i32.const 114 + i32.const 42 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.get $this + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store + local.get $3 + call $~lib/array/Array<~lib/string/String>#get:dataStart + local.get $index + i32.const 2 + i32.shl + i32.add + i32.load + local.tee $value + i32.store offset=4 i32.const 1 + drop + i32.const 0 + i32.eqz + drop + local.get $value + i32.eqz + if + i32.const 5808 + i32.const 5712 + i32.const 118 + i32.const 40 + call $~lib/builtins/abort + unreachable + end + local.get $value + local.set $3 + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $3 + return + ) + (func $~lib/string/String#substr (param $this i32) (param $start i32) (param $length i32) (result i32) + (local $intStart i32) + (local $end i32) + (local $len i32) + (local $6 i32) + (local $7 i32) + (local $8 i32) + (local $9 i32) + (local $10 i32) + (local $11 i32) + (local $size i32) + (local $out i32) + (local $14 i32) + global.get $~lib/memory/__stack_pointer + i32.const 8 i32.sub - local.set $initial - block $while-break|2 - loop $while-continue|2 - local.get $len - local.tee $9 - i32.const 1 - i32.sub - local.set $len - local.get $9 - if - local.get $ptr - i32.load16_u - local.set $code - local.get $code - i32.const 48 - i32.sub - i32.const 10 - i32.lt_u - if - local.get $code - i32.const 48 - i32.sub - local.set $code - else - local.get $code - i32.const 65 - i32.sub - i32.const 90 - i32.const 65 - i32.sub - i32.le_u - if - local.get $code - i32.const 65 - i32.const 10 - i32.sub - i32.sub - local.set $code - else - local.get $code - i32.const 97 - i32.sub - i32.const 122 - i32.const 97 - i32.sub - i32.le_u - if - local.get $code - i32.const 97 - i32.const 10 - i32.sub - i32.sub - local.set $code - end - end - end - local.get $code - local.get $radix - i32.ge_u - if - local.get $initial - local.get $len - i32.eq - if - i32.const 0 - drop - i32.const 0 - local.set $10 - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $10 - return - end - br $while-break|2 - end - local.get $num - local.get $radix - i32.mul - local.get $code - i32.add - local.set $num - local.get $ptr - i32.const 2 - i32.add - local.set $ptr - br $while-continue|2 - end - end + global.set $~lib/memory/__stack_pointer + call $~stack_check + global.get $~lib/memory/__stack_pointer + i64.const 0 + i64.store + local.get $start + local.set $intStart + local.get $length + local.set $end + local.get $this + local.set $14 + global.get $~lib/memory/__stack_pointer + local.get $14 + i32.store + local.get $14 + call $~lib/string/String#get:length + local.set $len + local.get $intStart + i32.const 0 + i32.lt_s + if + local.get $len + local.get $intStart + i32.add + local.tee $6 + i32.const 0 + local.tee $7 + local.get $6 + local.get $7 + i32.gt_s + select + local.set $intStart + end + local.get $end + local.tee $8 + i32.const 0 + local.tee $9 + local.get $8 + local.get $9 + i32.gt_s + select + local.tee $10 + local.get $len + local.get $intStart + i32.sub + local.tee $11 + local.get $10 + local.get $11 + i32.lt_s + select + i32.const 1 + i32.shl + local.set $size + local.get $size + i32.const 0 + i32.le_s + if + i32.const 2432 + local.set $14 + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $14 + return end - local.get $sign - local.get $num - i32.mul - local.set $10 global.get $~lib/memory/__stack_pointer - i32.const 4 + local.get $size + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $out + i32.store offset=4 + local.get $out + local.get $this + local.get $intStart + i32.const 1 + i32.shl + i32.add + local.get $size + memory.copy + local.get $out + local.set $14 + global.get $~lib/memory/__stack_pointer + i32.const 8 i32.add global.set $~lib/memory/__stack_pointer - local.get $10 + local.get $14 return ) - (func $~lib/number/I32.parseInt (param $value i32) (param $radix i32) (result i32) - (local $2 i32) + (func $~lib/string/String#padEnd (param $this i32) (param $length i32) (param $pad i32) (result i32) + (local $thisSize i32) + (local $targetSize i32) + (local $padSize i32) + (local $appendSize i32) + (local $out i32) + (local $repeatCount i32) + (local $restBase i32) + (local $restSize i32) + (local $11 i32) global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 8 i32.sub global.set $~lib/memory/__stack_pointer call $~stack_check global.get $~lib/memory/__stack_pointer - i32.const 0 + i64.const 0 + i64.store + local.get $this + local.set $11 + global.get $~lib/memory/__stack_pointer + local.get $11 i32.store - local.get $value - local.set $2 + local.get $11 + call $~lib/string/String#get:length + i32.const 1 + i32.shl + local.set $thisSize + local.get $length + i32.const 1 + i32.shl + local.set $targetSize + local.get $pad + local.set $11 global.get $~lib/memory/__stack_pointer - local.get $2 + local.get $11 i32.store - local.get $2 - local.get $radix - call $~lib/util/string/strtol - local.set $2 + local.get $11 + call $~lib/string/String#get:length + i32.const 1 + i32.shl + local.set $padSize + local.get $targetSize + local.get $thisSize + i32.lt_u + if (result i32) + i32.const 1 + else + local.get $padSize + i32.eqz + end + if + local.get $this + local.set $11 + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $11 + return + end + local.get $targetSize + local.get $thisSize + i32.sub + local.set $appendSize global.get $~lib/memory/__stack_pointer - i32.const 4 + local.get $targetSize + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $out + i32.store offset=4 + local.get $out + local.get $this + local.get $thisSize + memory.copy + local.get $appendSize + local.get $padSize + i32.gt_u + if + local.get $appendSize + i32.const 2 + i32.sub + local.get $padSize + i32.div_u + local.set $repeatCount + local.get $repeatCount + local.get $padSize + i32.mul + local.set $restBase + local.get $appendSize + local.get $restBase + i32.sub + local.set $restSize + local.get $out + local.get $thisSize + i32.add + local.get $pad + local.get $padSize + local.get $repeatCount + call $~lib/memory/memory.repeat + local.get $out + local.get $thisSize + i32.add + local.get $restBase + i32.add + local.get $pad + local.get $restSize + memory.copy + else + local.get $out + local.get $thisSize + i32.add + local.get $pad + local.get $appendSize + memory.copy + end + local.get $out + local.set $11 + global.get $~lib/memory/__stack_pointer + i32.const 8 i32.add global.set $~lib/memory/__stack_pointer - local.get $2 + local.get $11 return ) (func $~lib/date/Date.fromString (param $dateTimeString i32) (result i32) @@ -7729,34 +7984,63 @@ (local $min i32) (local $sec i32) (local $ms i32) + (local $offsetMs i32) (local $dateString i32) (local $posT i32) (local $timeString i32) + (local $i i32) + (local $c i32) + (local $posColon i32) + (local $value i32) + (local $radix i32) + (local $offsetHours i32) + (local $value|15 i32) + (local $radix|16 i32) + (local $offsetMinutes i32) + (local $value|18 i32) + (local $radix|19 i32) + (local $offsetHours|20 i32) (local $timeParts i32) (local $len i32) - (local $secAndMs i32) + (local $value|23 i32) + (local $radix|24 i32) + (local $value|25 i32) + (local $radix|26 i32) + (local $secAndFrac i32) (local $posDot i32) + (local $value|29 i32) + (local $radix|30 i32) + (local $value|31 i32) + (local $radix|32 i32) + (local $value|33 i32) + (local $radix|34 i32) (local $parts i32) + (local $value|36 i32) + (local $radix|37 i32) (local $year i32) (local $month i32) (local $day i32) - (local $len|16 i32) - (local $17 i32) + (local $len|41 i32) + (local $value|42 i32) + (local $radix|43 i32) + (local $value|44 i32) + (local $radix|45 i32) + (local $46 i32) global.get $~lib/memory/__stack_pointer - i32.const 28 + i32.const 76 i32.sub global.set $~lib/memory/__stack_pointer call $~stack_check global.get $~lib/memory/__stack_pointer i32.const 0 - i32.const 28 + i32.const 76 memory.fill local.get $dateTimeString - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 call $~lib/string/String#get:length i32.eqz if @@ -7775,22 +8059,24 @@ local.set $sec i32.const 0 local.set $ms + i32.const 0 + local.set $offsetMs global.get $~lib/memory/__stack_pointer local.get $dateTimeString local.tee $dateString i32.store offset=4 local.get $dateTimeString - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 i32.const 2464 - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store offset=8 - local.get $17 + local.get $46 i32.const 0 call $~lib/string/String#indexOf local.set $posT @@ -7800,11 +8086,11 @@ if global.get $~lib/memory/__stack_pointer local.get $dateTimeString - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 i32.const 0 local.get $posT call $~lib/string/String#substring @@ -7812,11 +8098,11 @@ i32.store offset=4 global.get $~lib/memory/__stack_pointer local.get $dateTimeString - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 local.get $posT i32.const 1 i32.add @@ -7826,75 +8112,321 @@ call $~lib/string/String#substring@varargs local.tee $timeString i32.store offset=12 - global.get $~lib/memory/__stack_pointer local.get $timeString - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store - local.get $17 - i32.const 2496 - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - i32.const 1 - global.set $~argumentsLength - i32.const 0 - call $~lib/string/String#split@varargs - local.tee $timeParts - i32.store offset=16 - local.get $timeParts - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 - call $~lib/array/Array<~lib/string/String>#get:length - local.set $len - local.get $len + local.get $46 + call $~lib/string/String#get:length i32.const 1 - i32.le_s - if - i32.const 32 - i32.const 80 - i32.const 67 - i32.const 21 - call $~lib/builtins/abort - unreachable + i32.sub + local.set $i + block $for-break0 + loop $for-loop|0 + local.get $i + i32.const 0 + i32.ge_s + if + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $i + call $~lib/string/String#charCodeAt + local.set $c + local.get $c + i32.const 90 + i32.eq + if + global.get $~lib/memory/__stack_pointer + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 0 + local.get $i + call $~lib/string/String#substring + local.tee $timeString + i32.store offset=12 + br $for-break0 + else + local.get $c + i32.const 43 + i32.eq + if (result i32) + i32.const 1 + else + local.get $c + i32.const 45 + i32.eq + end + if + local.get $i + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + call $~lib/string/String#get:length + i32.const 1 + i32.sub + i32.eq + if + i32.const 32 + i32.const 80 + i32.const 74 + i32.const 13 + call $~lib/builtins/abort + unreachable + end + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 2496 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store offset=8 + local.get $46 + local.get $i + i32.const 1 + i32.add + call $~lib/string/String#indexOf + local.set $posColon + local.get $posColon + i32.const -1 + i32.xor + if + block $~lib/builtins/i32.parse|inlined.0 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $i + i32.const 1 + i32.add + local.get $posColon + call $~lib/string/String#substring + local.tee $value + i32.store offset=16 + i32.const 0 + local.set $radix + local.get $value + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.0 + end + local.set $offsetHours + block $~lib/builtins/i32.parse|inlined.1 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $posColon + i32.const 1 + i32.add + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/string/String#substring@varargs + local.tee $value|15 + i32.store offset=20 + i32.const 0 + local.set $radix|16 + local.get $value|15 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|16 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.1 + end + local.set $offsetMinutes + local.get $offsetHours + i32.const 60 + i32.mul + local.get $offsetMinutes + i32.add + i32.const 60000 + i32.mul + local.set $offsetMs + else + block $~lib/builtins/i32.parse|inlined.2 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $i + i32.const 1 + i32.add + i32.const 1 + global.set $~argumentsLength + i32.const 0 + call $~lib/string/String#substring@varargs + local.tee $value|18 + i32.store offset=24 + i32.const 0 + local.set $radix|19 + local.get $value|18 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|19 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.2 + end + local.set $offsetHours|20 + local.get $offsetHours|20 + i32.const 3600000 + i32.mul + local.set $offsetMs + end + local.get $c + i32.const 45 + i32.eq + if + i32.const 0 + local.get $offsetMs + i32.sub + local.set $offsetMs + end + global.get $~lib/memory/__stack_pointer + local.get $timeString + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 0 + local.get $i + call $~lib/string/String#substring + local.tee $timeString + i32.store offset=12 + br $for-break0 + end + end + local.get $i + i32.const 1 + i32.sub + local.set $i + br $for-loop|0 + end + end end - local.get $timeParts - local.set $17 global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - i32.const 0 - call $~lib/array/Array<~lib/string/String>#__get - local.set $17 + local.get $timeString + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt - local.set $hour - local.get $timeParts - local.set $17 + local.get $46 + i32.const 2496 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store offset=8 - local.get $17 + local.get $46 i32.const 1 - call $~lib/array/Array<~lib/string/String>#__get - local.set $17 + global.set $~argumentsLength + i32.const 0 + call $~lib/string/String#split@varargs + local.tee $timeParts + i32.store offset=28 + local.get $timeParts + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt + local.get $46 + call $~lib/array/Array<~lib/string/String>#get:length + local.set $len + local.get $len + i32.const 1 + i32.le_s + if + i32.const 32 + i32.const 80 + i32.const 96 + i32.const 21 + call $~lib/builtins/abort + unreachable + end + block $~lib/builtins/i32.parse|inlined.3 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $timeParts + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 0 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $value|23 + i32.store offset=32 + i32.const 0 + local.set $radix|24 + local.get $value|23 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|24 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.3 + end + local.set $hour + block $~lib/builtins/i32.parse|inlined.4 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $timeParts + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 1 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $value|25 + i32.store offset=36 + i32.const 0 + local.set $radix|26 + local.get $value|25 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|26 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.4 + end local.set $min local.get $len i32.const 3 @@ -7902,27 +8434,27 @@ if global.get $~lib/memory/__stack_pointer local.get $timeParts - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 i32.const 2 call $~lib/array/Array<~lib/string/String>#__get - local.tee $secAndMs - i32.store offset=20 - local.get $secAndMs - local.set $17 + local.tee $secAndFrac + i32.store offset=40 + local.get $secAndFrac + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 i32.const 2528 - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store offset=8 - local.get $17 + local.get $46 i32.const 0 call $~lib/string/String#indexOf local.set $posDot @@ -7930,143 +8462,208 @@ i32.const -1 i32.xor if - local.get $secAndMs - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - i32.const 0 - local.get $posDot - call $~lib/string/String#substring - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt + block $~lib/builtins/i32.parse|inlined.5 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $secAndFrac + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 0 + local.get $posDot + call $~lib/string/String#substring + local.tee $value|29 + i32.store offset=44 + i32.const 0 + local.set $radix|30 + local.get $value|29 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|30 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.5 + end local.set $sec - local.get $secAndMs - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - local.get $posDot - i32.const 1 - i32.add - i32.const 1 - global.set $~argumentsLength - i32.const 0 - call $~lib/string/String#substring@varargs - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt + block $~lib/builtins/i32.parse|inlined.6 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $secAndFrac + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store offset=48 + local.get $46 + local.get $posDot + i32.const 1 + i32.add + i32.const 3 + call $~lib/string/String#substr + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 3 + i32.const 848 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store offset=8 + local.get $46 + call $~lib/string/String#padEnd + local.tee $value|31 + i32.store offset=52 + i32.const 0 + local.set $radix|32 + local.get $value|31 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|32 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.6 + end local.set $ms else - local.get $secAndMs - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt + block $~lib/builtins/i32.parse|inlined.7 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $secAndFrac + local.tee $value|33 + i32.store offset=56 + i32.const 0 + local.set $radix|34 + local.get $value|33 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|34 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.7 + end local.set $sec end end end global.get $~lib/memory/__stack_pointer local.get $dateString - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 i32.const 592 - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store offset=8 - local.get $17 + local.get $46 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/string/String#split@varargs local.tee $parts - i32.store offset=24 - local.get $parts - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - i32.const 0 - call $~lib/array/Array<~lib/string/String>#__get - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt + i32.store offset=60 + block $~lib/builtins/i32.parse|inlined.8 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $parts + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 0 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $value|36 + i32.store offset=64 + i32.const 0 + local.set $radix|37 + local.get $value|36 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|37 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.8 + end local.set $year i32.const 1 local.set $month i32.const 1 local.set $day local.get $parts - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 + local.get $46 call $~lib/array/Array<~lib/string/String>#get:length - local.set $len|16 - local.get $len|16 + local.set $len|41 + local.get $len|41 i32.const 2 i32.ge_s if - local.get $parts - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - i32.const 1 - call $~lib/array/Array<~lib/string/String>#__get - local.set $17 - global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt - local.set $month - local.get $len|16 - i32.const 3 - i32.ge_s - if + block $~lib/builtins/i32.parse|inlined.9 (result i32) + global.get $~lib/memory/__stack_pointer local.get $parts - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 - i32.store offset=8 - local.get $17 - i32.const 2 + local.get $46 + i32.store + local.get $46 + i32.const 1 call $~lib/array/Array<~lib/string/String>#__get - local.set $17 + local.tee $value|42 + i32.store offset=68 + i32.const 0 + local.set $radix|43 + local.get $value|42 + local.set $46 global.get $~lib/memory/__stack_pointer - local.get $17 + local.get $46 i32.store - local.get $17 - i32.const 0 - call $~lib/number/I32.parseInt + local.get $46 + local.get $radix|43 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.9 + end + local.set $month + local.get $len|41 + i32.const 3 + i32.ge_s + if + block $~lib/builtins/i32.parse|inlined.10 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $parts + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + i32.const 2 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $value|44 + i32.store offset=72 + i32.const 0 + local.set $radix|45 + local.get $value|44 + local.set $46 + global.get $~lib/memory/__stack_pointer + local.get $46 + i32.store + local.get $46 + local.get $radix|45 + call $~lib/util/string/strtol + br $~lib/builtins/i32.parse|inlined.10 + end local.set $day end end @@ -8079,13 +8676,16 @@ local.get $sec local.get $ms call $~lib/date/epochMillis + local.get $offsetMs + i64.extend_i32_s + i64.sub call $~lib/date/Date#constructor - local.set $17 + local.set $46 global.get $~lib/memory/__stack_pointer - i32.const 28 + i32.const 76 i32.add global.set $~lib/memory/__stack_pointer - local.get $17 + local.get $46 return ) (func $start:std/date @@ -8246,14 +8846,22 @@ (local $154 i32) (local $155 i32) (local $156 i32) - global.get $~lib/memory/__stack_pointer - i32.const 408 + (local $157 i32) + (local $158 i32) + (local $159 i32) + (local $160 i32) + (local $161 i32) + (local $162 i32) + (local $163 i32) + (local $164 i32) + global.get $~lib/memory/__stack_pointer + i32.const 440 i32.sub global.set $~lib/memory/__stack_pointer call $~stack_check global.get $~lib/memory/__stack_pointer i32.const 0 - i32.const 408 + i32.const 440 memory.fill block $~lib/date/Date.UTC|inlined.0 (result i64) i32.const 1970 @@ -8748,11 +9356,11 @@ local.tee $58 i32.store offset=4 local.get $58 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.0 end @@ -8768,11 +9376,11 @@ unreachable end local.get $57 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 local.get $56 i64.const 1 i64.add @@ -8784,11 +9392,11 @@ local.tee $59 i32.store offset=12 local.get $59 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.1 end @@ -8817,11 +9425,11 @@ local.tee $61 i32.store offset=20 local.get $61 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.0 end @@ -8842,11 +9450,11 @@ local.tee $62 i32.store offset=24 local.get $62 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -8869,11 +9477,11 @@ local.tee $63 i32.store offset=28 local.get $63 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.0 end @@ -8889,11 +9497,11 @@ unreachable end local.get $60 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCHours i32.const 22 i32.eq @@ -8907,11 +9515,11 @@ unreachable end local.get $60 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 9 i32.eq @@ -8925,11 +9533,11 @@ unreachable end local.get $60 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 43 i32.eq @@ -8943,11 +9551,11 @@ unreachable end local.get $60 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 706 i32.eq @@ -8972,11 +9580,11 @@ local.tee $65 i32.store offset=36 local.get $65 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.1 end @@ -8997,11 +9605,11 @@ local.tee $66 i32.store offset=40 local.get $66 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -9024,11 +9632,11 @@ local.tee $67 i32.store offset=44 local.get $67 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.1 end @@ -9044,11 +9652,11 @@ unreachable end local.get $64 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCHours i32.const 1 i32.eq @@ -9062,11 +9670,11 @@ unreachable end local.get $64 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 3 i32.eq @@ -9080,11 +9688,11 @@ unreachable end local.get $64 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 11 i32.eq @@ -9098,11 +9706,11 @@ unreachable end local.get $64 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 274 i32.eq @@ -9122,11 +9730,11 @@ local.tee $68 i32.store offset=48 local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 984 i32.eq @@ -9140,19 +9748,19 @@ unreachable end local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 12 call $~lib/date/Date#setUTCMilliseconds local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 12 i32.eq @@ -9166,19 +9774,19 @@ unreachable end local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 568 call $~lib/date/Date#setUTCMilliseconds local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 568 i32.eq @@ -9192,11 +9800,11 @@ unreachable end local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 0 call $~lib/date/Date#setUTCMilliseconds block $~lib/date/Date#getTime|inlined.2 (result i64) @@ -9205,11 +9813,11 @@ local.tee $69 i32.store offset=52 local.get $69 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.2 end @@ -9225,11 +9833,11 @@ unreachable end local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 999 call $~lib/date/Date#setUTCMilliseconds block $~lib/date/Date#getTime|inlined.3 (result i64) @@ -9238,11 +9846,11 @@ local.tee $70 i32.store offset=56 local.get $70 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.3 end @@ -9258,19 +9866,19 @@ unreachable end local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2000 call $~lib/date/Date#setUTCMilliseconds local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 0 i32.eq @@ -9289,11 +9897,11 @@ local.tee $71 i32.store offset=60 local.get $71 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.4 end @@ -9309,19 +9917,19 @@ unreachable end local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const -2000 call $~lib/date/Date#setUTCMilliseconds local.get $68 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 0 i32.eq @@ -9340,11 +9948,11 @@ local.tee $72 i32.store offset=64 local.get $72 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.5 end @@ -9366,11 +9974,11 @@ local.tee $73 i32.store offset=68 local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 31 i32.eq @@ -9384,19 +9992,19 @@ unreachable end local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 12 call $~lib/date/Date#setUTCSeconds local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 12 i32.eq @@ -9410,19 +10018,19 @@ unreachable end local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 50 call $~lib/date/Date#setUTCSeconds local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 50 i32.eq @@ -9436,11 +10044,11 @@ unreachable end local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 0 call $~lib/date/Date#setUTCSeconds block $~lib/date/Date#getTime|inlined.6 (result i64) @@ -9449,11 +10057,11 @@ local.tee $74 i32.store offset=72 local.get $74 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.6 end @@ -9469,11 +10077,11 @@ unreachable end local.get $73 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 59 call $~lib/date/Date#setUTCSeconds block $~lib/date/Date#getTime|inlined.7 (result i64) @@ -9482,11 +10090,11 @@ local.tee $75 i32.store offset=76 local.get $75 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.7 end @@ -9508,11 +10116,11 @@ local.tee $76 i32.store offset=80 local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 45 i32.eq @@ -9526,19 +10134,19 @@ unreachable end local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 12 call $~lib/date/Date#setUTCMinutes local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 12 i32.eq @@ -9552,19 +10160,19 @@ unreachable end local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 50 call $~lib/date/Date#setUTCMinutes local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 50 i32.eq @@ -9578,11 +10186,11 @@ unreachable end local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 0 call $~lib/date/Date#setUTCMinutes block $~lib/date/Date#getTime|inlined.8 (result i64) @@ -9591,11 +10199,11 @@ local.tee $77 i32.store offset=84 local.get $77 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.8 end @@ -9611,11 +10219,11 @@ unreachable end local.get $76 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 59 call $~lib/date/Date#setUTCMinutes block $~lib/date/Date#getTime|inlined.9 (result i64) @@ -9624,11 +10232,11 @@ local.tee $78 i32.store offset=88 local.get $78 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.9 end @@ -9650,11 +10258,11 @@ local.tee $79 i32.store offset=92 local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCHours i32.const 17 i32.eq @@ -9668,19 +10276,19 @@ unreachable end local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 12 call $~lib/date/Date#setUTCHours local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCHours i32.const 12 i32.eq @@ -9694,19 +10302,19 @@ unreachable end local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2 call $~lib/date/Date#setUTCHours local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCHours i32.const 2 i32.eq @@ -9720,11 +10328,11 @@ unreachable end local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 0 call $~lib/date/Date#setUTCHours block $~lib/date/Date#getTime|inlined.10 (result i64) @@ -9733,11 +10341,11 @@ local.tee $80 i32.store offset=96 local.get $80 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.10 end @@ -9753,11 +10361,11 @@ unreachable end local.get $79 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 23 call $~lib/date/Date#setUTCHours block $~lib/date/Date#getTime|inlined.11 (result i64) @@ -9766,11 +10374,11 @@ local.tee $81 i32.store offset=100 local.get $81 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.11 end @@ -9797,11 +10405,11 @@ local.tee $83 i32.store offset=108 local.get $83 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.2 end @@ -9822,11 +10430,11 @@ local.tee $84 i32.store offset=112 local.get $84 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -9844,11 +10452,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 12 call $~lib/date/Date#setUTCDate block $~lib/date/Date#getUTCDate|inlined.2 (result i32) @@ -9857,11 +10465,11 @@ local.tee $85 i32.store offset=116 local.get $85 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.2 end @@ -9877,11 +10485,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2 call $~lib/date/Date#setUTCDate block $~lib/date/Date#getUTCDate|inlined.3 (result i32) @@ -9890,11 +10498,11 @@ local.tee $86 i32.store offset=120 local.get $86 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.3 end @@ -9910,62 +10518,62 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1 call $~lib/date/Date#setUTCDate local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 30 call $~lib/date/Date#setUTCDate local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 0 i32.const 1 global.set $~argumentsLength i32.const 0 call $~lib/date/Date#setUTCMonth@varargs local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1 call $~lib/date/Date#setUTCDate local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 31 call $~lib/date/Date#setUTCDate local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2024 call $~lib/date/Date#setUTCFullYear local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1 i32.const 1 global.set $~argumentsLength @@ -9977,11 +10585,11 @@ local.tee $87 i32.store offset=124 local.get $87 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -9999,27 +10607,27 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1 call $~lib/date/Date#setUTCDate local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 29 call $~lib/date/Date#setUTCDate local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1 i32.const 1 global.set $~argumentsLength @@ -10031,11 +10639,11 @@ local.tee $88 i32.store offset=128 local.get $88 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.12 end @@ -10056,11 +10664,11 @@ local.tee $89 i32.store offset=132 local.get $89 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -10083,11 +10691,11 @@ local.tee $90 i32.store offset=136 local.get $90 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.4 end @@ -10103,11 +10711,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 3 i32.eq @@ -10121,11 +10729,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 11 i32.eq @@ -10139,11 +10747,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 274 i32.eq @@ -10163,11 +10771,11 @@ local.tee $82 i32.store offset=104 local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 20 call $~lib/date/Date#setUTCDate block $~lib/date/Date#getTime|inlined.13 (result i64) @@ -10176,11 +10784,11 @@ local.tee $91 i32.store offset=140 local.get $91 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.13 end @@ -10196,11 +10804,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1 call $~lib/date/Date#setUTCDate block $~lib/date/Date#getTime|inlined.14 (result i64) @@ -10209,11 +10817,11 @@ local.tee $92 i32.store offset=144 local.get $92 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.14 end @@ -10229,11 +10837,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1000 call $~lib/date/Date#setUTCMilliseconds block $~lib/date/Date#getTime|inlined.15 (result i64) @@ -10242,11 +10850,11 @@ local.tee $93 i32.store offset=148 local.get $93 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.15 end @@ -10262,11 +10870,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 60 i32.const 60 i32.mul @@ -10279,11 +10887,11 @@ local.tee $94 i32.store offset=152 local.get $94 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.16 end @@ -10299,11 +10907,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 60 i32.const 60 i32.mul @@ -10318,11 +10926,11 @@ local.tee $95 i32.store offset=156 local.get $95 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.17 end @@ -10338,11 +10946,11 @@ unreachable end local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 60 i32.const 60 i32.mul @@ -10357,11 +10965,11 @@ local.tee $96 i32.store offset=160 local.get $96 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.18 end @@ -10383,11 +10991,11 @@ local.tee $82 i32.store offset=104 local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const -2208 call $~lib/date/Date#setUTCDate block $~lib/date/Date#getTime|inlined.19 (result i64) @@ -10396,11 +11004,11 @@ local.tee $97 i32.store offset=164 local.get $97 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.19 end @@ -10422,11 +11030,11 @@ local.tee $82 i32.store offset=104 local.get $82 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2208 call $~lib/date/Date#setUTCDate block $~lib/date/Date#getTime|inlined.20 (result i64) @@ -10435,11 +11043,11 @@ local.tee $98 i32.store offset=168 local.get $98 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.20 end @@ -10462,25 +11070,25 @@ local.tee $99 i32.store offset=172 local.get $99 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $99 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $99 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.0 @@ -10506,25 +11114,25 @@ local.tee $100 i32.store offset=176 local.get $100 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $100 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $100 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.1 @@ -10552,25 +11160,25 @@ local.tee $101 i32.store offset=180 local.get $101 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $101 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $101 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.2 @@ -10596,25 +11204,25 @@ local.tee $102 i32.store offset=184 local.get $102 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $102 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $102 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.3 @@ -10638,25 +11246,25 @@ local.tee $103 i32.store offset=188 local.get $103 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $103 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $103 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.4 @@ -10682,25 +11290,25 @@ local.tee $104 i32.store offset=192 local.get $104 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $104 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $104 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.5 @@ -10728,25 +11336,25 @@ local.tee $105 i32.store offset=196 local.get $105 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $105 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $105 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.6 @@ -10772,25 +11380,25 @@ local.tee $106 i32.store offset=200 local.get $106 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year local.get $106 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month local.get $106 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day call $~lib/date/dayOfWeek br $~lib/date/Date#getUTCDay|inlined.7 @@ -10818,11 +11426,11 @@ local.tee $108 i32.store offset=208 local.get $108 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -10840,11 +11448,11 @@ unreachable end local.get $107 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 10 i32.const 1 global.set $~argumentsLength @@ -10856,11 +11464,11 @@ local.tee $109 i32.store offset=212 local.get $109 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -10878,11 +11486,11 @@ unreachable end local.get $107 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2 i32.const 1 global.set $~argumentsLength @@ -10894,11 +11502,11 @@ local.tee $110 i32.store offset=216 local.get $110 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -10921,11 +11529,11 @@ local.tee $111 i32.store offset=220 local.get $111 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.21 end @@ -10941,11 +11549,11 @@ unreachable end local.get $107 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 0 i32.const 1 global.set $~argumentsLength @@ -10957,11 +11565,11 @@ local.tee $112 i32.store offset=224 local.get $112 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.22 end @@ -10977,11 +11585,11 @@ unreachable end local.get $107 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 11 i32.const 1 global.set $~argumentsLength @@ -10993,11 +11601,11 @@ local.tee $113 i32.store offset=228 local.get $113 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.23 end @@ -11013,11 +11621,11 @@ unreachable end local.get $107 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const -1 i32.const 1 global.set $~argumentsLength @@ -11029,11 +11637,11 @@ local.tee $114 i32.store offset=232 local.get $114 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -11056,11 +11664,11 @@ local.tee $115 i32.store offset=236 local.get $115 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.24 end @@ -11076,11 +11684,11 @@ unreachable end local.get $107 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 12 i32.const 1 global.set $~argumentsLength @@ -11092,11 +11700,11 @@ local.tee $116 i32.store offset=240 local.get $116 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -11119,11 +11727,11 @@ local.tee $117 i32.store offset=244 local.get $117 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis br $~lib/date/Date#getTime|inlined.25 end @@ -11150,11 +11758,11 @@ local.tee $119 i32.store offset=252 local.get $119 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.3 end @@ -11170,11 +11778,11 @@ unreachable end local.get $118 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 1976 call $~lib/date/Date#setUTCFullYear block $~lib/date/Date#getUTCFullYear|inlined.4 (result i32) @@ -11183,11 +11791,11 @@ local.tee $120 i32.store offset=256 local.get $120 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.4 end @@ -11203,11 +11811,11 @@ unreachable end local.get $118 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 20212 call $~lib/date/Date#setUTCFullYear block $~lib/date/Date#getUTCFullYear|inlined.5 (result i32) @@ -11216,11 +11824,11 @@ local.tee $121 i32.store offset=260 local.get $121 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.5 end @@ -11236,11 +11844,11 @@ unreachable end local.get $118 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 71 call $~lib/date/Date#setUTCFullYear block $~lib/date/Date#getUTCFullYear|inlined.6 (result i32) @@ -11249,11 +11857,11 @@ local.tee $122 i32.store offset=264 local.get $122 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.6 end @@ -11275,23 +11883,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2672 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11311,23 +11919,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2752 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11345,23 +11953,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2832 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11379,23 +11987,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2912 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11413,23 +12021,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 2992 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11447,23 +12055,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 3072 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11481,23 +12089,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 3152 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11515,23 +12123,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 3232 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11549,23 +12157,23 @@ local.tee $123 i32.store offset=268 local.get $123 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 3312 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11583,23 +12191,23 @@ local.tee $124 i32.store offset=280 local.get $124 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toDateString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 4240 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11617,23 +12225,23 @@ local.tee $124 i32.store offset=280 local.get $124 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toDateString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 4304 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11651,23 +12259,23 @@ local.tee $124 i32.store offset=280 local.get $124 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toDateString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 4368 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11685,23 +12293,23 @@ local.tee $125 i32.store offset=284 local.get $125 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toTimeString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 4480 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11719,23 +12327,23 @@ local.tee $125 i32.store offset=284 local.get $125 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toTimeString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 4528 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11753,23 +12361,23 @@ local.tee $126 i32.store offset=288 local.get $126 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toUTCString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 5424 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11787,23 +12395,23 @@ local.tee $126 i32.store offset=288 local.get $126 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toUTCString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 5504 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if @@ -11821,196 +12429,476 @@ local.tee $126 i32.store offset=288 local.get $126 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toUTCString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 i32.const 5584 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 128 - i32.const 284 + i32.const 284 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 5664 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.26 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $128 + i32.store offset=296 + local.get $128 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.26 + end + i64.const 192067200000 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 291 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 5936 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.27 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $129 + i32.store offset=300 + local.get $129 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.27 + end + i64.const 192067200000 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 293 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 5984 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.28 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $130 + i32.store offset=304 + local.get $130 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.28 + end + i64.const 11860387200000 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 295 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 6032 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.29 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $131 + i32.store offset=308 + local.get $131 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.29 + end + i64.const 192112496000 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 299 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 6096 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.30 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $132 + i32.store offset=312 + local.get $132 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.30 + end + i64.const 192112496456 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 303 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 6176 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.31 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $133 + i32.store offset=316 + local.get $133 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.31 + end + i64.const 192112496456 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 307 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 6256 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.32 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $134 + i32.store offset=320 + local.get $134 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.32 + end + i64.const 192141296456 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 311 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 6336 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date.fromString + local.tee $127 + i32.store offset=292 + block $~lib/date/Date#getTime|inlined.33 (result i64) + global.get $~lib/memory/__stack_pointer + local.get $127 + local.tee $135 + i32.store offset=324 + local.get $135 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 + i32.store offset=8 + local.get $164 + call $~lib/date/Date#get:epochMillis + br $~lib/date/Date#getTime|inlined.33 + end + i64.const 192092696456 + i64.eq + i32.eqz + if + i32.const 0 + i32.const 128 + i32.const 315 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 5664 - local.set $156 + i32.const 6416 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.26 (result i64) + block $~lib/date/Date#getTime|inlined.34 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $128 - i32.store offset=296 - local.get $128 - local.set $156 + local.tee $136 + i32.store offset=328 + local.get $136 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.26 + br $~lib/date/Date#getTime|inlined.34 end - i64.const 192067200000 + i64.const 192112496450 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 291 + i32.const 319 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 5936 - local.set $156 + i32.const 6480 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.27 (result i64) + block $~lib/date/Date#getTime|inlined.35 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $129 - i32.store offset=300 - local.get $129 - local.set $156 + local.tee $137 + i32.store offset=332 + local.get $137 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.27 + br $~lib/date/Date#getTime|inlined.35 end - i64.const 192067200000 + i64.const 192112496450 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 293 + i32.const 323 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 5984 - local.set $156 + i32.const 6560 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.28 (result i64) + block $~lib/date/Date#getTime|inlined.36 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $130 - i32.store offset=304 - local.get $130 - local.set $156 + local.tee $138 + i32.store offset=336 + local.get $138 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.28 + br $~lib/date/Date#getTime|inlined.36 end - i64.const 11860387200000 + i64.const 192112496450 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 295 + i32.const 327 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6032 - local.set $156 + i32.const 6640 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.29 (result i64) + block $~lib/date/Date#getTime|inlined.37 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $131 - i32.store offset=308 - local.get $131 - local.set $156 + local.tee $139 + i32.store offset=340 + local.get $139 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.29 + br $~lib/date/Date#getTime|inlined.37 end - i64.const 192112496000 + i64.const 192112496456 i64.eq i32.eqz if i32.const 0 i32.const 128 - i32.const 299 + i32.const 331 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6096 - local.set $156 + i32.const 6720 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.30 (result i64) + block $~lib/date/Date#getTime|inlined.38 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $132 - i32.store offset=312 - local.get $132 - local.set $156 + local.tee $140 + i32.store offset=344 + local.get $140 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.30 + br $~lib/date/Date#getTime|inlined.38 end i64.const 192112496456 i64.eq @@ -12018,34 +12906,34 @@ if i32.const 0 i32.const 128 - i32.const 303 + i32.const 335 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6176 - local.set $156 + i32.const 6800 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.31 (result i64) + block $~lib/date/Date#getTime|inlined.39 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $133 - i32.store offset=316 - local.get $133 - local.set $156 + local.tee $141 + i32.store offset=348 + local.get $141 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.31 + br $~lib/date/Date#getTime|inlined.39 end i64.const 192112496456 i64.eq @@ -12053,34 +12941,34 @@ if i32.const 0 i32.const 128 - i32.const 307 + i32.const 339 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6256 - local.set $156 + i32.const 6896 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.32 (result i64) + block $~lib/date/Date#getTime|inlined.40 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $134 - i32.store offset=320 - local.get $134 - local.set $156 + local.tee $142 + i32.store offset=352 + local.get $142 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.32 + br $~lib/date/Date#getTime|inlined.40 end i64.const -62167219200000 i64.eq @@ -12088,34 +12976,34 @@ if i32.const 0 i32.const 128 - i32.const 310 + i32.const 342 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6288 - local.set $156 + i32.const 6928 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.33 (result i64) + block $~lib/date/Date#getTime|inlined.41 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $135 - i32.store offset=324 - local.get $135 - local.set $156 + local.tee $143 + i32.store offset=356 + local.get $143 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.33 + br $~lib/date/Date#getTime|inlined.41 end i64.const -62135596800000 i64.eq @@ -12123,34 +13011,34 @@ if i32.const 0 i32.const 128 - i32.const 313 + i32.const 345 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6320 - local.set $156 + i32.const 6960 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.34 (result i64) + block $~lib/date/Date#getTime|inlined.42 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $136 - i32.store offset=328 - local.get $136 - local.set $156 + local.tee $144 + i32.store offset=360 + local.get $144 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.34 + br $~lib/date/Date#getTime|inlined.42 end i64.const 189302400000 i64.eq @@ -12158,34 +13046,34 @@ if i32.const 0 i32.const 128 - i32.const 316 + i32.const 348 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6352 - local.set $156 + i32.const 6992 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.35 (result i64) + block $~lib/date/Date#getTime|inlined.43 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $137 - i32.store offset=332 - local.get $137 - local.set $156 + local.tee $145 + i32.store offset=364 + local.get $145 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.35 + br $~lib/date/Date#getTime|inlined.43 end i64.const 191980800000 i64.eq @@ -12193,34 +13081,34 @@ if i32.const 0 i32.const 128 - i32.const 319 + i32.const 351 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer i32.const 5664 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.36 (result i64) + block $~lib/date/Date#getTime|inlined.44 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $138 - i32.store offset=336 - local.get $138 - local.set $156 + local.tee $146 + i32.store offset=368 + local.get $146 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.36 + br $~lib/date/Date#getTime|inlined.44 end i64.const 192067200000 i64.eq @@ -12228,34 +13116,34 @@ if i32.const 0 i32.const 128 - i32.const 322 + i32.const 354 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 6400 - local.set $156 + i32.const 7040 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.37 (result i64) + block $~lib/date/Date#getTime|inlined.45 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $139 - i32.store offset=340 - local.get $139 - local.set $156 + local.tee $147 + i32.store offset=372 + local.get $147 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.37 + br $~lib/date/Date#getTime|inlined.45 end i64.const 192112440000 i64.eq @@ -12263,34 +13151,34 @@ if i32.const 0 i32.const 128 - i32.const 325 + i32.const 357 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer i32.const 6032 - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date.fromString local.tee $127 i32.store offset=292 - block $~lib/date/Date#getTime|inlined.38 (result i64) + block $~lib/date/Date#getTime|inlined.46 (result i64) global.get $~lib/memory/__stack_pointer local.get $127 - local.tee $140 - i32.store offset=344 - local.get $140 - local.set $156 + local.tee $148 + i32.store offset=376 + local.get $148 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.38 + br $~lib/date/Date#getTime|inlined.46 end i64.const 192112496000 i64.eq @@ -12298,7 +13186,7 @@ if i32.const 0 i32.const 128 - i32.const 328 + i32.const 360 i32.const 3 call $~lib/builtins/abort unreachable @@ -12307,27 +13195,27 @@ i32.const 0 i64.const -8640000000000000 call $~lib/date/Date#constructor - local.tee $141 - i32.store offset=348 + local.tee $149 + i32.store offset=380 global.get $~lib/memory/__stack_pointer i32.const 0 i64.const 8640000000000000 call $~lib/date/Date#constructor - local.tee $142 - i32.store offset=352 - block $~lib/date/Date#getTime|inlined.39 (result i64) + local.tee $150 + i32.store offset=384 + block $~lib/date/Date#getTime|inlined.47 (result i64) global.get $~lib/memory/__stack_pointer - local.get $141 - local.tee $143 - i32.store offset=356 - local.get $143 - local.set $156 + local.get $149 + local.tee $151 + i32.store offset=388 + local.get $151 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.39 + br $~lib/date/Date#getTime|inlined.47 end i64.const -8640000000000000 i64.eq @@ -12335,24 +13223,24 @@ if i32.const 0 i32.const 128 - i32.const 346 + i32.const 378 i32.const 3 call $~lib/builtins/abort unreachable end - block $~lib/date/Date#getTime|inlined.40 (result i64) + block $~lib/date/Date#getTime|inlined.48 (result i64) global.get $~lib/memory/__stack_pointer - local.get $142 - local.tee $144 - i32.store offset=360 - local.get $144 - local.set $156 + local.get $150 + local.tee $152 + i32.store offset=392 + local.get $152 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:epochMillis - br $~lib/date/Date#getTime|inlined.40 + br $~lib/date/Date#getTime|inlined.48 end i64.const 8640000000000000 i64.eq @@ -12360,22 +13248,22 @@ if i32.const 0 i32.const 128 - i32.const 347 + i32.const 379 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCFullYear|inlined.7 (result i32) global.get $~lib/memory/__stack_pointer - local.get $141 - local.tee $145 - i32.store offset=364 - local.get $145 - local.set $156 + local.get $149 + local.tee $153 + i32.store offset=396 + local.get $153 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.7 end @@ -12385,22 +13273,22 @@ if i32.const 0 i32.const 128 - i32.const 349 + i32.const 381 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCFullYear|inlined.8 (result i32) global.get $~lib/memory/__stack_pointer - local.get $142 - local.tee $146 - i32.store offset=368 - local.get $146 - local.set $156 + local.get $150 + local.tee $154 + i32.store offset=400 + local.get $154 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.8 end @@ -12410,22 +13298,22 @@ if i32.const 0 i32.const 128 - i32.const 350 + i32.const 382 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCMonth|inlined.10 (result i32) global.get $~lib/memory/__stack_pointer - local.get $141 - local.tee $147 - i32.store offset=372 - local.get $147 - local.set $156 + local.get $149 + local.tee $155 + i32.store offset=404 + local.get $155 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -12437,22 +13325,22 @@ if i32.const 0 i32.const 128 - i32.const 352 + i32.const 384 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCMonth|inlined.11 (result i32) global.get $~lib/memory/__stack_pointer - local.get $142 - local.tee $148 - i32.store offset=376 - local.get $148 - local.set $156 - global.get $~lib/memory/__stack_pointer + local.get $150 + local.tee $156 + i32.store offset=408 local.get $156 + local.set $164 + global.get $~lib/memory/__stack_pointer + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -12464,22 +13352,22 @@ if i32.const 0 i32.const 128 - i32.const 353 + i32.const 385 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCDate|inlined.5 (result i32) global.get $~lib/memory/__stack_pointer - local.get $141 - local.tee $149 - i32.store offset=380 local.get $149 - local.set $156 + local.tee $157 + i32.store offset=412 + local.get $157 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.5 end @@ -12489,22 +13377,22 @@ if i32.const 0 i32.const 128 - i32.const 355 + i32.const 387 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCDate|inlined.6 (result i32) global.get $~lib/memory/__stack_pointer - local.get $142 - local.tee $150 - i32.store offset=384 local.get $150 - local.set $156 + local.tee $158 + i32.store offset=416 + local.get $158 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.6 end @@ -12514,63 +13402,63 @@ if i32.const 0 i32.const 128 - i32.const 356 + i32.const 388 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $141 - local.set $156 + local.get $149 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 - i32.const 6464 - local.set $156 + local.get $164 + i32.const 7104 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 128 - i32.const 358 + i32.const 390 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $142 - local.set $156 + local.get $150 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 - i32.const 6544 - local.set $156 + local.get $164 + i32.const 7184 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 128 - i32.const 359 + i32.const 391 i32.const 3 call $~lib/builtins/abort unreachable @@ -12581,27 +13469,27 @@ i64.const 1 i64.sub call $~lib/date/Date#constructor - local.tee $151 - i32.store offset=388 + local.tee $159 + i32.store offset=420 global.get $~lib/memory/__stack_pointer i32.const 0 i64.const -8640000000000000 i64.const 1 i64.add call $~lib/date/Date#constructor - local.tee $152 - i32.store offset=392 + local.tee $160 + i32.store offset=424 block $~lib/date/Date#getUTCFullYear|inlined.9 (result i32) global.get $~lib/memory/__stack_pointer - local.get $152 - local.tee $153 - i32.store offset=396 - local.get $153 - local.set $156 + local.get $160 + local.tee $161 + i32.store offset=428 + local.get $161 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:year br $~lib/date/Date#getUTCFullYear|inlined.9 end @@ -12611,22 +13499,22 @@ if i32.const 0 i32.const 128 - i32.const 364 + i32.const 396 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCMonth|inlined.12 (result i32) global.get $~lib/memory/__stack_pointer - local.get $152 - local.tee $154 - i32.store offset=400 - local.get $154 - local.set $156 + local.get $160 + local.tee $162 + i32.store offset=432 + local.get $162 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:month i32.const 1 i32.sub @@ -12638,22 +13526,22 @@ if i32.const 0 i32.const 128 - i32.const 365 + i32.const 397 i32.const 3 call $~lib/builtins/abort unreachable end block $~lib/date/Date#getUTCDate|inlined.7 (result i32) global.get $~lib/memory/__stack_pointer - local.get $152 - local.tee $155 - i32.store offset=404 - local.get $155 - local.set $156 + local.get $160 + local.tee $163 + i32.store offset=436 + local.get $163 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#get:day br $~lib/date/Date#getUTCDate|inlined.7 end @@ -12663,17 +13551,17 @@ if i32.const 0 i32.const 128 - i32.const 366 + i32.const 398 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $152 - local.set $156 + local.get $160 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCHours i32.const 0 i32.eq @@ -12681,17 +13569,17 @@ if i32.const 0 i32.const 128 - i32.const 367 + i32.const 399 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $152 - local.set $156 + local.get $160 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMinutes i32.const 0 i32.eq @@ -12699,17 +13587,17 @@ if i32.const 0 i32.const 128 - i32.const 368 + i32.const 400 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $152 - local.set $156 + local.get $160 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCSeconds i32.const 0 i32.eq @@ -12717,17 +13605,17 @@ if i32.const 0 i32.const 128 - i32.const 369 + i32.const 401 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $152 - local.set $156 + local.get $160 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 + local.get $164 call $~lib/date/Date#getUTCMilliseconds i32.const 1 i32.eq @@ -12735,69 +13623,69 @@ if i32.const 0 i32.const 128 - i32.const 370 + i32.const 402 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $151 - local.set $156 + local.get $159 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 - i32.const 6624 - local.set $156 + local.get $164 + i32.const 7264 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 128 - i32.const 372 + i32.const 404 i32.const 3 call $~lib/builtins/abort unreachable end - local.get $152 - local.set $156 + local.get $160 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=276 - local.get $156 + local.get $164 call $~lib/date/Date#toISOString - local.set $156 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=8 - local.get $156 - i32.const 6704 - local.set $156 + local.get $164 + i32.const 7344 + local.set $164 global.get $~lib/memory/__stack_pointer - local.get $156 + local.get $164 i32.store offset=272 - local.get $156 + local.get $164 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 128 - i32.const 373 + i32.const 405 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 408 + i32.const 440 i32.add global.set $~lib/memory/__stack_pointer ) diff --git a/tests/compiler/std/date.release.wat b/tests/compiler/std/date.release.wat index 4ce5b2a67f..31d3fa0a0d 100644 --- a/tests/compiler/std/date.release.wat +++ b/tests/compiler/std/date.release.wat @@ -28,7 +28,7 @@ (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 40596)) + (global $~lib/memory/__stack_pointer (mut i32) (i32.const 41236)) (global $~started (mut i32) (i32.const 0)) (memory $0 1) (data $0 (i32.const 1036) ",") @@ -220,25 +220,41 @@ (data $98.1 (i32.const 7112) "\02\00\00\00.\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006") (data $99 (i32.const 7180) "L") (data $99.1 (i32.const 7192) "\02\00\00\000\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00Z") - (data $100 (i32.const 7260) "\1c") - (data $100.1 (i32.const 7272) "\02\00\00\00\08\00\00\000\000\000\000") - (data $101 (i32.const 7292) "\1c") - (data $101.1 (i32.const 7304) "\02\00\00\00\08\00\00\000\000\000\001") - (data $102 (i32.const 7324) "\1c") - (data $102.1 (i32.const 7336) "\02\00\00\00\08\00\00\001\009\007\006") - (data $103 (i32.const 7356) ",") - (data $103.1 (i32.const 7368) "\02\00\00\00\0e\00\00\001\009\007\006\00-\000\002") - (data $104 (i32.const 7404) "<") - (data $104.1 (i32.const 7416) "\02\00\00\00 \00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004") - (data $105 (i32.const 7468) "L") - (data $105.1 (i32.const 7480) "\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z") - (data $106 (i32.const 7548) "L") - (data $106.1 (i32.const 7560) "\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\003\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z") - (data $107 (i32.const 7628) "L") - (data $107.1 (i32.const 7640) "\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\002\00T\002\003\00:\005\009\00:\005\009\00.\009\009\009\00Z") - (data $108 (i32.const 7708) "L") - (data $108.1 (i32.const 7720) "\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\001\00Z") - (data $109 (i32.const 7792) "\08\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00 \00\00\00\04A\00\00\02A\00\00\02\t") + (data $100 (i32.const 7260) "L") + (data $100.1 (i32.const 7272) "\02\00\00\00:\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00-\000\008\00:\000\000") + (data $101 (i32.const 7340) "L") + (data $101.1 (i32.const 7352) "\02\00\00\00:\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\00+\000\005\00:\003\000") + (data $102 (i32.const 7420) "<") + (data $102.1 (i32.const 7432) "\02\00\00\00,\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005") + (data $103 (i32.const 7484) "L") + (data $103.1 (i32.const 7496) "\02\00\00\00.\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\00Z") + (data $104 (i32.const 7564) "L") + (data $104.1 (i32.const 7576) "\02\00\00\008\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\00+\000\000\00:\000\000") + (data $105 (i32.const 7644) "L") + (data $105.1 (i32.const 7656) "\02\00\00\004\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\007\008\009") + (data $106 (i32.const 7724) "L") + (data $106.1 (i32.const 7736) "\02\00\00\006\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\007\008\009\00Z") + (data $107 (i32.const 7804) "\\") + (data $107.1 (i32.const 7816) "\02\00\00\00@\00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004\00:\005\006\00.\004\005\006\007\008\009\00+\000\000\00:\000\000") + (data $108 (i32.const 7900) "\1c") + (data $108.1 (i32.const 7912) "\02\00\00\00\08\00\00\000\000\000\000") + (data $109 (i32.const 7932) "\1c") + (data $109.1 (i32.const 7944) "\02\00\00\00\08\00\00\000\000\000\001") + (data $110 (i32.const 7964) "\1c") + (data $110.1 (i32.const 7976) "\02\00\00\00\08\00\00\001\009\007\006") + (data $111 (i32.const 7996) ",") + (data $111.1 (i32.const 8008) "\02\00\00\00\0e\00\00\001\009\007\006\00-\000\002") + (data $112 (i32.const 8044) "<") + (data $112.1 (i32.const 8056) "\02\00\00\00 \00\00\001\009\007\006\00-\000\002\00-\000\002\00T\001\002\00:\003\004") + (data $113 (i32.const 8108) "L") + (data $113.1 (i32.const 8120) "\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z") + (data $114 (i32.const 8188) "L") + (data $114.1 (i32.const 8200) "\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\003\00T\000\000\00:\000\000\00:\000\000\00.\000\000\000\00Z") + (data $115 (i32.const 8268) "L") + (data $115.1 (i32.const 8280) "\02\00\00\006\00\00\00+\002\007\005\007\006\000\00-\000\009\00-\001\002\00T\002\003\00:\005\009\00:\005\009\00.\009\009\009\00Z") + (data $116 (i32.const 8348) "L") + (data $116.1 (i32.const 8360) "\02\00\00\006\00\00\00-\002\007\001\008\002\001\00-\000\004\00-\002\000\00T\000\000\00:\000\000\00:\000\000\00.\000\000\001\00Z") + (data $117 (i32.const 8432) "\08\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00 \00\00\00\04A\00\00\02A\00\00\02\t") (export "memory" (memory $0)) (export "_start" (func $~start)) (func $~lib/date/epochMillis (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (result i64) @@ -488,7 +504,7 @@ local.get $1 global.set $~lib/rt/itcms/iter end - block $__inlined_func$~lib/rt/itcms/Object#unlink$359 + block $__inlined_func$~lib/rt/itcms/Object#unlink$376 local.get $0 i32.load offset=4 i32.const -4 @@ -500,7 +516,7 @@ i32.load offset=8 i32.eqz local.get $0 - i32.const 40596 + i32.const 41236 i32.lt_u i32.and i32.eqz @@ -512,7 +528,7 @@ call $~lib/builtins/abort unreachable end - br $__inlined_func$~lib/rt/itcms/Object#unlink$359 + br $__inlined_func$~lib/rt/itcms/Object#unlink$376 end local.get $0 i32.load offset=8 @@ -549,7 +565,7 @@ i32.const 1 else local.get $1 - i32.const 7792 + i32.const 8432 i32.load i32.gt_u if @@ -563,7 +579,7 @@ local.get $1 i32.const 2 i32.shl - i32.const 7796 + i32.const 8436 i32.add i32.load i32.const 32 @@ -1147,10 +1163,10 @@ if unreachable end - i32.const 40608 + i32.const 41248 i32.const 0 i32.store - i32.const 42176 + i32.const 42816 i32.const 0 i32.store loop $for-loop|0 @@ -1161,7 +1177,7 @@ local.get $0 i32.const 2 i32.shl - i32.const 40608 + i32.const 41248 i32.add i32.const 0 i32.store offset=4 @@ -1179,7 +1195,7 @@ i32.add i32.const 2 i32.shl - i32.const 40608 + i32.const 41248 i32.add i32.const 0 i32.store offset=96 @@ -1197,14 +1213,14 @@ br $for-loop|0 end end - i32.const 40608 - i32.const 42180 + i32.const 41248 + i32.const 42820 memory.size i64.extend_i32_s i64.const 16 i64.shl call $~lib/rt/tlsf/addMemory - i32.const 40608 + i32.const 41248 global.set $~lib/rt/tlsf/ROOT ) (func $~lib/rt/itcms/step (result i32) @@ -1289,7 +1305,7 @@ local.set $0 loop $while-continue|0 local.get $0 - i32.const 40596 + i32.const 41236 i32.lt_u if local.get $0 @@ -1385,7 +1401,7 @@ unreachable end local.get $0 - i32.const 40596 + i32.const 41236 i32.lt_u if local.get $0 @@ -1408,7 +1424,7 @@ i32.const 4 i32.add local.tee $0 - i32.const 40596 + i32.const 41236 i32.ge_u if global.get $~lib/rt/tlsf/ROOT @@ -2000,11 +2016,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2425,7 +2441,7 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -2474,7 +2490,7 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -2484,8 +2500,8 @@ end unreachable end - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2519,11 +2535,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2574,7 +2590,7 @@ if i32.const 1056 i32.const 1104 - i32.const 100 + i32.const 131 i32.const 35 call $~lib/builtins/abort unreachable @@ -2611,11 +2627,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2634,7 +2650,7 @@ if i32.const 1056 i32.const 1104 - i32.const 112 + i32.const 143 i32.const 28 call $~lib/builtins/abort unreachable @@ -2678,11 +2694,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2724,11 +2740,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2770,11 +2786,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2816,11 +2832,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2860,11 +2876,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2908,11 +2924,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -2958,11 +2974,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3008,11 +3024,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3059,11 +3075,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3129,7 +3145,7 @@ global.set $~lib/memory/__stack_pointer block $folding-inner0 global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -3161,7 +3177,7 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -3211,8 +3227,8 @@ global.set $~lib/memory/__stack_pointer return end - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3227,11 +3243,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3300,7 +3316,7 @@ global.set $~lib/memory/__stack_pointer block $folding-inner0 global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -3320,7 +3336,7 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -3340,7 +3356,7 @@ local.get $5 i32.const 1872 i32.store - block $__inlined_func$~lib/string/String#padStart$367 + block $__inlined_func$~lib/string/String#padStart$384 i32.const 1868 i32.load i32.const -2 @@ -3359,7 +3375,7 @@ i32.const 8 i32.add global.set $~lib/memory/__stack_pointer - br $__inlined_func$~lib/string/String#padStart$367 + br $__inlined_func$~lib/string/String#padStart$384 end global.get $~lib/memory/__stack_pointer local.get $6 @@ -3435,8 +3451,8 @@ local.get $0 return end - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3454,11 +3470,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3673,11 +3689,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -3724,7 +3740,7 @@ global.set $~lib/memory/__stack_pointer block $folding-inner0 global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -3772,14 +3788,14 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer local.tee $1 i64.const 0 i64.store - block $__inlined_func$~lib/string/String#concat$368 (result i32) + block $__inlined_func$~lib/string/String#concat$385 (result i32) local.get $1 local.get $3 i32.store @@ -3791,7 +3807,7 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s br_if $folding-inner0 global.get $~lib/memory/__stack_pointer @@ -3828,7 +3844,7 @@ i32.add global.set $~lib/memory/__stack_pointer i32.const 3456 - br $__inlined_func$~lib/string/String#concat$368 + br $__inlined_func$~lib/string/String#concat$385 end global.get $~lib/memory/__stack_pointer local.get $1 @@ -4055,8 +4071,8 @@ local.get $0 return end - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -4070,11 +4086,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -4164,11 +4180,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -4427,11 +4443,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -4549,11 +4565,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -4891,11 +4907,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -5009,11 +5025,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -5127,11 +5143,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -5167,662 +5183,456 @@ global.set $~lib/memory/__stack_pointer local.get $0 ) - (func $~lib/array/ensureCapacity (param $0 i32) (param $1 i32) + (func $~lib/util/string/strtol (param $0 i32) (result i32) + (local $1 i32) (local $2 i32) (local $3 i32) (local $4 i32) + (local $5 i32) + (local $6 i32) + (local $7 i32) global.get $~lib/memory/__stack_pointer i32.const 4 i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - local.tee $2 + local.tee $1 i32.const 0 i32.store - local.get $2 - local.get $0 - i32.store local.get $1 local.get $0 - i32.load offset=8 - local.tee $2 - i32.const 2 - i32.shr_u - i32.gt_u - if - local.get $1 - i32.const 268435455 - i32.gt_u - if - i32.const 6784 - i32.const 6736 - i32.const 19 - i32.const 48 - call $~lib/builtins/abort - unreachable - end - global.get $~lib/memory/__stack_pointer + i32.store + block $folding-inner0 local.get $0 - i32.store - block $__inlined_func$~lib/rt/itcms/__renew$350 - i32.const 1073741820 - local.get $2 - i32.const 1 - i32.shl - local.tee $2 - local.get $2 - i32.const 1073741820 - i32.ge_u - select - local.tee $2 - i32.const 8 - local.get $1 - local.get $1 - i32.const 8 - i32.le_u - select - i32.const 2 - i32.shl - local.tee $1 - local.get $1 - local.get $2 - i32.lt_u - select - local.tee $3 - local.get $0 - i32.load - local.tee $2 - i32.const 20 - i32.sub - local.tee $4 - i32.load - i32.const -4 - i32.and - i32.const 16 - i32.sub - i32.le_u + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + local.tee $1 + i32.eqz + br_if $folding-inner0 + local.get $0 + local.tee $2 + i32.load16_u + local.set $0 + loop $while-continue|0 + block $__inlined_func$~lib/util/string/isSpace$164 (result i32) + local.get $0 + i32.const 128 + i32.or + i32.const 160 + i32.eq + local.get $0 + i32.const 9 + i32.sub + i32.const 4 + i32.le_u + i32.or + local.get $0 + i32.const 5760 + i32.lt_u + br_if $__inlined_func$~lib/util/string/isSpace$164 + drop + i32.const 1 + local.get $0 + i32.const -8192 + i32.add + i32.const 10 + i32.le_u + br_if $__inlined_func$~lib/util/string/isSpace$164 + drop + block $break|0 + block $case0|0 + local.get $0 + i32.const 5760 + i32.eq + br_if $case0|0 + local.get $0 + i32.const 8232 + i32.eq + br_if $case0|0 + local.get $0 + i32.const 8233 + i32.eq + br_if $case0|0 + local.get $0 + i32.const 8239 + i32.eq + br_if $case0|0 + local.get $0 + i32.const 8287 + i32.eq + br_if $case0|0 + local.get $0 + i32.const 12288 + i32.eq + br_if $case0|0 + local.get $0 + i32.const 65279 + i32.eq + br_if $case0|0 + br $break|0 + end + i32.const 1 + br $__inlined_func$~lib/util/string/isSpace$164 + end + i32.const 0 + end if - local.get $4 - local.get $3 - i32.store offset=16 local.get $2 + i32.const 2 + i32.add + local.tee $2 + i32.load16_u + local.set $0 + local.get $1 + i32.const 1 + i32.sub local.set $1 - br $__inlined_func$~lib/rt/itcms/__renew$350 + br $while-continue|0 end - local.get $3 - local.get $4 - i32.load offset=12 - call $~lib/rt/itcms/__new + end + i32.const 1 + local.set $4 + local.get $0 + i32.const 45 + i32.eq + local.tee $6 + local.get $0 + i32.const 43 + i32.eq + i32.or + if (result i32) + local.get $1 + i32.const 1 + i32.sub local.tee $1 - local.get $2 - local.get $3 - local.get $4 - i32.load offset=16 - local.tee $4 - local.get $3 - local.get $4 - i32.lt_u + i32.eqz + br_if $folding-inner0 + i32.const -1 + i32.const 1 + local.get $6 select - memory.copy + local.set $4 + local.get $2 + i32.const 2 + i32.add + local.tee $2 + i32.load16_u + else + local.get $0 end + i32.const 48 + i32.eq local.get $1 - local.get $2 - i32.ne + i32.const 2 + i32.gt_s + i32.and if - local.get $0 - local.get $1 - i32.store - local.get $0 - local.get $1 - i32.store offset=4 - local.get $0 - local.get $1 - i32.const 0 - call $~lib/rt/itcms/__link - end - local.get $0 - local.get $3 - i32.store offset=8 - end - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.add - global.set $~lib/memory/__stack_pointer - ) - (func $~lib/array/Array<~lib/string/String>#push (param $0 i32) (param $1 i32) - (local $2 i32) - (local $3 i32) - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.sub - global.set $~lib/memory/__stack_pointer - global.get $~lib/memory/__stack_pointer - i32.const 7828 - i32.lt_s - if - i32.const 40624 - i32.const 40672 - i32.const 1 - i32.const 1 - call $~lib/builtins/abort - unreachable - end - global.get $~lib/memory/__stack_pointer - local.tee $2 - i32.const 0 - i32.store - local.get $2 - local.get $0 - i32.store - local.get $0 - local.get $0 - i32.load offset=12 - local.tee $2 - i32.const 1 - i32.add - local.tee $3 - call $~lib/array/ensureCapacity - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store - local.get $0 - i32.load offset=4 - local.get $2 - i32.const 2 - i32.shl - i32.add - local.get $1 - i32.store - local.get $0 - local.get $1 - i32.const 1 - call $~lib/rt/itcms/__link - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store - local.get $0 - local.get $3 - i32.store offset=12 - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.add - global.set $~lib/memory/__stack_pointer - ) - (func $~lib/string/String#split (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - (local $3 i32) - (local $4 i32) - (local $5 i32) - (local $6 i32) - (local $7 i32) - (local $8 i32) - (local $9 i32) - (local $10 i32) - global.get $~lib/memory/__stack_pointer - i32.const 40 - i32.sub - global.set $~lib/memory/__stack_pointer - block $folding-inner3 - block $folding-inner2 - block $folding-inner1 - block $folding-inner0 - global.get $~lib/memory/__stack_pointer - i32.const 7828 - i32.lt_s - br_if $folding-inner0 - global.get $~lib/memory/__stack_pointer - i32.const 0 - i32.const 40 - memory.fill - local.get $2 - i32.eqz - br_if $folding-inner1 - local.get $1 - i32.eqz - if - global.get $~lib/memory/__stack_pointer - i32.const 1 - call $~lib/rt/__newArray - local.tee $2 - i32.store - global.get $~lib/memory/__stack_pointer - local.get $2 - i32.load offset=4 - i32.store offset=4 - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.sub - global.set $~lib/memory/__stack_pointer - global.get $~lib/memory/__stack_pointer - i32.const 7828 - i32.lt_s - br_if $folding-inner0 - global.get $~lib/memory/__stack_pointer - local.tee $1 - i32.const 0 - i32.store - local.get $1 - local.get $2 - i32.store + block $break|1 + block $case2|1 + block $case1|1 local.get $2 - i32.load offset=12 - i32.eqz + i32.load16_u offset=2 + i32.const 32 + i32.or + local.tee $0 + i32.const 98 + i32.ne if - local.get $2 - i32.const 1 - call $~lib/array/ensureCapacity - global.get $~lib/memory/__stack_pointer - local.get $2 - i32.store - local.get $2 - i32.const 1 - i32.store offset=12 + local.get $0 + i32.const 111 + i32.eq + br_if $case1|1 + local.get $0 + i32.const 120 + i32.eq + br_if $case2|1 + br $break|1 end - global.get $~lib/memory/__stack_pointer - local.get $2 - i32.store - local.get $2 - i32.load offset=4 - local.get $0 - i32.store local.get $2 - local.get $0 - i32.const 1 - call $~lib/rt/itcms/__link - global.get $~lib/memory/__stack_pointer i32.const 4 i32.add - global.set $~lib/memory/__stack_pointer - br $folding-inner2 + local.set $2 + local.get $1 + i32.const 2 + i32.sub + local.set $1 + i32.const 2 + local.set $3 + br $break|1 end - global.get $~lib/memory/__stack_pointer - local.tee $6 - local.get $0 - i32.store offset=8 - local.get $0 - i32.const 20 - i32.sub - i32.load offset=16 - i32.const 1 - i32.shr_u - local.set $7 - local.get $6 - local.get $1 - i32.store offset=8 - i32.const 2147483647 local.get $2 - local.get $2 - i32.const 0 - i32.lt_s - select + i32.const 4 + i32.add local.set $2 local.get $1 - i32.const 20 + i32.const 2 i32.sub - i32.load offset=16 - i32.const 1 - i32.shr_u - local.tee $5 + local.set $1 + i32.const 8 + local.set $3 + br $break|1 + end + local.get $2 + i32.const 4 + i32.add + local.set $2 + local.get $1 + i32.const 2 + i32.sub + local.set $1 + i32.const 16 + local.set $3 + end + end + local.get $3 + i32.const 10 + local.get $3 + select + local.set $6 + local.get $1 + i32.const 1 + i32.sub + local.set $7 + loop $while-continue|2 + local.get $1 + local.tee $0 + i32.const 1 + i32.sub + local.set $1 + local.get $0 + if + block $while-break|2 + local.get $2 + i32.load16_u + local.tee $3 + i32.const 48 + i32.sub + local.tee $0 + i32.const 10 + i32.ge_u if - local.get $7 - i32.eqz - if - local.get $6 - i32.const 1 - call $~lib/rt/__newArray - local.tee $2 - i32.store offset=20 - global.get $~lib/memory/__stack_pointer - local.get $2 - i32.store offset=8 - local.get $2 - i32.load offset=4 - i32.const 3456 - i32.store - br $folding-inner2 + local.get $3 + i32.const 65 + i32.sub + i32.const 25 + i32.le_u + if (result i32) + local.get $3 + i32.const 55 + i32.sub + else + local.get $3 + i32.const 87 + i32.sub + local.get $3 + local.get $3 + i32.const 97 + i32.sub + i32.const 25 + i32.le_u + select end - else - local.get $7 - i32.eqz - br_if $folding-inner1 - global.get $~lib/memory/__stack_pointer - local.get $7 - local.get $2 - local.get $2 + local.set $0 + end + local.get $0 + local.get $6 + i32.ge_u + if + local.get $1 local.get $7 - i32.gt_s - select - local.tee $3 - call $~lib/rt/__newArray - local.tee $2 - i32.store offset=12 - global.get $~lib/memory/__stack_pointer - local.get $2 - i32.store offset=8 - local.get $2 - i32.load offset=4 - local.set $4 - i32.const 0 - local.set $1 - loop $for-loop|0 - local.get $1 - local.get $3 - i32.lt_s - if - global.get $~lib/memory/__stack_pointer - i32.const 2 - i32.const 2 - call $~lib/rt/itcms/__new - local.tee $5 - i32.store offset=16 - local.get $5 - local.get $0 - local.get $1 - i32.const 1 - i32.shl - i32.add - i32.load16_u - i32.store16 - local.get $4 - local.get $1 - i32.const 2 - i32.shl - i32.add - local.get $5 - i32.store - local.get $2 - local.get $5 - i32.const 1 - call $~lib/rt/itcms/__link - local.get $1 - i32.const 1 - i32.add - local.set $1 - br $for-loop|0 - end - end - br $folding-inner2 - end - global.get $~lib/memory/__stack_pointer - i32.const 0 - call $~lib/rt/__newArray - local.tee $8 - i32.store offset=24 - loop $while-continue|1 - global.get $~lib/memory/__stack_pointer - local.tee $6 - local.get $0 - i32.store offset=8 - local.get $6 - local.get $1 - i32.store offset=28 - local.get $0 - local.get $1 - local.get $3 - call $~lib/string/String#indexOf - local.tee $9 - i32.const -1 - i32.xor - if - local.get $9 - local.get $3 - i32.sub - local.tee $6 - i32.const 0 - i32.gt_s - if - global.get $~lib/memory/__stack_pointer - local.get $6 - i32.const 1 - i32.shl - local.tee $10 - i32.const 2 - call $~lib/rt/itcms/__new - local.tee $6 - i32.store offset=32 - local.get $6 - local.get $0 - local.get $3 - i32.const 1 - i32.shl - i32.add - local.get $10 - memory.copy - global.get $~lib/memory/__stack_pointer - local.get $8 - i32.store offset=8 - global.get $~lib/memory/__stack_pointer - local.get $6 - i32.store offset=28 - local.get $8 - local.get $6 - call $~lib/array/Array<~lib/string/String>#push - else - global.get $~lib/memory/__stack_pointer - local.tee $3 - local.get $8 - i32.store offset=8 - local.get $3 - i32.const 3456 - i32.store offset=28 - local.get $8 - i32.const 3456 - call $~lib/array/Array<~lib/string/String>#push - end - local.get $4 - i32.const 1 - i32.add - local.tee $4 - local.get $2 - i32.eq - br_if $folding-inner3 - local.get $5 - local.get $9 - i32.add - local.set $3 - br $while-continue|1 - end - end - local.get $3 - i32.eqz - if - global.get $~lib/memory/__stack_pointer - local.tee $1 - local.get $8 - i32.store offset=8 - local.get $1 - local.get $0 - i32.store offset=28 - local.get $8 - local.get $0 - call $~lib/array/Array<~lib/string/String>#push - br $folding-inner3 - end - local.get $7 - local.get $3 - i32.sub - local.tee $1 - i32.const 0 - i32.gt_s - if - global.get $~lib/memory/__stack_pointer - local.get $1 - i32.const 1 - i32.shl - local.tee $1 - i32.const 2 - call $~lib/rt/itcms/__new - local.tee $2 - i32.store offset=36 - local.get $2 - local.get $0 - local.get $3 - i32.const 1 - i32.shl - i32.add - local.get $1 - memory.copy - global.get $~lib/memory/__stack_pointer - local.get $8 - i32.store offset=8 - global.get $~lib/memory/__stack_pointer - local.get $2 - i32.store offset=28 - local.get $8 - local.get $2 - call $~lib/array/Array<~lib/string/String>#push - else - global.get $~lib/memory/__stack_pointer - local.tee $0 - local.get $8 - i32.store offset=8 - local.get $0 - i32.const 3456 - i32.store offset=28 - local.get $8 - i32.const 3456 - call $~lib/array/Array<~lib/string/String>#push + i32.eq + br_if $folding-inner0 + br $while-break|2 end - global.get $~lib/memory/__stack_pointer - i32.const 40 + local.get $5 + local.get $6 + i32.mul + local.get $0 i32.add - global.set $~lib/memory/__stack_pointer - local.get $8 - return + local.set $5 + local.get $2 + i32.const 2 + i32.add + local.set $2 + br $while-continue|2 end - i32.const 40624 - i32.const 40672 - i32.const 1 - i32.const 1 - call $~lib/builtins/abort - unreachable end - i32.const 0 - call $~lib/rt/__newArray - local.set $2 end global.get $~lib/memory/__stack_pointer - i32.const 40 + i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $2 + local.get $4 + local.get $5 + i32.mul return end global.get $~lib/memory/__stack_pointer - i32.const 40 + i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $8 + i32.const 0 ) - (func $~lib/string/String#split@varargs (param $0 i32) (param $1 i32) (result i32) + (func $~lib/array/ensureCapacity (param $0 i32) (param $1 i32) (local $2 i32) (local $3 i32) + (local $4 i32) global.get $~lib/memory/__stack_pointer - i32.const 8 + i32.const 4 i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i64.const 0 - i64.store - block $2of2 - block $1of2 - block $0of2 - block $outOfRange - global.get $~argumentsLength - br_table $0of2 $1of2 $2of2 $outOfRange - end - unreachable - end - i32.const 0 - local.set $1 - end - i32.const 2147483647 - local.set $2 - end - global.get $~lib/memory/__stack_pointer - local.tee $3 - local.get $0 + local.tee $2 + i32.const 0 i32.store - local.get $3 - local.get $1 - i32.store offset=4 + local.get $2 local.get $0 + i32.store local.get $1 - local.get $2 - call $~lib/string/String#split - local.set $0 - global.get $~lib/memory/__stack_pointer - i32.const 8 - i32.add - global.set $~lib/memory/__stack_pointer local.get $0 - ) - (func $~lib/array/Array<~lib/string/String>#get:length (param $0 i32) (result i32) - (local $1 i32) - global.get $~lib/memory/__stack_pointer - i32.const 4 - i32.sub - global.set $~lib/memory/__stack_pointer - global.get $~lib/memory/__stack_pointer - i32.const 7828 - i32.lt_s + i32.load offset=8 + local.tee $2 + i32.const 2 + i32.shr_u + i32.gt_u if - i32.const 40624 - i32.const 40672 - i32.const 1 - i32.const 1 - call $~lib/builtins/abort - unreachable + local.get $1 + i32.const 268435455 + i32.gt_u + if + i32.const 6784 + i32.const 6736 + i32.const 19 + i32.const 48 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + block $__inlined_func$~lib/rt/itcms/__renew$363 + i32.const 1073741820 + local.get $2 + i32.const 1 + i32.shl + local.tee $2 + local.get $2 + i32.const 1073741820 + i32.ge_u + select + local.tee $2 + i32.const 8 + local.get $1 + local.get $1 + i32.const 8 + i32.le_u + select + i32.const 2 + i32.shl + local.tee $1 + local.get $1 + local.get $2 + i32.lt_u + select + local.tee $3 + local.get $0 + i32.load + local.tee $2 + i32.const 20 + i32.sub + local.tee $4 + i32.load + i32.const -4 + i32.and + i32.const 16 + i32.sub + i32.le_u + if + local.get $4 + local.get $3 + i32.store offset=16 + local.get $2 + local.set $1 + br $__inlined_func$~lib/rt/itcms/__renew$363 + end + local.get $3 + local.get $4 + i32.load offset=12 + call $~lib/rt/itcms/__new + local.tee $1 + local.get $2 + local.get $3 + local.get $4 + i32.load offset=16 + local.tee $4 + local.get $3 + local.get $4 + i32.lt_u + select + memory.copy + end + local.get $1 + local.get $2 + i32.ne + if + local.get $0 + local.get $1 + i32.store + local.get $0 + local.get $1 + i32.store offset=4 + local.get $0 + local.get $1 + i32.const 0 + call $~lib/rt/itcms/__link + end + local.get $0 + local.get $3 + i32.store offset=8 end global.get $~lib/memory/__stack_pointer - local.tee $1 - i32.const 0 - i32.store - local.get $1 - local.get $0 - i32.store - local.get $0 - i32.load offset=12 - local.set $0 - local.get $1 i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $0 ) - (func $~lib/array/Array<~lib/string/String>#__get (param $0 i32) (param $1 i32) (result i32) + (func $~lib/array/Array<~lib/string/String>#push (param $0 i32) (param $1 i32) (local $2 i32) + (local $3 i32) global.get $~lib/memory/__stack_pointer - i32.const 8 + i32.const 4 i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -5830,408 +5640,476 @@ end global.get $~lib/memory/__stack_pointer local.tee $2 - i64.const 0 - i64.store + i32.const 0 + i32.store local.get $2 local.get $0 i32.store - local.get $1 + local.get $0 local.get $0 i32.load offset=12 - i32.ge_u - if - i32.const 1392 - i32.const 6736 - i32.const 114 - i32.const 42 - call $~lib/builtins/abort - unreachable - end - global.get $~lib/memory/__stack_pointer local.tee $2 + i32.const 1 + i32.add + local.tee $3 + call $~lib/array/ensureCapacity + global.get $~lib/memory/__stack_pointer local.get $0 i32.store - local.get $2 local.get $0 i32.load offset=4 - local.get $1 + local.get $2 i32.const 2 i32.shl i32.add - i32.load - local.tee $0 - i32.store offset=4 + local.get $1 + i32.store local.get $0 - i32.eqz - if - i32.const 6832 - i32.const 6736 - i32.const 118 - i32.const 40 - call $~lib/builtins/abort - unreachable - end + local.get $1 + i32.const 1 + call $~lib/rt/itcms/__link global.get $~lib/memory/__stack_pointer - i32.const 8 + local.get $0 + i32.store + local.get $0 + local.get $3 + i32.store offset=12 + global.get $~lib/memory/__stack_pointer + i32.const 4 i32.add global.set $~lib/memory/__stack_pointer - local.get $0 ) - (func $~lib/util/string/strtol (param $0 i32) (result i32) - (local $1 i32) - (local $2 i32) + (func $~lib/string/String#split (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) (local $6 i32) (local $7 i32) + (local $8 i32) + (local $9 i32) + (local $10 i32) global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 40 i32.sub global.set $~lib/memory/__stack_pointer - global.get $~lib/memory/__stack_pointer - i32.const 7828 - i32.lt_s - if - i32.const 40624 - i32.const 40672 - i32.const 1 - i32.const 1 - call $~lib/builtins/abort - unreachable - end - global.get $~lib/memory/__stack_pointer - local.tee $1 - i32.const 0 - i32.store - local.get $1 - local.get $0 - i32.store - block $folding-inner0 - local.get $0 - i32.const 20 - i32.sub - i32.load offset=16 - i32.const 1 - i32.shr_u - local.tee $1 - i32.eqz - br_if $folding-inner0 - local.get $0 - local.tee $2 - i32.load16_u - local.set $0 - loop $while-continue|0 - block $__inlined_func$~lib/util/string/isSpace$183 (result i32) - local.get $0 - i32.const 128 - i32.or - i32.const 160 - i32.eq - local.get $0 - i32.const 9 - i32.sub - i32.const 4 - i32.le_u - i32.or - local.get $0 - i32.const 5760 - i32.lt_u - br_if $__inlined_func$~lib/util/string/isSpace$183 - drop - i32.const 1 - local.get $0 - i32.const -8192 - i32.add - i32.const 10 - i32.le_u - br_if $__inlined_func$~lib/util/string/isSpace$183 - drop - block $break|0 - block $case0|0 - local.get $0 - i32.const 5760 - i32.eq - br_if $case0|0 - local.get $0 - i32.const 8232 - i32.eq - br_if $case0|0 - local.get $0 - i32.const 8233 - i32.eq - br_if $case0|0 - local.get $0 - i32.const 8239 - i32.eq - br_if $case0|0 - local.get $0 - i32.const 8287 - i32.eq - br_if $case0|0 - local.get $0 - i32.const 12288 - i32.eq - br_if $case0|0 - local.get $0 - i32.const 65279 - i32.eq - br_if $case0|0 - br $break|0 - end - i32.const 1 - br $__inlined_func$~lib/util/string/isSpace$183 - end - i32.const 0 - end - if - local.get $2 - i32.const 2 - i32.add - local.tee $2 - i32.load16_u - local.set $0 - local.get $1 - i32.const 1 - i32.sub - local.set $1 - br $while-continue|0 - end - end - i32.const 1 - local.set $4 - local.get $0 - i32.const 45 - i32.eq - local.tee $6 - local.get $0 - i32.const 43 - i32.eq - i32.or - if (result i32) - local.get $1 - i32.const 1 - i32.sub - local.tee $1 - i32.eqz - br_if $folding-inner0 - i32.const -1 - i32.const 1 - local.get $6 - select - local.set $4 - local.get $2 - i32.const 2 - i32.add - local.tee $2 - i32.load16_u - else - local.get $0 - end - i32.const 48 - i32.eq - local.get $1 - i32.const 2 - i32.gt_s - i32.and - if - block $break|1 - block $case2|1 - block $case1|1 + block $folding-inner3 + block $folding-inner2 + block $folding-inner1 + block $folding-inner0 + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s + br_if $folding-inner0 + global.get $~lib/memory/__stack_pointer + i32.const 0 + i32.const 40 + memory.fill + local.get $2 + i32.eqz + br_if $folding-inner1 + local.get $1 + i32.eqz + if + global.get $~lib/memory/__stack_pointer + i32.const 1 + call $~lib/rt/__newArray + local.tee $2 + i32.store + global.get $~lib/memory/__stack_pointer local.get $2 - i32.load16_u offset=2 - i32.const 32 - i32.or - local.tee $0 - i32.const 98 - i32.ne + i32.load offset=4 + i32.store offset=4 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.sub + global.set $~lib/memory/__stack_pointer + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s + br_if $folding-inner0 + global.get $~lib/memory/__stack_pointer + local.tee $1 + i32.const 0 + i32.store + local.get $1 + local.get $2 + i32.store + local.get $2 + i32.load offset=12 + i32.eqz if - local.get $0 - i32.const 111 - i32.eq - br_if $case1|1 - local.get $0 - i32.const 120 - i32.eq - br_if $case2|1 - br $break|1 + local.get $2 + i32.const 1 + call $~lib/array/ensureCapacity + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store + local.get $2 + i32.const 1 + i32.store offset=12 end + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store + local.get $2 + i32.load offset=4 + local.get $0 + i32.store local.get $2 + local.get $0 + i32.const 1 + call $~lib/rt/itcms/__link + global.get $~lib/memory/__stack_pointer i32.const 4 i32.add - local.set $2 - local.get $1 - i32.const 2 - i32.sub - local.set $1 - i32.const 2 - local.set $3 - br $break|1 + global.set $~lib/memory/__stack_pointer + br $folding-inner2 end + global.get $~lib/memory/__stack_pointer + local.tee $6 + local.get $0 + i32.store offset=8 + local.get $0 + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + local.set $7 + local.get $6 + local.get $1 + i32.store offset=8 + i32.const 2147483647 local.get $2 - i32.const 4 - i32.add + local.get $2 + i32.const 0 + i32.lt_s + select local.set $2 local.get $1 - i32.const 2 - i32.sub - local.set $1 - i32.const 8 - local.set $3 - br $break|1 - end - local.get $2 - i32.const 4 - i32.add - local.set $2 - local.get $1 - i32.const 2 - i32.sub - local.set $1 - i32.const 16 - local.set $3 - end - end - local.get $3 - i32.const 10 - local.get $3 - select - local.set $6 - local.get $1 - i32.const 1 - i32.sub - local.set $7 - loop $while-continue|2 - local.get $1 - local.tee $0 - i32.const 1 - i32.sub - local.set $1 - local.get $0 - if - block $while-break|2 - local.get $2 - i32.load16_u - local.tee $3 - i32.const 48 + i32.const 20 i32.sub - local.tee $0 - i32.const 10 - i32.ge_u - if - local.get $3 - i32.const 65 - i32.sub - i32.const 25 - i32.le_u - if (result i32) - local.get $3 - i32.const 55 - i32.sub - else - local.get $3 - i32.const 87 - i32.sub - local.get $3 - local.get $3 - i32.const 97 - i32.sub - i32.const 25 - i32.le_u - select - end - local.set $0 - end - local.get $0 - local.get $6 - i32.ge_u + i32.load offset=16 + i32.const 1 + i32.shr_u + local.tee $5 if - local.get $1 local.get $7 - i32.eq - br_if $folding-inner0 - br $while-break|2 + i32.eqz + if + local.get $6 + i32.const 1 + call $~lib/rt/__newArray + local.tee $2 + i32.store offset=20 + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store offset=8 + local.get $2 + i32.load offset=4 + i32.const 3456 + i32.store + br $folding-inner2 + end + else + local.get $7 + i32.eqz + br_if $folding-inner1 + global.get $~lib/memory/__stack_pointer + local.get $7 + local.get $2 + local.get $2 + local.get $7 + i32.gt_s + select + local.tee $3 + call $~lib/rt/__newArray + local.tee $2 + i32.store offset=12 + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store offset=8 + local.get $2 + i32.load offset=4 + local.set $4 + i32.const 0 + local.set $1 + loop $for-loop|0 + local.get $1 + local.get $3 + i32.lt_s + if + global.get $~lib/memory/__stack_pointer + i32.const 2 + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $5 + i32.store offset=16 + local.get $5 + local.get $0 + local.get $1 + i32.const 1 + i32.shl + i32.add + i32.load16_u + i32.store16 + local.get $4 + local.get $1 + i32.const 2 + i32.shl + i32.add + local.get $5 + i32.store + local.get $2 + local.get $5 + i32.const 1 + call $~lib/rt/itcms/__link + local.get $1 + i32.const 1 + i32.add + local.set $1 + br $for-loop|0 + end + end + br $folding-inner2 end - local.get $5 - local.get $6 - i32.mul - local.get $0 - i32.add - local.set $5 - local.get $2 - i32.const 2 + global.get $~lib/memory/__stack_pointer + i32.const 0 + call $~lib/rt/__newArray + local.tee $8 + i32.store offset=24 + loop $while-continue|1 + global.get $~lib/memory/__stack_pointer + local.tee $6 + local.get $0 + i32.store offset=8 + local.get $6 + local.get $1 + i32.store offset=28 + local.get $0 + local.get $1 + local.get $3 + call $~lib/string/String#indexOf + local.tee $9 + i32.const -1 + i32.xor + if + local.get $9 + local.get $3 + i32.sub + local.tee $6 + i32.const 0 + i32.gt_s + if + global.get $~lib/memory/__stack_pointer + local.get $6 + i32.const 1 + i32.shl + local.tee $10 + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $6 + i32.store offset=32 + local.get $6 + local.get $0 + local.get $3 + i32.const 1 + i32.shl + i32.add + local.get $10 + memory.copy + global.get $~lib/memory/__stack_pointer + local.get $8 + i32.store offset=8 + global.get $~lib/memory/__stack_pointer + local.get $6 + i32.store offset=28 + local.get $8 + local.get $6 + call $~lib/array/Array<~lib/string/String>#push + else + global.get $~lib/memory/__stack_pointer + local.tee $3 + local.get $8 + i32.store offset=8 + local.get $3 + i32.const 3456 + i32.store offset=28 + local.get $8 + i32.const 3456 + call $~lib/array/Array<~lib/string/String>#push + end + local.get $4 + i32.const 1 + i32.add + local.tee $4 + local.get $2 + i32.eq + br_if $folding-inner3 + local.get $5 + local.get $9 + i32.add + local.set $3 + br $while-continue|1 + end + end + local.get $3 + i32.eqz + if + global.get $~lib/memory/__stack_pointer + local.tee $1 + local.get $8 + i32.store offset=8 + local.get $1 + local.get $0 + i32.store offset=28 + local.get $8 + local.get $0 + call $~lib/array/Array<~lib/string/String>#push + br $folding-inner3 + end + local.get $7 + local.get $3 + i32.sub + local.tee $1 + i32.const 0 + i32.gt_s + if + global.get $~lib/memory/__stack_pointer + local.get $1 + i32.const 1 + i32.shl + local.tee $1 + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $2 + i32.store offset=36 + local.get $2 + local.get $0 + local.get $3 + i32.const 1 + i32.shl + i32.add + local.get $1 + memory.copy + global.get $~lib/memory/__stack_pointer + local.get $8 + i32.store offset=8 + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store offset=28 + local.get $8 + local.get $2 + call $~lib/array/Array<~lib/string/String>#push + else + global.get $~lib/memory/__stack_pointer + local.tee $0 + local.get $8 + i32.store offset=8 + local.get $0 + i32.const 3456 + i32.store offset=28 + local.get $8 + i32.const 3456 + call $~lib/array/Array<~lib/string/String>#push + end + global.get $~lib/memory/__stack_pointer + i32.const 40 i32.add - local.set $2 - br $while-continue|2 + global.set $~lib/memory/__stack_pointer + local.get $8 + return end + i32.const 41264 + i32.const 41312 + i32.const 1 + i32.const 1 + call $~lib/builtins/abort + unreachable end + i32.const 0 + call $~lib/rt/__newArray + local.set $2 end global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 40 i32.add global.set $~lib/memory/__stack_pointer - local.get $4 - local.get $5 - i32.mul + local.get $2 return end global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 40 i32.add global.set $~lib/memory/__stack_pointer - i32.const 0 + local.get $8 ) - (func $~lib/number/I32.parseInt (param $0 i32) (result i32) - (local $1 i32) + (func $~lib/string/String#split@varargs (param $0 i32) (param $1 i32) (result i32) + (local $2 i32) + (local $3 i32) global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 8 i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - local.tee $1 - i32.const 0 - i32.store - local.get $1 + i64.const 0 + i64.store + block $2of2 + block $1of2 + block $0of2 + block $outOfRange + global.get $~argumentsLength + br_table $0of2 $1of2 $2of2 $outOfRange + end + unreachable + end + i32.const 0 + local.set $1 + end + i32.const 2147483647 + local.set $2 + end + global.get $~lib/memory/__stack_pointer + local.tee $3 local.get $0 i32.store + local.get $3 + local.get $1 + i32.store offset=4 local.get $0 - call $~lib/util/string/strtol + local.get $1 + local.get $2 + call $~lib/string/String#split local.set $0 global.get $~lib/memory/__stack_pointer - i32.const 4 + i32.const 8 i32.add global.set $~lib/memory/__stack_pointer local.get $0 ) - (func $~lib/date/Date.fromString (param $0 i32) (result i32) + (func $~lib/array/Array<~lib/string/String>#get:length (param $0 i32) (result i32) (local $1 i32) - (local $2 i32) - (local $3 i32) - (local $4 i32) - (local $5 i32) - (local $6 i32) - (local $7 i32) global.get $~lib/memory/__stack_pointer - i32.const 28 + i32.const 4 i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -6240,282 +6118,830 @@ global.get $~lib/memory/__stack_pointer local.tee $1 i32.const 0 - i32.const 28 - memory.fill + i32.store local.get $1 local.get $0 i32.store local.get $0 - i32.const 20 + i32.load offset=12 + local.set $0 + local.get $1 + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $0 + ) + (func $~lib/array/Array<~lib/string/String>#__get (param $0 i32) (param $1 i32) (result i32) + (local $2 i32) + global.get $~lib/memory/__stack_pointer + i32.const 8 i32.sub - i32.load offset=16 - i32.const 1 - i32.shr_u - i32.eqz + global.set $~lib/memory/__stack_pointer + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s if - i32.const 1056 - i32.const 1104 - i32.const 50 - i32.const 33 + i32.const 41264 + i32.const 41312 + i32.const 1 + i32.const 1 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - local.tee $1 + local.tee $2 + i64.const 0 + i64.store + local.get $2 local.get $0 - i32.store offset=4 + i32.store local.get $1 local.get $0 + i32.load offset=12 + i32.ge_u + if + i32.const 1392 + i32.const 6736 + i32.const 114 + i32.const 42 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $2 + local.get $0 i32.store + local.get $2 + local.get $0 + i32.load offset=4 local.get $1 - i32.const 3488 - i32.store offset=8 + i32.const 2 + i32.shl + i32.add + i32.load + local.tee $0 + i32.store offset=4 local.get $0 - local.tee $1 - i32.const 3488 - i32.const 0 - call $~lib/string/String#indexOf - local.tee $6 - i32.const -1 - i32.xor + i32.eqz if + i32.const 6832 + i32.const 6736 + i32.const 118 + i32.const 40 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $0 + ) + (func $~lib/date/Date.fromString (param $0 i32) (result i32) + (local $1 i32) + (local $2 i32) + (local $3 i32) + (local $4 i32) + (local $5 i32) + (local $6 i32) + (local $7 i32) + (local $8 i32) + (local $9 i32) + (local $10 i32) + (local $11 i32) + (local $12 i32) + global.get $~lib/memory/__stack_pointer + i32.const 76 + i32.sub + global.set $~lib/memory/__stack_pointer + block $folding-inner0 + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s + br_if $folding-inner0 global.get $~lib/memory/__stack_pointer + local.tee $1 + i32.const 0 + i32.const 76 + memory.fill + local.get $1 local.get $0 i32.store - global.get $~lib/memory/__stack_pointer local.get $0 - i32.const 0 - local.get $6 - call $~lib/string/String#substring + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + i32.eqz + if + i32.const 1056 + i32.const 1104 + i32.const 50 + i32.const 33 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer local.tee $1 + local.get $0 i32.store offset=4 - global.get $~lib/memory/__stack_pointer + local.get $1 local.get $0 i32.store - i32.const 1 - global.set $~argumentsLength + local.get $1 + i32.const 3488 + i32.store offset=8 + local.get $0 + local.tee $1 + i32.const 3488 + i32.const 0 + call $~lib/string/String#indexOf + local.tee $2 + i32.const -1 + i32.xor + if + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.const 0 + local.get $2 + call $~lib/string/String#substring + local.tee $1 + i32.store offset=4 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + i32.const 1 + global.set $~argumentsLength + global.get $~lib/memory/__stack_pointer + local.get $0 + local.get $2 + i32.const 1 + i32.add + call $~lib/string/String#substring@varargs + local.tee $0 + i32.store offset=12 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + local.get $0 + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + i32.const 1 + i32.sub + local.set $3 + loop $for-loop|0 + local.get $3 + i32.const 0 + i32.ge_s + if + global.get $~lib/memory/__stack_pointer + local.tee $2 + local.get $0 + i32.store + local.get $2 + i32.const 4 + i32.sub + global.set $~lib/memory/__stack_pointer + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s + br_if $folding-inner0 + global.get $~lib/memory/__stack_pointer + local.tee $2 + i32.const 0 + i32.store + local.get $2 + local.get $0 + i32.store + block $__inlined_func$~lib/string/String#charCodeAt$386 + local.get $3 + local.get $0 + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + i32.ge_u + if + local.get $2 + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + i32.const -1 + local.set $2 + br $__inlined_func$~lib/string/String#charCodeAt$386 + end + local.get $0 + local.get $3 + i32.const 1 + i32.shl + i32.add + i32.load16_u + local.set $2 + global.get $~lib/memory/__stack_pointer + i32.const 4 + i32.add + global.set $~lib/memory/__stack_pointer + end + block $for-break0 + local.get $2 + i32.const 90 + i32.eq + br_if $for-break0 + local.get $2 + i32.const 45 + i32.eq + local.get $2 + i32.const 43 + i32.eq + i32.or + if + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + local.get $3 + local.get $0 + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + i32.const 1 + i32.sub + i32.eq + if + i32.const 1056 + i32.const 1104 + i32.const 74 + i32.const 13 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $4 + local.get $0 + i32.store + local.get $4 + i32.const 3520 + i32.store offset=8 + i32.const 0 + local.get $0 + i32.const 3520 + local.get $3 + i32.const 1 + i32.add + local.tee $4 + call $~lib/string/String#indexOf + local.tee $7 + i32.const -1 + i32.xor + if (result i32) + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + global.get $~lib/memory/__stack_pointer + local.get $0 + local.get $4 + local.get $7 + call $~lib/string/String#substring + local.tee $4 + i32.store offset=16 + global.get $~lib/memory/__stack_pointer + local.get $4 + i32.store + local.get $4 + call $~lib/util/string/strtol + local.set $4 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + i32.const 1 + global.set $~argumentsLength + global.get $~lib/memory/__stack_pointer + local.get $0 + local.get $7 + i32.const 1 + i32.add + call $~lib/string/String#substring@varargs + local.tee $7 + i32.store offset=20 + global.get $~lib/memory/__stack_pointer + local.get $7 + i32.store + local.get $7 + call $~lib/util/string/strtol + local.get $4 + i32.const 60 + i32.mul + i32.add + i32.const 60000 + i32.mul + else + global.get $~lib/memory/__stack_pointer + local.tee $4 + local.get $0 + i32.store + i32.const 1 + global.set $~argumentsLength + local.get $4 + local.get $0 + local.get $3 + i32.const 1 + i32.add + call $~lib/string/String#substring@varargs + local.tee $4 + i32.store offset=24 + global.get $~lib/memory/__stack_pointer + local.get $4 + i32.store + local.get $4 + call $~lib/util/string/strtol + i32.const 3600000 + i32.mul + end + local.tee $4 + i32.sub + local.get $4 + local.get $2 + i32.const 45 + i32.eq + select + local.set $4 + br $for-break0 + end + local.get $3 + i32.const 1 + i32.sub + local.set $3 + br $for-loop|0 + end + global.get $~lib/memory/__stack_pointer + local.tee $2 + local.get $0 + i32.store + local.get $2 + local.get $0 + i32.const 0 + local.get $3 + call $~lib/string/String#substring + local.tee $0 + i32.store offset=12 + end + end + global.get $~lib/memory/__stack_pointer + local.tee $2 + local.get $0 + i32.store + local.get $2 + i32.const 3520 + i32.store offset=8 + i32.const 1 + global.set $~argumentsLength + local.get $2 + local.get $0 + i32.const 3520 + call $~lib/string/String#split@varargs + local.tee $0 + i32.store offset=28 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + local.get $0 + call $~lib/array/Array<~lib/string/String>#get:length + local.tee $2 + i32.const 1 + i32.le_s + if + i32.const 1056 + i32.const 1104 + i32.const 96 + i32.const 21 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $3 + local.get $0 + i32.store + local.get $3 + local.get $0 + i32.const 0 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $3 + i32.store offset=32 + global.get $~lib/memory/__stack_pointer + local.get $3 + i32.store + local.get $3 + call $~lib/util/string/strtol + local.set $3 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.const 1 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $7 + i32.store offset=36 + global.get $~lib/memory/__stack_pointer + local.get $7 + i32.store + local.get $7 + call $~lib/util/string/strtol + local.set $7 + local.get $2 + i32.const 3 + i32.ge_s + if + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.const 2 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $2 + i32.store offset=40 + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store + global.get $~lib/memory/__stack_pointer + i32.const 3552 + i32.store offset=8 + local.get $2 + i32.const 3552 + i32.const 0 + call $~lib/string/String#indexOf + local.tee $0 + i32.const -1 + i32.xor + if + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.const 0 + local.get $0 + call $~lib/string/String#substring + local.tee $6 + i32.store offset=44 + global.get $~lib/memory/__stack_pointer + local.get $6 + i32.store + local.get $6 + call $~lib/util/string/strtol + local.set $6 + global.get $~lib/memory/__stack_pointer + local.set $9 + block $__inlined_func$~lib/string/String#substr$387 (result i32) + global.get $~lib/memory/__stack_pointer + local.get $2 + i32.store offset=48 + local.get $0 + i32.const 1 + i32.add + local.set $0 + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.sub + global.set $~lib/memory/__stack_pointer + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s + br_if $folding-inner0 + global.get $~lib/memory/__stack_pointer + local.tee $8 + i64.const 0 + i64.store + local.get $8 + local.get $2 + i32.store + i32.const 3 + local.get $2 + i32.const 20 + i32.sub + i32.load offset=16 + i32.const 1 + i32.shr_u + local.tee $8 + local.get $0 + i32.const 0 + i32.lt_s + if + local.get $0 + local.get $8 + i32.add + local.tee $0 + i32.const 0 + local.get $0 + i32.const 0 + i32.gt_s + select + local.set $0 + end + local.get $0 + i32.sub + local.tee $8 + local.get $8 + i32.const 3 + i32.gt_s + select + i32.const 1 + i32.shl + local.tee $8 + i32.const 0 + i32.le_s + if + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + i32.const 3456 + br $__inlined_func$~lib/string/String#substr$387 + end + global.get $~lib/memory/__stack_pointer + local.get $8 + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $10 + i32.store offset=4 + local.get $10 + local.get $2 + local.get $0 + i32.const 1 + i32.shl + i32.add + local.get $8 + memory.copy + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $10 + end + local.set $0 + global.get $~lib/memory/__stack_pointer + local.tee $2 + local.get $0 + i32.store + local.get $2 + i32.const 1872 + i32.store offset=8 + local.get $2 + i32.const 8 + i32.sub + global.set $~lib/memory/__stack_pointer + global.get $~lib/memory/__stack_pointer + i32.const 8468 + i32.lt_s + br_if $folding-inner0 + global.get $~lib/memory/__stack_pointer + local.tee $2 + i64.const 0 + i64.store + local.get $2 + local.get $0 + i32.store + local.get $0 + i32.const 20 + i32.sub + i32.load offset=16 + i32.const -2 + i32.and + local.set $10 + local.get $2 + i32.const 1872 + i32.store + block $__inlined_func$~lib/string/String#padEnd$388 + i32.const 1868 + i32.load + i32.const -2 + i32.and + local.tee $8 + i32.eqz + local.get $10 + i32.const 6 + i32.gt_u + i32.or + if + local.get $2 + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + br $__inlined_func$~lib/string/String#padEnd$388 + end + global.get $~lib/memory/__stack_pointer + i32.const 6 + i32.const 2 + call $~lib/rt/itcms/__new + local.tee $2 + i32.store offset=4 + local.get $2 + local.get $0 + local.get $10 + memory.copy + i32.const 6 + local.get $10 + i32.sub + local.tee $0 + local.get $8 + i32.gt_u + if + local.get $0 + local.get $0 + i32.const 2 + i32.sub + local.get $8 + i32.div_u + local.get $8 + i32.mul + local.tee $0 + i32.sub + local.set $11 + local.get $2 + local.get $10 + i32.add + local.set $12 + loop $while-continue|0 + local.get $0 + local.get $5 + i32.gt_u + if + local.get $5 + local.get $12 + i32.add + i32.const 1872 + local.get $8 + memory.copy + local.get $5 + local.get $8 + i32.add + local.set $5 + br $while-continue|0 + end + end + local.get $2 + local.get $10 + i32.add + local.get $0 + i32.add + i32.const 1872 + local.get $11 + memory.copy + else + local.get $2 + local.get $10 + i32.add + i32.const 1872 + local.get $0 + memory.copy + end + global.get $~lib/memory/__stack_pointer + i32.const 8 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $2 + local.set $0 + end + local.get $9 + local.get $0 + i32.store offset=52 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store + local.get $0 + call $~lib/util/string/strtol + local.set $5 + else + global.get $~lib/memory/__stack_pointer + local.tee $0 + local.get $2 + i32.store offset=56 + local.get $0 + local.get $2 + i32.store + local.get $2 + call $~lib/util/string/strtol + local.set $6 + end + end + end global.get $~lib/memory/__stack_pointer - local.get $0 - local.get $6 - i32.const 1 - i32.add - call $~lib/string/String#substring@varargs local.tee $0 - i32.store offset=12 - global.get $~lib/memory/__stack_pointer - local.get $0 + local.get $1 i32.store - global.get $~lib/memory/__stack_pointer - i32.const 3520 + local.get $0 + i32.const 1616 i32.store offset=8 i32.const 1 global.set $~argumentsLength - global.get $~lib/memory/__stack_pointer local.get $0 - i32.const 3520 + local.get $1 + i32.const 1616 call $~lib/string/String#split@varargs local.tee $0 - i32.store offset=16 + i32.store offset=60 global.get $~lib/memory/__stack_pointer local.get $0 i32.store - local.get $0 - call $~lib/array/Array<~lib/string/String>#get:length - local.tee $6 - i32.const 1 - i32.le_s - if - i32.const 1056 - i32.const 1104 - i32.const 67 - i32.const 21 - call $~lib/builtins/abort - unreachable - end global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=8 - local.get $0 i32.const 0 call $~lib/array/Array<~lib/string/String>#__get - local.set $3 + local.tee $1 + i32.store offset=64 global.get $~lib/memory/__stack_pointer - local.get $3 + local.get $1 i32.store - local.get $3 - call $~lib/number/I32.parseInt - local.set $3 - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store offset=8 - local.get $0 + local.get $1 + call $~lib/util/string/strtol + local.set $2 i32.const 1 - call $~lib/array/Array<~lib/string/String>#__get - local.set $4 + local.set $1 global.get $~lib/memory/__stack_pointer - local.get $4 + local.get $0 i32.store - local.get $4 - call $~lib/number/I32.parseInt - local.set $4 - local.get $6 - i32.const 3 + local.get $0 + call $~lib/array/Array<~lib/string/String>#get:length + local.tee $8 + i32.const 2 i32.ge_s - if + if (result i32) global.get $~lib/memory/__stack_pointer local.get $0 i32.store global.get $~lib/memory/__stack_pointer local.get $0 - i32.const 2 + i32.const 1 call $~lib/array/Array<~lib/string/String>#__get - local.tee $0 - i32.store offset=20 + local.tee $1 + i32.store offset=68 global.get $~lib/memory/__stack_pointer - local.get $0 + local.get $1 i32.store - global.get $~lib/memory/__stack_pointer - i32.const 3552 - i32.store offset=8 - local.get $0 - i32.const 3552 - i32.const 0 - call $~lib/string/String#indexOf - local.tee $6 - i32.const -1 - i32.xor - if + local.get $1 + call $~lib/util/string/strtol + local.set $1 + local.get $8 + i32.const 3 + i32.ge_s + if (result i32) global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=8 - local.get $0 - i32.const 0 - local.get $6 - call $~lib/string/String#substring - local.set $2 - global.get $~lib/memory/__stack_pointer - local.get $2 i32.store - local.get $2 - call $~lib/number/I32.parseInt - local.set $2 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=8 - i32.const 1 - global.set $~argumentsLength - local.get $0 - local.get $6 - i32.const 1 - i32.add - call $~lib/string/String#substring@varargs - local.set $0 + i32.const 2 + call $~lib/array/Array<~lib/string/String>#__get + local.tee $0 + i32.store offset=72 global.get $~lib/memory/__stack_pointer local.get $0 i32.store local.get $0 - call $~lib/number/I32.parseInt - local.set $5 + call $~lib/util/string/strtol else - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store - local.get $0 - call $~lib/number/I32.parseInt - local.set $2 + i32.const 1 end - end - end - global.get $~lib/memory/__stack_pointer - local.tee $0 - local.get $1 - i32.store - local.get $0 - i32.const 1616 - i32.store offset=8 - i32.const 1 - global.set $~argumentsLength - local.get $0 - local.get $1 - i32.const 1616 - call $~lib/string/String#split@varargs - local.tee $0 - i32.store offset=24 - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store offset=8 - local.get $0 - i32.const 0 - call $~lib/array/Array<~lib/string/String>#__get - local.set $1 - global.get $~lib/memory/__stack_pointer - local.get $1 - i32.store - local.get $1 - call $~lib/number/I32.parseInt - local.set $7 - i32.const 1 - local.set $1 - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store - local.get $0 - call $~lib/array/Array<~lib/string/String>#get:length - local.tee $6 - i32.const 2 - i32.ge_s - if (result i32) - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store offset=8 - local.get $0 - i32.const 1 - call $~lib/array/Array<~lib/string/String>#__get - local.set $1 - global.get $~lib/memory/__stack_pointer - local.get $1 - i32.store - local.get $1 - call $~lib/number/I32.parseInt - local.set $1 - local.get $6 - i32.const 3 - i32.ge_s - if (result i32) - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store offset=8 - local.get $0 - i32.const 2 - call $~lib/array/Array<~lib/string/String>#__get - local.set $0 - global.get $~lib/memory/__stack_pointer - local.get $0 - i32.store - local.get $0 - call $~lib/number/I32.parseInt else i32.const 1 end - else - i32.const 1 + local.set $0 + local.get $2 + local.get $1 + local.get $0 + local.get $3 + local.get $7 + local.get $6 + local.get $5 + call $~lib/date/epochMillis + local.get $4 + i64.extend_i32_s + i64.sub + call $~lib/date/Date#constructor + local.set $0 + global.get $~lib/memory/__stack_pointer + i32.const 76 + i32.add + global.set $~lib/memory/__stack_pointer + local.get $0 + return end - local.set $0 - local.get $7 - local.get $1 - local.get $0 - local.get $3 - local.get $4 - local.get $2 - local.get $5 - call $~lib/date/epochMillis - call $~lib/date/Date#constructor - local.set $0 - global.get $~lib/memory/__stack_pointer - i32.const 28 - i32.add - global.set $~lib/memory/__stack_pointer - local.get $0 + i32.const 41264 + i32.const 41312 + i32.const 1 + i32.const 1 + call $~lib/builtins/abort + unreachable ) (func $start:std/date (local $0 i32) @@ -6523,15 +6949,15 @@ (local $2 i32) (local $3 i32) global.get $~lib/memory/__stack_pointer - i32.const 408 + i32.const 440 i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort @@ -6539,7 +6965,7 @@ end global.get $~lib/memory/__stack_pointer i32.const 0 - i32.const 408 + i32.const 440 memory.fill block $folding-inner0 i32.const 1970 @@ -6734,7 +7160,7 @@ memory.size i32.const 16 i32.shl - i32.const 40596 + i32.const 41236 i32.sub i32.const 1 i32.shr_u @@ -9723,22 +10149,22 @@ i32.store offset=8 local.get $0 i64.load offset=16 - i64.const -62167219200000 + i64.const 192141296456 i64.ne if i32.const 0 i32.const 1152 - i32.const 310 + i32.const 311 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer local.tee $0 - i32.const 7312 + i32.const 7360 i32.store offset=8 local.get $0 - i32.const 7312 + i32.const 7360 call $~lib/date/Date.fromString local.tee $0 i32.store offset=292 @@ -9750,22 +10176,22 @@ i32.store offset=8 local.get $0 i64.load offset=16 - i64.const -62135596800000 + i64.const 192092696456 i64.ne if i32.const 0 i32.const 1152 - i32.const 313 + i32.const 315 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer local.tee $0 - i32.const 7344 + i32.const 7440 i32.store offset=8 local.get $0 - i32.const 7344 + i32.const 7440 call $~lib/date/Date.fromString local.tee $0 i32.store offset=292 @@ -9777,22 +10203,22 @@ i32.store offset=8 local.get $0 i64.load offset=16 - i64.const 189302400000 + i64.const 192112496450 i64.ne if i32.const 0 i32.const 1152 - i32.const 316 + i32.const 319 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer local.tee $0 - i32.const 7376 + i32.const 7504 i32.store offset=8 local.get $0 - i32.const 7376 + i32.const 7504 call $~lib/date/Date.fromString local.tee $0 i32.store offset=292 @@ -9804,12 +10230,228 @@ i32.store offset=8 local.get $0 i64.load offset=16 + i64.const 192112496450 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 323 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7584 + i32.store offset=8 + local.get $0 + i32.const 7584 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=336 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const 192112496450 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 327 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7664 + i32.store offset=8 + local.get $0 + i32.const 7664 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=340 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const 192112496456 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 331 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7744 + i32.store offset=8 + local.get $0 + i32.const 7744 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=344 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const 192112496456 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 335 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7824 + i32.store offset=8 + local.get $0 + i32.const 7824 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=348 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const 192112496456 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 339 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7920 + i32.store offset=8 + local.get $0 + i32.const 7920 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=352 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const -62167219200000 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 342 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7952 + i32.store offset=8 + local.get $0 + i32.const 7952 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=356 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const -62135596800000 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 345 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 7984 + i32.store offset=8 + local.get $0 + i32.const 7984 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=360 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 + i64.const 189302400000 + i64.ne + if + i32.const 0 + i32.const 1152 + i32.const 348 + i32.const 3 + call $~lib/builtins/abort + unreachable + end + global.get $~lib/memory/__stack_pointer + local.tee $0 + i32.const 8016 + i32.store offset=8 + local.get $0 + i32.const 8016 + call $~lib/date/Date.fromString + local.tee $0 + i32.store offset=292 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=364 + global.get $~lib/memory/__stack_pointer + local.get $0 + i32.store offset=8 + local.get $0 + i64.load offset=16 i64.const 191980800000 i64.ne if i32.const 0 i32.const 1152 - i32.const 319 + i32.const 351 i32.const 3 call $~lib/builtins/abort unreachable @@ -9825,7 +10467,7 @@ i32.store offset=292 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=336 + i32.store offset=368 global.get $~lib/memory/__stack_pointer local.get $0 i32.store offset=8 @@ -9836,23 +10478,23 @@ if i32.const 0 i32.const 1152 - i32.const 322 + i32.const 354 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer local.tee $0 - i32.const 7424 + i32.const 8064 i32.store offset=8 local.get $0 - i32.const 7424 + i32.const 8064 call $~lib/date/Date.fromString local.tee $0 i32.store offset=292 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=340 + i32.store offset=372 global.get $~lib/memory/__stack_pointer local.get $0 i32.store offset=8 @@ -9863,7 +10505,7 @@ if i32.const 0 i32.const 1152 - i32.const 325 + i32.const 357 i32.const 3 call $~lib/builtins/abort unreachable @@ -9879,7 +10521,7 @@ i32.store offset=292 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=344 + i32.store offset=376 global.get $~lib/memory/__stack_pointer local.get $0 i32.store offset=8 @@ -9890,7 +10532,7 @@ if i32.const 0 i32.const 1152 - i32.const 328 + i32.const 360 i32.const 3 call $~lib/builtins/abort unreachable @@ -9899,15 +10541,15 @@ i64.const -8640000000000000 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=348 + i32.store offset=380 global.get $~lib/memory/__stack_pointer i64.const 8640000000000000 call $~lib/date/Date#constructor local.tee $2 - i32.store offset=352 + i32.store offset=384 global.get $~lib/memory/__stack_pointer local.get $0 - i32.store offset=356 + i32.store offset=388 global.get $~lib/memory/__stack_pointer local.get $0 i32.store offset=8 @@ -9918,7 +10560,7 @@ if i32.const 0 i32.const 1152 - i32.const 346 + i32.const 378 i32.const 3 call $~lib/builtins/abort unreachable @@ -9926,7 +10568,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $2 - i32.store offset=360 + i32.store offset=392 local.get $3 local.get $2 i32.store offset=8 @@ -9937,7 +10579,7 @@ if i32.const 0 i32.const 1152 - i32.const 347 + i32.const 379 i32.const 3 call $~lib/builtins/abort unreachable @@ -9945,7 +10587,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=364 + i32.store offset=396 local.get $3 local.get $0 i32.store offset=8 @@ -9956,7 +10598,7 @@ if i32.const 0 i32.const 1152 - i32.const 349 + i32.const 381 i32.const 3 call $~lib/builtins/abort unreachable @@ -9964,7 +10606,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $2 - i32.store offset=368 + i32.store offset=400 local.get $3 local.get $2 i32.store offset=8 @@ -9975,7 +10617,7 @@ if i32.const 0 i32.const 1152 - i32.const 350 + i32.const 382 i32.const 3 call $~lib/builtins/abort unreachable @@ -9983,7 +10625,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=372 + i32.store offset=404 local.get $3 local.get $0 i32.store offset=8 @@ -9994,7 +10636,7 @@ if i32.const 0 i32.const 1152 - i32.const 352 + i32.const 384 i32.const 3 call $~lib/builtins/abort unreachable @@ -10002,7 +10644,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $2 - i32.store offset=376 + i32.store offset=408 local.get $3 local.get $2 i32.store offset=8 @@ -10013,7 +10655,7 @@ if i32.const 0 i32.const 1152 - i32.const 353 + i32.const 385 i32.const 3 call $~lib/builtins/abort unreachable @@ -10021,7 +10663,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $0 - i32.store offset=380 + i32.store offset=412 local.get $3 local.get $0 i32.store offset=8 @@ -10032,7 +10674,7 @@ if i32.const 0 i32.const 1152 - i32.const 355 + i32.const 387 i32.const 3 call $~lib/builtins/abort unreachable @@ -10040,7 +10682,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $2 - i32.store offset=384 + i32.store offset=416 local.get $3 local.get $2 i32.store offset=8 @@ -10051,7 +10693,7 @@ if i32.const 0 i32.const 1152 - i32.const 356 + i32.const 388 i32.const 3 call $~lib/builtins/abort unreachable @@ -10066,16 +10708,16 @@ local.get $0 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 7488 + i32.const 8128 i32.store offset=272 local.get $0 - i32.const 7488 + i32.const 8128 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 1152 - i32.const 358 + i32.const 390 i32.const 3 call $~lib/builtins/abort unreachable @@ -10090,16 +10732,16 @@ local.get $0 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 7568 + i32.const 8208 i32.store offset=272 local.get $0 - i32.const 7568 + i32.const 8208 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 1152 - i32.const 359 + i32.const 391 i32.const 3 call $~lib/builtins/abort unreachable @@ -10108,15 +10750,15 @@ i64.const 8639999999999999 call $~lib/date/Date#constructor local.tee $0 - i32.store offset=388 + i32.store offset=420 global.get $~lib/memory/__stack_pointer i64.const -8639999999999999 call $~lib/date/Date#constructor local.tee $2 - i32.store offset=392 + i32.store offset=424 global.get $~lib/memory/__stack_pointer local.get $2 - i32.store offset=396 + i32.store offset=428 global.get $~lib/memory/__stack_pointer local.get $2 i32.store offset=8 @@ -10127,7 +10769,7 @@ if i32.const 0 i32.const 1152 - i32.const 364 + i32.const 396 i32.const 3 call $~lib/builtins/abort unreachable @@ -10135,7 +10777,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $2 - i32.store offset=400 + i32.store offset=432 local.get $3 local.get $2 i32.store offset=8 @@ -10146,7 +10788,7 @@ if i32.const 0 i32.const 1152 - i32.const 365 + i32.const 397 i32.const 3 call $~lib/builtins/abort unreachable @@ -10154,7 +10796,7 @@ global.get $~lib/memory/__stack_pointer local.tee $3 local.get $2 - i32.store offset=404 + i32.store offset=436 local.get $3 local.get $2 i32.store offset=8 @@ -10165,7 +10807,7 @@ if i32.const 0 i32.const 1152 - i32.const 366 + i32.const 398 i32.const 3 call $~lib/builtins/abort unreachable @@ -10178,7 +10820,7 @@ if i32.const 0 i32.const 1152 - i32.const 367 + i32.const 399 i32.const 3 call $~lib/builtins/abort unreachable @@ -10191,7 +10833,7 @@ if i32.const 0 i32.const 1152 - i32.const 368 + i32.const 400 i32.const 3 call $~lib/builtins/abort unreachable @@ -10204,7 +10846,7 @@ if i32.const 0 i32.const 1152 - i32.const 369 + i32.const 401 i32.const 3 call $~lib/builtins/abort unreachable @@ -10219,7 +10861,7 @@ if i32.const 0 i32.const 1152 - i32.const 370 + i32.const 402 i32.const 3 call $~lib/builtins/abort unreachable @@ -10234,16 +10876,16 @@ local.get $0 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 7648 + i32.const 8288 i32.store offset=272 local.get $0 - i32.const 7648 + i32.const 8288 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 1152 - i32.const 372 + i32.const 404 i32.const 3 call $~lib/builtins/abort unreachable @@ -10258,22 +10900,22 @@ local.get $0 i32.store offset=8 global.get $~lib/memory/__stack_pointer - i32.const 7728 + i32.const 8368 i32.store offset=272 local.get $0 - i32.const 7728 + i32.const 8368 call $~lib/string/String.__eq i32.eqz if i32.const 0 i32.const 1152 - i32.const 373 + i32.const 405 i32.const 3 call $~lib/builtins/abort unreachable end global.get $~lib/memory/__stack_pointer - i32.const 408 + i32.const 440 i32.add global.set $~lib/memory/__stack_pointer return @@ -10294,11 +10936,11 @@ i32.sub global.set $~lib/memory/__stack_pointer global.get $~lib/memory/__stack_pointer - i32.const 7828 + i32.const 8468 i32.lt_s if - i32.const 40624 - i32.const 40672 + i32.const 41264 + i32.const 41312 i32.const 1 i32.const 1 call $~lib/builtins/abort diff --git a/tests/compiler/std/date.ts b/tests/compiler/std/date.ts index c2152d8aa4..8fddc31121 100644 --- a/tests/compiler/std/date.ts +++ b/tests/compiler/std/date.ts @@ -295,17 +295,49 @@ assert(date.getTime() == 11860387200000); // supports year / month / day / hour / minute / second - date = Date.fromString("1976-02-02T12:34:56"); // still use Z suffix + date = Date.fromString("1976-02-02T12:34:56"); assert(date.getTime() == 192112496000); // supports milliseconds - date = Date.fromString("1976-02-02T12:34:56.456"); // still use Z suffix + date = Date.fromString("1976-02-02T12:34:56.456"); assert(date.getTime() == 192112496456); - // supports 'Z' suffix + // supports 'Z' suffix (UTC) date = Date.fromString("1976-02-02T12:34:56.456Z"); assert(date.getTime() == 192112496456); + // supports negative offset from UTC + date = Date.fromString("1976-02-02T12:34:56.456-08:00"); + assert(date.getTime() == 192141296456); + + // supports positive offset from UTC + date = Date.fromString("1976-02-02T12:34:56.456+05:30"); + assert(date.getTime() == 192092696456); + + // allows fewer than 3 decimal places + date = Date.fromString("1976-02-02T12:34:56.45"); + assert(date.getTime() == 192112496450); + + // allows fewer than 3 decimal places (with Z) + date = Date.fromString("1976-02-02T12:34:56.45Z"); + assert(date.getTime() == 192112496450); + + // allows fewer than 3 decimal places (with offset) + date = Date.fromString("1976-02-02T12:34:56.45+00:00"); + assert(date.getTime() == 192112496450); + + // truncates more than 3 decimal places + date = Date.fromString("1976-02-02T12:34:56.456789"); + assert(date.getTime() == 192112496456); + + // truncates more than 3 decimal places (with Z) + date = Date.fromString("1976-02-02T12:34:56.456789Z"); + assert(date.getTime() == 192112496456); + + // truncates more than 3 decimal places (with offset) + date = Date.fromString("1976-02-02T12:34:56.456789+00:00"); + assert(date.getTime() == 192112496456); + date = Date.fromString("0000"); assert(date.getTime() == -62167219200000); @@ -321,10 +353,10 @@ date = Date.fromString("1976-02-02"); assert(date.getTime() == 192067200000); - date = Date.fromString("1976-02-02T12:34"); // still use Z suffix + date = Date.fromString("1976-02-02T12:34"); assert(date.getTime() == 192112440000); - date = Date.fromString("1976-02-02T12:34:56"); // still use Z suffix + date = Date.fromString("1976-02-02T12:34:56"); assert(date.getTime() == 192112496000); // date = Date.fromString('0Z');