@doordeck/doordeck-headless-sdk 0.107.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/kotlin/Kermit-kermit-core.js +44 -44
- package/kotlin/Kermit-kermit.js +4 -4
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1393 -1393
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
- package/kotlin/doordeck-sdk.js +9596 -9786
- package/kotlin/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin/kotlinx-coroutines-core.js +855 -844
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +630 -428
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1742
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1399 -1399
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1895 -1895
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +245 -241
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +135 -135
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +658 -658
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +329 -329
- package/kotlin/ktor-ktor-http.js +677 -677
- package/kotlin/ktor-ktor-io.js +976 -888
- package/kotlin/ktor-ktor-shared-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +133 -133
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +38 -38
- package/kotlin/ktor-ktor-utils.js +644 -644
- package/package.json +1 -1
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
initMetadataForCoroutine($doSelectSuspendCOROUTINE$23, CoroutineImpl);
|
|
260
260
|
initMetadataForCoroutine($completeCOROUTINE$24, CoroutineImpl);
|
|
261
261
|
initMetadataForCoroutine($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$25, CoroutineImpl);
|
|
262
|
-
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler,
|
|
262
|
+
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
|
|
263
263
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
264
264
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
265
265
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
|
|
@@ -347,65 +347,65 @@
|
|
|
347
347
|
return tmp.o9();
|
|
348
348
|
}
|
|
349
349
|
function DisposeHandlersOnCancel($outer, nodes) {
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
350
|
+
this.br_1 = $outer;
|
|
351
|
+
this.ar_1 = nodes;
|
|
352
352
|
}
|
|
353
|
-
protoOf(DisposeHandlersOnCancel).
|
|
353
|
+
protoOf(DisposeHandlersOnCancel).cr = function () {
|
|
354
354
|
// Inline function 'kotlin.collections.forEach' call
|
|
355
|
-
var indexedObject = this.
|
|
355
|
+
var indexedObject = this.ar_1;
|
|
356
356
|
var inductionVariable = 0;
|
|
357
357
|
var last = indexedObject.length;
|
|
358
358
|
while (inductionVariable < last) {
|
|
359
359
|
var element = indexedObject[inductionVariable];
|
|
360
360
|
inductionVariable = inductionVariable + 1 | 0;
|
|
361
|
-
element.
|
|
361
|
+
element.lr().mr();
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
|
-
protoOf(DisposeHandlersOnCancel).
|
|
365
|
-
this.
|
|
364
|
+
protoOf(DisposeHandlersOnCancel).nr = function (cause) {
|
|
365
|
+
this.cr();
|
|
366
366
|
};
|
|
367
367
|
protoOf(DisposeHandlersOnCancel).toString = function () {
|
|
368
|
-
return 'DisposeHandlersOnCancel[' + toString(this.
|
|
368
|
+
return 'DisposeHandlersOnCancel[' + toString(this.ar_1) + ']';
|
|
369
369
|
};
|
|
370
370
|
function AwaitAllNode($outer, continuation) {
|
|
371
|
-
this.
|
|
371
|
+
this.kr_1 = $outer;
|
|
372
372
|
JobNode.call(this);
|
|
373
|
-
this.
|
|
374
|
-
this.
|
|
373
|
+
this.hr_1 = continuation;
|
|
374
|
+
this.jr_1 = atomic$ref$1(null);
|
|
375
375
|
}
|
|
376
|
-
protoOf(AwaitAllNode).
|
|
377
|
-
var tmp = this.
|
|
376
|
+
protoOf(AwaitAllNode).lr = function () {
|
|
377
|
+
var tmp = this.ir_1;
|
|
378
378
|
if (!(tmp == null))
|
|
379
379
|
return tmp;
|
|
380
380
|
else {
|
|
381
381
|
throwUninitializedPropertyAccessException('handle');
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
protoOf(AwaitAllNode).
|
|
385
|
-
this.
|
|
386
|
-
};
|
|
387
|
-
protoOf(AwaitAllNode).or = function () {
|
|
388
|
-
return this.ir_1.kotlinx$atomicfu$value;
|
|
384
|
+
protoOf(AwaitAllNode).or = function (value) {
|
|
385
|
+
this.jr_1.kotlinx$atomicfu$value = value;
|
|
389
386
|
};
|
|
390
387
|
protoOf(AwaitAllNode).pr = function () {
|
|
388
|
+
return this.jr_1.kotlinx$atomicfu$value;
|
|
389
|
+
};
|
|
390
|
+
protoOf(AwaitAllNode).qr = function () {
|
|
391
391
|
return false;
|
|
392
392
|
};
|
|
393
|
-
protoOf(AwaitAllNode).
|
|
393
|
+
protoOf(AwaitAllNode).nr = function (cause) {
|
|
394
394
|
if (!(cause == null)) {
|
|
395
|
-
var token = this.
|
|
395
|
+
var token = this.hr_1.ur(cause);
|
|
396
396
|
if (!(token == null)) {
|
|
397
|
-
this.
|
|
398
|
-
var tmp0_safe_receiver = this.
|
|
397
|
+
this.hr_1.vr(token);
|
|
398
|
+
var tmp0_safe_receiver = this.pr();
|
|
399
399
|
if (tmp0_safe_receiver == null)
|
|
400
400
|
null;
|
|
401
401
|
else {
|
|
402
|
-
tmp0_safe_receiver.
|
|
402
|
+
tmp0_safe_receiver.cr();
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
} else if (this.
|
|
406
|
-
var tmp2 = this.
|
|
405
|
+
} else if (this.kr_1.sr_1.atomicfu$decrementAndGet() === 0) {
|
|
406
|
+
var tmp2 = this.hr_1;
|
|
407
407
|
// Inline function 'kotlin.collections.map' call
|
|
408
|
-
var this_0 = this.
|
|
408
|
+
var this_0 = this.kr_1.rr_1;
|
|
409
409
|
// Inline function 'kotlin.collections.mapTo' call
|
|
410
410
|
var destination = ArrayList_init_$Create$(this_0.length);
|
|
411
411
|
var inductionVariable = 0;
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
while (inductionVariable < last) {
|
|
414
414
|
var item = this_0[inductionVariable];
|
|
415
415
|
inductionVariable = inductionVariable + 1 | 0;
|
|
416
|
-
var tmp$ret$0 = item.
|
|
416
|
+
var tmp$ret$0 = item.tr();
|
|
417
417
|
destination.k(tmp$ret$0);
|
|
418
418
|
}
|
|
419
419
|
// Inline function 'kotlin.coroutines.resume' call
|
|
@@ -423,23 +423,23 @@
|
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
function AwaitAll(deferreds) {
|
|
426
|
-
this.
|
|
427
|
-
this.
|
|
426
|
+
this.rr_1 = deferreds;
|
|
427
|
+
this.sr_1 = atomic$int$1(this.rr_1.length);
|
|
428
428
|
}
|
|
429
|
-
protoOf(AwaitAll).
|
|
429
|
+
protoOf(AwaitAll).is = function ($completion) {
|
|
430
430
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
431
|
-
cancellable.
|
|
431
|
+
cancellable.ps();
|
|
432
432
|
var tmp = 0;
|
|
433
|
-
var tmp_0 = this.
|
|
433
|
+
var tmp_0 = this.rr_1.length;
|
|
434
434
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
435
435
|
var tmp_1 = Array(tmp_0);
|
|
436
436
|
while (tmp < tmp_0) {
|
|
437
437
|
var tmp_2 = tmp;
|
|
438
|
-
var deferred = this.
|
|
438
|
+
var deferred = this.rr_1[tmp_2];
|
|
439
439
|
deferred.mp();
|
|
440
440
|
// Inline function 'kotlin.apply' call
|
|
441
441
|
var this_0 = new AwaitAllNode(this, cancellable);
|
|
442
|
-
this_0.
|
|
442
|
+
this_0.ir_1 = invokeOnCompletion(deferred, VOID, this_0);
|
|
443
443
|
tmp_1[tmp_2] = this_0;
|
|
444
444
|
tmp = tmp + 1 | 0;
|
|
445
445
|
}
|
|
@@ -451,18 +451,18 @@
|
|
|
451
451
|
while (inductionVariable < last) {
|
|
452
452
|
var element = nodes[inductionVariable];
|
|
453
453
|
inductionVariable = inductionVariable + 1 | 0;
|
|
454
|
-
element.
|
|
454
|
+
element.or(disposer);
|
|
455
455
|
}
|
|
456
456
|
if (cancellable.kp()) {
|
|
457
|
-
disposer.
|
|
457
|
+
disposer.cr();
|
|
458
458
|
} else {
|
|
459
459
|
invokeOnCancellation(cancellable, disposer);
|
|
460
460
|
}
|
|
461
|
-
return cancellable.
|
|
461
|
+
return cancellable.qs();
|
|
462
462
|
};
|
|
463
463
|
function $awaitAllCOROUTINE$0(_this__u8e3s4, resultContinuation) {
|
|
464
464
|
CoroutineImpl.call(this, resultContinuation);
|
|
465
|
-
this.
|
|
465
|
+
this.yq_1 = _this__u8e3s4;
|
|
466
466
|
}
|
|
467
467
|
protoOf($awaitAllCOROUTINE$0).o9 = function () {
|
|
468
468
|
var suspendResult = this.i9_1;
|
|
@@ -472,14 +472,14 @@
|
|
|
472
472
|
switch (tmp) {
|
|
473
473
|
case 0:
|
|
474
474
|
this.h9_1 = 3;
|
|
475
|
-
if (this.
|
|
476
|
-
this.
|
|
475
|
+
if (this.yq_1.h()) {
|
|
476
|
+
this.zq_1 = emptyList();
|
|
477
477
|
this.g9_1 = 2;
|
|
478
478
|
continue $sm;
|
|
479
479
|
} else {
|
|
480
480
|
this.g9_1 = 1;
|
|
481
|
-
var this_0 = this.
|
|
482
|
-
suspendResult = (new AwaitAll(copyToArray(this_0))).
|
|
481
|
+
var this_0 = this.yq_1;
|
|
482
|
+
suspendResult = (new AwaitAll(copyToArray(this_0))).is(this);
|
|
483
483
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
484
484
|
return suspendResult;
|
|
485
485
|
}
|
|
@@ -487,11 +487,11 @@
|
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
case 1:
|
|
490
|
-
this.
|
|
490
|
+
this.zq_1 = suspendResult;
|
|
491
491
|
this.g9_1 = 2;
|
|
492
492
|
continue $sm;
|
|
493
493
|
case 2:
|
|
494
|
-
return this.
|
|
494
|
+
return this.zq_1;
|
|
495
495
|
case 3:
|
|
496
496
|
throw this.j9_1;
|
|
497
497
|
}
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
511
511
|
start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
|
|
512
512
|
var newContext = newCoroutineContext(_this__u8e3s4, context);
|
|
513
|
-
var coroutine = start.
|
|
513
|
+
var coroutine = start.rs() ? new LazyStandaloneCoroutine(newContext, block) : new StandaloneCoroutine(newContext, true);
|
|
514
514
|
coroutine.dp(start, coroutine, block);
|
|
515
515
|
return coroutine;
|
|
516
516
|
}
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
}
|
|
535
535
|
var coroutine_1 = new DispatchedCoroutine(newContext, $completion);
|
|
536
536
|
startCoroutineCancellable(block, coroutine_1, coroutine_1);
|
|
537
|
-
tmp$ret$0 = coroutine_1.
|
|
537
|
+
tmp$ret$0 = coroutine_1.qs();
|
|
538
538
|
}
|
|
539
539
|
return tmp$ret$0;
|
|
540
540
|
}
|
|
@@ -542,31 +542,31 @@
|
|
|
542
542
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
543
543
|
start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
|
|
544
544
|
var newContext = newCoroutineContext(_this__u8e3s4, context);
|
|
545
|
-
var coroutine = start.
|
|
545
|
+
var coroutine = start.rs() ? new LazyDeferredCoroutine(newContext, block) : new DeferredCoroutine(newContext, true);
|
|
546
546
|
coroutine.dp(start, coroutine, block);
|
|
547
547
|
return coroutine;
|
|
548
548
|
}
|
|
549
549
|
function StandaloneCoroutine(parentContext, active) {
|
|
550
550
|
AbstractCoroutine.call(this, parentContext, true, active);
|
|
551
551
|
}
|
|
552
|
-
protoOf(StandaloneCoroutine).
|
|
552
|
+
protoOf(StandaloneCoroutine).kq = function (exception) {
|
|
553
553
|
handleCoroutineException(this.oo_1, exception);
|
|
554
554
|
return true;
|
|
555
555
|
};
|
|
556
556
|
function LazyStandaloneCoroutine(parentContext, block) {
|
|
557
557
|
StandaloneCoroutine.call(this, parentContext, false);
|
|
558
|
-
this.
|
|
558
|
+
this.dt_1 = createCoroutineUnintercepted(block, this, this);
|
|
559
559
|
}
|
|
560
560
|
protoOf(LazyStandaloneCoroutine).np = function () {
|
|
561
|
-
startCoroutineCancellable_0(this.
|
|
561
|
+
startCoroutineCancellable_0(this.dt_1, this);
|
|
562
562
|
};
|
|
563
563
|
function trySuspend($this) {
|
|
564
564
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
565
|
-
var this_0 = $this.
|
|
565
|
+
var this_0 = $this.ws_1;
|
|
566
566
|
while (true) {
|
|
567
567
|
switch (this_0.kotlinx$atomicfu$value) {
|
|
568
568
|
case 0:
|
|
569
|
-
if ($this.
|
|
569
|
+
if ($this.ws_1.atomicfu$compareAndSet(0, 1))
|
|
570
570
|
return true;
|
|
571
571
|
break;
|
|
572
572
|
case 2:
|
|
@@ -581,11 +581,11 @@
|
|
|
581
581
|
}
|
|
582
582
|
function tryResume($this) {
|
|
583
583
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
584
|
-
var this_0 = $this.
|
|
584
|
+
var this_0 = $this.ws_1;
|
|
585
585
|
while (true) {
|
|
586
586
|
switch (this_0.kotlinx$atomicfu$value) {
|
|
587
587
|
case 0:
|
|
588
|
-
if ($this.
|
|
588
|
+
if ($this.ws_1.atomicfu$compareAndSet(0, 2))
|
|
589
589
|
return true;
|
|
590
590
|
break;
|
|
591
591
|
case 1:
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
}
|
|
601
601
|
function DispatchedCoroutine(context, uCont) {
|
|
602
602
|
ScopeCoroutine.call(this, context, uCont);
|
|
603
|
-
this.
|
|
603
|
+
this.ws_1 = atomic$int$1(0);
|
|
604
604
|
}
|
|
605
605
|
protoOf(DispatchedCoroutine).ap = function (state) {
|
|
606
606
|
this.zo(state);
|
|
@@ -608,9 +608,9 @@
|
|
|
608
608
|
protoOf(DispatchedCoroutine).zo = function (state) {
|
|
609
609
|
if (tryResume(this))
|
|
610
610
|
return Unit_instance;
|
|
611
|
-
resumeCancellableWith(intercepted(this.
|
|
611
|
+
resumeCancellableWith(intercepted(this.ht_1), recoverResult(state, this.ht_1));
|
|
612
612
|
};
|
|
613
|
-
protoOf(DispatchedCoroutine).
|
|
613
|
+
protoOf(DispatchedCoroutine).qs = function () {
|
|
614
614
|
if (trySuspend(this))
|
|
615
615
|
return get_COROUTINE_SUSPENDED();
|
|
616
616
|
var state = unboxState(this.jp());
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
};
|
|
621
621
|
function $awaitCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
622
622
|
CoroutineImpl.call(this, resultContinuation);
|
|
623
|
-
this.
|
|
623
|
+
this.rt_1 = _this__u8e3s4;
|
|
624
624
|
}
|
|
625
625
|
protoOf($awaitCOROUTINE$1).o9 = function () {
|
|
626
626
|
var suspendResult = this.i9_1;
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
case 0:
|
|
632
632
|
this.h9_1 = 2;
|
|
633
633
|
this.g9_1 = 1;
|
|
634
|
-
suspendResult = this.
|
|
634
|
+
suspendResult = this.rt_1.oq(this);
|
|
635
635
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
636
636
|
return suspendResult;
|
|
637
637
|
}
|
|
@@ -656,26 +656,26 @@
|
|
|
656
656
|
function DeferredCoroutine(parentContext, active) {
|
|
657
657
|
AbstractCoroutine.call(this, parentContext, true, active);
|
|
658
658
|
}
|
|
659
|
-
protoOf(DeferredCoroutine).
|
|
660
|
-
var tmp = this.
|
|
659
|
+
protoOf(DeferredCoroutine).tr = function () {
|
|
660
|
+
var tmp = this.nq();
|
|
661
661
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
662
662
|
};
|
|
663
|
-
protoOf(DeferredCoroutine).
|
|
663
|
+
protoOf(DeferredCoroutine).vt = function ($completion) {
|
|
664
664
|
var tmp = new $awaitCOROUTINE$1(this, $completion);
|
|
665
665
|
tmp.i9_1 = Unit_instance;
|
|
666
666
|
tmp.j9_1 = null;
|
|
667
667
|
return tmp.o9();
|
|
668
668
|
};
|
|
669
|
-
protoOf(DeferredCoroutine).
|
|
670
|
-
var tmp = this.
|
|
669
|
+
protoOf(DeferredCoroutine).wt = function () {
|
|
670
|
+
var tmp = this.pq();
|
|
671
671
|
return isInterface(tmp, SelectClause1) ? tmp : THROW_CCE();
|
|
672
672
|
};
|
|
673
673
|
function LazyDeferredCoroutine(parentContext, block) {
|
|
674
674
|
DeferredCoroutine.call(this, parentContext, false);
|
|
675
|
-
this.
|
|
675
|
+
this.au_1 = createCoroutineUnintercepted(block, this, this);
|
|
676
676
|
}
|
|
677
677
|
protoOf(LazyDeferredCoroutine).np = function () {
|
|
678
|
-
startCoroutineCancellable_0(this.
|
|
678
|
+
startCoroutineCancellable_0(this.au_1, this);
|
|
679
679
|
};
|
|
680
680
|
function CancellableContinuation() {
|
|
681
681
|
}
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
function invokeOnCancellation(_this__u8e3s4, handler) {
|
|
686
686
|
var tmp;
|
|
687
687
|
if (_this__u8e3s4 instanceof CancellableContinuationImpl) {
|
|
688
|
-
_this__u8e3s4.
|
|
688
|
+
_this__u8e3s4.fu(handler);
|
|
689
689
|
tmp = Unit_instance;
|
|
690
690
|
} else {
|
|
691
691
|
throw UnsupportedOperationException_init_$Create$('third-party implementation of CancellableContinuation is not supported');
|
|
@@ -693,26 +693,26 @@
|
|
|
693
693
|
return tmp;
|
|
694
694
|
}
|
|
695
695
|
function DisposeOnCancel(handle) {
|
|
696
|
-
this.
|
|
696
|
+
this.gu_1 = handle;
|
|
697
697
|
}
|
|
698
|
-
protoOf(DisposeOnCancel).
|
|
699
|
-
return this.
|
|
698
|
+
protoOf(DisposeOnCancel).nr = function (cause) {
|
|
699
|
+
return this.gu_1.mr();
|
|
700
700
|
};
|
|
701
701
|
protoOf(DisposeOnCancel).toString = function () {
|
|
702
|
-
return 'DisposeOnCancel[' + toString(this.
|
|
702
|
+
return 'DisposeOnCancel[' + toString(this.gu_1) + ']';
|
|
703
703
|
};
|
|
704
704
|
function getOrCreateCancellableContinuation(delegate) {
|
|
705
705
|
if (!(delegate instanceof DispatchedContinuation)) {
|
|
706
706
|
return new CancellableContinuationImpl(delegate, 1);
|
|
707
707
|
}
|
|
708
|
-
var tmp0_safe_receiver = delegate.
|
|
708
|
+
var tmp0_safe_receiver = delegate.nu();
|
|
709
709
|
var tmp;
|
|
710
710
|
if (tmp0_safe_receiver == null) {
|
|
711
711
|
tmp = null;
|
|
712
712
|
} else {
|
|
713
713
|
// Inline function 'kotlin.takeIf' call
|
|
714
714
|
var tmp_0;
|
|
715
|
-
if (tmp0_safe_receiver.
|
|
715
|
+
if (tmp0_safe_receiver.ou()) {
|
|
716
716
|
tmp_0 = tmp0_safe_receiver;
|
|
717
717
|
} else {
|
|
718
718
|
tmp_0 = null;
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
}
|
|
735
735
|
var RESUME_TOKEN;
|
|
736
736
|
function _get_parentHandle__f8dcex($this) {
|
|
737
|
-
return $this.
|
|
737
|
+
return $this.os_1.kotlinx$atomicfu$value;
|
|
738
738
|
}
|
|
739
739
|
function _get_stateDebugRepresentation__bf18u4($this) {
|
|
740
740
|
var tmp0_subject = $this.jp();
|
|
@@ -752,9 +752,9 @@
|
|
|
752
752
|
}
|
|
753
753
|
function isReusable($this) {
|
|
754
754
|
var tmp;
|
|
755
|
-
if (get_isReusableMode($this.
|
|
756
|
-
var tmp_0 = $this.
|
|
757
|
-
tmp = (tmp_0 instanceof DispatchedContinuation ? tmp_0 : THROW_CCE()).
|
|
755
|
+
if (get_isReusableMode($this.qu_1)) {
|
|
756
|
+
var tmp_0 = $this.ks_1;
|
|
757
|
+
tmp = (tmp_0 instanceof DispatchedContinuation ? tmp_0 : THROW_CCE()).pu();
|
|
758
758
|
} else {
|
|
759
759
|
tmp = false;
|
|
760
760
|
}
|
|
@@ -763,13 +763,13 @@
|
|
|
763
763
|
function cancelLater($this, cause) {
|
|
764
764
|
if (!isReusable($this))
|
|
765
765
|
return false;
|
|
766
|
-
var tmp = $this.
|
|
766
|
+
var tmp = $this.ks_1;
|
|
767
767
|
var dispatched = tmp instanceof DispatchedContinuation ? tmp : THROW_CCE();
|
|
768
|
-
return dispatched.
|
|
768
|
+
return dispatched.ru(cause);
|
|
769
769
|
}
|
|
770
770
|
function callSegmentOnCancellation($this, segment, cause) {
|
|
771
771
|
// Inline function 'kotlinx.coroutines.index' call
|
|
772
|
-
var index = $this.
|
|
772
|
+
var index = $this.ms_1.kotlinx$atomicfu$value & 536870911;
|
|
773
773
|
// Inline function 'kotlin.check' call
|
|
774
774
|
if (!!(index === 536870911)) {
|
|
775
775
|
var message = 'The index for Segment.onCancellation(..) is broken';
|
|
@@ -777,7 +777,7 @@
|
|
|
777
777
|
}
|
|
778
778
|
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.callCancelHandlerSafely' call
|
|
779
779
|
try {
|
|
780
|
-
segment.
|
|
780
|
+
segment.wu(index, cause, $this.m9());
|
|
781
781
|
} catch ($p) {
|
|
782
782
|
if ($p instanceof Error) {
|
|
783
783
|
var ex = $p;
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
}
|
|
790
790
|
function trySuspend_0($this) {
|
|
791
791
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
792
|
-
var this_0 = $this.
|
|
792
|
+
var this_0 = $this.ms_1;
|
|
793
793
|
while (true) {
|
|
794
794
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
795
795
|
// Inline function 'kotlinx.coroutines.decision' call
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
801
801
|
|
|
802
802
|
var tmp$ret$2 = (1 << 29) + (cur & 536870911) | 0;
|
|
803
|
-
if ($this.
|
|
803
|
+
if ($this.ms_1.atomicfu$compareAndSet(cur, tmp$ret$2))
|
|
804
804
|
return true;
|
|
805
805
|
break;
|
|
806
806
|
case 2:
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
}
|
|
816
816
|
function tryResume_0($this) {
|
|
817
817
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
818
|
-
var this_0 = $this.
|
|
818
|
+
var this_0 = $this.ms_1;
|
|
819
819
|
while (true) {
|
|
820
820
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
821
821
|
// Inline function 'kotlinx.coroutines.decision' call
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
827
827
|
|
|
828
828
|
var tmp$ret$2 = (2 << 29) + (cur & 536870911) | 0;
|
|
829
|
-
if ($this.
|
|
829
|
+
if ($this.ms_1.atomicfu$compareAndSet(cur, tmp$ret$2))
|
|
830
830
|
return true;
|
|
831
831
|
break;
|
|
832
832
|
case 1:
|
|
@@ -849,17 +849,17 @@
|
|
|
849
849
|
}
|
|
850
850
|
var parent = tmp;
|
|
851
851
|
var handle = invokeOnCompletion(parent, VOID, new ChildContinuation($this));
|
|
852
|
-
$this.
|
|
852
|
+
$this.os_1.atomicfu$compareAndSet(null, handle);
|
|
853
853
|
return handle;
|
|
854
854
|
}
|
|
855
855
|
function invokeOnCancellationImpl($this, handler) {
|
|
856
856
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
857
857
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
858
|
-
var this_0 = $this.
|
|
858
|
+
var this_0 = $this.ns_1;
|
|
859
859
|
while (true) {
|
|
860
860
|
var state = this_0.kotlinx$atomicfu$value;
|
|
861
861
|
if (state instanceof Active) {
|
|
862
|
-
if ($this.
|
|
862
|
+
if ($this.ns_1.atomicfu$compareAndSet(state, handler))
|
|
863
863
|
return Unit_instance;
|
|
864
864
|
} else {
|
|
865
865
|
var tmp;
|
|
@@ -872,14 +872,14 @@
|
|
|
872
872
|
multipleHandlersError($this, handler, state);
|
|
873
873
|
} else {
|
|
874
874
|
if (state instanceof CompletedExceptionally) {
|
|
875
|
-
if (!state.
|
|
875
|
+
if (!state.fv()) {
|
|
876
876
|
multipleHandlersError($this, handler, state);
|
|
877
877
|
}
|
|
878
878
|
if (state instanceof CancelledContinuation) {
|
|
879
879
|
var tmp1_safe_receiver = state instanceof CompletedExceptionally ? state : null;
|
|
880
880
|
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vo_1;
|
|
881
881
|
if (isInterface(handler, CancelHandler)) {
|
|
882
|
-
$this.
|
|
882
|
+
$this.cv(handler, cause);
|
|
883
883
|
} else {
|
|
884
884
|
var segment = handler instanceof Segment ? handler : THROW_CCE();
|
|
885
885
|
callSegmentOnCancellation($this, segment, cause);
|
|
@@ -888,19 +888,19 @@
|
|
|
888
888
|
return Unit_instance;
|
|
889
889
|
} else {
|
|
890
890
|
if (state instanceof CompletedContinuation) {
|
|
891
|
-
if (!(state.
|
|
891
|
+
if (!(state.yu_1 == null)) {
|
|
892
892
|
multipleHandlersError($this, handler, state);
|
|
893
893
|
}
|
|
894
894
|
if (handler instanceof Segment)
|
|
895
895
|
return Unit_instance;
|
|
896
896
|
if (!isInterface(handler, CancelHandler))
|
|
897
897
|
THROW_CCE();
|
|
898
|
-
if (state.
|
|
899
|
-
$this.
|
|
898
|
+
if (state.dv()) {
|
|
899
|
+
$this.cv(handler, state.bv_1);
|
|
900
900
|
return Unit_instance;
|
|
901
901
|
}
|
|
902
|
-
var update = state.
|
|
903
|
-
if ($this.
|
|
902
|
+
var update = state.ev(VOID, handler);
|
|
903
|
+
if ($this.ns_1.atomicfu$compareAndSet(state, update))
|
|
904
904
|
return Unit_instance;
|
|
905
905
|
} else {
|
|
906
906
|
if (handler instanceof Segment)
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
if (!isInterface(handler, CancelHandler))
|
|
909
909
|
THROW_CCE();
|
|
910
910
|
var update_0 = new CompletedContinuation(state, handler);
|
|
911
|
-
if ($this.
|
|
911
|
+
if ($this.ns_1.atomicfu$compareAndSet(state, update_0))
|
|
912
912
|
return Unit_instance;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
@@ -959,13 +959,13 @@
|
|
|
959
959
|
}
|
|
960
960
|
function tryResumeImpl($this, proposedUpdate, idempotent, onCancellation) {
|
|
961
961
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
962
|
-
var this_0 = $this.
|
|
962
|
+
var this_0 = $this.ns_1;
|
|
963
963
|
while (true) {
|
|
964
964
|
var tmp1 = this_0.kotlinx$atomicfu$value;
|
|
965
965
|
$l$block: {
|
|
966
966
|
if (!(tmp1 == null) ? isInterface(tmp1, NotCompleted) : false) {
|
|
967
|
-
var update = resumedState($this, tmp1, proposedUpdate, $this.
|
|
968
|
-
if (!$this.
|
|
967
|
+
var update = resumedState($this, tmp1, proposedUpdate, $this.qu_1, onCancellation, idempotent);
|
|
968
|
+
if (!$this.ns_1.atomicfu$compareAndSet(tmp1, update)) {
|
|
969
969
|
break $l$block;
|
|
970
970
|
}
|
|
971
971
|
detachChildIfNonReusable($this);
|
|
@@ -973,7 +973,7 @@
|
|
|
973
973
|
} else {
|
|
974
974
|
if (tmp1 instanceof CompletedContinuation) {
|
|
975
975
|
var tmp;
|
|
976
|
-
if (!(idempotent == null) && tmp1.
|
|
976
|
+
if (!(idempotent == null) && tmp1.av_1 === idempotent) {
|
|
977
977
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
978
978
|
tmp = get_RESUME_TOKEN();
|
|
979
979
|
} else {
|
|
@@ -994,7 +994,7 @@
|
|
|
994
994
|
}
|
|
995
995
|
function detachChildIfNonReusable($this) {
|
|
996
996
|
if (!isReusable($this)) {
|
|
997
|
-
$this.
|
|
997
|
+
$this.gv();
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
function CancellableContinuationImpl$resume$lambda($onCancellation) {
|
|
@@ -1005,24 +1005,24 @@
|
|
|
1005
1005
|
}
|
|
1006
1006
|
function CancellableContinuationImpl(delegate, resumeMode) {
|
|
1007
1007
|
DispatchedTask.call(this, resumeMode);
|
|
1008
|
-
this.
|
|
1008
|
+
this.ks_1 = delegate;
|
|
1009
1009
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1010
|
-
this.
|
|
1010
|
+
this.ls_1 = this.ks_1.m9();
|
|
1011
1011
|
var tmp = this;
|
|
1012
1012
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
1013
1013
|
var tmp$ret$1 = (0 << 29) + 536870911 | 0;
|
|
1014
|
-
tmp.
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1014
|
+
tmp.ms_1 = atomic$int$1(tmp$ret$1);
|
|
1015
|
+
this.ns_1 = atomic$ref$1(Active_instance);
|
|
1016
|
+
this.os_1 = atomic$ref$1(null);
|
|
1017
1017
|
}
|
|
1018
|
-
protoOf(CancellableContinuationImpl).
|
|
1019
|
-
return this.
|
|
1018
|
+
protoOf(CancellableContinuationImpl).hv = function () {
|
|
1019
|
+
return this.ks_1;
|
|
1020
1020
|
};
|
|
1021
1021
|
protoOf(CancellableContinuationImpl).m9 = function () {
|
|
1022
|
-
return this.
|
|
1022
|
+
return this.ls_1;
|
|
1023
1023
|
};
|
|
1024
1024
|
protoOf(CancellableContinuationImpl).jp = function () {
|
|
1025
|
-
return this.
|
|
1025
|
+
return this.ns_1.kotlinx$atomicfu$value;
|
|
1026
1026
|
};
|
|
1027
1027
|
protoOf(CancellableContinuationImpl).kp = function () {
|
|
1028
1028
|
var tmp = this.jp();
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
var tmp = this.jp();
|
|
1033
1033
|
return tmp instanceof CancelledContinuation;
|
|
1034
1034
|
};
|
|
1035
|
-
protoOf(CancellableContinuationImpl).
|
|
1035
|
+
protoOf(CancellableContinuationImpl).ps = function () {
|
|
1036
1036
|
var tmp0_elvis_lhs = installParentHandle(this);
|
|
1037
1037
|
var tmp;
|
|
1038
1038
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1042,36 +1042,36 @@
|
|
|
1042
1042
|
}
|
|
1043
1043
|
var handle = tmp;
|
|
1044
1044
|
if (this.kp()) {
|
|
1045
|
-
handle.
|
|
1046
|
-
this.
|
|
1045
|
+
handle.mr();
|
|
1046
|
+
this.os_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
|
|
1047
1047
|
}
|
|
1048
1048
|
};
|
|
1049
|
-
protoOf(CancellableContinuationImpl).
|
|
1049
|
+
protoOf(CancellableContinuationImpl).ou = function () {
|
|
1050
1050
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1051
1051
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1052
|
-
var state = this.
|
|
1052
|
+
var state = this.ns_1.kotlinx$atomicfu$value;
|
|
1053
1053
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1054
1054
|
var tmp;
|
|
1055
1055
|
if (state instanceof CompletedContinuation) {
|
|
1056
|
-
tmp = !(state.
|
|
1056
|
+
tmp = !(state.av_1 == null);
|
|
1057
1057
|
} else {
|
|
1058
1058
|
tmp = false;
|
|
1059
1059
|
}
|
|
1060
1060
|
if (tmp) {
|
|
1061
|
-
this.
|
|
1061
|
+
this.gv();
|
|
1062
1062
|
return false;
|
|
1063
1063
|
}
|
|
1064
|
-
var tmp_0 = this.
|
|
1064
|
+
var tmp_0 = this.ms_1;
|
|
1065
1065
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
1066
1066
|
tmp_0.kotlinx$atomicfu$value = (0 << 29) + 536870911 | 0;
|
|
1067
|
-
this.
|
|
1067
|
+
this.ns_1.kotlinx$atomicfu$value = Active_instance;
|
|
1068
1068
|
return true;
|
|
1069
1069
|
};
|
|
1070
|
-
protoOf(CancellableContinuationImpl).
|
|
1070
|
+
protoOf(CancellableContinuationImpl).iv = function () {
|
|
1071
1071
|
return this.jp();
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(CancellableContinuationImpl).
|
|
1074
|
-
var this_0 = this.
|
|
1073
|
+
protoOf(CancellableContinuationImpl).jv = function (takenState, cause) {
|
|
1074
|
+
var this_0 = this.ns_1;
|
|
1075
1075
|
while (true) {
|
|
1076
1076
|
var state = this_0.kotlinx$atomicfu$value;
|
|
1077
1077
|
if (!(state == null) ? isInterface(state, NotCompleted) : false) {
|
|
@@ -1084,17 +1084,17 @@
|
|
|
1084
1084
|
else {
|
|
1085
1085
|
if (state instanceof CompletedContinuation) {
|
|
1086
1086
|
// Inline function 'kotlin.check' call
|
|
1087
|
-
if (!!state.
|
|
1087
|
+
if (!!state.dv()) {
|
|
1088
1088
|
var message_0 = 'Must be called at most once';
|
|
1089
1089
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1090
1090
|
}
|
|
1091
|
-
var update = state.
|
|
1092
|
-
if (this.
|
|
1093
|
-
state.
|
|
1091
|
+
var update = state.ev(VOID, VOID, VOID, VOID, cause);
|
|
1092
|
+
if (this.ns_1.atomicfu$compareAndSet(state, update)) {
|
|
1093
|
+
state.kv(this, cause);
|
|
1094
1094
|
return Unit_instance;
|
|
1095
1095
|
}
|
|
1096
1096
|
} else {
|
|
1097
|
-
if (this.
|
|
1097
|
+
if (this.ns_1.atomicfu$compareAndSet(state, new CompletedContinuation(state, VOID, VOID, VOID, cause))) {
|
|
1098
1098
|
return Unit_instance;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1103,9 +1103,9 @@
|
|
|
1103
1103
|
}
|
|
1104
1104
|
return Unit_instance;
|
|
1105
1105
|
};
|
|
1106
|
-
protoOf(CancellableContinuationImpl).
|
|
1106
|
+
protoOf(CancellableContinuationImpl).lv = function (cause) {
|
|
1107
1107
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1108
|
-
var this_0 = this.
|
|
1108
|
+
var this_0 = this.ns_1;
|
|
1109
1109
|
while (true) {
|
|
1110
1110
|
var tmp1 = this_0.kotlinx$atomicfu$value;
|
|
1111
1111
|
$l$block: {
|
|
@@ -1118,32 +1118,32 @@
|
|
|
1118
1118
|
tmp = tmp1 instanceof Segment;
|
|
1119
1119
|
}
|
|
1120
1120
|
var update = new CancelledContinuation(this, cause, tmp);
|
|
1121
|
-
if (!this.
|
|
1121
|
+
if (!this.ns_1.atomicfu$compareAndSet(tmp1, update)) {
|
|
1122
1122
|
break $l$block;
|
|
1123
1123
|
}
|
|
1124
1124
|
if (isInterface(tmp1, CancelHandler)) {
|
|
1125
|
-
this.
|
|
1125
|
+
this.cv(tmp1, cause);
|
|
1126
1126
|
} else {
|
|
1127
1127
|
if (tmp1 instanceof Segment) {
|
|
1128
1128
|
callSegmentOnCancellation(this, tmp1, cause);
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
detachChildIfNonReusable(this);
|
|
1132
|
-
dispatchResume(this, this.
|
|
1132
|
+
dispatchResume(this, this.qu_1);
|
|
1133
1133
|
return true;
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
|
-
protoOf(CancellableContinuationImpl).
|
|
1137
|
+
protoOf(CancellableContinuationImpl).mv = function (cause) {
|
|
1138
1138
|
if (cancelLater(this, cause))
|
|
1139
1139
|
return Unit_instance;
|
|
1140
|
-
this.
|
|
1140
|
+
this.lv(cause);
|
|
1141
1141
|
detachChildIfNonReusable(this);
|
|
1142
1142
|
};
|
|
1143
|
-
protoOf(CancellableContinuationImpl).
|
|
1143
|
+
protoOf(CancellableContinuationImpl).cv = function (handler, cause) {
|
|
1144
1144
|
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.callCancelHandlerSafely' call
|
|
1145
1145
|
try {
|
|
1146
|
-
handler.
|
|
1146
|
+
handler.nr(cause);
|
|
1147
1147
|
} catch ($p) {
|
|
1148
1148
|
if ($p instanceof Error) {
|
|
1149
1149
|
var ex = $p;
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
}
|
|
1155
1155
|
return Unit_instance;
|
|
1156
1156
|
};
|
|
1157
|
-
protoOf(CancellableContinuationImpl).
|
|
1157
|
+
protoOf(CancellableContinuationImpl).nv = function (onCancellation, cause, value) {
|
|
1158
1158
|
try {
|
|
1159
1159
|
onCancellation(cause, value, this.m9());
|
|
1160
1160
|
} catch ($p) {
|
|
@@ -1166,40 +1166,40 @@
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
|
-
protoOf(CancellableContinuationImpl).
|
|
1169
|
+
protoOf(CancellableContinuationImpl).ov = function (parent) {
|
|
1170
1170
|
return parent.op();
|
|
1171
1171
|
};
|
|
1172
|
-
protoOf(CancellableContinuationImpl).
|
|
1172
|
+
protoOf(CancellableContinuationImpl).qs = function () {
|
|
1173
1173
|
var isReusable_0 = isReusable(this);
|
|
1174
1174
|
if (trySuspend_0(this)) {
|
|
1175
1175
|
if (_get_parentHandle__f8dcex(this) == null) {
|
|
1176
1176
|
installParentHandle(this);
|
|
1177
1177
|
}
|
|
1178
1178
|
if (isReusable_0) {
|
|
1179
|
-
this.
|
|
1179
|
+
this.pv();
|
|
1180
1180
|
}
|
|
1181
1181
|
return get_COROUTINE_SUSPENDED();
|
|
1182
1182
|
}
|
|
1183
1183
|
if (isReusable_0) {
|
|
1184
|
-
this.
|
|
1184
|
+
this.pv();
|
|
1185
1185
|
}
|
|
1186
1186
|
var state = this.jp();
|
|
1187
1187
|
if (state instanceof CompletedExceptionally)
|
|
1188
1188
|
throw recoverStackTrace(state.vo_1, this);
|
|
1189
|
-
if (get_isCancellableMode(this.
|
|
1189
|
+
if (get_isCancellableMode(this.qu_1)) {
|
|
1190
1190
|
var job = this.m9().t9(Key_instance_3);
|
|
1191
1191
|
if (!(job == null) && !job.qo()) {
|
|
1192
1192
|
var cause = job.op();
|
|
1193
|
-
this.
|
|
1193
|
+
this.jv(state, cause);
|
|
1194
1194
|
throw recoverStackTrace(cause, this);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
return this.
|
|
1197
|
+
return this.qv(state);
|
|
1198
1198
|
};
|
|
1199
|
-
protoOf(CancellableContinuationImpl).
|
|
1200
|
-
var tmp = this.
|
|
1199
|
+
protoOf(CancellableContinuationImpl).pv = function () {
|
|
1200
|
+
var tmp = this.ks_1;
|
|
1201
1201
|
var tmp0_safe_receiver = tmp instanceof DispatchedContinuation ? tmp : null;
|
|
1202
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1202
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rv(this);
|
|
1203
1203
|
var tmp_0;
|
|
1204
1204
|
if (tmp1_elvis_lhs == null) {
|
|
1205
1205
|
return Unit_instance;
|
|
@@ -1207,14 +1207,14 @@
|
|
|
1207
1207
|
tmp_0 = tmp1_elvis_lhs;
|
|
1208
1208
|
}
|
|
1209
1209
|
var cancellationCause = tmp_0;
|
|
1210
|
-
this.
|
|
1211
|
-
this.
|
|
1210
|
+
this.gv();
|
|
1211
|
+
this.lv(cancellationCause);
|
|
1212
1212
|
};
|
|
1213
1213
|
protoOf(CancellableContinuationImpl).r9 = function (result) {
|
|
1214
|
-
return this.
|
|
1214
|
+
return this.sv(toState(result, this), this.qu_1);
|
|
1215
1215
|
};
|
|
1216
|
-
protoOf(CancellableContinuationImpl).
|
|
1217
|
-
var tmp = this.
|
|
1216
|
+
protoOf(CancellableContinuationImpl).tv = function (value, onCancellation) {
|
|
1217
|
+
var tmp = this.qu_1;
|
|
1218
1218
|
var tmp_0;
|
|
1219
1219
|
if (onCancellation == null) {
|
|
1220
1220
|
tmp_0 = null;
|
|
@@ -1222,13 +1222,13 @@
|
|
|
1222
1222
|
// Inline function 'kotlin.let' call
|
|
1223
1223
|
tmp_0 = CancellableContinuationImpl$resume$lambda(onCancellation);
|
|
1224
1224
|
}
|
|
1225
|
-
return this.
|
|
1225
|
+
return this.uv(value, tmp, tmp_0);
|
|
1226
1226
|
};
|
|
1227
|
-
protoOf(CancellableContinuationImpl).
|
|
1228
|
-
return this.
|
|
1227
|
+
protoOf(CancellableContinuationImpl).eu = function (value, onCancellation) {
|
|
1228
|
+
return this.uv(value, this.qu_1, onCancellation);
|
|
1229
1229
|
};
|
|
1230
|
-
protoOf(CancellableContinuationImpl).
|
|
1231
|
-
var tmp0 = this.
|
|
1230
|
+
protoOf(CancellableContinuationImpl).vv = function (segment, index) {
|
|
1231
|
+
var tmp0 = this.ms_1;
|
|
1232
1232
|
$l$block: {
|
|
1233
1233
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
1234
1234
|
while (true) {
|
|
@@ -1249,21 +1249,21 @@
|
|
|
1249
1249
|
}
|
|
1250
1250
|
invokeOnCancellationImpl(this, segment);
|
|
1251
1251
|
};
|
|
1252
|
-
protoOf(CancellableContinuationImpl).
|
|
1252
|
+
protoOf(CancellableContinuationImpl).cu = function (handler) {
|
|
1253
1253
|
return invokeOnCancellation(this, new UserSupplied(handler));
|
|
1254
1254
|
};
|
|
1255
|
-
protoOf(CancellableContinuationImpl).
|
|
1255
|
+
protoOf(CancellableContinuationImpl).fu = function (handler) {
|
|
1256
1256
|
return invokeOnCancellationImpl(this, handler);
|
|
1257
1257
|
};
|
|
1258
|
-
protoOf(CancellableContinuationImpl).
|
|
1258
|
+
protoOf(CancellableContinuationImpl).uv = function (proposedUpdate, resumeMode, onCancellation) {
|
|
1259
1259
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1260
|
-
var this_0 = this.
|
|
1260
|
+
var this_0 = this.ns_1;
|
|
1261
1261
|
while (true) {
|
|
1262
1262
|
var tmp1 = this_0.kotlinx$atomicfu$value;
|
|
1263
1263
|
$l$block: {
|
|
1264
1264
|
if (!(tmp1 == null) ? isInterface(tmp1, NotCompleted) : false) {
|
|
1265
1265
|
var update = resumedState(this, tmp1, proposedUpdate, resumeMode, onCancellation, null);
|
|
1266
|
-
if (!this.
|
|
1266
|
+
if (!this.ns_1.atomicfu$compareAndSet(tmp1, update)) {
|
|
1267
1267
|
break $l$block;
|
|
1268
1268
|
}
|
|
1269
1269
|
detachChildIfNonReusable(this);
|
|
@@ -1271,12 +1271,12 @@
|
|
|
1271
1271
|
return Unit_instance;
|
|
1272
1272
|
} else {
|
|
1273
1273
|
if (tmp1 instanceof CancelledContinuation) {
|
|
1274
|
-
if (tmp1.
|
|
1274
|
+
if (tmp1.zv()) {
|
|
1275
1275
|
if (onCancellation == null)
|
|
1276
1276
|
null;
|
|
1277
1277
|
else {
|
|
1278
1278
|
// Inline function 'kotlin.let' call
|
|
1279
|
-
this.
|
|
1279
|
+
this.nv(onCancellation, tmp1.vo_1, proposedUpdate);
|
|
1280
1280
|
}
|
|
1281
1281
|
return Unit_instance;
|
|
1282
1282
|
}
|
|
@@ -1286,18 +1286,18 @@
|
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
protoOf(CancellableContinuationImpl).
|
|
1289
|
+
protoOf(CancellableContinuationImpl).sv = function (proposedUpdate, resumeMode, onCancellation, $super) {
|
|
1290
1290
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
1291
1291
|
var tmp;
|
|
1292
1292
|
if ($super === VOID) {
|
|
1293
|
-
this.
|
|
1293
|
+
this.uv(proposedUpdate, resumeMode, onCancellation);
|
|
1294
1294
|
tmp = Unit_instance;
|
|
1295
1295
|
} else {
|
|
1296
|
-
tmp = $super.
|
|
1296
|
+
tmp = $super.uv.call(this, proposedUpdate, resumeMode, onCancellation);
|
|
1297
1297
|
}
|
|
1298
1298
|
return tmp;
|
|
1299
1299
|
};
|
|
1300
|
-
protoOf(CancellableContinuationImpl).
|
|
1300
|
+
protoOf(CancellableContinuationImpl).gv = function () {
|
|
1301
1301
|
var tmp0_elvis_lhs = _get_parentHandle__f8dcex(this);
|
|
1302
1302
|
var tmp;
|
|
1303
1303
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1306,67 +1306,67 @@
|
|
|
1306
1306
|
tmp = tmp0_elvis_lhs;
|
|
1307
1307
|
}
|
|
1308
1308
|
var handle = tmp;
|
|
1309
|
-
handle.
|
|
1310
|
-
this.
|
|
1309
|
+
handle.mr();
|
|
1310
|
+
this.os_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
|
|
1311
1311
|
};
|
|
1312
|
-
protoOf(CancellableContinuationImpl).
|
|
1312
|
+
protoOf(CancellableContinuationImpl).bu = function (value, idempotent, onCancellation) {
|
|
1313
1313
|
return tryResumeImpl(this, value, idempotent, onCancellation);
|
|
1314
1314
|
};
|
|
1315
|
-
protoOf(CancellableContinuationImpl).
|
|
1315
|
+
protoOf(CancellableContinuationImpl).ur = function (exception) {
|
|
1316
1316
|
return tryResumeImpl(this, new CompletedExceptionally(exception), null, null);
|
|
1317
1317
|
};
|
|
1318
|
-
protoOf(CancellableContinuationImpl).
|
|
1318
|
+
protoOf(CancellableContinuationImpl).vr = function (token) {
|
|
1319
1319
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1320
|
-
dispatchResume(this, this.
|
|
1320
|
+
dispatchResume(this, this.qu_1);
|
|
1321
1321
|
};
|
|
1322
|
-
protoOf(CancellableContinuationImpl).
|
|
1323
|
-
var tmp = this.
|
|
1322
|
+
protoOf(CancellableContinuationImpl).du = function (_this__u8e3s4, value) {
|
|
1323
|
+
var tmp = this.ks_1;
|
|
1324
1324
|
var dc = tmp instanceof DispatchedContinuation ? tmp : null;
|
|
1325
1325
|
var tmp_0;
|
|
1326
|
-
if ((dc == null ? null : dc.
|
|
1326
|
+
if ((dc == null ? null : dc.iu_1) === _this__u8e3s4) {
|
|
1327
1327
|
tmp_0 = 4;
|
|
1328
1328
|
} else {
|
|
1329
|
-
tmp_0 = this.
|
|
1329
|
+
tmp_0 = this.qu_1;
|
|
1330
1330
|
}
|
|
1331
|
-
this.
|
|
1331
|
+
this.sv(value, tmp_0);
|
|
1332
1332
|
};
|
|
1333
|
-
protoOf(CancellableContinuationImpl).
|
|
1333
|
+
protoOf(CancellableContinuationImpl).qv = function (state) {
|
|
1334
1334
|
var tmp;
|
|
1335
1335
|
if (state instanceof CompletedContinuation) {
|
|
1336
|
-
var tmp_0 = state.
|
|
1336
|
+
var tmp_0 = state.xu_1;
|
|
1337
1337
|
tmp = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
1338
1338
|
} else {
|
|
1339
1339
|
tmp = (state == null ? true : !(state == null)) ? state : THROW_CCE();
|
|
1340
1340
|
}
|
|
1341
1341
|
return tmp;
|
|
1342
1342
|
};
|
|
1343
|
-
protoOf(CancellableContinuationImpl).
|
|
1344
|
-
var tmp0_safe_receiver = protoOf(DispatchedTask).
|
|
1343
|
+
protoOf(CancellableContinuationImpl).aw = function (state) {
|
|
1344
|
+
var tmp0_safe_receiver = protoOf(DispatchedTask).aw.call(this, state);
|
|
1345
1345
|
var tmp;
|
|
1346
1346
|
if (tmp0_safe_receiver == null) {
|
|
1347
1347
|
tmp = null;
|
|
1348
1348
|
} else {
|
|
1349
1349
|
// Inline function 'kotlin.let' call
|
|
1350
|
-
tmp = recoverStackTrace(tmp0_safe_receiver, this.
|
|
1350
|
+
tmp = recoverStackTrace(tmp0_safe_receiver, this.ks_1);
|
|
1351
1351
|
}
|
|
1352
1352
|
return tmp;
|
|
1353
1353
|
};
|
|
1354
1354
|
protoOf(CancellableContinuationImpl).toString = function () {
|
|
1355
|
-
return this.
|
|
1355
|
+
return this.bw() + '(' + toDebugString(this.ks_1) + '){' + _get_stateDebugRepresentation__bf18u4(this) + '}@' + get_hexAddress(this);
|
|
1356
1356
|
};
|
|
1357
|
-
protoOf(CancellableContinuationImpl).
|
|
1357
|
+
protoOf(CancellableContinuationImpl).bw = function () {
|
|
1358
1358
|
return 'CancellableContinuation';
|
|
1359
1359
|
};
|
|
1360
1360
|
function NotCompleted() {
|
|
1361
1361
|
}
|
|
1362
1362
|
function UserSupplied(handler) {
|
|
1363
|
-
this.
|
|
1363
|
+
this.ew_1 = handler;
|
|
1364
1364
|
}
|
|
1365
|
-
protoOf(UserSupplied).
|
|
1366
|
-
this.
|
|
1365
|
+
protoOf(UserSupplied).nr = function (cause) {
|
|
1366
|
+
this.ew_1(cause);
|
|
1367
1367
|
};
|
|
1368
1368
|
protoOf(UserSupplied).toString = function () {
|
|
1369
|
-
return 'CancelHandler.UserSupplied[' + get_classSimpleName(this.
|
|
1369
|
+
return 'CancelHandler.UserSupplied[' + get_classSimpleName(this.ew_1) + '@' + get_hexAddress(this) + ']';
|
|
1370
1370
|
};
|
|
1371
1371
|
function CancelHandler() {
|
|
1372
1372
|
}
|
|
@@ -1384,51 +1384,51 @@
|
|
|
1384
1384
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
1385
1385
|
idempotentResume = idempotentResume === VOID ? null : idempotentResume;
|
|
1386
1386
|
cancelCause = cancelCause === VOID ? null : cancelCause;
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1387
|
+
this.xu_1 = result;
|
|
1388
|
+
this.yu_1 = cancelHandler;
|
|
1389
|
+
this.zu_1 = onCancellation;
|
|
1390
|
+
this.av_1 = idempotentResume;
|
|
1391
|
+
this.bv_1 = cancelCause;
|
|
1392
1392
|
}
|
|
1393
|
-
protoOf(CompletedContinuation).
|
|
1394
|
-
return !(this.
|
|
1393
|
+
protoOf(CompletedContinuation).dv = function () {
|
|
1394
|
+
return !(this.bv_1 == null);
|
|
1395
1395
|
};
|
|
1396
|
-
protoOf(CompletedContinuation).
|
|
1397
|
-
var tmp0_safe_receiver = this.
|
|
1396
|
+
protoOf(CompletedContinuation).kv = function (cont, cause) {
|
|
1397
|
+
var tmp0_safe_receiver = this.yu_1;
|
|
1398
1398
|
if (tmp0_safe_receiver == null)
|
|
1399
1399
|
null;
|
|
1400
1400
|
else {
|
|
1401
1401
|
// Inline function 'kotlin.let' call
|
|
1402
|
-
cont.
|
|
1402
|
+
cont.cv(tmp0_safe_receiver, cause);
|
|
1403
1403
|
}
|
|
1404
|
-
var tmp1_safe_receiver = this.
|
|
1404
|
+
var tmp1_safe_receiver = this.zu_1;
|
|
1405
1405
|
if (tmp1_safe_receiver == null)
|
|
1406
1406
|
null;
|
|
1407
1407
|
else {
|
|
1408
1408
|
// Inline function 'kotlin.let' call
|
|
1409
|
-
cont.
|
|
1409
|
+
cont.nv(tmp1_safe_receiver, cause, this.xu_1);
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
|
-
protoOf(CompletedContinuation).
|
|
1412
|
+
protoOf(CompletedContinuation).fw = function (result, cancelHandler, onCancellation, idempotentResume, cancelCause) {
|
|
1413
1413
|
return new CompletedContinuation(result, cancelHandler, onCancellation, idempotentResume, cancelCause);
|
|
1414
1414
|
};
|
|
1415
|
-
protoOf(CompletedContinuation).
|
|
1416
|
-
result = result === VOID ? this.
|
|
1417
|
-
cancelHandler = cancelHandler === VOID ? this.
|
|
1418
|
-
onCancellation = onCancellation === VOID ? this.
|
|
1419
|
-
idempotentResume = idempotentResume === VOID ? this.
|
|
1420
|
-
cancelCause = cancelCause === VOID ? this.
|
|
1421
|
-
return $super === VOID ? this.
|
|
1415
|
+
protoOf(CompletedContinuation).ev = function (result, cancelHandler, onCancellation, idempotentResume, cancelCause, $super) {
|
|
1416
|
+
result = result === VOID ? this.xu_1 : result;
|
|
1417
|
+
cancelHandler = cancelHandler === VOID ? this.yu_1 : cancelHandler;
|
|
1418
|
+
onCancellation = onCancellation === VOID ? this.zu_1 : onCancellation;
|
|
1419
|
+
idempotentResume = idempotentResume === VOID ? this.av_1 : idempotentResume;
|
|
1420
|
+
cancelCause = cancelCause === VOID ? this.bv_1 : cancelCause;
|
|
1421
|
+
return $super === VOID ? this.fw(result, cancelHandler, onCancellation, idempotentResume, cancelCause) : $super.fw.call(this, result, cancelHandler, onCancellation, idempotentResume, cancelCause);
|
|
1422
1422
|
};
|
|
1423
1423
|
protoOf(CompletedContinuation).toString = function () {
|
|
1424
|
-
return 'CompletedContinuation(result=' + toString_0(this.
|
|
1424
|
+
return 'CompletedContinuation(result=' + toString_0(this.xu_1) + ', cancelHandler=' + toString_0(this.yu_1) + ', onCancellation=' + toString_0(this.zu_1) + ', idempotentResume=' + toString_0(this.av_1) + ', cancelCause=' + toString_0(this.bv_1) + ')';
|
|
1425
1425
|
};
|
|
1426
1426
|
protoOf(CompletedContinuation).hashCode = function () {
|
|
1427
|
-
var result = this.
|
|
1428
|
-
result = imul(result, 31) + (this.xu_1 == null ? 0 : hashCode(this.xu_1)) | 0;
|
|
1427
|
+
var result = this.xu_1 == null ? 0 : hashCode(this.xu_1);
|
|
1429
1428
|
result = imul(result, 31) + (this.yu_1 == null ? 0 : hashCode(this.yu_1)) | 0;
|
|
1430
1429
|
result = imul(result, 31) + (this.zu_1 == null ? 0 : hashCode(this.zu_1)) | 0;
|
|
1431
1430
|
result = imul(result, 31) + (this.av_1 == null ? 0 : hashCode(this.av_1)) | 0;
|
|
1431
|
+
result = imul(result, 31) + (this.bv_1 == null ? 0 : hashCode(this.bv_1)) | 0;
|
|
1432
1432
|
return result;
|
|
1433
1433
|
};
|
|
1434
1434
|
protoOf(CompletedContinuation).equals = function (other) {
|
|
@@ -1437,8 +1437,6 @@
|
|
|
1437
1437
|
if (!(other instanceof CompletedContinuation))
|
|
1438
1438
|
return false;
|
|
1439
1439
|
var tmp0_other_with_cast = other instanceof CompletedContinuation ? other : THROW_CCE();
|
|
1440
|
-
if (!equals(this.wu_1, tmp0_other_with_cast.wu_1))
|
|
1441
|
-
return false;
|
|
1442
1440
|
if (!equals(this.xu_1, tmp0_other_with_cast.xu_1))
|
|
1443
1441
|
return false;
|
|
1444
1442
|
if (!equals(this.yu_1, tmp0_other_with_cast.yu_1))
|
|
@@ -1447,17 +1445,19 @@
|
|
|
1447
1445
|
return false;
|
|
1448
1446
|
if (!equals(this.av_1, tmp0_other_with_cast.av_1))
|
|
1449
1447
|
return false;
|
|
1448
|
+
if (!equals(this.bv_1, tmp0_other_with_cast.bv_1))
|
|
1449
|
+
return false;
|
|
1450
1450
|
return true;
|
|
1451
1451
|
};
|
|
1452
1452
|
function ChildContinuation(child) {
|
|
1453
1453
|
JobNode.call(this);
|
|
1454
|
-
this.
|
|
1454
|
+
this.kw_1 = child;
|
|
1455
1455
|
}
|
|
1456
|
-
protoOf(ChildContinuation).
|
|
1456
|
+
protoOf(ChildContinuation).qr = function () {
|
|
1457
1457
|
return true;
|
|
1458
1458
|
};
|
|
1459
|
-
protoOf(ChildContinuation).
|
|
1460
|
-
this.
|
|
1459
|
+
protoOf(ChildContinuation).nr = function (cause) {
|
|
1460
|
+
this.kw_1.mv(this.kw_1.ov(this.as()));
|
|
1461
1461
|
};
|
|
1462
1462
|
var properties_initialized_CancellableContinuationImpl_kt_xtzb03;
|
|
1463
1463
|
function _init_properties_CancellableContinuationImpl_kt__6rrtdd() {
|
|
@@ -1472,7 +1472,7 @@
|
|
|
1472
1472
|
}
|
|
1473
1473
|
function $awaitCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
1474
1474
|
CoroutineImpl.call(this, resultContinuation);
|
|
1475
|
-
this.
|
|
1475
|
+
this.tw_1 = _this__u8e3s4;
|
|
1476
1476
|
}
|
|
1477
1477
|
protoOf($awaitCOROUTINE$2).o9 = function () {
|
|
1478
1478
|
var suspendResult = this.i9_1;
|
|
@@ -1483,7 +1483,7 @@
|
|
|
1483
1483
|
case 0:
|
|
1484
1484
|
this.h9_1 = 2;
|
|
1485
1485
|
this.g9_1 = 1;
|
|
1486
|
-
suspendResult = this.
|
|
1486
|
+
suspendResult = this.tw_1.oq(this);
|
|
1487
1487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1488
1488
|
return suspendResult;
|
|
1489
1489
|
}
|
|
@@ -1512,25 +1512,25 @@
|
|
|
1512
1512
|
protoOf(CompletableDeferredImpl).wp = function () {
|
|
1513
1513
|
return true;
|
|
1514
1514
|
};
|
|
1515
|
-
protoOf(CompletableDeferredImpl).
|
|
1516
|
-
var tmp = this.
|
|
1515
|
+
protoOf(CompletableDeferredImpl).tr = function () {
|
|
1516
|
+
var tmp = this.nq();
|
|
1517
1517
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1518
1518
|
};
|
|
1519
|
-
protoOf(CompletableDeferredImpl).
|
|
1519
|
+
protoOf(CompletableDeferredImpl).vt = function ($completion) {
|
|
1520
1520
|
var tmp = new $awaitCOROUTINE$2(this, $completion);
|
|
1521
1521
|
tmp.i9_1 = Unit_instance;
|
|
1522
1522
|
tmp.j9_1 = null;
|
|
1523
1523
|
return tmp.o9();
|
|
1524
1524
|
};
|
|
1525
|
-
protoOf(CompletableDeferredImpl).
|
|
1526
|
-
var tmp = this.
|
|
1525
|
+
protoOf(CompletableDeferredImpl).wt = function () {
|
|
1526
|
+
var tmp = this.pq();
|
|
1527
1527
|
return isInterface(tmp, SelectClause1) ? tmp : THROW_CCE();
|
|
1528
1528
|
};
|
|
1529
|
-
protoOf(CompletableDeferredImpl).
|
|
1530
|
-
return this.
|
|
1529
|
+
protoOf(CompletableDeferredImpl).ww = function (value) {
|
|
1530
|
+
return this.fq(value);
|
|
1531
1531
|
};
|
|
1532
1532
|
protoOf(CompletableDeferredImpl).xw = function (exception) {
|
|
1533
|
-
return this.
|
|
1533
|
+
return this.fq(new CompletedExceptionally(exception));
|
|
1534
1534
|
};
|
|
1535
1535
|
function CompletableJob() {
|
|
1536
1536
|
}
|
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
protoOf(CompletedExceptionally).xo = function () {
|
|
1543
1543
|
return this.wo_1.kotlinx$atomicfu$value;
|
|
1544
1544
|
};
|
|
1545
|
-
protoOf(CompletedExceptionally).
|
|
1545
|
+
protoOf(CompletedExceptionally).fv = function () {
|
|
1546
1546
|
return this.wo_1.atomicfu$compareAndSet(false, true);
|
|
1547
1547
|
};
|
|
1548
1548
|
protoOf(CompletedExceptionally).toString = function () {
|
|
@@ -1550,10 +1550,10 @@
|
|
|
1550
1550
|
};
|
|
1551
1551
|
function CancelledContinuation(continuation, cause, handled) {
|
|
1552
1552
|
CompletedExceptionally.call(this, cause == null ? CancellationException_init_$Create$('Continuation ' + toString(continuation) + ' was cancelled normally') : cause, handled);
|
|
1553
|
-
this.
|
|
1553
|
+
this.yv_1 = atomic$boolean$1(false);
|
|
1554
1554
|
}
|
|
1555
|
-
protoOf(CancelledContinuation).
|
|
1556
|
-
return this.
|
|
1555
|
+
protoOf(CancelledContinuation).zv = function () {
|
|
1556
|
+
return this.yv_1.atomicfu$compareAndSet(false, true);
|
|
1557
1557
|
};
|
|
1558
1558
|
function toState(_this__u8e3s4, caller) {
|
|
1559
1559
|
// Inline function 'kotlin.getOrElse' call
|
|
@@ -1763,7 +1763,7 @@
|
|
|
1763
1763
|
}
|
|
1764
1764
|
return tmp;
|
|
1765
1765
|
};
|
|
1766
|
-
protoOf(CoroutineStart).
|
|
1766
|
+
protoOf(CoroutineStart).rs = function () {
|
|
1767
1767
|
return this === CoroutineStart_LAZY_getInstance();
|
|
1768
1768
|
};
|
|
1769
1769
|
function CoroutineStart_DEFAULT_getInstance() {
|
|
@@ -1787,11 +1787,11 @@
|
|
|
1787
1787
|
if (timeMillis.e1(new Long(0, 0)) <= 0)
|
|
1788
1788
|
return Unit_instance;
|
|
1789
1789
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
1790
|
-
cancellable.
|
|
1790
|
+
cancellable.ps();
|
|
1791
1791
|
if (timeMillis.e1(new Long(-1, 2147483647)) < 0) {
|
|
1792
1792
|
get_delay(cancellable.m9()).jx(timeMillis, cancellable);
|
|
1793
1793
|
}
|
|
1794
|
-
return cancellable.
|
|
1794
|
+
return cancellable.qs();
|
|
1795
1795
|
}
|
|
1796
1796
|
function delta($this, unconfined) {
|
|
1797
1797
|
return unconfined ? new Long(0, 1) : new Long(1, 0);
|
|
@@ -1819,7 +1819,7 @@
|
|
|
1819
1819
|
tmp_0 = tmp1_elvis_lhs;
|
|
1820
1820
|
}
|
|
1821
1821
|
var task = tmp_0;
|
|
1822
|
-
task.
|
|
1822
|
+
task.cw();
|
|
1823
1823
|
return true;
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(EventLoop).px = function (task) {
|
|
@@ -1905,7 +1905,7 @@
|
|
|
1905
1905
|
}
|
|
1906
1906
|
function NonDisposableHandle() {
|
|
1907
1907
|
}
|
|
1908
|
-
protoOf(NonDisposableHandle).
|
|
1908
|
+
protoOf(NonDisposableHandle).mr = function () {
|
|
1909
1909
|
};
|
|
1910
1910
|
protoOf(NonDisposableHandle).bq = function (cause) {
|
|
1911
1911
|
return false;
|
|
@@ -1931,7 +1931,7 @@
|
|
|
1931
1931
|
if (_this__u8e3s4 instanceof JobSupport) {
|
|
1932
1932
|
tmp = _this__u8e3s4.up(invokeImmediately, handler);
|
|
1933
1933
|
} else {
|
|
1934
|
-
var tmp_0 = handler.
|
|
1934
|
+
var tmp_0 = handler.qr();
|
|
1935
1935
|
tmp = _this__u8e3s4.sp(tmp_0, invokeImmediately, JobNode$invoke$ref(handler));
|
|
1936
1936
|
}
|
|
1937
1937
|
return tmp;
|
|
@@ -1970,7 +1970,7 @@
|
|
|
1970
1970
|
}
|
|
1971
1971
|
function JobNode$invoke$ref($boundThis) {
|
|
1972
1972
|
var l = function (p0) {
|
|
1973
|
-
$boundThis.
|
|
1973
|
+
$boundThis.nr(p0);
|
|
1974
1974
|
return Unit_instance;
|
|
1975
1975
|
};
|
|
1976
1976
|
l.callableName = 'invoke';
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
protoOf(Empty).qo = function () {
|
|
2018
2018
|
return this.ay_1;
|
|
2019
2019
|
};
|
|
2020
|
-
protoOf(Empty).
|
|
2020
|
+
protoOf(Empty).bs = function () {
|
|
2021
2021
|
return null;
|
|
2022
2022
|
};
|
|
2023
2023
|
protoOf(Empty).toString = function () {
|
|
@@ -2031,7 +2031,7 @@
|
|
|
2031
2031
|
protoOf(NodeList).qo = function () {
|
|
2032
2032
|
return true;
|
|
2033
2033
|
};
|
|
2034
|
-
protoOf(NodeList).
|
|
2034
|
+
protoOf(NodeList).bs = function () {
|
|
2035
2035
|
return this;
|
|
2036
2036
|
};
|
|
2037
2037
|
protoOf(NodeList).ey = function (state) {
|
|
@@ -2043,7 +2043,7 @@
|
|
|
2043
2043
|
this_0.r8('}[');
|
|
2044
2044
|
var first = true;
|
|
2045
2045
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
|
|
2046
|
-
var cur = this.
|
|
2046
|
+
var cur = this.cs_1;
|
|
2047
2047
|
while (!equals(cur, this)) {
|
|
2048
2048
|
var node = cur;
|
|
2049
2049
|
if (node instanceof JobNode) {
|
|
@@ -2053,7 +2053,7 @@
|
|
|
2053
2053
|
this_0.r8(', ');
|
|
2054
2054
|
this_0.q8(node);
|
|
2055
2055
|
}
|
|
2056
|
-
cur = cur.
|
|
2056
|
+
cur = cur.cs_1;
|
|
2057
2057
|
}
|
|
2058
2058
|
this_0.r8(']');
|
|
2059
2059
|
return this_0.toString();
|
|
@@ -2064,8 +2064,8 @@
|
|
|
2064
2064
|
function JobNode() {
|
|
2065
2065
|
LockFreeLinkedListNode.call(this);
|
|
2066
2066
|
}
|
|
2067
|
-
protoOf(JobNode).
|
|
2068
|
-
var tmp = this.
|
|
2067
|
+
protoOf(JobNode).as = function () {
|
|
2068
|
+
var tmp = this.zr_1;
|
|
2069
2069
|
if (!(tmp == null))
|
|
2070
2070
|
return tmp;
|
|
2071
2071
|
else {
|
|
@@ -2075,14 +2075,14 @@
|
|
|
2075
2075
|
protoOf(JobNode).qo = function () {
|
|
2076
2076
|
return true;
|
|
2077
2077
|
};
|
|
2078
|
-
protoOf(JobNode).
|
|
2078
|
+
protoOf(JobNode).bs = function () {
|
|
2079
2079
|
return null;
|
|
2080
2080
|
};
|
|
2081
|
-
protoOf(JobNode).
|
|
2082
|
-
return this.
|
|
2081
|
+
protoOf(JobNode).mr = function () {
|
|
2082
|
+
return this.as().vp(this);
|
|
2083
2083
|
};
|
|
2084
2084
|
protoOf(JobNode).toString = function () {
|
|
2085
|
-
return get_classSimpleName(this) + '@' + get_hexAddress(this) + '[job@' + get_hexAddress(this.
|
|
2085
|
+
return get_classSimpleName(this) + '@' + get_hexAddress(this) + '[job@' + get_hexAddress(this.as()) + ']';
|
|
2086
2086
|
};
|
|
2087
2087
|
function _set_exceptionsHolder__tqm22h($this, value) {
|
|
2088
2088
|
$this.jy_1.kotlinx$atomicfu$value = value;
|
|
@@ -2111,13 +2111,13 @@
|
|
|
2111
2111
|
var finalException = finalCause;
|
|
2112
2112
|
var finalState = finalException == null ? proposedUpdate : finalException === proposedException ? proposedUpdate : new CompletedExceptionally(finalException);
|
|
2113
2113
|
if (!(finalException == null)) {
|
|
2114
|
-
var handled = cancelParent($this, finalException) || $this.
|
|
2114
|
+
var handled = cancelParent($this, finalException) || $this.kq(finalException);
|
|
2115
2115
|
if (handled) {
|
|
2116
|
-
(finalState instanceof CompletedExceptionally ? finalState : THROW_CCE()).
|
|
2116
|
+
(finalState instanceof CompletedExceptionally ? finalState : THROW_CCE()).fv();
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
2119
|
if (!wasCancelling) {
|
|
2120
|
-
$this.
|
|
2120
|
+
$this.hq(finalException);
|
|
2121
2121
|
}
|
|
2122
2122
|
$this.uo(finalState);
|
|
2123
2123
|
var casSuccess = $this.jo_1.atomicfu$compareAndSet(state, boxIncomplete(finalState));
|
|
@@ -2207,7 +2207,7 @@
|
|
|
2207
2207
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2208
2208
|
if (!$this.jo_1.atomicfu$compareAndSet(state, boxIncomplete(update)))
|
|
2209
2209
|
return false;
|
|
2210
|
-
$this.
|
|
2210
|
+
$this.hq(null);
|
|
2211
2211
|
$this.uo(update);
|
|
2212
2212
|
completeStateFinalization($this, state, update);
|
|
2213
2213
|
return true;
|
|
@@ -2218,14 +2218,14 @@
|
|
|
2218
2218
|
null;
|
|
2219
2219
|
else {
|
|
2220
2220
|
// Inline function 'kotlin.let' call
|
|
2221
|
-
tmp0_safe_receiver.
|
|
2221
|
+
tmp0_safe_receiver.mr();
|
|
2222
2222
|
$this.hp(NonDisposableHandle_instance);
|
|
2223
2223
|
}
|
|
2224
2224
|
var tmp1_safe_receiver = update instanceof CompletedExceptionally ? update : null;
|
|
2225
2225
|
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vo_1;
|
|
2226
2226
|
if (state instanceof JobNode) {
|
|
2227
2227
|
try {
|
|
2228
|
-
state.
|
|
2228
|
+
state.nr(cause);
|
|
2229
2229
|
} catch ($p) {
|
|
2230
2230
|
if ($p instanceof Error) {
|
|
2231
2231
|
var ex = $p;
|
|
@@ -2235,7 +2235,7 @@
|
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
2237
|
} else {
|
|
2238
|
-
var tmp2_safe_receiver = state.
|
|
2238
|
+
var tmp2_safe_receiver = state.bs();
|
|
2239
2239
|
if (tmp2_safe_receiver == null)
|
|
2240
2240
|
null;
|
|
2241
2241
|
else {
|
|
@@ -2244,23 +2244,23 @@
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
function notifyCancelling($this, list, cause) {
|
|
2247
|
-
$this.
|
|
2247
|
+
$this.hq(cause);
|
|
2248
2248
|
list.fy(4);
|
|
2249
2249
|
// Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers' call
|
|
2250
2250
|
var exception = null;
|
|
2251
2251
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
|
|
2252
|
-
var cur = list.
|
|
2252
|
+
var cur = list.cs_1;
|
|
2253
2253
|
while (!equals(cur, list)) {
|
|
2254
2254
|
var node = cur;
|
|
2255
2255
|
var tmp;
|
|
2256
2256
|
if (node instanceof JobNode) {
|
|
2257
|
-
tmp = node.
|
|
2257
|
+
tmp = node.qr();
|
|
2258
2258
|
} else {
|
|
2259
2259
|
tmp = false;
|
|
2260
2260
|
}
|
|
2261
2261
|
if (tmp) {
|
|
2262
2262
|
try {
|
|
2263
|
-
node.
|
|
2263
|
+
node.nr(cause);
|
|
2264
2264
|
} catch ($p) {
|
|
2265
2265
|
if ($p instanceof Error) {
|
|
2266
2266
|
var ex = $p;
|
|
@@ -2282,7 +2282,7 @@
|
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
cur = cur.
|
|
2285
|
+
cur = cur.cs_1;
|
|
2286
2286
|
}
|
|
2287
2287
|
var tmp0_safe_receiver_0 = exception;
|
|
2288
2288
|
if (tmp0_safe_receiver_0 == null)
|
|
@@ -2294,7 +2294,7 @@
|
|
|
2294
2294
|
cancelParent($this, cause);
|
|
2295
2295
|
}
|
|
2296
2296
|
function cancelParent($this, cause) {
|
|
2297
|
-
if ($this.
|
|
2297
|
+
if ($this.iq())
|
|
2298
2298
|
return true;
|
|
2299
2299
|
var isCancellation = cause instanceof CancellationException;
|
|
2300
2300
|
var parent = $this.ip();
|
|
@@ -2308,7 +2308,7 @@
|
|
|
2308
2308
|
// Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers' call
|
|
2309
2309
|
var exception = null;
|
|
2310
2310
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
|
|
2311
|
-
var cur = _this__u8e3s4.
|
|
2311
|
+
var cur = _this__u8e3s4.cs_1;
|
|
2312
2312
|
while (!equals(cur, _this__u8e3s4)) {
|
|
2313
2313
|
var node = cur;
|
|
2314
2314
|
var tmp;
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
}
|
|
2320
2320
|
if (tmp) {
|
|
2321
2321
|
try {
|
|
2322
|
-
node.
|
|
2322
|
+
node.nr(cause);
|
|
2323
2323
|
} catch ($p) {
|
|
2324
2324
|
if ($p instanceof Error) {
|
|
2325
2325
|
var ex = $p;
|
|
@@ -2341,7 +2341,7 @@
|
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
|
-
cur = cur.
|
|
2344
|
+
cur = cur.cs_1;
|
|
2345
2345
|
}
|
|
2346
2346
|
var tmp0_safe_receiver_0 = exception;
|
|
2347
2347
|
if (tmp0_safe_receiver_0 == null)
|
|
@@ -2376,9 +2376,9 @@
|
|
|
2376
2376
|
$this.jo_1.atomicfu$compareAndSet(state, update);
|
|
2377
2377
|
}
|
|
2378
2378
|
function promoteSingleToNodeList($this, state) {
|
|
2379
|
-
state.
|
|
2379
|
+
state.hs(new NodeList());
|
|
2380
2380
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.nextNode' call
|
|
2381
|
-
var list = state.
|
|
2381
|
+
var list = state.cs_1;
|
|
2382
2382
|
$this.jo_1.atomicfu$compareAndSet(state, list);
|
|
2383
2383
|
}
|
|
2384
2384
|
function joinInternal($this) {
|
|
@@ -2393,9 +2393,9 @@
|
|
|
2393
2393
|
}
|
|
2394
2394
|
function joinSuspend($this, $completion) {
|
|
2395
2395
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
2396
|
-
cancellable.
|
|
2396
|
+
cancellable.ps();
|
|
2397
2397
|
disposeOnCancellation(cancellable, invokeOnCompletion($this, VOID, new ResumeOnCompletion(cancellable)));
|
|
2398
|
-
return cancellable.
|
|
2398
|
+
return cancellable.qs();
|
|
2399
2399
|
}
|
|
2400
2400
|
function cancelMakeCompleting($this, cause) {
|
|
2401
2401
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
@@ -2515,7 +2515,7 @@
|
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
2517
|
function getOrPromoteCancellingList($this, state) {
|
|
2518
|
-
var tmp0_elvis_lhs = state.
|
|
2518
|
+
var tmp0_elvis_lhs = state.bs();
|
|
2519
2519
|
var tmp;
|
|
2520
2520
|
if (tmp0_elvis_lhs == null) {
|
|
2521
2521
|
var tmp_0;
|
|
@@ -2688,17 +2688,17 @@
|
|
|
2688
2688
|
var cur = _this__u8e3s4;
|
|
2689
2689
|
$l$loop: while (true) {
|
|
2690
2690
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.isRemoved' call
|
|
2691
|
-
if (!cur.
|
|
2691
|
+
if (!cur.es_1) {
|
|
2692
2692
|
break $l$loop;
|
|
2693
2693
|
}
|
|
2694
2694
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.prevNode' call
|
|
2695
|
-
cur = cur.
|
|
2695
|
+
cur = cur.ds_1;
|
|
2696
2696
|
}
|
|
2697
2697
|
$l$loop_0: while (true) {
|
|
2698
2698
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.nextNode' call
|
|
2699
|
-
cur = cur.
|
|
2699
|
+
cur = cur.cs_1;
|
|
2700
2700
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.isRemoved' call
|
|
2701
|
-
if (cur.
|
|
2701
|
+
if (cur.es_1)
|
|
2702
2702
|
continue $l$loop_0;
|
|
2703
2703
|
if (cur instanceof ChildHandleNode)
|
|
2704
2704
|
return cur;
|
|
@@ -2730,7 +2730,7 @@
|
|
|
2730
2730
|
this.iy_1 = atomic$ref$1(rootCause);
|
|
2731
2731
|
this.jy_1 = atomic$ref$1(null);
|
|
2732
2732
|
}
|
|
2733
|
-
protoOf(Finishing).
|
|
2733
|
+
protoOf(Finishing).bs = function () {
|
|
2734
2734
|
return this.gy_1;
|
|
2735
2735
|
};
|
|
2736
2736
|
protoOf(Finishing).ry = function (value) {
|
|
@@ -2829,17 +2829,17 @@
|
|
|
2829
2829
|
this.ez_1 = child;
|
|
2830
2830
|
this.fz_1 = proposedUpdate;
|
|
2831
2831
|
}
|
|
2832
|
-
protoOf(ChildCompletion).
|
|
2832
|
+
protoOf(ChildCompletion).qr = function () {
|
|
2833
2833
|
return false;
|
|
2834
2834
|
};
|
|
2835
|
-
protoOf(ChildCompletion).
|
|
2835
|
+
protoOf(ChildCompletion).nr = function (cause) {
|
|
2836
2836
|
continueCompleting(this.cz_1, this.dz_1, this.ez_1, this.fz_1);
|
|
2837
2837
|
};
|
|
2838
2838
|
function AwaitContinuation(delegate, job) {
|
|
2839
2839
|
CancellableContinuationImpl.call(this, delegate, 1);
|
|
2840
2840
|
this.mz_1 = job;
|
|
2841
2841
|
}
|
|
2842
|
-
protoOf(AwaitContinuation).
|
|
2842
|
+
protoOf(AwaitContinuation).ov = function (parent) {
|
|
2843
2843
|
var state = this.mz_1.jp();
|
|
2844
2844
|
if (state instanceof Finishing) {
|
|
2845
2845
|
var tmp0_safe_receiver = state.qy();
|
|
@@ -2854,14 +2854,14 @@
|
|
|
2854
2854
|
return state.vo_1;
|
|
2855
2855
|
return parent.op();
|
|
2856
2856
|
};
|
|
2857
|
-
protoOf(AwaitContinuation).
|
|
2857
|
+
protoOf(AwaitContinuation).bw = function () {
|
|
2858
2858
|
return 'AwaitContinuation';
|
|
2859
2859
|
};
|
|
2860
2860
|
function awaitSuspend($this, $completion) {
|
|
2861
2861
|
var cont = new AwaitContinuation(intercepted($completion), $this);
|
|
2862
|
-
cont.
|
|
2862
|
+
cont.ps();
|
|
2863
2863
|
disposeOnCancellation(cont, invokeOnCompletion($this, VOID, new ResumeAwaitOnCompletion(cont)));
|
|
2864
|
-
return cont.
|
|
2864
|
+
return cont.qs();
|
|
2865
2865
|
}
|
|
2866
2866
|
function onAwaitInternalRegFunc($this, select, ignoredParam) {
|
|
2867
2867
|
$l$loop: while (true) {
|
|
@@ -2893,10 +2893,10 @@
|
|
|
2893
2893
|
JobNode.call(this);
|
|
2894
2894
|
this.tz_1 = select;
|
|
2895
2895
|
}
|
|
2896
|
-
protoOf(SelectOnAwaitCompletionHandler).
|
|
2896
|
+
protoOf(SelectOnAwaitCompletionHandler).qr = function () {
|
|
2897
2897
|
return false;
|
|
2898
2898
|
};
|
|
2899
|
-
protoOf(SelectOnAwaitCompletionHandler).
|
|
2899
|
+
protoOf(SelectOnAwaitCompletionHandler).nr = function (cause) {
|
|
2900
2900
|
var state = this.uz_1.jp();
|
|
2901
2901
|
var tmp;
|
|
2902
2902
|
if (state instanceof CompletedExceptionally) {
|
|
@@ -2942,10 +2942,10 @@
|
|
|
2942
2942
|
return Unit_instance;
|
|
2943
2943
|
}
|
|
2944
2944
|
parent.mp();
|
|
2945
|
-
var handle = parent.
|
|
2945
|
+
var handle = parent.gq(this);
|
|
2946
2946
|
this.hp(handle);
|
|
2947
2947
|
if (this.kp()) {
|
|
2948
|
-
handle.
|
|
2948
|
+
handle.mr();
|
|
2949
2949
|
this.hp(NonDisposableHandle_instance);
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
@@ -3051,7 +3051,7 @@
|
|
|
3051
3051
|
return this.up(invokeImmediately, tmp);
|
|
3052
3052
|
};
|
|
3053
3053
|
protoOf(JobSupport).up = function (invokeImmediately, node) {
|
|
3054
|
-
node.
|
|
3054
|
+
node.zr_1 = this;
|
|
3055
3055
|
var tmp$ret$0;
|
|
3056
3056
|
$l$block_1: {
|
|
3057
3057
|
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList' call
|
|
@@ -3069,26 +3069,26 @@
|
|
|
3069
3069
|
}
|
|
3070
3070
|
} else {
|
|
3071
3071
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
3072
|
-
var list = state.
|
|
3072
|
+
var list = state.bs();
|
|
3073
3073
|
if (list == null) {
|
|
3074
3074
|
promoteSingleToNodeList(this, state instanceof JobNode ? state : THROW_CCE());
|
|
3075
3075
|
} else {
|
|
3076
3076
|
var tmp;
|
|
3077
|
-
if (node.
|
|
3077
|
+
if (node.qr()) {
|
|
3078
3078
|
var tmp0_safe_receiver = state instanceof Finishing ? state : null;
|
|
3079
3079
|
var rootCause = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qy();
|
|
3080
3080
|
var tmp_0;
|
|
3081
3081
|
if (rootCause == null) {
|
|
3082
|
-
tmp_0 = list.
|
|
3082
|
+
tmp_0 = list.fs(node, 5);
|
|
3083
3083
|
} else {
|
|
3084
3084
|
if (invokeImmediately) {
|
|
3085
|
-
node.
|
|
3085
|
+
node.nr(rootCause);
|
|
3086
3086
|
}
|
|
3087
3087
|
return NonDisposableHandle_instance;
|
|
3088
3088
|
}
|
|
3089
3089
|
tmp = tmp_0;
|
|
3090
3090
|
} else {
|
|
3091
|
-
tmp = list.
|
|
3091
|
+
tmp = list.fs(node, 1);
|
|
3092
3092
|
}
|
|
3093
3093
|
if (tmp) {
|
|
3094
3094
|
tmp$ret$0 = true;
|
|
@@ -3108,7 +3108,7 @@
|
|
|
3108
3108
|
else if (invokeImmediately) {
|
|
3109
3109
|
var tmp_1 = this.jp();
|
|
3110
3110
|
var tmp0_safe_receiver_0 = tmp_1 instanceof CompletedExceptionally ? tmp_1 : null;
|
|
3111
|
-
node.
|
|
3111
|
+
node.nr(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.vo_1);
|
|
3112
3112
|
}
|
|
3113
3113
|
return NonDisposableHandle_instance;
|
|
3114
3114
|
};
|
|
@@ -3132,8 +3132,8 @@
|
|
|
3132
3132
|
return Unit_instance;
|
|
3133
3133
|
} else {
|
|
3134
3134
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
3135
|
-
if (!(state.
|
|
3136
|
-
node.
|
|
3135
|
+
if (!(state.bs() == null)) {
|
|
3136
|
+
node.gs();
|
|
3137
3137
|
}
|
|
3138
3138
|
return Unit_instance;
|
|
3139
3139
|
} else {
|
|
@@ -3167,7 +3167,7 @@
|
|
|
3167
3167
|
protoOf(JobSupport).bq = function (cause) {
|
|
3168
3168
|
if (cause instanceof CancellationException)
|
|
3169
3169
|
return true;
|
|
3170
|
-
return this.dq(cause) && this.
|
|
3170
|
+
return this.dq(cause) && this.jq();
|
|
3171
3171
|
};
|
|
3172
3172
|
protoOf(JobSupport).cq = function (cause) {
|
|
3173
3173
|
return this.dq(cause);
|
|
@@ -3216,7 +3216,7 @@
|
|
|
3216
3216
|
var tmp1_elvis_lhs = rootCause instanceof CancellationException ? rootCause : null;
|
|
3217
3217
|
return tmp1_elvis_lhs == null ? new JobCancellationException('Parent job is ' + stateString(this, state), rootCause, this) : tmp1_elvis_lhs;
|
|
3218
3218
|
};
|
|
3219
|
-
protoOf(JobSupport).
|
|
3219
|
+
protoOf(JobSupport).fq = function (proposedUpdate) {
|
|
3220
3220
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
3221
3221
|
while (true) {
|
|
3222
3222
|
var tmp1 = this.jp();
|
|
@@ -3250,10 +3250,10 @@
|
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
3252
|
};
|
|
3253
|
-
protoOf(JobSupport).
|
|
3253
|
+
protoOf(JobSupport).gq = function (child) {
|
|
3254
3254
|
// Inline function 'kotlin.also' call
|
|
3255
3255
|
var this_0 = new ChildHandleNode(child);
|
|
3256
|
-
this_0.
|
|
3256
|
+
this_0.zr_1 = this;
|
|
3257
3257
|
var node = this_0;
|
|
3258
3258
|
var tmp$ret$2;
|
|
3259
3259
|
$l$block_1: {
|
|
@@ -3272,16 +3272,16 @@
|
|
|
3272
3272
|
}
|
|
3273
3273
|
} else {
|
|
3274
3274
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
3275
|
-
var list = state.
|
|
3275
|
+
var list = state.bs();
|
|
3276
3276
|
if (list == null) {
|
|
3277
3277
|
promoteSingleToNodeList(this, state instanceof JobNode ? state : THROW_CCE());
|
|
3278
3278
|
} else {
|
|
3279
|
-
var addedBeforeCancellation = list.
|
|
3279
|
+
var addedBeforeCancellation = list.fs(node, 7);
|
|
3280
3280
|
var tmp;
|
|
3281
3281
|
if (addedBeforeCancellation) {
|
|
3282
3282
|
tmp = true;
|
|
3283
3283
|
} else {
|
|
3284
|
-
var addedBeforeCompletion = list.
|
|
3284
|
+
var addedBeforeCompletion = list.fs(node, 3);
|
|
3285
3285
|
var latestState = this.jp();
|
|
3286
3286
|
var tmp_0;
|
|
3287
3287
|
if (latestState instanceof Finishing) {
|
|
@@ -3292,7 +3292,7 @@
|
|
|
3292
3292
|
tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vo_1;
|
|
3293
3293
|
}
|
|
3294
3294
|
var rootCause = tmp_0;
|
|
3295
|
-
node.
|
|
3295
|
+
node.nr(rootCause);
|
|
3296
3296
|
var tmp_1;
|
|
3297
3297
|
if (addedBeforeCompletion) {
|
|
3298
3298
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
@@ -3319,21 +3319,21 @@
|
|
|
3319
3319
|
return node;
|
|
3320
3320
|
var tmp_2 = this.jp();
|
|
3321
3321
|
var tmp0_safe_receiver_0 = tmp_2 instanceof CompletedExceptionally ? tmp_2 : null;
|
|
3322
|
-
node.
|
|
3322
|
+
node.nr(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.vo_1);
|
|
3323
3323
|
return NonDisposableHandle_instance;
|
|
3324
3324
|
};
|
|
3325
3325
|
protoOf(JobSupport).bp = function (exception) {
|
|
3326
3326
|
throw exception;
|
|
3327
3327
|
};
|
|
3328
|
-
protoOf(JobSupport).
|
|
3328
|
+
protoOf(JobSupport).hq = function (cause) {
|
|
3329
3329
|
};
|
|
3330
|
-
protoOf(JobSupport).
|
|
3330
|
+
protoOf(JobSupport).iq = function () {
|
|
3331
3331
|
return false;
|
|
3332
3332
|
};
|
|
3333
|
-
protoOf(JobSupport).
|
|
3333
|
+
protoOf(JobSupport).jq = function () {
|
|
3334
3334
|
return true;
|
|
3335
3335
|
};
|
|
3336
|
-
protoOf(JobSupport).
|
|
3336
|
+
protoOf(JobSupport).kq = function (exception) {
|
|
3337
3337
|
return false;
|
|
3338
3338
|
};
|
|
3339
3339
|
protoOf(JobSupport).uo = function (state) {
|
|
@@ -3341,15 +3341,15 @@
|
|
|
3341
3341
|
protoOf(JobSupport).ap = function (state) {
|
|
3342
3342
|
};
|
|
3343
3343
|
protoOf(JobSupport).toString = function () {
|
|
3344
|
-
return this.
|
|
3344
|
+
return this.lq() + '@' + get_hexAddress(this);
|
|
3345
3345
|
};
|
|
3346
|
-
protoOf(JobSupport).
|
|
3346
|
+
protoOf(JobSupport).lq = function () {
|
|
3347
3347
|
return this.cp() + '{' + stateString(this, this.jp()) + '}';
|
|
3348
3348
|
};
|
|
3349
3349
|
protoOf(JobSupport).cp = function () {
|
|
3350
3350
|
return get_classSimpleName(this);
|
|
3351
3351
|
};
|
|
3352
|
-
protoOf(JobSupport).
|
|
3352
|
+
protoOf(JobSupport).mq = function () {
|
|
3353
3353
|
var state = this.jp();
|
|
3354
3354
|
// Inline function 'kotlin.check' call
|
|
3355
3355
|
if (!!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
@@ -3358,7 +3358,7 @@
|
|
|
3358
3358
|
}
|
|
3359
3359
|
return _get_exceptionOrNull__b3j7js(this, state);
|
|
3360
3360
|
};
|
|
3361
|
-
protoOf(JobSupport).
|
|
3361
|
+
protoOf(JobSupport).nq = function () {
|
|
3362
3362
|
var state = this.jp();
|
|
3363
3363
|
// Inline function 'kotlin.check' call
|
|
3364
3364
|
if (!!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
@@ -3369,7 +3369,7 @@
|
|
|
3369
3369
|
throw state.vo_1;
|
|
3370
3370
|
return unboxState(state);
|
|
3371
3371
|
};
|
|
3372
|
-
protoOf(JobSupport).
|
|
3372
|
+
protoOf(JobSupport).oq = function ($completion) {
|
|
3373
3373
|
$l$loop: while (true) {
|
|
3374
3374
|
var state = this.jp();
|
|
3375
3375
|
if (!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
@@ -3384,7 +3384,7 @@
|
|
|
3384
3384
|
}
|
|
3385
3385
|
return awaitSuspend(this, $completion);
|
|
3386
3386
|
};
|
|
3387
|
-
protoOf(JobSupport).
|
|
3387
|
+
protoOf(JobSupport).pq = function () {
|
|
3388
3388
|
var tmp = JobSupport$onAwaitInternalRegFunc$ref();
|
|
3389
3389
|
var tmp_0 = typeof tmp === 'function' ? tmp : THROW_CCE();
|
|
3390
3390
|
var tmp_1 = JobSupport$onAwaitInternalProcessResFunc$ref();
|
|
@@ -3403,7 +3403,7 @@
|
|
|
3403
3403
|
function InactiveNodeList(list) {
|
|
3404
3404
|
this.my_1 = list;
|
|
3405
3405
|
}
|
|
3406
|
-
protoOf(InactiveNodeList).
|
|
3406
|
+
protoOf(InactiveNodeList).bs = function () {
|
|
3407
3407
|
return this.my_1;
|
|
3408
3408
|
};
|
|
3409
3409
|
protoOf(InactiveNodeList).qo = function () {
|
|
@@ -3416,10 +3416,10 @@
|
|
|
3416
3416
|
JobNode.call(this);
|
|
3417
3417
|
this.a10_1 = handler;
|
|
3418
3418
|
}
|
|
3419
|
-
protoOf(InvokeOnCompletion).
|
|
3419
|
+
protoOf(InvokeOnCompletion).qr = function () {
|
|
3420
3420
|
return false;
|
|
3421
3421
|
};
|
|
3422
|
-
protoOf(InvokeOnCompletion).
|
|
3422
|
+
protoOf(InvokeOnCompletion).nr = function (cause) {
|
|
3423
3423
|
return this.a10_1(cause);
|
|
3424
3424
|
};
|
|
3425
3425
|
function InvokeOnCancelling(handler) {
|
|
@@ -3427,10 +3427,10 @@
|
|
|
3427
3427
|
this.f10_1 = handler;
|
|
3428
3428
|
this.g10_1 = atomic$boolean$1(false);
|
|
3429
3429
|
}
|
|
3430
|
-
protoOf(InvokeOnCancelling).
|
|
3430
|
+
protoOf(InvokeOnCancelling).qr = function () {
|
|
3431
3431
|
return true;
|
|
3432
3432
|
};
|
|
3433
|
-
protoOf(InvokeOnCancelling).
|
|
3433
|
+
protoOf(InvokeOnCancelling).nr = function (cause) {
|
|
3434
3434
|
if (this.g10_1.atomicfu$compareAndSet(false, true))
|
|
3435
3435
|
this.f10_1(cause);
|
|
3436
3436
|
};
|
|
@@ -3438,10 +3438,10 @@
|
|
|
3438
3438
|
JobNode.call(this);
|
|
3439
3439
|
this.l10_1 = continuation;
|
|
3440
3440
|
}
|
|
3441
|
-
protoOf(ResumeOnCompletion).
|
|
3441
|
+
protoOf(ResumeOnCompletion).qr = function () {
|
|
3442
3442
|
return false;
|
|
3443
3443
|
};
|
|
3444
|
-
protoOf(ResumeOnCompletion).
|
|
3444
|
+
protoOf(ResumeOnCompletion).nr = function (cause) {
|
|
3445
3445
|
// Inline function 'kotlin.coroutines.resume' call
|
|
3446
3446
|
var this_0 = this.l10_1;
|
|
3447
3447
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -3453,14 +3453,14 @@
|
|
|
3453
3453
|
JobNode.call(this);
|
|
3454
3454
|
this.wy_1 = childJob;
|
|
3455
3455
|
}
|
|
3456
|
-
protoOf(ChildHandleNode).
|
|
3456
|
+
protoOf(ChildHandleNode).qr = function () {
|
|
3457
3457
|
return true;
|
|
3458
3458
|
};
|
|
3459
|
-
protoOf(ChildHandleNode).
|
|
3460
|
-
return this.wy_1.aq(this.
|
|
3459
|
+
protoOf(ChildHandleNode).nr = function (cause) {
|
|
3460
|
+
return this.wy_1.aq(this.as());
|
|
3461
3461
|
};
|
|
3462
3462
|
protoOf(ChildHandleNode).bq = function (cause) {
|
|
3463
|
-
return this.
|
|
3463
|
+
return this.as().bq(cause);
|
|
3464
3464
|
};
|
|
3465
3465
|
function unboxState(_this__u8e3s4) {
|
|
3466
3466
|
_init_properties_JobSupport_kt__68f172();
|
|
@@ -3472,11 +3472,11 @@
|
|
|
3472
3472
|
JobNode.call(this);
|
|
3473
3473
|
this.r10_1 = continuation;
|
|
3474
3474
|
}
|
|
3475
|
-
protoOf(ResumeAwaitOnCompletion).
|
|
3475
|
+
protoOf(ResumeAwaitOnCompletion).qr = function () {
|
|
3476
3476
|
return false;
|
|
3477
3477
|
};
|
|
3478
|
-
protoOf(ResumeAwaitOnCompletion).
|
|
3479
|
-
var state = this.
|
|
3478
|
+
protoOf(ResumeAwaitOnCompletion).nr = function (cause) {
|
|
3479
|
+
var state = this.as().jp();
|
|
3480
3480
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3481
3481
|
if (state instanceof CompletedExceptionally) {
|
|
3482
3482
|
var tmp0 = this.r10_1;
|
|
@@ -3501,7 +3501,7 @@
|
|
|
3501
3501
|
function handlesExceptionF($this) {
|
|
3502
3502
|
var tmp = $this.ip();
|
|
3503
3503
|
var tmp0_safe_receiver = tmp instanceof ChildHandleNode ? tmp : null;
|
|
3504
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3504
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.as();
|
|
3505
3505
|
var tmp_0;
|
|
3506
3506
|
if (tmp1_elvis_lhs == null) {
|
|
3507
3507
|
return false;
|
|
@@ -3510,11 +3510,11 @@
|
|
|
3510
3510
|
}
|
|
3511
3511
|
var parentJob = tmp_0;
|
|
3512
3512
|
while (true) {
|
|
3513
|
-
if (parentJob.
|
|
3513
|
+
if (parentJob.jq())
|
|
3514
3514
|
return true;
|
|
3515
3515
|
var tmp_1 = parentJob.ip();
|
|
3516
3516
|
var tmp2_safe_receiver = tmp_1 instanceof ChildHandleNode ? tmp_1 : null;
|
|
3517
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3517
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.as();
|
|
3518
3518
|
var tmp_2;
|
|
3519
3519
|
if (tmp3_elvis_lhs == null) {
|
|
3520
3520
|
return false;
|
|
@@ -3532,14 +3532,14 @@
|
|
|
3532
3532
|
protoOf(JobImpl).wp = function () {
|
|
3533
3533
|
return true;
|
|
3534
3534
|
};
|
|
3535
|
-
protoOf(JobImpl).
|
|
3535
|
+
protoOf(JobImpl).jq = function () {
|
|
3536
3536
|
return this.u10_1;
|
|
3537
3537
|
};
|
|
3538
3538
|
protoOf(JobImpl).yw = function () {
|
|
3539
|
-
return this.
|
|
3539
|
+
return this.fq(Unit_instance);
|
|
3540
3540
|
};
|
|
3541
3541
|
protoOf(JobImpl).xw = function (exception) {
|
|
3542
|
-
return this.
|
|
3542
|
+
return this.fq(new CompletedExceptionally(exception));
|
|
3543
3543
|
};
|
|
3544
3544
|
var properties_initialized_JobSupport_kt_5iq8a4;
|
|
3545
3545
|
function _init_properties_JobSupport_kt__68f172() {
|
|
@@ -3792,7 +3792,7 @@
|
|
|
3792
3792
|
protoOf(ChannelSegment).y11 = function (index, update) {
|
|
3793
3793
|
return this.o11_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
3794
3794
|
};
|
|
3795
|
-
protoOf(ChannelSegment).
|
|
3795
|
+
protoOf(ChannelSegment).wu = function (index, cause, context) {
|
|
3796
3796
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
3797
3797
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
3798
3798
|
var element = this.s11(index_0);
|
|
@@ -3854,7 +3854,7 @@
|
|
|
3854
3854
|
protoOf(ChannelSegment).l12 = function (index, receiver) {
|
|
3855
3855
|
if (receiver) {
|
|
3856
3856
|
var tmp = this.p11();
|
|
3857
|
-
var tmp0 = this.
|
|
3857
|
+
var tmp0 = this.uu_1;
|
|
3858
3858
|
// Inline function 'kotlin.Long.times' call
|
|
3859
3859
|
var other = get_SEGMENT_SIZE();
|
|
3860
3860
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -3903,7 +3903,7 @@
|
|
|
3903
3903
|
// Inline function 'kotlin.Long.rem' call
|
|
3904
3904
|
var other_0 = get_SEGMENT_SIZE();
|
|
3905
3905
|
var i = r_0.d3(toLong(other_0)).j1();
|
|
3906
|
-
if (!segment_0.
|
|
3906
|
+
if (!segment_0.uu_1.equals(id)) {
|
|
3907
3907
|
var tmp0_elvis_lhs = findSegmentReceive(this_0, id, segment_0);
|
|
3908
3908
|
var tmp;
|
|
3909
3909
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -3936,7 +3936,7 @@
|
|
|
3936
3936
|
$this.z12_1 = element;
|
|
3937
3937
|
$this.a13_1 = null;
|
|
3938
3938
|
var tmp0_safe_receiver = $this.b13_1.a12_1;
|
|
3939
|
-
cancellable.
|
|
3939
|
+
cancellable.eu(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.b13_1, tmp0_safe_receiver, element));
|
|
3940
3940
|
}
|
|
3941
3941
|
break $l$block_0;
|
|
3942
3942
|
}
|
|
@@ -3947,18 +3947,18 @@
|
|
|
3947
3947
|
$this.z12_1 = element_0;
|
|
3948
3948
|
$this.a13_1 = null;
|
|
3949
3949
|
var tmp0_safe_receiver_0 = $this.b13_1.a12_1;
|
|
3950
|
-
cancellable.
|
|
3950
|
+
cancellable.eu(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.b13_1, tmp0_safe_receiver_0, element_0));
|
|
3951
3951
|
}
|
|
3952
3952
|
} catch ($p) {
|
|
3953
3953
|
if ($p instanceof Error) {
|
|
3954
3954
|
var e = $p;
|
|
3955
|
-
cancellable.
|
|
3955
|
+
cancellable.pv();
|
|
3956
3956
|
throw e;
|
|
3957
3957
|
} else {
|
|
3958
3958
|
throw $p;
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
|
-
return cancellable.
|
|
3961
|
+
return cancellable.qs();
|
|
3962
3962
|
}
|
|
3963
3963
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
3964
3964
|
var cont = ensureNotNull($this.a13_1);
|
|
@@ -4036,7 +4036,7 @@
|
|
|
4036
4036
|
var tmp2 = this.v13_1;
|
|
4037
4037
|
var other_0 = get_SEGMENT_SIZE();
|
|
4038
4038
|
tmp_5.x13_1 = tmp2.d3(toLong(other_0)).j1();
|
|
4039
|
-
if (!this.u13_1.
|
|
4039
|
+
if (!this.u13_1.uu_1.equals(this.w13_1)) {
|
|
4040
4040
|
this.y13_1 = findSegmentReceive(this.s13_1, this.w13_1, this.u13_1);
|
|
4041
4041
|
if (this.y13_1 == null) {
|
|
4042
4042
|
this.g9_1 = 2;
|
|
@@ -4155,7 +4155,7 @@
|
|
|
4155
4155
|
}
|
|
4156
4156
|
function onClosedSend($this, element, $completion) {
|
|
4157
4157
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
4158
|
-
cancellable.
|
|
4158
|
+
cancellable.ps();
|
|
4159
4159
|
$l$block: {
|
|
4160
4160
|
var tmp0_safe_receiver = $this.a12_1;
|
|
4161
4161
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
@@ -4178,7 +4178,7 @@
|
|
|
4178
4178
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
4179
4179
|
cancellable.r9(tmp$ret$4);
|
|
4180
4180
|
}
|
|
4181
|
-
return cancellable.
|
|
4181
|
+
return cancellable.qs();
|
|
4182
4182
|
}
|
|
4183
4183
|
function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
4184
4184
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
@@ -4228,7 +4228,7 @@
|
|
|
4228
4228
|
// Inline function 'kotlin.Long.rem' call
|
|
4229
4229
|
var other_0 = get_SEGMENT_SIZE();
|
|
4230
4230
|
var i = s_0.d3(toLong(other_0)).j1();
|
|
4231
|
-
if (!segment_0.
|
|
4231
|
+
if (!segment_0.uu_1.equals(id)) {
|
|
4232
4232
|
var tmp0_elvis_lhs = findSegmentSend($this, id, segment_0);
|
|
4233
4233
|
var tmp;
|
|
4234
4234
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -4306,16 +4306,16 @@
|
|
|
4306
4306
|
} catch ($p) {
|
|
4307
4307
|
if ($p instanceof Error) {
|
|
4308
4308
|
var e = $p;
|
|
4309
|
-
cancellable.
|
|
4309
|
+
cancellable.pv();
|
|
4310
4310
|
throw e;
|
|
4311
4311
|
} else {
|
|
4312
4312
|
throw $p;
|
|
4313
4313
|
}
|
|
4314
4314
|
}
|
|
4315
|
-
return cancellable.
|
|
4315
|
+
return cancellable.qs();
|
|
4316
4316
|
}
|
|
4317
4317
|
function prepareSenderForSuspension($this, _this__u8e3s4, segment, index) {
|
|
4318
|
-
_this__u8e3s4.
|
|
4318
|
+
_this__u8e3s4.vv(segment, index + get_SEGMENT_SIZE() | 0);
|
|
4319
4319
|
}
|
|
4320
4320
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
4321
4321
|
var tmp0_safe_receiver = $this.a12_1;
|
|
@@ -4480,7 +4480,7 @@
|
|
|
4480
4480
|
}
|
|
4481
4481
|
function prepareReceiverForSuspension($this, _this__u8e3s4, segment, index) {
|
|
4482
4482
|
$this.q14();
|
|
4483
|
-
_this__u8e3s4.
|
|
4483
|
+
_this__u8e3s4.vv(segment, index);
|
|
4484
4484
|
}
|
|
4485
4485
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
4486
4486
|
var state = segment.v11(index);
|
|
@@ -4602,13 +4602,13 @@
|
|
|
4602
4602
|
var id = b.c3(toLong(other));
|
|
4603
4603
|
var s = $this.d13();
|
|
4604
4604
|
if (s.e1(b) <= 0) {
|
|
4605
|
-
if (segment.
|
|
4605
|
+
if (segment.uu_1.e1(id) < 0 && !(segment.t12() == null)) {
|
|
4606
4606
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
4607
4607
|
}
|
|
4608
4608
|
incCompletedExpandBufferAttempts$default($this);
|
|
4609
4609
|
return Unit_instance;
|
|
4610
4610
|
}
|
|
4611
|
-
if (!segment.
|
|
4611
|
+
if (!segment.uu_1.equals(id)) {
|
|
4612
4612
|
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
4613
4613
|
var tmp;
|
|
4614
4614
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -4730,12 +4730,12 @@
|
|
|
4730
4730
|
tmp.j9_1 = null;
|
|
4731
4731
|
return tmp.o9();
|
|
4732
4732
|
};
|
|
4733
|
-
protoOf(BufferedChannelIterator).
|
|
4733
|
+
protoOf(BufferedChannelIterator).vv = function (segment, index) {
|
|
4734
4734
|
var tmp0_safe_receiver = this.a13_1;
|
|
4735
4735
|
if (tmp0_safe_receiver == null)
|
|
4736
4736
|
null;
|
|
4737
4737
|
else {
|
|
4738
|
-
tmp0_safe_receiver.
|
|
4738
|
+
tmp0_safe_receiver.vv(segment, index);
|
|
4739
4739
|
}
|
|
4740
4740
|
};
|
|
4741
4741
|
protoOf(BufferedChannelIterator).r = function () {
|
|
@@ -4913,11 +4913,11 @@
|
|
|
4913
4913
|
var lastSegment = $this.h12_1.kotlinx$atomicfu$value;
|
|
4914
4914
|
// Inline function 'kotlin.let' call
|
|
4915
4915
|
var it = $this.f12_1.kotlinx$atomicfu$value;
|
|
4916
|
-
if (it.
|
|
4916
|
+
if (it.uu_1.e1(lastSegment.uu_1) > 0)
|
|
4917
4917
|
lastSegment = it;
|
|
4918
4918
|
// Inline function 'kotlin.let' call
|
|
4919
4919
|
var it_0 = $this.g12_1.kotlinx$atomicfu$value;
|
|
4920
|
-
if (it_0.
|
|
4920
|
+
if (it_0.uu_1.e1(lastSegment.uu_1) > 0)
|
|
4921
4921
|
lastSegment = it_0;
|
|
4922
4922
|
return close(lastSegment);
|
|
4923
4923
|
}
|
|
@@ -4929,7 +4929,7 @@
|
|
|
4929
4929
|
do {
|
|
4930
4930
|
var index = inductionVariable;
|
|
4931
4931
|
inductionVariable = inductionVariable + -1 | 0;
|
|
4932
|
-
var tmp0 = segment.
|
|
4932
|
+
var tmp0 = segment.uu_1;
|
|
4933
4933
|
// Inline function 'kotlin.Long.times' call
|
|
4934
4934
|
var other = get_SEGMENT_SIZE();
|
|
4935
4935
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -4971,7 +4971,7 @@
|
|
|
4971
4971
|
do {
|
|
4972
4972
|
var index = inductionVariable;
|
|
4973
4973
|
inductionVariable = inductionVariable + -1 | 0;
|
|
4974
|
-
var tmp0 = segment.
|
|
4974
|
+
var tmp0 = segment.uu_1;
|
|
4975
4975
|
// Inline function 'kotlin.Long.times' call
|
|
4976
4976
|
var other = get_SEGMENT_SIZE();
|
|
4977
4977
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -5095,7 +5095,7 @@
|
|
|
5095
5095
|
do {
|
|
5096
5096
|
var index = inductionVariable;
|
|
5097
5097
|
inductionVariable = inductionVariable + -1 | 0;
|
|
5098
|
-
var tmp0 = segment.
|
|
5098
|
+
var tmp0 = segment.uu_1;
|
|
5099
5099
|
// Inline function 'kotlin.Long.times' call
|
|
5100
5100
|
var other = get_SEGMENT_SIZE();
|
|
5101
5101
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -5285,7 +5285,7 @@
|
|
|
5285
5285
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
5286
5286
|
while (true) {
|
|
5287
5287
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
5288
|
-
if (cur.
|
|
5288
|
+
if (cur.uu_1.e1(tmp1.uu_1) >= 0) {
|
|
5289
5289
|
tmp$ret$0 = true;
|
|
5290
5290
|
break $l$block_1;
|
|
5291
5291
|
}
|
|
@@ -5319,7 +5319,7 @@
|
|
|
5319
5319
|
var tmp_0;
|
|
5320
5320
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
5321
5321
|
completeCloseOrCancel($this);
|
|
5322
|
-
var tmp0_0 = startFrom.
|
|
5322
|
+
var tmp0_0 = startFrom.uu_1;
|
|
5323
5323
|
// Inline function 'kotlin.Long.times' call
|
|
5324
5324
|
var other = get_SEGMENT_SIZE();
|
|
5325
5325
|
if (tmp0_0.b3(toLong(other)).e1($this.j14()) < 0) {
|
|
@@ -5329,13 +5329,13 @@
|
|
|
5329
5329
|
} else {
|
|
5330
5330
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
5331
5331
|
var tmp_1;
|
|
5332
|
-
if (segment.
|
|
5333
|
-
var tmp2 = segment.
|
|
5332
|
+
if (segment.uu_1.e1(id) > 0) {
|
|
5333
|
+
var tmp2 = segment.uu_1;
|
|
5334
5334
|
// Inline function 'kotlin.Long.times' call
|
|
5335
5335
|
var other_0 = get_SEGMENT_SIZE();
|
|
5336
5336
|
var tmp$ret$4 = tmp2.b3(toLong(other_0));
|
|
5337
5337
|
updateSendersCounterIfLower($this, tmp$ret$4);
|
|
5338
|
-
var tmp4 = segment.
|
|
5338
|
+
var tmp4 = segment.uu_1;
|
|
5339
5339
|
// Inline function 'kotlin.Long.times' call
|
|
5340
5340
|
var other_1 = get_SEGMENT_SIZE();
|
|
5341
5341
|
if (tmp4.b3(toLong(other_1)).e1($this.j14()) < 0) {
|
|
@@ -5368,7 +5368,7 @@
|
|
|
5368
5368
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
5369
5369
|
while (true) {
|
|
5370
5370
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
5371
|
-
if (cur.
|
|
5371
|
+
if (cur.uu_1.e1(tmp1.uu_1) >= 0) {
|
|
5372
5372
|
tmp$ret$0 = true;
|
|
5373
5373
|
break $l$block_1;
|
|
5374
5374
|
}
|
|
@@ -5402,7 +5402,7 @@
|
|
|
5402
5402
|
var tmp_0;
|
|
5403
5403
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
5404
5404
|
completeCloseOrCancel($this);
|
|
5405
|
-
var tmp0_0 = startFrom.
|
|
5405
|
+
var tmp0_0 = startFrom.uu_1;
|
|
5406
5406
|
// Inline function 'kotlin.Long.times' call
|
|
5407
5407
|
var other = get_SEGMENT_SIZE();
|
|
5408
5408
|
if (tmp0_0.b3(toLong(other)).e1($this.d13()) < 0) {
|
|
@@ -5427,7 +5427,7 @@
|
|
|
5427
5427
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
5428
5428
|
while (true) {
|
|
5429
5429
|
var cur_0 = tmp4.kotlinx$atomicfu$value;
|
|
5430
|
-
if (cur_0.
|
|
5430
|
+
if (cur_0.uu_1.e1(segment.uu_1) >= 0) {
|
|
5431
5431
|
break $l$block_5;
|
|
5432
5432
|
}
|
|
5433
5433
|
if (!segment.p12()) {
|
|
@@ -5446,13 +5446,13 @@
|
|
|
5446
5446
|
}
|
|
5447
5447
|
}
|
|
5448
5448
|
var tmp_2;
|
|
5449
|
-
if (segment.
|
|
5450
|
-
var tmp6 = segment.
|
|
5449
|
+
if (segment.uu_1.e1(id) > 0) {
|
|
5450
|
+
var tmp6 = segment.uu_1;
|
|
5451
5451
|
// Inline function 'kotlin.Long.times' call
|
|
5452
5452
|
var other_1 = get_SEGMENT_SIZE();
|
|
5453
5453
|
var tmp$ret$7 = tmp6.b3(toLong(other_1));
|
|
5454
5454
|
updateReceiversCounterIfLower($this, tmp$ret$7);
|
|
5455
|
-
var tmp8 = segment.
|
|
5455
|
+
var tmp8 = segment.uu_1;
|
|
5456
5456
|
// Inline function 'kotlin.Long.times' call
|
|
5457
5457
|
var other_2 = get_SEGMENT_SIZE();
|
|
5458
5458
|
if (tmp8.b3(toLong(other_2)).e1($this.d13()) < 0) {
|
|
@@ -5485,7 +5485,7 @@
|
|
|
5485
5485
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
5486
5486
|
while (true) {
|
|
5487
5487
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
5488
|
-
if (cur.
|
|
5488
|
+
if (cur.uu_1.e1(tmp1.uu_1) >= 0) {
|
|
5489
5489
|
tmp$ret$0 = true;
|
|
5490
5490
|
break $l$block_1;
|
|
5491
5491
|
}
|
|
@@ -5525,15 +5525,15 @@
|
|
|
5525
5525
|
} else {
|
|
5526
5526
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
5527
5527
|
var tmp_1;
|
|
5528
|
-
if (segment.
|
|
5528
|
+
if (segment.uu_1.e1(id) > 0) {
|
|
5529
5529
|
// Inline function 'kotlin.Long.plus' call
|
|
5530
5530
|
var tmp_2 = currentBufferEndCounter.z2(toLong(1));
|
|
5531
|
-
var tmp2 = segment.
|
|
5531
|
+
var tmp2 = segment.uu_1;
|
|
5532
5532
|
// Inline function 'kotlin.Long.times' call
|
|
5533
5533
|
var other = get_SEGMENT_SIZE();
|
|
5534
5534
|
var tmp$ret$4 = tmp2.b3(toLong(other));
|
|
5535
5535
|
if ($this.d12_1.atomicfu$compareAndSet(tmp_2, tmp$ret$4)) {
|
|
5536
|
-
var tmp4 = segment.
|
|
5536
|
+
var tmp4 = segment.uu_1;
|
|
5537
5537
|
// Inline function 'kotlin.Long.times' call
|
|
5538
5538
|
var other_0 = get_SEGMENT_SIZE();
|
|
5539
5539
|
var tmp$ret$5 = tmp4.b3(toLong(other_0));
|
|
@@ -5552,7 +5552,7 @@
|
|
|
5552
5552
|
}
|
|
5553
5553
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
5554
5554
|
var segment = startFrom;
|
|
5555
|
-
$l$loop: while (segment.
|
|
5555
|
+
$l$loop: while (segment.uu_1.e1(id) < 0) {
|
|
5556
5556
|
var tmp0_elvis_lhs = segment.t12();
|
|
5557
5557
|
var tmp;
|
|
5558
5558
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -5580,7 +5580,7 @@
|
|
|
5580
5580
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
5581
5581
|
while (true) {
|
|
5582
5582
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
5583
|
-
if (cur.
|
|
5583
|
+
if (cur.uu_1.e1(tmp1.uu_1) >= 0) {
|
|
5584
5584
|
tmp$ret$0 = true;
|
|
5585
5585
|
break $l$block_1;
|
|
5586
5586
|
}
|
|
@@ -5730,7 +5730,7 @@
|
|
|
5730
5730
|
var tmp2 = this.b16_1;
|
|
5731
5731
|
var other_0 = get_SEGMENT_SIZE();
|
|
5732
5732
|
tmp_5.e16_1 = tmp2.d3(toLong(other_0)).j1();
|
|
5733
|
-
if (!this.z15_1.
|
|
5733
|
+
if (!this.z15_1.uu_1.equals(this.d16_1)) {
|
|
5734
5734
|
this.f16_1 = findSegmentSend(this.w15_1, this.d16_1, this.z15_1);
|
|
5735
5735
|
if (this.f16_1 == null) {
|
|
5736
5736
|
if (this.c16_1) {
|
|
@@ -5963,7 +5963,7 @@
|
|
|
5963
5963
|
// Inline function 'kotlin.Long.rem' call
|
|
5964
5964
|
var other_0 = get_SEGMENT_SIZE();
|
|
5965
5965
|
var i = s.d3(toLong(other_0)).j1();
|
|
5966
|
-
if (!segment.
|
|
5966
|
+
if (!segment.uu_1.equals(id)) {
|
|
5967
5967
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
5968
5968
|
var tmp;
|
|
5969
5969
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -6038,7 +6038,7 @@
|
|
|
6038
6038
|
// Inline function 'kotlin.Long.rem' call
|
|
6039
6039
|
var other_0 = get_SEGMENT_SIZE();
|
|
6040
6040
|
var i = s.d3(toLong(other_0)).j1();
|
|
6041
|
-
if (!segment.
|
|
6041
|
+
if (!segment.uu_1.equals(id)) {
|
|
6042
6042
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
6043
6043
|
var tmp;
|
|
6044
6044
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -6072,7 +6072,7 @@
|
|
|
6072
6072
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
6073
6073
|
}
|
|
6074
6074
|
|
|
6075
|
-
var tmp4 = segment.
|
|
6075
|
+
var tmp4 = segment.uu_1;
|
|
6076
6076
|
// Inline function 'kotlin.Long.times' call
|
|
6077
6077
|
|
|
6078
6078
|
var other_1 = get_SEGMENT_SIZE();
|
|
@@ -6124,7 +6124,7 @@
|
|
|
6124
6124
|
// Inline function 'kotlin.Long.rem' call
|
|
6125
6125
|
var other_1 = get_SEGMENT_SIZE();
|
|
6126
6126
|
var i = r.d3(toLong(other_1)).j1();
|
|
6127
|
-
if (!segment.
|
|
6127
|
+
if (!segment.uu_1.equals(id)) {
|
|
6128
6128
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
6129
6129
|
var tmp;
|
|
6130
6130
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -6277,12 +6277,12 @@
|
|
|
6277
6277
|
// Inline function 'kotlin.Long.div' call
|
|
6278
6278
|
var other = get_SEGMENT_SIZE();
|
|
6279
6279
|
var id = r.c3(toLong(other));
|
|
6280
|
-
if (!segment.
|
|
6280
|
+
if (!segment.uu_1.equals(id)) {
|
|
6281
6281
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
6282
6282
|
var tmp;
|
|
6283
6283
|
if (tmp0_elvis_lhs == null) {
|
|
6284
6284
|
var tmp_0;
|
|
6285
|
-
if (this.g12_1.kotlinx$atomicfu$value.
|
|
6285
|
+
if (this.g12_1.kotlinx$atomicfu$value.uu_1.e1(id) < 0) {
|
|
6286
6286
|
return false;
|
|
6287
6287
|
} else {
|
|
6288
6288
|
continue $l$loop;
|
|
@@ -6336,10 +6336,10 @@
|
|
|
6336
6336
|
tmp$ret$4 = minElem;
|
|
6337
6337
|
break $l$block;
|
|
6338
6338
|
}
|
|
6339
|
-
var minValue = minElem.
|
|
6339
|
+
var minValue = minElem.uu_1;
|
|
6340
6340
|
do {
|
|
6341
6341
|
var e = iterator.r();
|
|
6342
|
-
var v = e.
|
|
6342
|
+
var v = e.uu_1;
|
|
6343
6343
|
if (compareTo(minValue, v) > 0) {
|
|
6344
6344
|
minElem = e;
|
|
6345
6345
|
minValue = v;
|
|
@@ -6359,7 +6359,7 @@
|
|
|
6359
6359
|
process_cell: do {
|
|
6360
6360
|
var i = inductionVariable;
|
|
6361
6361
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6362
|
-
var tmp5 = segment.
|
|
6362
|
+
var tmp5 = segment.uu_1;
|
|
6363
6363
|
// Inline function 'kotlin.Long.times' call
|
|
6364
6364
|
var other = get_SEGMENT_SIZE();
|
|
6365
6365
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -6444,10 +6444,10 @@
|
|
|
6444
6444
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
6445
6445
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
6446
6446
|
// Inline function 'kotlin.let' call
|
|
6447
|
-
var token = _this__u8e3s4.
|
|
6447
|
+
var token = _this__u8e3s4.bu(value, null, onCancellation);
|
|
6448
6448
|
var tmp;
|
|
6449
6449
|
if (!(token == null)) {
|
|
6450
|
-
_this__u8e3s4.
|
|
6450
|
+
_this__u8e3s4.vr(token);
|
|
6451
6451
|
tmp = true;
|
|
6452
6452
|
} else {
|
|
6453
6453
|
tmp = false;
|
|
@@ -7049,14 +7049,14 @@
|
|
|
7049
7049
|
var CLOSED;
|
|
7050
7050
|
function Segment(id, prev, pointers) {
|
|
7051
7051
|
ConcurrentLinkedListNode.call(this, prev);
|
|
7052
|
-
this.
|
|
7053
|
-
this.
|
|
7052
|
+
this.uu_1 = id;
|
|
7053
|
+
this.vu_1 = atomic$int$1(pointers << 16);
|
|
7054
7054
|
}
|
|
7055
7055
|
protoOf(Segment).o12 = function () {
|
|
7056
|
-
return this.
|
|
7056
|
+
return this.vu_1.kotlinx$atomicfu$value === this.q11() && !this.v12();
|
|
7057
7057
|
};
|
|
7058
7058
|
protoOf(Segment).p12 = function () {
|
|
7059
|
-
var tmp0 = this.
|
|
7059
|
+
var tmp0 = this.vu_1;
|
|
7060
7060
|
var tmp$ret$1;
|
|
7061
7061
|
$l$block_0: {
|
|
7062
7062
|
// Inline function 'kotlinx.coroutines.internal.addConditionally' call
|
|
@@ -7075,10 +7075,10 @@
|
|
|
7075
7075
|
return tmp$ret$1;
|
|
7076
7076
|
};
|
|
7077
7077
|
protoOf(Segment).q12 = function () {
|
|
7078
|
-
return this.
|
|
7078
|
+
return this.vu_1.atomicfu$addAndGet(-65536) === this.q11() && !this.v12();
|
|
7079
7079
|
};
|
|
7080
7080
|
protoOf(Segment).n12 = function () {
|
|
7081
|
-
if (this.
|
|
7081
|
+
if (this.vu_1.atomicfu$incrementAndGet() === this.q11()) {
|
|
7082
7082
|
this.r4();
|
|
7083
7083
|
}
|
|
7084
7084
|
};
|
|
@@ -7240,7 +7240,7 @@
|
|
|
7240
7240
|
function findSegmentInternal(_this__u8e3s4, id, createNewSegment) {
|
|
7241
7241
|
_init_properties_ConcurrentLinkedList_kt__5gcgzy();
|
|
7242
7242
|
var cur = _this__u8e3s4;
|
|
7243
|
-
$l$loop: while (cur.
|
|
7243
|
+
$l$loop: while (cur.uu_1.e1(id) < 0 || cur.o12()) {
|
|
7244
7244
|
// Inline function 'kotlinx.coroutines.internal.ConcurrentLinkedListNode.nextOrIfClosed' call
|
|
7245
7245
|
var this_0 = cur;
|
|
7246
7246
|
// Inline function 'kotlin.let' call
|
|
@@ -7257,7 +7257,7 @@
|
|
|
7257
7257
|
continue $l$loop;
|
|
7258
7258
|
}
|
|
7259
7259
|
// Inline function 'kotlin.Long.plus' call
|
|
7260
|
-
var newTail = createNewSegment(cur.
|
|
7260
|
+
var newTail = createNewSegment(cur.uu_1.z2(toLong(1)), cur);
|
|
7261
7261
|
if (cur.u12(newTail)) {
|
|
7262
7262
|
if (cur.o12()) {
|
|
7263
7263
|
cur.r4();
|
|
@@ -7321,23 +7321,23 @@
|
|
|
7321
7321
|
}
|
|
7322
7322
|
var REUSABLE_CLAIMED;
|
|
7323
7323
|
function _get_reusableCancellableContinuation__9qex09($this) {
|
|
7324
|
-
var tmp = $this.
|
|
7324
|
+
var tmp = $this.mu_1.kotlinx$atomicfu$value;
|
|
7325
7325
|
return tmp instanceof CancellableContinuationImpl ? tmp : null;
|
|
7326
7326
|
}
|
|
7327
7327
|
function DispatchedContinuation(dispatcher, continuation) {
|
|
7328
7328
|
DispatchedTask.call(this, -1);
|
|
7329
|
-
this.
|
|
7330
|
-
this.
|
|
7331
|
-
this.
|
|
7332
|
-
this.
|
|
7333
|
-
this.
|
|
7329
|
+
this.iu_1 = dispatcher;
|
|
7330
|
+
this.ju_1 = continuation;
|
|
7331
|
+
this.ku_1 = get_UNDEFINED();
|
|
7332
|
+
this.lu_1 = threadContextElements(this.m9());
|
|
7333
|
+
this.mu_1 = atomic$ref$1(null);
|
|
7334
7334
|
}
|
|
7335
|
-
protoOf(DispatchedContinuation).
|
|
7336
|
-
return !(this.
|
|
7335
|
+
protoOf(DispatchedContinuation).pu = function () {
|
|
7336
|
+
return !(this.mu_1.kotlinx$atomicfu$value == null);
|
|
7337
7337
|
};
|
|
7338
7338
|
protoOf(DispatchedContinuation).g1a = function () {
|
|
7339
7339
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
7340
|
-
var this_0 = this.
|
|
7340
|
+
var this_0 = this.mu_1;
|
|
7341
7341
|
while (true) {
|
|
7342
7342
|
if (!(this_0.kotlinx$atomicfu$value === get_REUSABLE_CLAIMED()))
|
|
7343
7343
|
return Unit_instance;
|
|
@@ -7349,20 +7349,20 @@
|
|
|
7349
7349
|
if (tmp0_safe_receiver == null)
|
|
7350
7350
|
null;
|
|
7351
7351
|
else {
|
|
7352
|
-
tmp0_safe_receiver.
|
|
7352
|
+
tmp0_safe_receiver.gv();
|
|
7353
7353
|
}
|
|
7354
7354
|
};
|
|
7355
|
-
protoOf(DispatchedContinuation).
|
|
7355
|
+
protoOf(DispatchedContinuation).nu = function () {
|
|
7356
7356
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
7357
|
-
var this_0 = this.
|
|
7357
|
+
var this_0 = this.mu_1;
|
|
7358
7358
|
while (true) {
|
|
7359
7359
|
var state = this_0.kotlinx$atomicfu$value;
|
|
7360
7360
|
if (state === null) {
|
|
7361
|
-
this.
|
|
7361
|
+
this.mu_1.kotlinx$atomicfu$value = get_REUSABLE_CLAIMED();
|
|
7362
7362
|
return null;
|
|
7363
7363
|
} else {
|
|
7364
7364
|
if (state instanceof CancellableContinuationImpl) {
|
|
7365
|
-
if (this.
|
|
7365
|
+
if (this.mu_1.atomicfu$compareAndSet(state, get_REUSABLE_CLAIMED())) {
|
|
7366
7366
|
return state instanceof CancellableContinuationImpl ? state : THROW_CCE();
|
|
7367
7367
|
}
|
|
7368
7368
|
} else {
|
|
@@ -7377,19 +7377,19 @@
|
|
|
7377
7377
|
}
|
|
7378
7378
|
}
|
|
7379
7379
|
};
|
|
7380
|
-
protoOf(DispatchedContinuation).
|
|
7380
|
+
protoOf(DispatchedContinuation).rv = function (continuation) {
|
|
7381
7381
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
7382
|
-
var this_0 = this.
|
|
7382
|
+
var this_0 = this.mu_1;
|
|
7383
7383
|
while (true) {
|
|
7384
7384
|
var state = this_0.kotlinx$atomicfu$value;
|
|
7385
7385
|
if (state === get_REUSABLE_CLAIMED()) {
|
|
7386
|
-
if (this.
|
|
7386
|
+
if (this.mu_1.atomicfu$compareAndSet(get_REUSABLE_CLAIMED(), continuation))
|
|
7387
7387
|
return null;
|
|
7388
7388
|
} else {
|
|
7389
7389
|
if (state instanceof Error) {
|
|
7390
7390
|
// Inline function 'kotlin.require' call
|
|
7391
7391
|
// Inline function 'kotlin.require' call
|
|
7392
|
-
if (!this.
|
|
7392
|
+
if (!this.mu_1.atomicfu$compareAndSet(state, null)) {
|
|
7393
7393
|
var message = 'Failed requirement.';
|
|
7394
7394
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
7395
7395
|
}
|
|
@@ -7402,39 +7402,39 @@
|
|
|
7402
7402
|
}
|
|
7403
7403
|
}
|
|
7404
7404
|
};
|
|
7405
|
-
protoOf(DispatchedContinuation).
|
|
7405
|
+
protoOf(DispatchedContinuation).ru = function (cause) {
|
|
7406
7406
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
7407
|
-
var this_0 = this.
|
|
7407
|
+
var this_0 = this.mu_1;
|
|
7408
7408
|
while (true) {
|
|
7409
7409
|
var state = this_0.kotlinx$atomicfu$value;
|
|
7410
7410
|
if (equals(state, get_REUSABLE_CLAIMED())) {
|
|
7411
|
-
if (this.
|
|
7411
|
+
if (this.mu_1.atomicfu$compareAndSet(get_REUSABLE_CLAIMED(), cause))
|
|
7412
7412
|
return true;
|
|
7413
7413
|
} else {
|
|
7414
7414
|
if (state instanceof Error)
|
|
7415
7415
|
return true;
|
|
7416
7416
|
else {
|
|
7417
|
-
if (this.
|
|
7417
|
+
if (this.mu_1.atomicfu$compareAndSet(state, null))
|
|
7418
7418
|
return false;
|
|
7419
7419
|
}
|
|
7420
7420
|
}
|
|
7421
7421
|
}
|
|
7422
7422
|
};
|
|
7423
|
-
protoOf(DispatchedContinuation).
|
|
7424
|
-
var state = this.
|
|
7423
|
+
protoOf(DispatchedContinuation).iv = function () {
|
|
7424
|
+
var state = this.ku_1;
|
|
7425
7425
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7426
|
-
this.
|
|
7426
|
+
this.ku_1 = get_UNDEFINED();
|
|
7427
7427
|
return state;
|
|
7428
7428
|
};
|
|
7429
|
-
protoOf(DispatchedContinuation).
|
|
7429
|
+
protoOf(DispatchedContinuation).hv = function () {
|
|
7430
7430
|
return this;
|
|
7431
7431
|
};
|
|
7432
7432
|
protoOf(DispatchedContinuation).r9 = function (result) {
|
|
7433
7433
|
var state = toState_0(result);
|
|
7434
|
-
if (safeIsDispatchNeeded(this.
|
|
7435
|
-
this.
|
|
7436
|
-
this.
|
|
7437
|
-
safeDispatch(this.
|
|
7434
|
+
if (safeIsDispatchNeeded(this.iu_1, this.m9())) {
|
|
7435
|
+
this.ku_1 = state;
|
|
7436
|
+
this.qu_1 = 0;
|
|
7437
|
+
safeDispatch(this.iu_1, this.m9(), this);
|
|
7438
7438
|
} else {
|
|
7439
7439
|
$l$block: {
|
|
7440
7440
|
// Inline function 'kotlinx.coroutines.internal.executeUnconfined' call
|
|
@@ -7445,8 +7445,8 @@
|
|
|
7445
7445
|
}
|
|
7446
7446
|
var tmp;
|
|
7447
7447
|
if (eventLoop.qx()) {
|
|
7448
|
-
this.
|
|
7449
|
-
this.
|
|
7448
|
+
this.ku_1 = state;
|
|
7449
|
+
this.qu_1 = 0;
|
|
7450
7450
|
eventLoop.px(this);
|
|
7451
7451
|
tmp = true;
|
|
7452
7452
|
} else {
|
|
@@ -7455,14 +7455,14 @@
|
|
|
7455
7455
|
try {
|
|
7456
7456
|
this.m9();
|
|
7457
7457
|
// Inline function 'kotlinx.coroutines.withCoroutineContext' call
|
|
7458
|
-
this.
|
|
7459
|
-
this.
|
|
7458
|
+
this.lu_1;
|
|
7459
|
+
this.ju_1.r9(result);
|
|
7460
7460
|
$l$loop: while (eventLoop.ox()) {
|
|
7461
7461
|
}
|
|
7462
7462
|
} catch ($p) {
|
|
7463
7463
|
if ($p instanceof Error) {
|
|
7464
7464
|
var e = $p;
|
|
7465
|
-
this.
|
|
7465
|
+
this.dw(e);
|
|
7466
7466
|
} else {
|
|
7467
7467
|
throw $p;
|
|
7468
7468
|
}
|
|
@@ -7476,10 +7476,10 @@
|
|
|
7476
7476
|
}
|
|
7477
7477
|
};
|
|
7478
7478
|
protoOf(DispatchedContinuation).toString = function () {
|
|
7479
|
-
return 'DispatchedContinuation[' + this.
|
|
7479
|
+
return 'DispatchedContinuation[' + this.iu_1.toString() + ', ' + toDebugString(this.ju_1) + ']';
|
|
7480
7480
|
};
|
|
7481
7481
|
protoOf(DispatchedContinuation).m9 = function () {
|
|
7482
|
-
return this.
|
|
7482
|
+
return this.ju_1.m9();
|
|
7483
7483
|
};
|
|
7484
7484
|
function safeDispatch(_this__u8e3s4, context, runnable) {
|
|
7485
7485
|
_init_properties_DispatchedContinuation_kt__tnmqc0();
|
|
@@ -7513,10 +7513,10 @@
|
|
|
7513
7513
|
if (_this__u8e3s4 instanceof DispatchedContinuation) {
|
|
7514
7514
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeCancellableWith' call
|
|
7515
7515
|
var state = toState_0(result);
|
|
7516
|
-
if (safeIsDispatchNeeded(_this__u8e3s4.
|
|
7517
|
-
_this__u8e3s4.
|
|
7518
|
-
_this__u8e3s4.
|
|
7519
|
-
safeDispatch(_this__u8e3s4.
|
|
7516
|
+
if (safeIsDispatchNeeded(_this__u8e3s4.iu_1, _this__u8e3s4.m9())) {
|
|
7517
|
+
_this__u8e3s4.ku_1 = state;
|
|
7518
|
+
_this__u8e3s4.qu_1 = 1;
|
|
7519
|
+
safeDispatch(_this__u8e3s4.iu_1, _this__u8e3s4.m9(), _this__u8e3s4);
|
|
7520
7520
|
} else {
|
|
7521
7521
|
$l$block: {
|
|
7522
7522
|
// Inline function 'kotlinx.coroutines.internal.executeUnconfined' call
|
|
@@ -7527,8 +7527,8 @@
|
|
|
7527
7527
|
}
|
|
7528
7528
|
var tmp_0;
|
|
7529
7529
|
if (eventLoop.qx()) {
|
|
7530
|
-
_this__u8e3s4.
|
|
7531
|
-
_this__u8e3s4.
|
|
7530
|
+
_this__u8e3s4.ku_1 = state;
|
|
7531
|
+
_this__u8e3s4.qu_1 = 1;
|
|
7532
7532
|
eventLoop.px(_this__u8e3s4);
|
|
7533
7533
|
tmp_0 = true;
|
|
7534
7534
|
} else {
|
|
@@ -7541,7 +7541,7 @@
|
|
|
7541
7541
|
var job = _this__u8e3s4.m9().t9(Key_instance_3);
|
|
7542
7542
|
if (!(job == null) && !job.qo()) {
|
|
7543
7543
|
var cause = job.op();
|
|
7544
|
-
_this__u8e3s4.
|
|
7544
|
+
_this__u8e3s4.jv(state, cause);
|
|
7545
7545
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
7546
7546
|
// Inline function 'kotlin.Companion.failure' call
|
|
7547
7547
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(cause));
|
|
@@ -7553,17 +7553,17 @@
|
|
|
7553
7553
|
}
|
|
7554
7554
|
if (!tmp$ret$4) {
|
|
7555
7555
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith' call
|
|
7556
|
-
_this__u8e3s4.
|
|
7556
|
+
_this__u8e3s4.ju_1;
|
|
7557
7557
|
// Inline function 'kotlinx.coroutines.withContinuationContext' call
|
|
7558
|
-
_this__u8e3s4.
|
|
7559
|
-
_this__u8e3s4.
|
|
7558
|
+
_this__u8e3s4.lu_1;
|
|
7559
|
+
_this__u8e3s4.ju_1.r9(result);
|
|
7560
7560
|
}
|
|
7561
7561
|
$l$loop: while (eventLoop.ox()) {
|
|
7562
7562
|
}
|
|
7563
7563
|
} catch ($p) {
|
|
7564
7564
|
if ($p instanceof Error) {
|
|
7565
7565
|
var e = $p;
|
|
7566
|
-
_this__u8e3s4.
|
|
7566
|
+
_this__u8e3s4.dw(e);
|
|
7567
7567
|
} else {
|
|
7568
7568
|
throw $p;
|
|
7569
7569
|
}
|
|
@@ -7592,32 +7592,32 @@
|
|
|
7592
7592
|
}
|
|
7593
7593
|
function DispatchedTask(resumeMode) {
|
|
7594
7594
|
SchedulerTask.call(this);
|
|
7595
|
-
this.
|
|
7595
|
+
this.qu_1 = resumeMode;
|
|
7596
7596
|
}
|
|
7597
|
-
protoOf(DispatchedTask).
|
|
7597
|
+
protoOf(DispatchedTask).jv = function (takenState, cause) {
|
|
7598
7598
|
};
|
|
7599
|
-
protoOf(DispatchedTask).
|
|
7599
|
+
protoOf(DispatchedTask).qv = function (state) {
|
|
7600
7600
|
return (state == null ? true : !(state == null)) ? state : THROW_CCE();
|
|
7601
7601
|
};
|
|
7602
|
-
protoOf(DispatchedTask).
|
|
7602
|
+
protoOf(DispatchedTask).aw = function (state) {
|
|
7603
7603
|
var tmp0_safe_receiver = state instanceof CompletedExceptionally ? state : null;
|
|
7604
7604
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vo_1;
|
|
7605
7605
|
};
|
|
7606
|
-
protoOf(DispatchedTask).
|
|
7606
|
+
protoOf(DispatchedTask).cw = function () {
|
|
7607
7607
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7608
7608
|
try {
|
|
7609
|
-
var tmp = this.
|
|
7609
|
+
var tmp = this.hv();
|
|
7610
7610
|
var delegate = tmp instanceof DispatchedContinuation ? tmp : THROW_CCE();
|
|
7611
|
-
var continuation = delegate.
|
|
7611
|
+
var continuation = delegate.ju_1;
|
|
7612
7612
|
// Inline function 'kotlinx.coroutines.withContinuationContext' call
|
|
7613
|
-
delegate.
|
|
7613
|
+
delegate.lu_1;
|
|
7614
7614
|
var context = continuation.m9();
|
|
7615
|
-
var state = this.
|
|
7616
|
-
var exception = this.
|
|
7617
|
-
var job = exception == null && get_isCancellableMode(this.
|
|
7615
|
+
var state = this.iv();
|
|
7616
|
+
var exception = this.aw(state);
|
|
7617
|
+
var job = exception == null && get_isCancellableMode(this.qu_1) ? context.t9(Key_instance_3) : null;
|
|
7618
7618
|
if (!(job == null) && !job.qo()) {
|
|
7619
7619
|
var cause = job.op();
|
|
7620
|
-
this.
|
|
7620
|
+
this.jv(state, cause);
|
|
7621
7621
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
7622
7622
|
// Inline function 'kotlin.Companion.failure' call
|
|
7623
7623
|
var exception_0 = recoverStackTrace(cause, continuation);
|
|
@@ -7632,7 +7632,7 @@
|
|
|
7632
7632
|
} else {
|
|
7633
7633
|
// Inline function 'kotlin.coroutines.resume' call
|
|
7634
7634
|
// Inline function 'kotlin.Companion.success' call
|
|
7635
|
-
var value = this.
|
|
7635
|
+
var value = this.qv(state);
|
|
7636
7636
|
var tmp$ret$5 = _Result___init__impl__xyqfz8(value);
|
|
7637
7637
|
continuation.r9(tmp$ret$5);
|
|
7638
7638
|
}
|
|
@@ -7640,20 +7640,20 @@
|
|
|
7640
7640
|
} catch ($p) {
|
|
7641
7641
|
if ($p instanceof DispatchException) {
|
|
7642
7642
|
var e = $p;
|
|
7643
|
-
handleCoroutineException(this.
|
|
7643
|
+
handleCoroutineException(this.hv().m9(), e.ex_1);
|
|
7644
7644
|
} else {
|
|
7645
7645
|
if ($p instanceof Error) {
|
|
7646
7646
|
var e_0 = $p;
|
|
7647
|
-
this.
|
|
7647
|
+
this.dw(e_0);
|
|
7648
7648
|
} else {
|
|
7649
7649
|
throw $p;
|
|
7650
7650
|
}
|
|
7651
7651
|
}
|
|
7652
7652
|
}
|
|
7653
7653
|
};
|
|
7654
|
-
protoOf(DispatchedTask).
|
|
7654
|
+
protoOf(DispatchedTask).dw = function (exception) {
|
|
7655
7655
|
var reason = new CoroutinesInternalError('Fatal exception in coroutines machinery for ' + toString(this) + '. ' + "Please read KDoc to 'handleFatalException' method and report this incident to maintainers", exception);
|
|
7656
|
-
handleCoroutineException(this.
|
|
7656
|
+
handleCoroutineException(this.hv().m9(), reason);
|
|
7657
7657
|
};
|
|
7658
7658
|
function get_isReusableMode(_this__u8e3s4) {
|
|
7659
7659
|
return _this__u8e3s4 === 2;
|
|
@@ -7663,7 +7663,7 @@
|
|
|
7663
7663
|
}
|
|
7664
7664
|
function dispatch(_this__u8e3s4, mode) {
|
|
7665
7665
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7666
|
-
var delegate = _this__u8e3s4.
|
|
7666
|
+
var delegate = _this__u8e3s4.hv();
|
|
7667
7667
|
var undispatched = mode === 4;
|
|
7668
7668
|
var tmp;
|
|
7669
7669
|
var tmp_0;
|
|
@@ -7673,12 +7673,12 @@
|
|
|
7673
7673
|
tmp_0 = false;
|
|
7674
7674
|
}
|
|
7675
7675
|
if (tmp_0) {
|
|
7676
|
-
tmp = get_isCancellableMode(mode) === get_isCancellableMode(_this__u8e3s4.
|
|
7676
|
+
tmp = get_isCancellableMode(mode) === get_isCancellableMode(_this__u8e3s4.qu_1);
|
|
7677
7677
|
} else {
|
|
7678
7678
|
tmp = false;
|
|
7679
7679
|
}
|
|
7680
7680
|
if (tmp) {
|
|
7681
|
-
var dispatcher = delegate.
|
|
7681
|
+
var dispatcher = delegate.iu_1;
|
|
7682
7682
|
var context = delegate.m9();
|
|
7683
7683
|
if (safeIsDispatchNeeded(dispatcher, context)) {
|
|
7684
7684
|
safeDispatch(dispatcher, context, _this__u8e3s4);
|
|
@@ -7705,13 +7705,13 @@
|
|
|
7705
7705
|
// Inline function 'kotlinx.coroutines.runUnconfinedEventLoop' call
|
|
7706
7706
|
eventLoop.sx(true);
|
|
7707
7707
|
try {
|
|
7708
|
-
resume(_this__u8e3s4, _this__u8e3s4.
|
|
7708
|
+
resume(_this__u8e3s4, _this__u8e3s4.hv(), true);
|
|
7709
7709
|
$l$loop: while (eventLoop.ox()) {
|
|
7710
7710
|
}
|
|
7711
7711
|
} catch ($p) {
|
|
7712
7712
|
if ($p instanceof Error) {
|
|
7713
7713
|
var e = $p;
|
|
7714
|
-
_this__u8e3s4.
|
|
7714
|
+
_this__u8e3s4.dw(e);
|
|
7715
7715
|
} else {
|
|
7716
7716
|
throw $p;
|
|
7717
7717
|
}
|
|
@@ -7722,25 +7722,25 @@
|
|
|
7722
7722
|
}
|
|
7723
7723
|
}
|
|
7724
7724
|
function resume(_this__u8e3s4, delegate, undispatched) {
|
|
7725
|
-
var state = _this__u8e3s4.
|
|
7726
|
-
var exception = _this__u8e3s4.
|
|
7725
|
+
var state = _this__u8e3s4.iv();
|
|
7726
|
+
var exception = _this__u8e3s4.aw(state);
|
|
7727
7727
|
var tmp;
|
|
7728
7728
|
if (!(exception == null)) {
|
|
7729
7729
|
// Inline function 'kotlin.Companion.failure' call
|
|
7730
7730
|
tmp = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
7731
7731
|
} else {
|
|
7732
7732
|
// Inline function 'kotlin.Companion.success' call
|
|
7733
|
-
var value = _this__u8e3s4.
|
|
7733
|
+
var value = _this__u8e3s4.qv(state);
|
|
7734
7734
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
7735
7735
|
}
|
|
7736
7736
|
var result = tmp;
|
|
7737
7737
|
if (undispatched) {
|
|
7738
7738
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith' call
|
|
7739
7739
|
var this_0 = delegate instanceof DispatchedContinuation ? delegate : THROW_CCE();
|
|
7740
|
-
this_0.
|
|
7740
|
+
this_0.ju_1;
|
|
7741
7741
|
// Inline function 'kotlinx.coroutines.withContinuationContext' call
|
|
7742
|
-
this_0.
|
|
7743
|
-
this_0.
|
|
7742
|
+
this_0.lu_1;
|
|
7743
|
+
this_0.ju_1.r9(result);
|
|
7744
7744
|
} else {
|
|
7745
7745
|
delegate.r9(result);
|
|
7746
7746
|
}
|
|
@@ -7818,18 +7818,18 @@
|
|
|
7818
7818
|
};
|
|
7819
7819
|
function ScopeCoroutine(context, uCont) {
|
|
7820
7820
|
AbstractCoroutine.call(this, context, true, true);
|
|
7821
|
-
this.
|
|
7821
|
+
this.ht_1 = uCont;
|
|
7822
7822
|
}
|
|
7823
|
-
protoOf(ScopeCoroutine).
|
|
7823
|
+
protoOf(ScopeCoroutine).iq = function () {
|
|
7824
7824
|
return true;
|
|
7825
7825
|
};
|
|
7826
7826
|
protoOf(ScopeCoroutine).ap = function (state) {
|
|
7827
|
-
resumeCancellableWith(intercepted(this.
|
|
7827
|
+
resumeCancellableWith(intercepted(this.ht_1), recoverResult(state, this.ht_1));
|
|
7828
7828
|
};
|
|
7829
|
-
protoOf(ScopeCoroutine).
|
|
7829
|
+
protoOf(ScopeCoroutine).it = function () {
|
|
7830
7830
|
};
|
|
7831
7831
|
protoOf(ScopeCoroutine).zo = function (state) {
|
|
7832
|
-
this.
|
|
7832
|
+
this.ht_1.r9(recoverResult(state, this.ht_1));
|
|
7833
7833
|
};
|
|
7834
7834
|
function Symbol(symbol) {
|
|
7835
7835
|
this.i1a_1 = symbol;
|
|
@@ -7934,54 +7934,7 @@
|
|
|
7934
7934
|
return Unit_instance;
|
|
7935
7935
|
}
|
|
7936
7936
|
function startUndispatchedOrReturn(_this__u8e3s4, receiver, block) {
|
|
7937
|
-
|
|
7938
|
-
$l$block_0: {
|
|
7939
|
-
// Inline function 'kotlinx.coroutines.intrinsics.undispatchedResult' call
|
|
7940
|
-
var tmp;
|
|
7941
|
-
try {
|
|
7942
|
-
// Inline function 'kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn' call
|
|
7943
|
-
tmp = startCoroutineUninterceptedOrReturnNonGeneratorVersion(block, receiver, _this__u8e3s4);
|
|
7944
|
-
} catch ($p) {
|
|
7945
|
-
var tmp_0;
|
|
7946
|
-
if ($p instanceof Error) {
|
|
7947
|
-
var e = $p;
|
|
7948
|
-
tmp_0 = new CompletedExceptionally(e);
|
|
7949
|
-
} else {
|
|
7950
|
-
throw $p;
|
|
7951
|
-
}
|
|
7952
|
-
tmp = tmp_0;
|
|
7953
|
-
}
|
|
7954
|
-
var result = tmp;
|
|
7955
|
-
if (result === get_COROUTINE_SUSPENDED()) {
|
|
7956
|
-
tmp$ret$2 = get_COROUTINE_SUSPENDED();
|
|
7957
|
-
break $l$block_0;
|
|
7958
|
-
}
|
|
7959
|
-
var state = _this__u8e3s4.yo(result);
|
|
7960
|
-
if (state === get_COMPLETING_WAITING_CHILDREN()) {
|
|
7961
|
-
tmp$ret$2 = get_COROUTINE_SUSPENDED();
|
|
7962
|
-
break $l$block_0;
|
|
7963
|
-
}
|
|
7964
|
-
_this__u8e3s4.ht();
|
|
7965
|
-
var tmp_1;
|
|
7966
|
-
if (state instanceof CompletedExceptionally) {
|
|
7967
|
-
var tmp_2;
|
|
7968
|
-
state.vo_1;
|
|
7969
|
-
if (true) {
|
|
7970
|
-
throw recoverStackTrace(state.vo_1, _this__u8e3s4.gt_1);
|
|
7971
|
-
} else {
|
|
7972
|
-
if (result instanceof CompletedExceptionally) {
|
|
7973
|
-
throw recoverStackTrace(result.vo_1, _this__u8e3s4.gt_1);
|
|
7974
|
-
} else {
|
|
7975
|
-
tmp_2 = result;
|
|
7976
|
-
}
|
|
7977
|
-
}
|
|
7978
|
-
tmp_1 = tmp_2;
|
|
7979
|
-
} else {
|
|
7980
|
-
tmp_1 = unboxState(state);
|
|
7981
|
-
}
|
|
7982
|
-
tmp$ret$2 = tmp_1;
|
|
7983
|
-
}
|
|
7984
|
-
return tmp$ret$2;
|
|
7937
|
+
return startUndspatched(_this__u8e3s4, true, receiver, block);
|
|
7985
7938
|
}
|
|
7986
7939
|
function startCoroutineUndispatched(_this__u8e3s4, receiver, completion) {
|
|
7987
7940
|
// Inline function 'kotlinx.coroutines.internal.probeCoroutineCreated' call
|
|
@@ -8022,6 +7975,64 @@
|
|
|
8022
7975
|
actualCompletion.r9(tmp$ret$7);
|
|
8023
7976
|
}
|
|
8024
7977
|
}
|
|
7978
|
+
function startUndspatched(_this__u8e3s4, alwaysRethrow, receiver, block) {
|
|
7979
|
+
var tmp;
|
|
7980
|
+
try {
|
|
7981
|
+
// Inline function 'kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn' call
|
|
7982
|
+
tmp = startCoroutineUninterceptedOrReturnNonGeneratorVersion(block, receiver, _this__u8e3s4);
|
|
7983
|
+
} catch ($p) {
|
|
7984
|
+
var tmp_0;
|
|
7985
|
+
if ($p instanceof DispatchException) {
|
|
7986
|
+
var e = $p;
|
|
7987
|
+
dispatchExceptionAndMakeCompleting(_this__u8e3s4, e);
|
|
7988
|
+
} else {
|
|
7989
|
+
if ($p instanceof Error) {
|
|
7990
|
+
var e_0 = $p;
|
|
7991
|
+
tmp_0 = new CompletedExceptionally(e_0);
|
|
7992
|
+
} else {
|
|
7993
|
+
throw $p;
|
|
7994
|
+
}
|
|
7995
|
+
}
|
|
7996
|
+
tmp = tmp_0;
|
|
7997
|
+
}
|
|
7998
|
+
var result = tmp;
|
|
7999
|
+
if (result === get_COROUTINE_SUSPENDED())
|
|
8000
|
+
return get_COROUTINE_SUSPENDED();
|
|
8001
|
+
var state = _this__u8e3s4.yo(result);
|
|
8002
|
+
if (state === get_COMPLETING_WAITING_CHILDREN())
|
|
8003
|
+
return get_COROUTINE_SUSPENDED();
|
|
8004
|
+
_this__u8e3s4.it();
|
|
8005
|
+
var tmp_1;
|
|
8006
|
+
if (state instanceof CompletedExceptionally) {
|
|
8007
|
+
var tmp_2;
|
|
8008
|
+
if (alwaysRethrow || notOwnTimeout(_this__u8e3s4, state.vo_1)) {
|
|
8009
|
+
throw recoverStackTrace(state.vo_1, _this__u8e3s4.ht_1);
|
|
8010
|
+
} else {
|
|
8011
|
+
if (result instanceof CompletedExceptionally) {
|
|
8012
|
+
throw recoverStackTrace(result.vo_1, _this__u8e3s4.ht_1);
|
|
8013
|
+
} else {
|
|
8014
|
+
tmp_2 = result;
|
|
8015
|
+
}
|
|
8016
|
+
}
|
|
8017
|
+
tmp_1 = tmp_2;
|
|
8018
|
+
} else {
|
|
8019
|
+
tmp_1 = unboxState(state);
|
|
8020
|
+
}
|
|
8021
|
+
return tmp_1;
|
|
8022
|
+
}
|
|
8023
|
+
function dispatchExceptionAndMakeCompleting(_this__u8e3s4, e) {
|
|
8024
|
+
_this__u8e3s4.fq(new CompletedExceptionally(e.ex_1));
|
|
8025
|
+
throw recoverStackTrace(e.ex_1, _this__u8e3s4.ht_1);
|
|
8026
|
+
}
|
|
8027
|
+
function notOwnTimeout(_this__u8e3s4, cause) {
|
|
8028
|
+
var tmp;
|
|
8029
|
+
if (!(cause instanceof TimeoutCancellationException)) {
|
|
8030
|
+
tmp = true;
|
|
8031
|
+
} else {
|
|
8032
|
+
tmp = !(cause.j1a_1 === _this__u8e3s4);
|
|
8033
|
+
}
|
|
8034
|
+
return tmp;
|
|
8035
|
+
}
|
|
8025
8036
|
var DUMMY_PROCESS_RESULT_FUNCTION;
|
|
8026
8037
|
function get_STATE_REG() {
|
|
8027
8038
|
_init_properties_Select_kt__zhm2jg();
|
|
@@ -8054,14 +8065,11 @@
|
|
|
8054
8065
|
}
|
|
8055
8066
|
function SelectClause1Impl(clauseObject, regFunc, processResFunc, onCancellationConstructor) {
|
|
8056
8067
|
onCancellationConstructor = onCancellationConstructor === VOID ? null : onCancellationConstructor;
|
|
8057
|
-
this.
|
|
8058
|
-
this.
|
|
8059
|
-
this.
|
|
8060
|
-
this.
|
|
8068
|
+
this.o1a_1 = clauseObject;
|
|
8069
|
+
this.p1a_1 = regFunc;
|
|
8070
|
+
this.q1a_1 = processResFunc;
|
|
8071
|
+
this.r1a_1 = onCancellationConstructor;
|
|
8061
8072
|
}
|
|
8062
|
-
protoOf(SelectClause1Impl).j1a = function () {
|
|
8063
|
-
return this.n1a_1;
|
|
8064
|
-
};
|
|
8065
8073
|
protoOf(SelectClause1Impl).k1a = function () {
|
|
8066
8074
|
return this.o1a_1;
|
|
8067
8075
|
};
|
|
@@ -8071,10 +8079,13 @@
|
|
|
8071
8079
|
protoOf(SelectClause1Impl).m1a = function () {
|
|
8072
8080
|
return this.q1a_1;
|
|
8073
8081
|
};
|
|
8082
|
+
protoOf(SelectClause1Impl).n1a = function () {
|
|
8083
|
+
return this.r1a_1;
|
|
8084
|
+
};
|
|
8074
8085
|
function $invokeBlockCOROUTINE$26(_this__u8e3s4, argument, resultContinuation) {
|
|
8075
8086
|
CoroutineImpl.call(this, resultContinuation);
|
|
8076
|
-
this.
|
|
8077
|
-
this.
|
|
8087
|
+
this.a1b_1 = _this__u8e3s4;
|
|
8088
|
+
this.b1b_1 = argument;
|
|
8078
8089
|
}
|
|
8079
8090
|
protoOf($invokeBlockCOROUTINE$26).o9 = function () {
|
|
8080
8091
|
var suspendResult = this.i9_1;
|
|
@@ -8084,23 +8095,23 @@
|
|
|
8084
8095
|
switch (tmp) {
|
|
8085
8096
|
case 0:
|
|
8086
8097
|
this.h9_1 = 4;
|
|
8087
|
-
this.
|
|
8088
|
-
if (this.
|
|
8089
|
-
var tmp_0 = this.
|
|
8098
|
+
this.c1b_1 = this.a1b_1.i1b_1;
|
|
8099
|
+
if (this.a1b_1.h1b_1 === get_PARAM_CLAUSE_0()) {
|
|
8100
|
+
var tmp_0 = this.c1b_1;
|
|
8090
8101
|
if (!isSuspendFunction(tmp_0, 0))
|
|
8091
8102
|
THROW_CCE();
|
|
8092
8103
|
this.g9_1 = 2;
|
|
8093
|
-
suspendResult = this.
|
|
8104
|
+
suspendResult = this.c1b_1(this);
|
|
8094
8105
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8095
8106
|
return suspendResult;
|
|
8096
8107
|
}
|
|
8097
8108
|
continue $sm;
|
|
8098
8109
|
} else {
|
|
8099
|
-
var tmp_1 = this.
|
|
8110
|
+
var tmp_1 = this.c1b_1;
|
|
8100
8111
|
if (!isSuspendFunction(tmp_1, 1))
|
|
8101
8112
|
THROW_CCE();
|
|
8102
8113
|
this.g9_1 = 1;
|
|
8103
|
-
suspendResult = this.
|
|
8114
|
+
suspendResult = this.c1b_1(this.b1b_1, this);
|
|
8104
8115
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8105
8116
|
return suspendResult;
|
|
8106
8117
|
}
|
|
@@ -8108,15 +8119,15 @@
|
|
|
8108
8119
|
}
|
|
8109
8120
|
|
|
8110
8121
|
case 1:
|
|
8111
|
-
this.
|
|
8122
|
+
this.d1b_1 = suspendResult;
|
|
8112
8123
|
this.g9_1 = 3;
|
|
8113
8124
|
continue $sm;
|
|
8114
8125
|
case 2:
|
|
8115
|
-
this.
|
|
8126
|
+
this.d1b_1 = suspendResult;
|
|
8116
8127
|
this.g9_1 = 3;
|
|
8117
8128
|
continue $sm;
|
|
8118
8129
|
case 3:
|
|
8119
|
-
return this.
|
|
8130
|
+
return this.d1b_1;
|
|
8120
8131
|
case 4:
|
|
8121
8132
|
throw this.j9_1;
|
|
8122
8133
|
}
|
|
@@ -8159,7 +8170,7 @@
|
|
|
8159
8170
|
var _iterator__ex2g4s = clauses.p();
|
|
8160
8171
|
while (_iterator__ex2g4s.q()) {
|
|
8161
8172
|
var element = _iterator__ex2g4s.r();
|
|
8162
|
-
if (element.
|
|
8173
|
+
if (element.e1b_1 === clauseObject) {
|
|
8163
8174
|
tmp$ret$0 = false;
|
|
8164
8175
|
break $l$block_0;
|
|
8165
8176
|
}
|
|
@@ -8174,7 +8185,7 @@
|
|
|
8174
8185
|
}
|
|
8175
8186
|
function waitUntilSelected($this, $completion) {
|
|
8176
8187
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
8177
|
-
cancellable.
|
|
8188
|
+
cancellable.ps();
|
|
8178
8189
|
$l$block_0: {
|
|
8179
8190
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
8180
8191
|
var this_0 = $this.t14_1;
|
|
@@ -8199,7 +8210,7 @@
|
|
|
8199
8210
|
}
|
|
8200
8211
|
} else {
|
|
8201
8212
|
if (curState instanceof ClauseData) {
|
|
8202
|
-
cancellable.
|
|
8213
|
+
cancellable.eu(Unit_instance, curState.w1b($this, $this.x14_1));
|
|
8203
8214
|
break $l$block_0;
|
|
8204
8215
|
} else {
|
|
8205
8216
|
// Inline function 'kotlin.error' call
|
|
@@ -8210,13 +8221,13 @@
|
|
|
8210
8221
|
}
|
|
8211
8222
|
}
|
|
8212
8223
|
}
|
|
8213
|
-
return cancellable.
|
|
8224
|
+
return cancellable.qs();
|
|
8214
8225
|
}
|
|
8215
8226
|
function reregisterClause($this, clauseObject) {
|
|
8216
8227
|
var clause = ensureNotNull(findClause($this, clauseObject));
|
|
8217
|
-
clause.
|
|
8218
|
-
clause.
|
|
8219
|
-
$this.
|
|
8228
|
+
clause.k1b_1 = null;
|
|
8229
|
+
clause.l1b_1 = -1;
|
|
8230
|
+
$this.x1b(clause, true);
|
|
8220
8231
|
}
|
|
8221
8232
|
function trySelectInternal($this, clauseObject, internalResult) {
|
|
8222
8233
|
$l$loop: while (true) {
|
|
@@ -8230,7 +8241,7 @@
|
|
|
8230
8241
|
tmp = tmp0_elvis_lhs;
|
|
8231
8242
|
}
|
|
8232
8243
|
var clause = tmp;
|
|
8233
|
-
var onCancellation = clause.
|
|
8244
|
+
var onCancellation = clause.w1b($this, internalResult);
|
|
8234
8245
|
if ($this.t14_1.atomicfu$compareAndSet(curState, clause)) {
|
|
8235
8246
|
var cont = isInterface(curState, CancellableContinuation) ? curState : THROW_CCE();
|
|
8236
8247
|
$this.x14_1 = internalResult;
|
|
@@ -8286,7 +8297,7 @@
|
|
|
8286
8297
|
var _iterator__ex2g4s = clauses.p();
|
|
8287
8298
|
while (_iterator__ex2g4s.q()) {
|
|
8288
8299
|
var element = _iterator__ex2g4s.r();
|
|
8289
|
-
if (element.
|
|
8300
|
+
if (element.e1b_1 === clauseObject) {
|
|
8290
8301
|
tmp$ret$1 = element;
|
|
8291
8302
|
break $l$block;
|
|
8292
8303
|
}
|
|
@@ -8330,7 +8341,7 @@
|
|
|
8330
8341
|
while (_iterator__ex2g4s.q()) {
|
|
8331
8342
|
var element = _iterator__ex2g4s.r();
|
|
8332
8343
|
if (!(element === selectedClause)) {
|
|
8333
|
-
element.
|
|
8344
|
+
element.mr();
|
|
8334
8345
|
}
|
|
8335
8346
|
}
|
|
8336
8347
|
$this.t14_1.kotlinx$atomicfu$value = get_STATE_COMPLETED();
|
|
@@ -8338,37 +8349,37 @@
|
|
|
8338
8349
|
$this.u14_1 = null;
|
|
8339
8350
|
}
|
|
8340
8351
|
function ClauseData($outer, clauseObject, regFunc, processResFunc, param, block, onCancellationConstructor) {
|
|
8341
|
-
this.
|
|
8342
|
-
this.
|
|
8343
|
-
this.
|
|
8344
|
-
this.
|
|
8345
|
-
this.
|
|
8346
|
-
this.
|
|
8347
|
-
this.
|
|
8348
|
-
this.
|
|
8349
|
-
this.
|
|
8350
|
-
}
|
|
8351
|
-
protoOf(ClauseData).
|
|
8352
|
+
this.m1b_1 = $outer;
|
|
8353
|
+
this.e1b_1 = clauseObject;
|
|
8354
|
+
this.f1b_1 = regFunc;
|
|
8355
|
+
this.g1b_1 = processResFunc;
|
|
8356
|
+
this.h1b_1 = param;
|
|
8357
|
+
this.i1b_1 = block;
|
|
8358
|
+
this.j1b_1 = onCancellationConstructor;
|
|
8359
|
+
this.k1b_1 = null;
|
|
8360
|
+
this.l1b_1 = -1;
|
|
8361
|
+
}
|
|
8362
|
+
protoOf(ClauseData).y1c = function (select) {
|
|
8352
8363
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8353
8364
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8354
|
-
this.
|
|
8365
|
+
this.f1b_1(this.e1b_1, select, this.h1b_1);
|
|
8355
8366
|
return select.x14_1 === get_NO_RESULT();
|
|
8356
8367
|
};
|
|
8357
|
-
protoOf(ClauseData).
|
|
8358
|
-
return this.
|
|
8368
|
+
protoOf(ClauseData).z1c = function (result) {
|
|
8369
|
+
return this.g1b_1(this.e1b_1, this.h1b_1, result);
|
|
8359
8370
|
};
|
|
8360
|
-
protoOf(ClauseData).
|
|
8371
|
+
protoOf(ClauseData).a1d = function (argument, $completion) {
|
|
8361
8372
|
var tmp = new $invokeBlockCOROUTINE$26(this, argument, $completion);
|
|
8362
8373
|
tmp.i9_1 = Unit_instance;
|
|
8363
8374
|
tmp.j9_1 = null;
|
|
8364
8375
|
return tmp.o9();
|
|
8365
8376
|
};
|
|
8366
|
-
protoOf(ClauseData).
|
|
8377
|
+
protoOf(ClauseData).mr = function () {
|
|
8367
8378
|
// Inline function 'kotlin.with' call
|
|
8368
|
-
var $this$with = this.
|
|
8379
|
+
var $this$with = this.k1b_1;
|
|
8369
8380
|
var tmp;
|
|
8370
8381
|
if ($this$with instanceof Segment) {
|
|
8371
|
-
$this$with.
|
|
8382
|
+
$this$with.wu(this.l1b_1, null, this.m1b_1.m9());
|
|
8372
8383
|
tmp = Unit_instance;
|
|
8373
8384
|
} else {
|
|
8374
8385
|
var tmp0_safe_receiver = (!($this$with == null) ? isInterface($this$with, DisposableHandle) : false) ? $this$with : null;
|
|
@@ -8376,19 +8387,19 @@
|
|
|
8376
8387
|
if (tmp0_safe_receiver == null) {
|
|
8377
8388
|
tmp_0 = null;
|
|
8378
8389
|
} else {
|
|
8379
|
-
tmp0_safe_receiver.
|
|
8390
|
+
tmp0_safe_receiver.mr();
|
|
8380
8391
|
tmp_0 = Unit_instance;
|
|
8381
8392
|
}
|
|
8382
8393
|
tmp = tmp_0;
|
|
8383
8394
|
}
|
|
8384
8395
|
};
|
|
8385
|
-
protoOf(ClauseData).
|
|
8386
|
-
var tmp0_safe_receiver = this.
|
|
8387
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.
|
|
8396
|
+
protoOf(ClauseData).w1b = function (select, internalResult) {
|
|
8397
|
+
var tmp0_safe_receiver = this.j1b_1;
|
|
8398
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.h1b_1, internalResult);
|
|
8388
8399
|
};
|
|
8389
8400
|
function $doSelectCOROUTINE$22(_this__u8e3s4, resultContinuation) {
|
|
8390
8401
|
CoroutineImpl.call(this, resultContinuation);
|
|
8391
|
-
this.
|
|
8402
|
+
this.j1d_1 = _this__u8e3s4;
|
|
8392
8403
|
}
|
|
8393
8404
|
protoOf($doSelectCOROUTINE$22).o9 = function () {
|
|
8394
8405
|
var suspendResult = this.i9_1;
|
|
@@ -8398,16 +8409,16 @@
|
|
|
8398
8409
|
switch (tmp) {
|
|
8399
8410
|
case 0:
|
|
8400
8411
|
this.h9_1 = 4;
|
|
8401
|
-
if (_get_isSelected__uy0hmu(this.
|
|
8412
|
+
if (_get_isSelected__uy0hmu(this.j1d_1)) {
|
|
8402
8413
|
this.g9_1 = 2;
|
|
8403
|
-
suspendResult = complete(this.
|
|
8414
|
+
suspendResult = complete(this.j1d_1, this);
|
|
8404
8415
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8405
8416
|
return suspendResult;
|
|
8406
8417
|
}
|
|
8407
8418
|
continue $sm;
|
|
8408
8419
|
} else {
|
|
8409
8420
|
this.g9_1 = 1;
|
|
8410
|
-
suspendResult = doSelectSuspend(this.
|
|
8421
|
+
suspendResult = doSelectSuspend(this.j1d_1, this);
|
|
8411
8422
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8412
8423
|
return suspendResult;
|
|
8413
8424
|
}
|
|
@@ -8415,15 +8426,15 @@
|
|
|
8415
8426
|
}
|
|
8416
8427
|
|
|
8417
8428
|
case 1:
|
|
8418
|
-
this.
|
|
8429
|
+
this.k1d_1 = suspendResult;
|
|
8419
8430
|
this.g9_1 = 3;
|
|
8420
8431
|
continue $sm;
|
|
8421
8432
|
case 2:
|
|
8422
|
-
this.
|
|
8433
|
+
this.k1d_1 = suspendResult;
|
|
8423
8434
|
this.g9_1 = 3;
|
|
8424
8435
|
continue $sm;
|
|
8425
8436
|
case 3:
|
|
8426
|
-
return this.
|
|
8437
|
+
return this.k1d_1;
|
|
8427
8438
|
case 4:
|
|
8428
8439
|
throw this.j9_1;
|
|
8429
8440
|
}
|
|
@@ -8440,7 +8451,7 @@
|
|
|
8440
8451
|
};
|
|
8441
8452
|
function $doSelectSuspendCOROUTINE$23(_this__u8e3s4, resultContinuation) {
|
|
8442
8453
|
CoroutineImpl.call(this, resultContinuation);
|
|
8443
|
-
this.
|
|
8454
|
+
this.v1b_1 = _this__u8e3s4;
|
|
8444
8455
|
}
|
|
8445
8456
|
protoOf($doSelectSuspendCOROUTINE$23).o9 = function () {
|
|
8446
8457
|
var suspendResult = this.i9_1;
|
|
@@ -8451,7 +8462,7 @@
|
|
|
8451
8462
|
case 0:
|
|
8452
8463
|
this.h9_1 = 3;
|
|
8453
8464
|
this.g9_1 = 1;
|
|
8454
|
-
suspendResult = waitUntilSelected(this.
|
|
8465
|
+
suspendResult = waitUntilSelected(this.v1b_1, this);
|
|
8455
8466
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8456
8467
|
return suspendResult;
|
|
8457
8468
|
}
|
|
@@ -8459,7 +8470,7 @@
|
|
|
8459
8470
|
continue $sm;
|
|
8460
8471
|
case 1:
|
|
8461
8472
|
this.g9_1 = 2;
|
|
8462
|
-
suspendResult = complete(this.
|
|
8473
|
+
suspendResult = complete(this.v1b_1, this);
|
|
8463
8474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8464
8475
|
return suspendResult;
|
|
8465
8476
|
}
|
|
@@ -8483,7 +8494,7 @@
|
|
|
8483
8494
|
};
|
|
8484
8495
|
function $completeCOROUTINE$24(_this__u8e3s4, resultContinuation) {
|
|
8485
8496
|
CoroutineImpl.call(this, resultContinuation);
|
|
8486
|
-
this.
|
|
8497
|
+
this.g1c_1 = _this__u8e3s4;
|
|
8487
8498
|
}
|
|
8488
8499
|
protoOf($completeCOROUTINE$24).o9 = function () {
|
|
8489
8500
|
var suspendResult = this.i9_1;
|
|
@@ -8494,21 +8505,21 @@
|
|
|
8494
8505
|
case 0:
|
|
8495
8506
|
this.h9_1 = 4;
|
|
8496
8507
|
var tmp_0 = this;
|
|
8497
|
-
var tmp_1 = this.
|
|
8498
|
-
tmp_0.
|
|
8499
|
-
this.
|
|
8500
|
-
cleanup(this.
|
|
8508
|
+
var tmp_1 = this.g1c_1.t14_1.kotlinx$atomicfu$value;
|
|
8509
|
+
tmp_0.h1c_1 = tmp_1 instanceof ClauseData ? tmp_1 : THROW_CCE();
|
|
8510
|
+
this.i1c_1 = this.g1c_1.x14_1;
|
|
8511
|
+
cleanup(this.g1c_1, this.h1c_1);
|
|
8501
8512
|
if (!get_RECOVER_STACK_TRACES()) {
|
|
8502
|
-
this.
|
|
8513
|
+
this.k1c_1 = this.h1c_1.z1c(this.i1c_1);
|
|
8503
8514
|
this.g9_1 = 2;
|
|
8504
|
-
suspendResult = this.
|
|
8515
|
+
suspendResult = this.h1c_1.a1d(this.k1c_1, this);
|
|
8505
8516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8506
8517
|
return suspendResult;
|
|
8507
8518
|
}
|
|
8508
8519
|
continue $sm;
|
|
8509
8520
|
} else {
|
|
8510
8521
|
this.g9_1 = 1;
|
|
8511
|
-
suspendResult = processResultAndInvokeBlockRecoveringException(this.
|
|
8522
|
+
suspendResult = processResultAndInvokeBlockRecoveringException(this.g1c_1, this.h1c_1, this.i1c_1, this);
|
|
8512
8523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8513
8524
|
return suspendResult;
|
|
8514
8525
|
}
|
|
@@ -8516,15 +8527,15 @@
|
|
|
8516
8527
|
}
|
|
8517
8528
|
|
|
8518
8529
|
case 1:
|
|
8519
|
-
this.
|
|
8530
|
+
this.j1c_1 = suspendResult;
|
|
8520
8531
|
this.g9_1 = 3;
|
|
8521
8532
|
continue $sm;
|
|
8522
8533
|
case 2:
|
|
8523
|
-
this.
|
|
8534
|
+
this.j1c_1 = suspendResult;
|
|
8524
8535
|
this.g9_1 = 3;
|
|
8525
8536
|
continue $sm;
|
|
8526
8537
|
case 3:
|
|
8527
|
-
return this.
|
|
8538
|
+
return this.j1c_1;
|
|
8528
8539
|
case 4:
|
|
8529
8540
|
throw this.j9_1;
|
|
8530
8541
|
}
|
|
@@ -8541,9 +8552,9 @@
|
|
|
8541
8552
|
};
|
|
8542
8553
|
function $processResultAndInvokeBlockRecoveringExceptionCOROUTINE$25(_this__u8e3s4, clause, internalResult, resultContinuation) {
|
|
8543
8554
|
CoroutineImpl.call(this, resultContinuation);
|
|
8544
|
-
this.
|
|
8545
|
-
this.
|
|
8546
|
-
this.
|
|
8555
|
+
this.t1c_1 = _this__u8e3s4;
|
|
8556
|
+
this.u1c_1 = clause;
|
|
8557
|
+
this.v1c_1 = internalResult;
|
|
8547
8558
|
}
|
|
8548
8559
|
protoOf($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$25).o9 = function () {
|
|
8549
8560
|
var suspendResult = this.i9_1;
|
|
@@ -8554,16 +8565,16 @@
|
|
|
8554
8565
|
case 0:
|
|
8555
8566
|
this.h9_1 = 3;
|
|
8556
8567
|
this.h9_1 = 2;
|
|
8557
|
-
this.
|
|
8568
|
+
this.x1c_1 = this.u1c_1.z1c(this.v1c_1);
|
|
8558
8569
|
this.g9_1 = 1;
|
|
8559
|
-
suspendResult = this.
|
|
8570
|
+
suspendResult = this.u1c_1.a1d(this.x1c_1, this);
|
|
8560
8571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8561
8572
|
return suspendResult;
|
|
8562
8573
|
}
|
|
8563
8574
|
|
|
8564
8575
|
continue $sm;
|
|
8565
8576
|
case 1:
|
|
8566
|
-
this.
|
|
8577
|
+
this.w1c_1 = suspendResult;
|
|
8567
8578
|
this.h9_1 = 3;
|
|
8568
8579
|
this.g9_1 = 4;
|
|
8569
8580
|
continue $sm;
|
|
@@ -8582,7 +8593,7 @@
|
|
|
8582
8593
|
throw this.j9_1;
|
|
8583
8594
|
case 4:
|
|
8584
8595
|
this.h9_1 = 3;
|
|
8585
|
-
return this.
|
|
8596
|
+
return this.w1c_1;
|
|
8586
8597
|
}
|
|
8587
8598
|
} catch ($p) {
|
|
8588
8599
|
var e_0 = $p;
|
|
@@ -8606,51 +8617,51 @@
|
|
|
8606
8617
|
protoOf(SelectImplementation).m9 = function () {
|
|
8607
8618
|
return this.s14_1;
|
|
8608
8619
|
};
|
|
8609
|
-
protoOf(SelectImplementation).
|
|
8620
|
+
protoOf(SelectImplementation).l1d = function ($completion) {
|
|
8610
8621
|
var tmp = new $doSelectCOROUTINE$22(this, $completion);
|
|
8611
8622
|
tmp.i9_1 = Unit_instance;
|
|
8612
8623
|
tmp.j9_1 = null;
|
|
8613
8624
|
return tmp.o9();
|
|
8614
8625
|
};
|
|
8615
|
-
protoOf(SelectImplementation).
|
|
8616
|
-
return this.
|
|
8626
|
+
protoOf(SelectImplementation).m1d = function (_this__u8e3s4, block) {
|
|
8627
|
+
return this.n1d(new ClauseData(this, _this__u8e3s4.k1a(), _this__u8e3s4.l1a(), _this__u8e3s4.m1a(), null, block, _this__u8e3s4.n1a()));
|
|
8617
8628
|
};
|
|
8618
|
-
protoOf(SelectImplementation).
|
|
8629
|
+
protoOf(SelectImplementation).x1b = function (_this__u8e3s4, reregister) {
|
|
8619
8630
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8620
8631
|
// Inline function 'kotlin.let' call
|
|
8621
8632
|
if (this.t14_1.kotlinx$atomicfu$value instanceof ClauseData)
|
|
8622
8633
|
return Unit_instance;
|
|
8623
8634
|
if (!reregister) {
|
|
8624
|
-
checkClauseObject(this, _this__u8e3s4.
|
|
8635
|
+
checkClauseObject(this, _this__u8e3s4.e1b_1);
|
|
8625
8636
|
}
|
|
8626
|
-
if (_this__u8e3s4.
|
|
8637
|
+
if (_this__u8e3s4.y1c(this)) {
|
|
8627
8638
|
if (!reregister) {
|
|
8628
8639
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
8629
8640
|
ensureNotNull(this.u14_1).k(_this__u8e3s4);
|
|
8630
8641
|
}
|
|
8631
|
-
_this__u8e3s4.
|
|
8632
|
-
_this__u8e3s4.
|
|
8642
|
+
_this__u8e3s4.k1b_1 = this.v14_1;
|
|
8643
|
+
_this__u8e3s4.l1b_1 = this.w14_1;
|
|
8633
8644
|
this.v14_1 = null;
|
|
8634
8645
|
this.w14_1 = -1;
|
|
8635
8646
|
} else {
|
|
8636
8647
|
this.t14_1.kotlinx$atomicfu$value = _this__u8e3s4;
|
|
8637
8648
|
}
|
|
8638
8649
|
};
|
|
8639
|
-
protoOf(SelectImplementation).
|
|
8650
|
+
protoOf(SelectImplementation).n1d = function (_this__u8e3s4, reregister, $super) {
|
|
8640
8651
|
reregister = reregister === VOID ? false : reregister;
|
|
8641
8652
|
var tmp;
|
|
8642
8653
|
if ($super === VOID) {
|
|
8643
|
-
this.
|
|
8654
|
+
this.x1b(_this__u8e3s4, reregister);
|
|
8644
8655
|
tmp = Unit_instance;
|
|
8645
8656
|
} else {
|
|
8646
|
-
tmp = $super.
|
|
8657
|
+
tmp = $super.x1b.call(this, _this__u8e3s4, reregister);
|
|
8647
8658
|
}
|
|
8648
8659
|
return tmp;
|
|
8649
8660
|
};
|
|
8650
8661
|
protoOf(SelectImplementation).oz = function (disposableHandle) {
|
|
8651
8662
|
this.v14_1 = disposableHandle;
|
|
8652
8663
|
};
|
|
8653
|
-
protoOf(SelectImplementation).
|
|
8664
|
+
protoOf(SelectImplementation).vv = function (segment, index) {
|
|
8654
8665
|
this.v14_1 = segment;
|
|
8655
8666
|
this.w14_1 = index;
|
|
8656
8667
|
};
|
|
@@ -8663,7 +8674,7 @@
|
|
|
8663
8674
|
protoOf(SelectImplementation).y14 = function (clauseObject, result) {
|
|
8664
8675
|
return TrySelectDetailedResult_0(trySelectInternal(this, clauseObject, result));
|
|
8665
8676
|
};
|
|
8666
|
-
protoOf(SelectImplementation).
|
|
8677
|
+
protoOf(SelectImplementation).nr = function (cause) {
|
|
8667
8678
|
var tmp0 = this.t14_1;
|
|
8668
8679
|
$l$block: {
|
|
8669
8680
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -8689,7 +8700,7 @@
|
|
|
8689
8700
|
var _iterator__ex2g4s = clauses.p();
|
|
8690
8701
|
while (_iterator__ex2g4s.q()) {
|
|
8691
8702
|
var element = _iterator__ex2g4s.r();
|
|
8692
|
-
element.
|
|
8703
|
+
element.mr();
|
|
8693
8704
|
}
|
|
8694
8705
|
this.x14_1 = get_NO_RESULT();
|
|
8695
8706
|
this.u14_1 = null;
|
|
@@ -8735,7 +8746,7 @@
|
|
|
8735
8746
|
}
|
|
8736
8747
|
function tryResume_1(_this__u8e3s4, onCancellation) {
|
|
8737
8748
|
_init_properties_Select_kt__zhm2jg();
|
|
8738
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
8749
|
+
var tmp0_elvis_lhs = _this__u8e3s4.bu(Unit_instance, null, onCancellation);
|
|
8739
8750
|
var tmp;
|
|
8740
8751
|
if (tmp0_elvis_lhs == null) {
|
|
8741
8752
|
return false;
|
|
@@ -8743,7 +8754,7 @@
|
|
|
8743
8754
|
tmp = tmp0_elvis_lhs;
|
|
8744
8755
|
}
|
|
8745
8756
|
var token = tmp;
|
|
8746
|
-
_this__u8e3s4.
|
|
8757
|
+
_this__u8e3s4.vr(token);
|
|
8747
8758
|
return true;
|
|
8748
8759
|
}
|
|
8749
8760
|
function DUMMY_PROCESS_RESULT_FUNCTION$lambda(_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
@@ -8792,22 +8803,22 @@
|
|
|
8792
8803
|
function MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this$0, this$1) {
|
|
8793
8804
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
8794
8805
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8795
|
-
this$0.
|
|
8796
|
-
this$0.
|
|
8806
|
+
this$0.v1d_1.kotlinx$atomicfu$value = this$1.y1d_1;
|
|
8807
|
+
this$0.a1e(this$1.y1d_1);
|
|
8797
8808
|
return Unit_instance;
|
|
8798
8809
|
};
|
|
8799
8810
|
}
|
|
8800
8811
|
function MutexImpl$CancellableContinuationWithOwner$resume$lambda(this$0, this$1) {
|
|
8801
8812
|
return function (it) {
|
|
8802
|
-
this$0.
|
|
8813
|
+
this$0.a1e(this$1.y1d_1);
|
|
8803
8814
|
return Unit_instance;
|
|
8804
8815
|
};
|
|
8805
8816
|
}
|
|
8806
8817
|
function holdsLockImpl($this, owner) {
|
|
8807
8818
|
$l$loop: while (true) {
|
|
8808
|
-
if (!$this.
|
|
8819
|
+
if (!$this.b1e())
|
|
8809
8820
|
return 0;
|
|
8810
|
-
var curOwner = $this.
|
|
8821
|
+
var curOwner = $this.v1d_1.kotlinx$atomicfu$value;
|
|
8811
8822
|
if (curOwner === get_NO_OWNER())
|
|
8812
8823
|
continue $l$loop;
|
|
8813
8824
|
return curOwner === owner ? 1 : 2;
|
|
@@ -8821,19 +8832,19 @@
|
|
|
8821
8832
|
} catch ($p) {
|
|
8822
8833
|
if ($p instanceof Error) {
|
|
8823
8834
|
var e = $p;
|
|
8824
|
-
cancellable.
|
|
8835
|
+
cancellable.pv();
|
|
8825
8836
|
throw e;
|
|
8826
8837
|
} else {
|
|
8827
8838
|
throw $p;
|
|
8828
8839
|
}
|
|
8829
8840
|
}
|
|
8830
|
-
return cancellable.
|
|
8841
|
+
return cancellable.qs();
|
|
8831
8842
|
}
|
|
8832
8843
|
function tryLockImpl($this, owner) {
|
|
8833
8844
|
$l$loop: while (true) {
|
|
8834
|
-
if ($this.
|
|
8845
|
+
if ($this.j1e()) {
|
|
8835
8846
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8836
|
-
$this.
|
|
8847
|
+
$this.v1d_1.kotlinx$atomicfu$value = owner;
|
|
8837
8848
|
return 0;
|
|
8838
8849
|
} else {
|
|
8839
8850
|
if (owner == null)
|
|
@@ -8850,66 +8861,66 @@
|
|
|
8850
8861
|
}
|
|
8851
8862
|
}
|
|
8852
8863
|
function CancellableContinuationWithOwner($outer, cont, owner) {
|
|
8853
|
-
this.
|
|
8854
|
-
this.
|
|
8855
|
-
this.
|
|
8864
|
+
this.z1d_1 = $outer;
|
|
8865
|
+
this.x1d_1 = cont;
|
|
8866
|
+
this.y1d_1 = owner;
|
|
8856
8867
|
}
|
|
8857
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8868
|
+
protoOf(CancellableContinuationWithOwner).k1e = function (value, idempotent, onCancellation) {
|
|
8858
8869
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8859
|
-
var token = this.
|
|
8870
|
+
var token = this.x1d_1.bu(value, idempotent, MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this.z1d_1, this));
|
|
8860
8871
|
if (!(token == null)) {
|
|
8861
8872
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8862
|
-
this.
|
|
8873
|
+
this.z1d_1.v1d_1.kotlinx$atomicfu$value = this.y1d_1;
|
|
8863
8874
|
}
|
|
8864
8875
|
return token;
|
|
8865
8876
|
};
|
|
8866
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8867
|
-
return this.
|
|
8877
|
+
protoOf(CancellableContinuationWithOwner).bu = function (value, idempotent, onCancellation) {
|
|
8878
|
+
return this.k1e(value instanceof Unit ? value : THROW_CCE(), idempotent, onCancellation);
|
|
8868
8879
|
};
|
|
8869
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8880
|
+
protoOf(CancellableContinuationWithOwner).l1e = function (value, onCancellation) {
|
|
8870
8881
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8871
|
-
this.
|
|
8872
|
-
this.
|
|
8882
|
+
this.z1d_1.v1d_1.kotlinx$atomicfu$value = this.y1d_1;
|
|
8883
|
+
this.x1d_1.tv(Unit_instance, MutexImpl$CancellableContinuationWithOwner$resume$lambda(this.z1d_1, this));
|
|
8873
8884
|
};
|
|
8874
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8875
|
-
return this.
|
|
8885
|
+
protoOf(CancellableContinuationWithOwner).eu = function (value, onCancellation) {
|
|
8886
|
+
return this.l1e(value instanceof Unit ? value : THROW_CCE(), onCancellation);
|
|
8876
8887
|
};
|
|
8877
8888
|
protoOf(CancellableContinuationWithOwner).kp = function () {
|
|
8878
|
-
return this.
|
|
8889
|
+
return this.x1d_1.kp();
|
|
8879
8890
|
};
|
|
8880
8891
|
protoOf(CancellableContinuationWithOwner).lp = function () {
|
|
8881
|
-
return this.
|
|
8892
|
+
return this.x1d_1.lp();
|
|
8882
8893
|
};
|
|
8883
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8884
|
-
return this.
|
|
8894
|
+
protoOf(CancellableContinuationWithOwner).ur = function (exception) {
|
|
8895
|
+
return this.x1d_1.ur(exception);
|
|
8885
8896
|
};
|
|
8886
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8887
|
-
this.
|
|
8897
|
+
protoOf(CancellableContinuationWithOwner).vr = function (token) {
|
|
8898
|
+
this.x1d_1.vr(token);
|
|
8888
8899
|
};
|
|
8889
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8890
|
-
this.
|
|
8900
|
+
protoOf(CancellableContinuationWithOwner).cu = function (handler) {
|
|
8901
|
+
this.x1d_1.cu(handler);
|
|
8891
8902
|
};
|
|
8892
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8893
|
-
this.
|
|
8903
|
+
protoOf(CancellableContinuationWithOwner).vv = function (segment, index) {
|
|
8904
|
+
this.x1d_1.vv(segment, index);
|
|
8894
8905
|
};
|
|
8895
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8896
|
-
this.
|
|
8906
|
+
protoOf(CancellableContinuationWithOwner).m1e = function (_this__u8e3s4, value) {
|
|
8907
|
+
this.x1d_1.du(_this__u8e3s4, Unit_instance);
|
|
8897
8908
|
};
|
|
8898
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8899
|
-
return this.
|
|
8909
|
+
protoOf(CancellableContinuationWithOwner).du = function (_this__u8e3s4, value) {
|
|
8910
|
+
return this.m1e(_this__u8e3s4, value instanceof Unit ? value : THROW_CCE());
|
|
8900
8911
|
};
|
|
8901
8912
|
protoOf(CancellableContinuationWithOwner).eh = function (result) {
|
|
8902
|
-
this.
|
|
8913
|
+
this.x1d_1.r9(result);
|
|
8903
8914
|
};
|
|
8904
8915
|
protoOf(CancellableContinuationWithOwner).r9 = function (result) {
|
|
8905
8916
|
return this.eh(result);
|
|
8906
8917
|
};
|
|
8907
8918
|
protoOf(CancellableContinuationWithOwner).m9 = function () {
|
|
8908
|
-
return this.
|
|
8919
|
+
return this.x1d_1.m9();
|
|
8909
8920
|
};
|
|
8910
8921
|
function MutexImpl$onSelectCancellationUnlockConstructor$lambda$lambda(this$0, $owner) {
|
|
8911
8922
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
8912
|
-
this$0.
|
|
8923
|
+
this$0.a1e($owner);
|
|
8913
8924
|
return Unit_instance;
|
|
8914
8925
|
};
|
|
8915
8926
|
}
|
|
@@ -8920,19 +8931,19 @@
|
|
|
8920
8931
|
}
|
|
8921
8932
|
function MutexImpl(locked) {
|
|
8922
8933
|
SemaphoreAndMutexImpl.call(this, 1, locked ? 1 : 0);
|
|
8923
|
-
this.
|
|
8934
|
+
this.v1d_1 = atomic$ref$1(locked ? null : get_NO_OWNER());
|
|
8924
8935
|
var tmp = this;
|
|
8925
|
-
tmp.
|
|
8936
|
+
tmp.w1d_1 = MutexImpl$onSelectCancellationUnlockConstructor$lambda(this);
|
|
8926
8937
|
}
|
|
8927
|
-
protoOf(MutexImpl).
|
|
8928
|
-
return this.
|
|
8938
|
+
protoOf(MutexImpl).b1e = function () {
|
|
8939
|
+
return this.n1e() === 0;
|
|
8929
8940
|
};
|
|
8930
|
-
protoOf(MutexImpl).
|
|
8931
|
-
if (this.
|
|
8941
|
+
protoOf(MutexImpl).o1e = function (owner, $completion) {
|
|
8942
|
+
if (this.p1e(owner))
|
|
8932
8943
|
return Unit_instance;
|
|
8933
8944
|
return lockSuspend(this, owner, $completion);
|
|
8934
8945
|
};
|
|
8935
|
-
protoOf(MutexImpl).
|
|
8946
|
+
protoOf(MutexImpl).p1e = function (owner) {
|
|
8936
8947
|
var tmp;
|
|
8937
8948
|
switch (tryLockImpl(this, owner)) {
|
|
8938
8949
|
case 0:
|
|
@@ -8950,14 +8961,14 @@
|
|
|
8950
8961
|
}
|
|
8951
8962
|
return tmp;
|
|
8952
8963
|
};
|
|
8953
|
-
protoOf(MutexImpl).
|
|
8964
|
+
protoOf(MutexImpl).a1e = function (owner) {
|
|
8954
8965
|
$l$loop_0: while (true) {
|
|
8955
8966
|
// Inline function 'kotlin.check' call
|
|
8956
|
-
if (!this.
|
|
8967
|
+
if (!this.b1e()) {
|
|
8957
8968
|
var message = 'This mutex is not locked';
|
|
8958
8969
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
8959
8970
|
}
|
|
8960
|
-
var curOwner = this.
|
|
8971
|
+
var curOwner = this.v1d_1.kotlinx$atomicfu$value;
|
|
8961
8972
|
if (curOwner === get_NO_OWNER())
|
|
8962
8973
|
continue $l$loop_0;
|
|
8963
8974
|
// Inline function 'kotlin.check' call
|
|
@@ -8965,14 +8976,14 @@
|
|
|
8965
8976
|
var message_0 = 'This mutex is locked by ' + toString_0(curOwner) + ', but ' + toString_0(owner) + ' is expected';
|
|
8966
8977
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
8967
8978
|
}
|
|
8968
|
-
if (!this.
|
|
8979
|
+
if (!this.v1d_1.atomicfu$compareAndSet(curOwner, get_NO_OWNER()))
|
|
8969
8980
|
continue $l$loop_0;
|
|
8970
|
-
this.
|
|
8981
|
+
this.q1e();
|
|
8971
8982
|
return Unit_instance;
|
|
8972
8983
|
}
|
|
8973
8984
|
};
|
|
8974
8985
|
protoOf(MutexImpl).toString = function () {
|
|
8975
|
-
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.
|
|
8986
|
+
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.b1e() + ',owner=' + toString_0(this.v1d_1.kotlinx$atomicfu$value) + ']';
|
|
8976
8987
|
};
|
|
8977
8988
|
var properties_initialized_Mutex_kt_yv4p3j;
|
|
8978
8989
|
function _init_properties_Mutex_kt__jod56b() {
|
|
@@ -9014,26 +9025,26 @@
|
|
|
9014
9025
|
var SEGMENT_SIZE_0;
|
|
9015
9026
|
function decPermits($this) {
|
|
9016
9027
|
$l$loop: while (true) {
|
|
9017
|
-
var p = $this.
|
|
9018
|
-
if (p > $this.
|
|
9028
|
+
var p = $this.h1e_1.atomicfu$getAndDecrement();
|
|
9029
|
+
if (p > $this.c1e_1)
|
|
9019
9030
|
continue $l$loop;
|
|
9020
9031
|
return p;
|
|
9021
9032
|
}
|
|
9022
9033
|
}
|
|
9023
9034
|
function coerceAvailablePermitsAtMaximum($this) {
|
|
9024
9035
|
$l$loop_0: while (true) {
|
|
9025
|
-
var cur = $this.
|
|
9026
|
-
if (cur <= $this.
|
|
9036
|
+
var cur = $this.h1e_1.kotlinx$atomicfu$value;
|
|
9037
|
+
if (cur <= $this.c1e_1)
|
|
9027
9038
|
break $l$loop_0;
|
|
9028
|
-
if ($this.
|
|
9039
|
+
if ($this.h1e_1.atomicfu$compareAndSet(cur, $this.c1e_1))
|
|
9029
9040
|
break $l$loop_0;
|
|
9030
9041
|
}
|
|
9031
9042
|
}
|
|
9032
9043
|
function addAcquireToQueue($this, waiter) {
|
|
9033
|
-
var curTail = $this.
|
|
9034
|
-
var enqIdx = $this.
|
|
9044
|
+
var curTail = $this.f1e_1.kotlinx$atomicfu$value;
|
|
9045
|
+
var enqIdx = $this.g1e_1.atomicfu$getAndIncrement$long();
|
|
9035
9046
|
var createNewSegment = createSegment$ref_0();
|
|
9036
|
-
var tmp2 = $this.
|
|
9047
|
+
var tmp2 = $this.f1e_1;
|
|
9037
9048
|
// Inline function 'kotlin.Long.div' call
|
|
9038
9049
|
var other = get_SEGMENT_SIZE_0();
|
|
9039
9050
|
var tmp3 = enqIdx.c3(toLong(other));
|
|
@@ -9052,7 +9063,7 @@
|
|
|
9052
9063
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
9053
9064
|
while (true) {
|
|
9054
9065
|
var cur = tmp2.kotlinx$atomicfu$value;
|
|
9055
|
-
if (cur.
|
|
9066
|
+
if (cur.uu_1.e1(tmp1.uu_1) >= 0) {
|
|
9056
9067
|
tmp$ret$1 = true;
|
|
9057
9068
|
break $l$block_1;
|
|
9058
9069
|
}
|
|
@@ -9086,18 +9097,18 @@
|
|
|
9086
9097
|
var other_0 = get_SEGMENT_SIZE_0();
|
|
9087
9098
|
var i = enqIdx.d3(toLong(other_0)).j1();
|
|
9088
9099
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
9089
|
-
if (segment.
|
|
9090
|
-
waiter.
|
|
9100
|
+
if (segment.v1e_1.atomicfu$get(i).atomicfu$compareAndSet(null, waiter)) {
|
|
9101
|
+
waiter.vv(segment, i);
|
|
9091
9102
|
return true;
|
|
9092
9103
|
}
|
|
9093
9104
|
var tmp14 = get_PERMIT();
|
|
9094
9105
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
9095
9106
|
var value = get_TAKEN();
|
|
9096
|
-
if (segment.
|
|
9107
|
+
if (segment.v1e_1.atomicfu$get(i).atomicfu$compareAndSet(tmp14, value)) {
|
|
9097
9108
|
if (isInterface(waiter, CancellableContinuation)) {
|
|
9098
9109
|
if (!isInterface(waiter, CancellableContinuation))
|
|
9099
9110
|
THROW_CCE();
|
|
9100
|
-
waiter.
|
|
9111
|
+
waiter.eu(Unit_instance, $this.i1e_1);
|
|
9101
9112
|
} else {
|
|
9102
9113
|
if (isInterface(waiter, SelectInstance)) {
|
|
9103
9114
|
waiter.nz(Unit_instance);
|
|
@@ -9113,13 +9124,13 @@
|
|
|
9113
9124
|
return false;
|
|
9114
9125
|
}
|
|
9115
9126
|
function tryResumeNextFromQueue($this) {
|
|
9116
|
-
var curHead = $this.
|
|
9117
|
-
var deqIdx = $this.
|
|
9127
|
+
var curHead = $this.d1e_1.kotlinx$atomicfu$value;
|
|
9128
|
+
var deqIdx = $this.e1e_1.atomicfu$getAndIncrement$long();
|
|
9118
9129
|
// Inline function 'kotlin.Long.div' call
|
|
9119
9130
|
var other = get_SEGMENT_SIZE_0();
|
|
9120
9131
|
var id = deqIdx.c3(toLong(other));
|
|
9121
9132
|
var createNewSegment = createSegment$ref_1();
|
|
9122
|
-
var tmp2 = $this.
|
|
9133
|
+
var tmp2 = $this.d1e_1;
|
|
9123
9134
|
var tmp$ret$3;
|
|
9124
9135
|
$l$block_2: {
|
|
9125
9136
|
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
@@ -9135,7 +9146,7 @@
|
|
|
9135
9146
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
9136
9147
|
while (true) {
|
|
9137
9148
|
var cur = tmp2.kotlinx$atomicfu$value;
|
|
9138
|
-
if (cur.
|
|
9149
|
+
if (cur.uu_1.e1(tmp1.uu_1) >= 0) {
|
|
9139
9150
|
tmp$ret$1 = true;
|
|
9140
9151
|
break $l$block_1;
|
|
9141
9152
|
}
|
|
@@ -9166,14 +9177,14 @@
|
|
|
9166
9177
|
}
|
|
9167
9178
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(tmp$ret$3);
|
|
9168
9179
|
segment.x12();
|
|
9169
|
-
if (segment.
|
|
9180
|
+
if (segment.uu_1.e1(id) > 0)
|
|
9170
9181
|
return false;
|
|
9171
9182
|
// Inline function 'kotlin.Long.rem' call
|
|
9172
9183
|
var other_0 = get_SEGMENT_SIZE_0();
|
|
9173
9184
|
var i = deqIdx.d3(toLong(other_0)).j1();
|
|
9174
9185
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.getAndSet' call
|
|
9175
9186
|
var value = get_PERMIT();
|
|
9176
|
-
var cellState = segment.
|
|
9187
|
+
var cellState = segment.v1e_1.atomicfu$get(i).atomicfu$getAndSet(value);
|
|
9177
9188
|
if (cellState === null) {
|
|
9178
9189
|
// Inline function 'kotlin.repeat' call
|
|
9179
9190
|
var times = get_MAX_SPIN_CYCLES();
|
|
@@ -9183,14 +9194,14 @@
|
|
|
9183
9194
|
var index = inductionVariable;
|
|
9184
9195
|
inductionVariable = inductionVariable + 1 | 0;
|
|
9185
9196
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.get' call
|
|
9186
|
-
if (segment.
|
|
9197
|
+
if (segment.v1e_1.atomicfu$get(i).kotlinx$atomicfu$value === get_TAKEN())
|
|
9187
9198
|
return true;
|
|
9188
9199
|
}
|
|
9189
9200
|
while (inductionVariable < times);
|
|
9190
9201
|
var tmp15 = get_PERMIT();
|
|
9191
9202
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
9192
9203
|
var value_0 = get_BROKEN();
|
|
9193
|
-
return !segment.
|
|
9204
|
+
return !segment.v1e_1.atomicfu$get(i).atomicfu$compareAndSet(tmp15, value_0);
|
|
9194
9205
|
} else if (cellState === get_CANCELLED())
|
|
9195
9206
|
return false;
|
|
9196
9207
|
else
|
|
@@ -9201,10 +9212,10 @@
|
|
|
9201
9212
|
if (isInterface(_this__u8e3s4, CancellableContinuation)) {
|
|
9202
9213
|
if (!isInterface(_this__u8e3s4, CancellableContinuation))
|
|
9203
9214
|
THROW_CCE();
|
|
9204
|
-
var token = _this__u8e3s4.
|
|
9215
|
+
var token = _this__u8e3s4.bu(Unit_instance, null, $this.i1e_1);
|
|
9205
9216
|
var tmp_0;
|
|
9206
9217
|
if (!(token == null)) {
|
|
9207
|
-
_this__u8e3s4.
|
|
9218
|
+
_this__u8e3s4.vr(token);
|
|
9208
9219
|
tmp_0 = true;
|
|
9209
9220
|
} else {
|
|
9210
9221
|
tmp_0 = false;
|
|
@@ -9222,7 +9233,7 @@
|
|
|
9222
9233
|
}
|
|
9223
9234
|
function SemaphoreAndMutexImpl$onCancellationRelease$lambda(this$0) {
|
|
9224
9235
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
9225
|
-
this$0.
|
|
9236
|
+
this$0.q1e();
|
|
9226
9237
|
return Unit_instance;
|
|
9227
9238
|
};
|
|
9228
9239
|
}
|
|
@@ -9241,41 +9252,41 @@
|
|
|
9241
9252
|
return l;
|
|
9242
9253
|
}
|
|
9243
9254
|
function SemaphoreAndMutexImpl(permits, acquiredPermits) {
|
|
9244
|
-
this.
|
|
9245
|
-
this.
|
|
9246
|
-
this.
|
|
9255
|
+
this.c1e_1 = permits;
|
|
9256
|
+
this.e1e_1 = atomic$long$1(new Long(0, 0));
|
|
9257
|
+
this.g1e_1 = atomic$long$1(new Long(0, 0));
|
|
9247
9258
|
// Inline function 'kotlin.require' call
|
|
9248
|
-
if (!(this.
|
|
9249
|
-
var message = 'Semaphore should have at least 1 permit, but had ' + this.
|
|
9259
|
+
if (!(this.c1e_1 > 0)) {
|
|
9260
|
+
var message = 'Semaphore should have at least 1 permit, but had ' + this.c1e_1;
|
|
9250
9261
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9251
9262
|
}
|
|
9252
9263
|
// Inline function 'kotlin.require' call
|
|
9253
|
-
if (!(0 <= acquiredPermits ? acquiredPermits <= this.
|
|
9254
|
-
var message_0 = 'The number of acquired permits should be in 0..' + this.
|
|
9264
|
+
if (!(0 <= acquiredPermits ? acquiredPermits <= this.c1e_1 : false)) {
|
|
9265
|
+
var message_0 = 'The number of acquired permits should be in 0..' + this.c1e_1;
|
|
9255
9266
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
9256
9267
|
}
|
|
9257
9268
|
var s = new SemaphoreSegment(new Long(0, 0), null, 2);
|
|
9258
|
-
this.
|
|
9259
|
-
this.
|
|
9260
|
-
this.
|
|
9269
|
+
this.d1e_1 = atomic$ref$1(s);
|
|
9270
|
+
this.f1e_1 = atomic$ref$1(s);
|
|
9271
|
+
this.h1e_1 = atomic$int$1(this.c1e_1 - acquiredPermits | 0);
|
|
9261
9272
|
var tmp = this;
|
|
9262
|
-
tmp.
|
|
9273
|
+
tmp.i1e_1 = SemaphoreAndMutexImpl$onCancellationRelease$lambda(this);
|
|
9263
9274
|
}
|
|
9264
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
9275
|
+
protoOf(SemaphoreAndMutexImpl).n1e = function () {
|
|
9265
9276
|
// Inline function 'kotlin.math.max' call
|
|
9266
|
-
var a = this.
|
|
9277
|
+
var a = this.h1e_1.kotlinx$atomicfu$value;
|
|
9267
9278
|
return Math.max(a, 0);
|
|
9268
9279
|
};
|
|
9269
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
9280
|
+
protoOf(SemaphoreAndMutexImpl).j1e = function () {
|
|
9270
9281
|
$l$loop: while (true) {
|
|
9271
|
-
var p = this.
|
|
9272
|
-
if (p > this.
|
|
9282
|
+
var p = this.h1e_1.kotlinx$atomicfu$value;
|
|
9283
|
+
if (p > this.c1e_1) {
|
|
9273
9284
|
coerceAvailablePermitsAtMaximum(this);
|
|
9274
9285
|
continue $l$loop;
|
|
9275
9286
|
}
|
|
9276
9287
|
if (p <= 0)
|
|
9277
9288
|
return false;
|
|
9278
|
-
if (this.
|
|
9289
|
+
if (this.h1e_1.atomicfu$compareAndSet(p, p - 1 | 0))
|
|
9279
9290
|
return true;
|
|
9280
9291
|
}
|
|
9281
9292
|
};
|
|
@@ -9286,7 +9297,7 @@
|
|
|
9286
9297
|
while (true) {
|
|
9287
9298
|
var p = decPermits(this);
|
|
9288
9299
|
if (p > 0) {
|
|
9289
|
-
waiter.
|
|
9300
|
+
waiter.eu(Unit_instance, this.i1e_1);
|
|
9290
9301
|
tmp$ret$1 = Unit_instance;
|
|
9291
9302
|
break $l$block_0;
|
|
9292
9303
|
}
|
|
@@ -9299,13 +9310,13 @@
|
|
|
9299
9310
|
}
|
|
9300
9311
|
return tmp$ret$1;
|
|
9301
9312
|
};
|
|
9302
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
9313
|
+
protoOf(SemaphoreAndMutexImpl).q1e = function () {
|
|
9303
9314
|
while (true) {
|
|
9304
|
-
var p = this.
|
|
9305
|
-
if (p >= this.
|
|
9315
|
+
var p = this.h1e_1.atomicfu$getAndIncrement();
|
|
9316
|
+
if (p >= this.c1e_1) {
|
|
9306
9317
|
coerceAvailablePermitsAtMaximum(this);
|
|
9307
9318
|
// Inline function 'kotlin.error' call
|
|
9308
|
-
var message = 'The number of released permits cannot be greater than ' + this.
|
|
9319
|
+
var message = 'The number of released permits cannot be greater than ' + this.c1e_1;
|
|
9309
9320
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
9310
9321
|
}
|
|
9311
9322
|
if (p >= 0)
|
|
@@ -9316,19 +9327,19 @@
|
|
|
9316
9327
|
};
|
|
9317
9328
|
function SemaphoreSegment(id, prev, pointers) {
|
|
9318
9329
|
Segment.call(this, id, prev, pointers);
|
|
9319
|
-
this.
|
|
9330
|
+
this.v1e_1 = atomicfu$AtomicRefArray$ofNulls(get_SEGMENT_SIZE_0());
|
|
9320
9331
|
}
|
|
9321
9332
|
protoOf(SemaphoreSegment).q11 = function () {
|
|
9322
9333
|
return get_SEGMENT_SIZE_0();
|
|
9323
9334
|
};
|
|
9324
|
-
protoOf(SemaphoreSegment).
|
|
9335
|
+
protoOf(SemaphoreSegment).wu = function (index, cause, context) {
|
|
9325
9336
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.set' call
|
|
9326
9337
|
var value = get_CANCELLED();
|
|
9327
|
-
this.
|
|
9338
|
+
this.v1e_1.atomicfu$get(index).kotlinx$atomicfu$value = value;
|
|
9328
9339
|
this.n12();
|
|
9329
9340
|
};
|
|
9330
9341
|
protoOf(SemaphoreSegment).toString = function () {
|
|
9331
|
-
return 'SemaphoreSegment[id=' + this.
|
|
9342
|
+
return 'SemaphoreSegment[id=' + this.uu_1.toString() + ', hashCode=' + hashCode(this) + ']';
|
|
9332
9343
|
};
|
|
9333
9344
|
function createSegment_0(id, prev) {
|
|
9334
9345
|
_init_properties_Semaphore_kt__t514r6();
|
|
@@ -9404,8 +9415,8 @@
|
|
|
9404
9415
|
NodeDispatcher_instance = this;
|
|
9405
9416
|
SetTimeoutBasedDispatcher.call(this);
|
|
9406
9417
|
}
|
|
9407
|
-
protoOf(NodeDispatcher).
|
|
9408
|
-
process.nextTick(this.
|
|
9418
|
+
protoOf(NodeDispatcher).y1e = function () {
|
|
9419
|
+
process.nextTick(this.f1f_1.d1f_1);
|
|
9409
9420
|
};
|
|
9410
9421
|
var NodeDispatcher_instance;
|
|
9411
9422
|
function NodeDispatcher_getInstance() {
|
|
@@ -9415,24 +9426,24 @@
|
|
|
9415
9426
|
}
|
|
9416
9427
|
function ScheduledMessageQueue$processQueue$lambda(this$0) {
|
|
9417
9428
|
return function () {
|
|
9418
|
-
this$0.
|
|
9429
|
+
this$0.j1f();
|
|
9419
9430
|
return Unit_instance;
|
|
9420
9431
|
};
|
|
9421
9432
|
}
|
|
9422
9433
|
function ScheduledMessageQueue(dispatcher) {
|
|
9423
9434
|
MessageQueue.call(this);
|
|
9424
|
-
this.
|
|
9435
|
+
this.c1f_1 = dispatcher;
|
|
9425
9436
|
var tmp = this;
|
|
9426
|
-
tmp.
|
|
9437
|
+
tmp.d1f_1 = ScheduledMessageQueue$processQueue$lambda(this);
|
|
9427
9438
|
}
|
|
9428
|
-
protoOf(ScheduledMessageQueue).j1f = function () {
|
|
9429
|
-
this.b1f_1.x1e();
|
|
9430
|
-
};
|
|
9431
9439
|
protoOf(ScheduledMessageQueue).k1f = function () {
|
|
9432
|
-
|
|
9440
|
+
this.c1f_1.y1e();
|
|
9433
9441
|
};
|
|
9434
|
-
protoOf(ScheduledMessageQueue).l1f = function (
|
|
9435
|
-
setTimeout(this.
|
|
9442
|
+
protoOf(ScheduledMessageQueue).l1f = function () {
|
|
9443
|
+
setTimeout(this.d1f_1, 0);
|
|
9444
|
+
};
|
|
9445
|
+
protoOf(ScheduledMessageQueue).m1f = function (timeout) {
|
|
9446
|
+
setTimeout(this.d1f_1, timeout);
|
|
9436
9447
|
};
|
|
9437
9448
|
function w3cSetTimeout(handler, timeout) {
|
|
9438
9449
|
return setTimeout(handler, timeout);
|
|
@@ -9440,9 +9451,9 @@
|
|
|
9440
9451
|
function WindowMessageQueue$lambda(this$0) {
|
|
9441
9452
|
return function (event) {
|
|
9442
9453
|
var tmp;
|
|
9443
|
-
if (event.source == this$0.
|
|
9454
|
+
if (event.source == this$0.z1f_1 && event.data == this$0.a1g_1) {
|
|
9444
9455
|
event.stopPropagation();
|
|
9445
|
-
this$0.
|
|
9456
|
+
this$0.j1f();
|
|
9446
9457
|
tmp = Unit_instance;
|
|
9447
9458
|
}
|
|
9448
9459
|
return Unit_instance;
|
|
@@ -9450,22 +9461,22 @@
|
|
|
9450
9461
|
}
|
|
9451
9462
|
function WindowMessageQueue$schedule$lambda(this$0) {
|
|
9452
9463
|
return function (it) {
|
|
9453
|
-
this$0.
|
|
9464
|
+
this$0.j1f();
|
|
9454
9465
|
return Unit_instance;
|
|
9455
9466
|
};
|
|
9456
9467
|
}
|
|
9457
9468
|
function WindowMessageQueue(window_0) {
|
|
9458
9469
|
MessageQueue.call(this);
|
|
9459
|
-
this.
|
|
9460
|
-
this.
|
|
9461
|
-
this.
|
|
9470
|
+
this.z1f_1 = window_0;
|
|
9471
|
+
this.a1g_1 = 'dispatchCoroutine';
|
|
9472
|
+
this.z1f_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
|
|
9462
9473
|
}
|
|
9463
|
-
protoOf(WindowMessageQueue).
|
|
9474
|
+
protoOf(WindowMessageQueue).k1f = function () {
|
|
9464
9475
|
var tmp = Promise.resolve(Unit_instance);
|
|
9465
9476
|
tmp.then(WindowMessageQueue$schedule$lambda(this));
|
|
9466
9477
|
};
|
|
9467
|
-
protoOf(WindowMessageQueue).
|
|
9468
|
-
this.
|
|
9478
|
+
protoOf(WindowMessageQueue).l1f = function () {
|
|
9479
|
+
this.z1f_1.postMessage(this.a1g_1, '*');
|
|
9469
9480
|
};
|
|
9470
9481
|
function w3cSetTimeout_0(window_0, handler, timeout) {
|
|
9471
9482
|
return setTimeout_0(window_0, handler, timeout);
|
|
@@ -9481,10 +9492,10 @@
|
|
|
9481
9492
|
}
|
|
9482
9493
|
function await_0(_this__u8e3s4, $completion) {
|
|
9483
9494
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
9484
|
-
cancellable.
|
|
9495
|
+
cancellable.ps();
|
|
9485
9496
|
var tmp = await$lambda(cancellable);
|
|
9486
9497
|
_this__u8e3s4.then(tmp, await$lambda_0(cancellable));
|
|
9487
|
-
return cancellable.
|
|
9498
|
+
return cancellable.qs();
|
|
9488
9499
|
}
|
|
9489
9500
|
function promise(_this__u8e3s4, context, start, block) {
|
|
9490
9501
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
@@ -9521,12 +9532,12 @@
|
|
|
9521
9532
|
}
|
|
9522
9533
|
function asPromise$lambda$lambda($this_asPromise, $reject, $resolve) {
|
|
9523
9534
|
return function (it) {
|
|
9524
|
-
var e = $this_asPromise.
|
|
9535
|
+
var e = $this_asPromise.mq();
|
|
9525
9536
|
var tmp;
|
|
9526
9537
|
if (!(e == null)) {
|
|
9527
9538
|
tmp = $reject(e);
|
|
9528
9539
|
} else {
|
|
9529
|
-
tmp = $resolve($this_asPromise.
|
|
9540
|
+
tmp = $resolve($this_asPromise.tr());
|
|
9530
9541
|
}
|
|
9531
9542
|
return Unit_instance;
|
|
9532
9543
|
};
|
|
@@ -9571,8 +9582,8 @@
|
|
|
9571
9582
|
SetTimeoutDispatcher_instance = this;
|
|
9572
9583
|
SetTimeoutBasedDispatcher.call(this);
|
|
9573
9584
|
}
|
|
9574
|
-
protoOf(SetTimeoutDispatcher).
|
|
9575
|
-
this.
|
|
9585
|
+
protoOf(SetTimeoutDispatcher).y1e = function () {
|
|
9586
|
+
this.f1f_1.m1f(0);
|
|
9576
9587
|
};
|
|
9577
9588
|
var SetTimeoutDispatcher_instance;
|
|
9578
9589
|
function SetTimeoutDispatcher_getInstance() {
|
|
@@ -9583,37 +9594,37 @@
|
|
|
9583
9594
|
function SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
9584
9595
|
return function () {
|
|
9585
9596
|
// Inline function 'kotlin.with' call
|
|
9586
|
-
$continuation.
|
|
9597
|
+
$continuation.du(this$0, Unit_instance);
|
|
9587
9598
|
return Unit_instance;
|
|
9588
9599
|
};
|
|
9589
9600
|
}
|
|
9590
9601
|
function SetTimeoutBasedDispatcher() {
|
|
9591
9602
|
CoroutineDispatcher.call(this);
|
|
9592
|
-
this.
|
|
9603
|
+
this.f1f_1 = new ScheduledMessageQueue(this);
|
|
9593
9604
|
}
|
|
9594
9605
|
protoOf(SetTimeoutBasedDispatcher).cx = function (context, block) {
|
|
9595
|
-
this.
|
|
9606
|
+
this.f1f_1.n1f(block);
|
|
9596
9607
|
};
|
|
9597
9608
|
protoOf(SetTimeoutBasedDispatcher).jx = function (timeMillis, continuation) {
|
|
9598
9609
|
var handle = w3cSetTimeout(SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
9599
9610
|
invokeOnCancellation(continuation, new ClearTimeout(handle));
|
|
9600
9611
|
};
|
|
9601
9612
|
function MessageQueue() {
|
|
9602
|
-
this.
|
|
9603
|
-
this.
|
|
9604
|
-
this.
|
|
9613
|
+
this.g1f_1 = ArrayDeque_init_$Create$();
|
|
9614
|
+
this.h1f_1 = 16;
|
|
9615
|
+
this.i1f_1 = false;
|
|
9605
9616
|
}
|
|
9606
|
-
protoOf(MessageQueue).
|
|
9607
|
-
this.
|
|
9608
|
-
if (!this.
|
|
9609
|
-
this.
|
|
9610
|
-
this.
|
|
9617
|
+
protoOf(MessageQueue).n1f = function (element) {
|
|
9618
|
+
this.o1f(element);
|
|
9619
|
+
if (!this.i1f_1) {
|
|
9620
|
+
this.i1f_1 = true;
|
|
9621
|
+
this.k1f();
|
|
9611
9622
|
}
|
|
9612
9623
|
};
|
|
9613
|
-
protoOf(MessageQueue).
|
|
9624
|
+
protoOf(MessageQueue).j1f = function () {
|
|
9614
9625
|
try {
|
|
9615
9626
|
// Inline function 'kotlin.repeat' call
|
|
9616
|
-
var times = this.
|
|
9627
|
+
var times = this.h1f_1;
|
|
9617
9628
|
var inductionVariable = 0;
|
|
9618
9629
|
if (inductionVariable < times)
|
|
9619
9630
|
do {
|
|
@@ -9627,141 +9638,141 @@
|
|
|
9627
9638
|
tmp = tmp0_elvis_lhs;
|
|
9628
9639
|
}
|
|
9629
9640
|
var element = tmp;
|
|
9630
|
-
element.
|
|
9641
|
+
element.cw();
|
|
9631
9642
|
}
|
|
9632
9643
|
while (inductionVariable < times);
|
|
9633
9644
|
}finally {
|
|
9634
9645
|
if (this.h()) {
|
|
9635
|
-
this.
|
|
9646
|
+
this.i1f_1 = false;
|
|
9636
9647
|
} else {
|
|
9637
|
-
this.
|
|
9648
|
+
this.l1f();
|
|
9638
9649
|
}
|
|
9639
9650
|
}
|
|
9640
9651
|
};
|
|
9641
|
-
protoOf(MessageQueue).
|
|
9642
|
-
return this.
|
|
9652
|
+
protoOf(MessageQueue).o1f = function (element) {
|
|
9653
|
+
return this.g1f_1.k(element);
|
|
9643
9654
|
};
|
|
9644
9655
|
protoOf(MessageQueue).k = function (element) {
|
|
9645
|
-
return this.
|
|
9656
|
+
return this.o1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9646
9657
|
};
|
|
9647
|
-
protoOf(MessageQueue).
|
|
9648
|
-
this.
|
|
9658
|
+
protoOf(MessageQueue).p1f = function (index, element) {
|
|
9659
|
+
this.g1f_1.g2(index, element);
|
|
9649
9660
|
};
|
|
9650
9661
|
protoOf(MessageQueue).g2 = function (index, element) {
|
|
9651
|
-
return this.
|
|
9662
|
+
return this.p1f(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9652
9663
|
};
|
|
9653
|
-
protoOf(MessageQueue).
|
|
9654
|
-
return this.
|
|
9664
|
+
protoOf(MessageQueue).q1f = function (elements) {
|
|
9665
|
+
return this.g1f_1.t(elements);
|
|
9655
9666
|
};
|
|
9656
9667
|
protoOf(MessageQueue).t = function (elements) {
|
|
9657
|
-
return this.
|
|
9668
|
+
return this.q1f(elements);
|
|
9658
9669
|
};
|
|
9659
9670
|
protoOf(MessageQueue).e2 = function () {
|
|
9660
|
-
this.
|
|
9671
|
+
this.g1f_1.e2();
|
|
9661
9672
|
};
|
|
9662
|
-
protoOf(MessageQueue).
|
|
9663
|
-
return this.
|
|
9673
|
+
protoOf(MessageQueue).r1f = function (index, element) {
|
|
9674
|
+
return this.g1f_1.f2(index, element);
|
|
9664
9675
|
};
|
|
9665
9676
|
protoOf(MessageQueue).f2 = function (index, element) {
|
|
9666
|
-
return this.
|
|
9677
|
+
return this.r1f(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9667
9678
|
};
|
|
9668
9679
|
protoOf(MessageQueue).h2 = function (index) {
|
|
9669
|
-
return this.
|
|
9680
|
+
return this.g1f_1.h2(index);
|
|
9670
9681
|
};
|
|
9671
9682
|
protoOf(MessageQueue).b2 = function () {
|
|
9672
|
-
return this.
|
|
9683
|
+
return this.g1f_1.b2();
|
|
9673
9684
|
};
|
|
9674
9685
|
protoOf(MessageQueue).v = function (index) {
|
|
9675
|
-
return this.
|
|
9686
|
+
return this.g1f_1.v(index);
|
|
9676
9687
|
};
|
|
9677
9688
|
protoOf(MessageQueue).c2 = function (fromIndex, toIndex) {
|
|
9678
|
-
return this.
|
|
9689
|
+
return this.g1f_1.c2(fromIndex, toIndex);
|
|
9679
9690
|
};
|
|
9680
9691
|
protoOf(MessageQueue).h = function () {
|
|
9681
|
-
return this.
|
|
9692
|
+
return this.g1f_1.h();
|
|
9682
9693
|
};
|
|
9683
|
-
protoOf(MessageQueue).
|
|
9684
|
-
return this.
|
|
9694
|
+
protoOf(MessageQueue).s1f = function (element) {
|
|
9695
|
+
return this.g1f_1.x1(element);
|
|
9685
9696
|
};
|
|
9686
9697
|
protoOf(MessageQueue).x1 = function (element) {
|
|
9687
9698
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
9688
9699
|
return false;
|
|
9689
|
-
return this.
|
|
9700
|
+
return this.s1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9690
9701
|
};
|
|
9691
9702
|
protoOf(MessageQueue).p = function () {
|
|
9692
|
-
return this.
|
|
9703
|
+
return this.g1f_1.p();
|
|
9693
9704
|
};
|
|
9694
|
-
protoOf(MessageQueue).
|
|
9695
|
-
return this.
|
|
9705
|
+
protoOf(MessageQueue).t1f = function (elements) {
|
|
9706
|
+
return this.g1f_1.y1(elements);
|
|
9696
9707
|
};
|
|
9697
9708
|
protoOf(MessageQueue).y1 = function (elements) {
|
|
9698
|
-
return this.
|
|
9709
|
+
return this.t1f(elements);
|
|
9699
9710
|
};
|
|
9700
9711
|
protoOf(MessageQueue).u = function (index) {
|
|
9701
|
-
return this.
|
|
9712
|
+
return this.g1f_1.u(index);
|
|
9702
9713
|
};
|
|
9703
|
-
protoOf(MessageQueue).
|
|
9704
|
-
return this.
|
|
9714
|
+
protoOf(MessageQueue).u1f = function (element) {
|
|
9715
|
+
return this.g1f_1.z1(element);
|
|
9705
9716
|
};
|
|
9706
9717
|
protoOf(MessageQueue).z1 = function (element) {
|
|
9707
9718
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
9708
9719
|
return -1;
|
|
9709
|
-
return this.
|
|
9720
|
+
return this.u1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9710
9721
|
};
|
|
9711
|
-
protoOf(MessageQueue).
|
|
9712
|
-
return this.
|
|
9722
|
+
protoOf(MessageQueue).v1f = function (element) {
|
|
9723
|
+
return this.g1f_1.a2(element);
|
|
9713
9724
|
};
|
|
9714
9725
|
protoOf(MessageQueue).a2 = function (element) {
|
|
9715
9726
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
9716
9727
|
return -1;
|
|
9717
|
-
return this.
|
|
9728
|
+
return this.v1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9718
9729
|
};
|
|
9719
9730
|
protoOf(MessageQueue).asJsReadonlyArrayView = function () {
|
|
9720
|
-
return this.
|
|
9731
|
+
return this.g1f_1.asJsReadonlyArrayView();
|
|
9721
9732
|
};
|
|
9722
9733
|
protoOf(MessageQueue).s = function () {
|
|
9723
|
-
return this.
|
|
9734
|
+
return this.g1f_1.pf_1;
|
|
9724
9735
|
};
|
|
9725
9736
|
function WindowClearTimeout($outer, handle) {
|
|
9726
|
-
this.
|
|
9737
|
+
this.i1g_1 = $outer;
|
|
9727
9738
|
ClearTimeout.call(this, handle);
|
|
9728
9739
|
}
|
|
9729
|
-
protoOf(WindowClearTimeout).
|
|
9730
|
-
w3cClearTimeout(this.
|
|
9740
|
+
protoOf(WindowClearTimeout).mr = function () {
|
|
9741
|
+
w3cClearTimeout(this.i1g_1.k1g_1, this.m1g_1);
|
|
9731
9742
|
};
|
|
9732
9743
|
function WindowDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
9733
9744
|
return function () {
|
|
9734
9745
|
// Inline function 'kotlin.with' call
|
|
9735
|
-
$continuation.
|
|
9746
|
+
$continuation.du(this$0, Unit_instance);
|
|
9736
9747
|
return Unit_instance;
|
|
9737
9748
|
};
|
|
9738
9749
|
}
|
|
9739
9750
|
function WindowDispatcher(window_0) {
|
|
9740
9751
|
CoroutineDispatcher.call(this);
|
|
9741
|
-
this.
|
|
9742
|
-
this.
|
|
9752
|
+
this.k1g_1 = window_0;
|
|
9753
|
+
this.l1g_1 = new WindowMessageQueue(this.k1g_1);
|
|
9743
9754
|
}
|
|
9744
9755
|
protoOf(WindowDispatcher).cx = function (context, block) {
|
|
9745
|
-
return this.
|
|
9756
|
+
return this.l1g_1.n1f(block);
|
|
9746
9757
|
};
|
|
9747
9758
|
protoOf(WindowDispatcher).jx = function (timeMillis, continuation) {
|
|
9748
|
-
var handle = w3cSetTimeout_0(this.
|
|
9759
|
+
var handle = w3cSetTimeout_0(this.k1g_1, WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
9749
9760
|
invokeOnCancellation(continuation, new WindowClearTimeout(this, handle));
|
|
9750
9761
|
};
|
|
9751
9762
|
function delayToInt(timeMillis) {
|
|
9752
9763
|
return coerceIn(timeMillis, new Long(0, 0), new Long(2147483647, 0)).j1();
|
|
9753
9764
|
}
|
|
9754
9765
|
function ClearTimeout(handle) {
|
|
9755
|
-
this.
|
|
9766
|
+
this.m1g_1 = handle;
|
|
9756
9767
|
}
|
|
9757
|
-
protoOf(ClearTimeout).
|
|
9758
|
-
w3cClearTimeout_0(this.
|
|
9768
|
+
protoOf(ClearTimeout).mr = function () {
|
|
9769
|
+
w3cClearTimeout_0(this.m1g_1);
|
|
9759
9770
|
};
|
|
9760
|
-
protoOf(ClearTimeout).
|
|
9761
|
-
this.
|
|
9771
|
+
protoOf(ClearTimeout).nr = function (cause) {
|
|
9772
|
+
this.mr();
|
|
9762
9773
|
};
|
|
9763
9774
|
protoOf(ClearTimeout).toString = function () {
|
|
9764
|
-
return 'ClearTimeout[' + this.
|
|
9775
|
+
return 'ClearTimeout[' + this.m1g_1 + ']';
|
|
9765
9776
|
};
|
|
9766
9777
|
function toDebugString(_this__u8e3s4) {
|
|
9767
9778
|
return toString(_this__u8e3s4);
|
|
@@ -9781,7 +9792,7 @@
|
|
|
9781
9792
|
ScopeCoroutine.call(this, context, uCont);
|
|
9782
9793
|
}
|
|
9783
9794
|
protoOf(UndispatchedCoroutine).zo = function (state) {
|
|
9784
|
-
return this.
|
|
9795
|
+
return this.ht_1.r9(recoverResult(state, this.ht_1));
|
|
9785
9796
|
};
|
|
9786
9797
|
function get_coroutineName(_this__u8e3s4) {
|
|
9787
9798
|
return null;
|
|
@@ -9805,22 +9816,22 @@
|
|
|
9805
9816
|
}
|
|
9806
9817
|
function JsMainDispatcher(delegate, invokeImmediately) {
|
|
9807
9818
|
MainCoroutineDispatcher.call(this);
|
|
9808
|
-
this.
|
|
9809
|
-
this.
|
|
9810
|
-
this.
|
|
9819
|
+
this.s1g_1 = delegate;
|
|
9820
|
+
this.t1g_1 = invokeImmediately;
|
|
9821
|
+
this.u1g_1 = this.t1g_1 ? this : new JsMainDispatcher(this.s1g_1, true);
|
|
9811
9822
|
}
|
|
9812
9823
|
protoOf(JsMainDispatcher).w10 = function () {
|
|
9813
|
-
return this.
|
|
9824
|
+
return this.u1g_1;
|
|
9814
9825
|
};
|
|
9815
9826
|
protoOf(JsMainDispatcher).bx = function (context) {
|
|
9816
|
-
return !this.
|
|
9827
|
+
return !this.t1g_1;
|
|
9817
9828
|
};
|
|
9818
9829
|
protoOf(JsMainDispatcher).cx = function (context, block) {
|
|
9819
|
-
return this.
|
|
9830
|
+
return this.s1g_1.cx(context, block);
|
|
9820
9831
|
};
|
|
9821
9832
|
protoOf(JsMainDispatcher).toString = function () {
|
|
9822
9833
|
var tmp0_elvis_lhs = this.x10();
|
|
9823
|
-
return tmp0_elvis_lhs == null ? this.
|
|
9834
|
+
return tmp0_elvis_lhs == null ? this.s1g_1.toString() : tmp0_elvis_lhs;
|
|
9824
9835
|
};
|
|
9825
9836
|
function get_RECOVER_STACK_TRACES() {
|
|
9826
9837
|
return RECOVER_STACK_TRACES;
|
|
@@ -9829,10 +9840,10 @@
|
|
|
9829
9840
|
function JobCancellationException(message, cause, job) {
|
|
9830
9841
|
CancellationException_init_$Init$(message, cause, this);
|
|
9831
9842
|
captureStack(this, JobCancellationException);
|
|
9832
|
-
this.
|
|
9843
|
+
this.v1g_1 = job;
|
|
9833
9844
|
}
|
|
9834
9845
|
protoOf(JobCancellationException).toString = function () {
|
|
9835
|
-
return protoOf(CancellationException).toString.call(this) + '; job=' + toString(this.
|
|
9846
|
+
return protoOf(CancellationException).toString.call(this) + '; job=' + toString(this.v1g_1);
|
|
9836
9847
|
};
|
|
9837
9848
|
protoOf(JobCancellationException).equals = function (other) {
|
|
9838
9849
|
var tmp;
|
|
@@ -9848,7 +9859,7 @@
|
|
|
9848
9859
|
tmp_2 = false;
|
|
9849
9860
|
}
|
|
9850
9861
|
if (tmp_2) {
|
|
9851
|
-
tmp_1 = equals(other.
|
|
9862
|
+
tmp_1 = equals(other.v1g_1, this.v1g_1);
|
|
9852
9863
|
} else {
|
|
9853
9864
|
tmp_1 = false;
|
|
9854
9865
|
}
|
|
@@ -9862,7 +9873,7 @@
|
|
|
9862
9873
|
return tmp;
|
|
9863
9874
|
};
|
|
9864
9875
|
protoOf(JobCancellationException).hashCode = function () {
|
|
9865
|
-
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.
|
|
9876
|
+
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.v1g_1) | 0, 31);
|
|
9866
9877
|
var tmp0_safe_receiver = this.cause;
|
|
9867
9878
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
9868
9879
|
return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
@@ -9907,46 +9918,46 @@
|
|
|
9907
9918
|
LockFreeLinkedListNode.call(this);
|
|
9908
9919
|
}
|
|
9909
9920
|
function LockFreeLinkedListNode() {
|
|
9910
|
-
this.bs_1 = this;
|
|
9911
9921
|
this.cs_1 = this;
|
|
9912
|
-
this.ds_1 =
|
|
9922
|
+
this.ds_1 = this;
|
|
9923
|
+
this.es_1 = false;
|
|
9913
9924
|
}
|
|
9914
|
-
protoOf(LockFreeLinkedListNode).
|
|
9915
|
-
var prev = this.
|
|
9925
|
+
protoOf(LockFreeLinkedListNode).fs = function (node, permissionsBitmask) {
|
|
9926
|
+
var prev = this.ds_1;
|
|
9916
9927
|
var tmp;
|
|
9917
9928
|
if (prev instanceof ListClosed) {
|
|
9918
|
-
tmp = ((prev.
|
|
9929
|
+
tmp = ((prev.z1g_1 & permissionsBitmask) === 0 && prev.fs(node, permissionsBitmask));
|
|
9919
9930
|
} else {
|
|
9920
|
-
node.
|
|
9921
|
-
node.
|
|
9922
|
-
prev.
|
|
9923
|
-
this.
|
|
9931
|
+
node.cs_1 = this;
|
|
9932
|
+
node.ds_1 = prev;
|
|
9933
|
+
prev.cs_1 = node;
|
|
9934
|
+
this.ds_1 = node;
|
|
9924
9935
|
tmp = true;
|
|
9925
9936
|
}
|
|
9926
9937
|
return tmp;
|
|
9927
9938
|
};
|
|
9928
9939
|
protoOf(LockFreeLinkedListNode).fy = function (forbiddenElementsBit) {
|
|
9929
|
-
this.
|
|
9940
|
+
this.fs(new ListClosed(forbiddenElementsBit), forbiddenElementsBit);
|
|
9930
9941
|
};
|
|
9931
|
-
protoOf(LockFreeLinkedListNode).
|
|
9932
|
-
if (this.
|
|
9942
|
+
protoOf(LockFreeLinkedListNode).gs = function () {
|
|
9943
|
+
if (this.es_1)
|
|
9933
9944
|
return false;
|
|
9934
|
-
var prev = this.
|
|
9935
|
-
var next = this.
|
|
9936
|
-
prev.
|
|
9937
|
-
next.
|
|
9938
|
-
this.
|
|
9945
|
+
var prev = this.ds_1;
|
|
9946
|
+
var next = this.cs_1;
|
|
9947
|
+
prev.cs_1 = next;
|
|
9948
|
+
next.ds_1 = prev;
|
|
9949
|
+
this.es_1 = true;
|
|
9939
9950
|
return true;
|
|
9940
9951
|
};
|
|
9941
|
-
protoOf(LockFreeLinkedListNode).
|
|
9942
|
-
if (!(this.
|
|
9952
|
+
protoOf(LockFreeLinkedListNode).hs = function (node) {
|
|
9953
|
+
if (!(this.cs_1 === this))
|
|
9943
9954
|
return false;
|
|
9944
|
-
this.
|
|
9955
|
+
this.fs(node, -2147483648);
|
|
9945
9956
|
return true;
|
|
9946
9957
|
};
|
|
9947
9958
|
function ListClosed(forbiddenElementsBitmask) {
|
|
9948
9959
|
LockFreeLinkedListNode.call(this);
|
|
9949
|
-
this.
|
|
9960
|
+
this.z1g_1 = forbiddenElementsBitmask;
|
|
9950
9961
|
}
|
|
9951
9962
|
function unwrap(exception) {
|
|
9952
9963
|
return exception;
|