@doordeck/doordeck-headless-sdk 0.169.0 → 0.170.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/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +22 -22
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.js +10765 -10652
- package/kotlin/kotlin-kotlin-stdlib.js +382 -376
- package/kotlin/kotlinx-atomicfu.js +9 -9
- package/kotlin/kotlinx-coroutines-core.js +1022 -1010
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +17 -17
- package/kotlin/kotlinx-io-kotlinx-io-core.js +28 -28
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1899 -1899
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1457 -1457
- package/kotlin/ktor-ktor-client-auth.js +261 -261
- package/kotlin/ktor-ktor-client-content-negotiation.js +158 -158
- package/kotlin/ktor-ktor-client-core.js +1822 -1822
- package/kotlin/ktor-ktor-client-logging.js +654 -654
- package/kotlin/ktor-ktor-events.js +13 -13
- package/kotlin/ktor-ktor-http-cio.js +374 -374
- package/kotlin/ktor-ktor-http.js +779 -779
- package/kotlin/ktor-ktor-io.js +632 -632
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +155 -155
- package/kotlin/ktor-ktor-serialization.js +74 -74
- package/kotlin/ktor-ktor-utils.js +739 -739
- package/kotlin/ktor-ktor-websockets.js +52 -52
- package/package.json +1 -1
|
@@ -2,115 +2,115 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
8
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.a5;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.yf;
|
|
8
|
+
var Continuation = kotlin_kotlin.$_$.c9;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
10
10
|
var VOID = kotlin_kotlin.$_$.b;
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
12
12
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
13
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
13
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.bh;
|
|
14
14
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
15
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
15
|
+
var Companion_instance = kotlin_kotlin.$_$.v4;
|
|
16
16
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
17
17
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
18
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
19
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
20
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
21
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
22
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
24
|
-
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.
|
|
25
|
-
var Key_instance = kotlin_kotlin.$_$.
|
|
26
|
-
var equals = kotlin_kotlin.$_$.
|
|
27
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
28
|
-
var createCoroutineUnintercepted = kotlin_kotlin.$_$.
|
|
18
|
+
var intercepted = kotlin_kotlin.$_$.v8;
|
|
19
|
+
var CoroutineImpl = kotlin_kotlin.$_$.i9;
|
|
20
|
+
var copyToArray = kotlin_kotlin.$_$.l6;
|
|
21
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.s8;
|
|
22
|
+
var emptyList = kotlin_kotlin.$_$.p6;
|
|
23
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.cb;
|
|
24
|
+
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.g4;
|
|
25
|
+
var Key_instance = kotlin_kotlin.$_$.f4;
|
|
26
|
+
var equals = kotlin_kotlin.$_$.ta;
|
|
27
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
28
|
+
var createCoroutineUnintercepted = kotlin_kotlin.$_$.u8;
|
|
29
29
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
30
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
30
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.eb;
|
|
31
31
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
32
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
33
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
34
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
35
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
32
|
+
var toString_0 = kotlin_kotlin.$_$.ch;
|
|
33
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gb;
|
|
34
|
+
var hashCode = kotlin_kotlin.$_$.za;
|
|
35
|
+
var createFailure = kotlin_kotlin.$_$.pg;
|
|
36
36
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
37
37
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
38
38
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.o2;
|
|
39
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
40
|
-
var AbstractCoroutineContextKey = kotlin_kotlin.$_$.
|
|
41
|
-
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.
|
|
42
|
-
var get = kotlin_kotlin.$_$.
|
|
43
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
44
|
-
var ContinuationInterceptor = kotlin_kotlin.$_$.
|
|
39
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.r2;
|
|
40
|
+
var AbstractCoroutineContextKey = kotlin_kotlin.$_$.y8;
|
|
41
|
+
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.x8;
|
|
42
|
+
var get = kotlin_kotlin.$_$.z8;
|
|
43
|
+
var minusKey = kotlin_kotlin.$_$.a9;
|
|
44
|
+
var ContinuationInterceptor = kotlin_kotlin.$_$.b9;
|
|
45
45
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.b2;
|
|
46
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
47
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
48
|
-
var Enum = kotlin_kotlin.$_$.
|
|
49
|
-
var startCoroutine = kotlin_kotlin.$_$.
|
|
50
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
51
|
-
var Long = kotlin_kotlin.$_$.
|
|
52
|
-
var compare = kotlin_kotlin.$_$.
|
|
46
|
+
var addSuppressed = kotlin_kotlin.$_$.lg;
|
|
47
|
+
var getStringHashCode = kotlin_kotlin.$_$.ya;
|
|
48
|
+
var Enum = kotlin_kotlin.$_$.of;
|
|
49
|
+
var startCoroutine = kotlin_kotlin.$_$.j9;
|
|
50
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.xg;
|
|
51
|
+
var Long = kotlin_kotlin.$_$.tf;
|
|
52
|
+
var compare = kotlin_kotlin.$_$.q9;
|
|
53
53
|
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
54
|
-
var add = kotlin_kotlin.$_$.
|
|
55
|
-
var subtract = kotlin_kotlin.$_$.
|
|
56
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
54
|
+
var add = kotlin_kotlin.$_$.n9;
|
|
55
|
+
var subtract = kotlin_kotlin.$_$.ea;
|
|
56
|
+
var RuntimeException = kotlin_kotlin.$_$.xf;
|
|
57
57
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.a2;
|
|
58
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
59
|
-
var Error_0 = kotlin_kotlin.$_$.
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.ka;
|
|
59
|
+
var Error_0 = kotlin_kotlin.$_$.pf;
|
|
60
60
|
var Error_init_$Init$ = kotlin_kotlin.$_$.e1;
|
|
61
|
-
var Element = kotlin_kotlin.$_$.
|
|
62
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
63
|
-
var ArrayList = kotlin_kotlin.$_$.
|
|
61
|
+
var Element = kotlin_kotlin.$_$.g9;
|
|
62
|
+
var CancellationException = kotlin_kotlin.$_$.r8;
|
|
63
|
+
var ArrayList = kotlin_kotlin.$_$.b5;
|
|
64
64
|
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.t1;
|
|
65
|
-
var plus = kotlin_kotlin.$_$.
|
|
66
|
-
var get_0 = kotlin_kotlin.$_$.
|
|
67
|
-
var fold = kotlin_kotlin.$_$.
|
|
68
|
-
var minusKey_0 = kotlin_kotlin.$_$.
|
|
65
|
+
var plus = kotlin_kotlin.$_$.h9;
|
|
66
|
+
var get_0 = kotlin_kotlin.$_$.e9;
|
|
67
|
+
var fold = kotlin_kotlin.$_$.d9;
|
|
68
|
+
var minusKey_0 = kotlin_kotlin.$_$.f9;
|
|
69
69
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
70
|
-
var anyToString = kotlin_kotlin.$_$.
|
|
71
|
-
var UnsupportedOperationException = kotlin_kotlin.$_$.
|
|
70
|
+
var anyToString = kotlin_kotlin.$_$.ha;
|
|
71
|
+
var UnsupportedOperationException = kotlin_kotlin.$_$.kg;
|
|
72
72
|
var atomicfu$AtomicRefArray$ofNulls = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
73
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
74
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
75
|
-
var multiply = kotlin_kotlin.$_$.
|
|
76
|
-
var divide = kotlin_kotlin.$_$.
|
|
77
|
-
var modulo = kotlin_kotlin.$_$.
|
|
78
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
79
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
80
|
-
var bitwiseAnd = kotlin_kotlin.$_$.
|
|
81
|
-
var shiftRight = kotlin_kotlin.$_$.
|
|
73
|
+
var ensureNotNull = kotlin_kotlin.$_$.qg;
|
|
74
|
+
var fromInt = kotlin_kotlin.$_$.w9;
|
|
75
|
+
var multiply = kotlin_kotlin.$_$.z9;
|
|
76
|
+
var divide = kotlin_kotlin.$_$.u9;
|
|
77
|
+
var modulo = kotlin_kotlin.$_$.y9;
|
|
78
|
+
var convertToInt = kotlin_kotlin.$_$.s9;
|
|
79
|
+
var equalsLong = kotlin_kotlin.$_$.v9;
|
|
80
|
+
var bitwiseAnd = kotlin_kotlin.$_$.o9;
|
|
81
|
+
var shiftRight = kotlin_kotlin.$_$.da;
|
|
82
82
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
83
83
|
var atomic$long$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
84
|
-
var listOf = kotlin_kotlin.$_$.
|
|
84
|
+
var listOf = kotlin_kotlin.$_$.l7;
|
|
85
85
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
86
86
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
87
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
88
|
-
var last = kotlin_kotlin.$_$.
|
|
87
|
+
var compareTo = kotlin_kotlin.$_$.ra;
|
|
88
|
+
var last = kotlin_kotlin.$_$.td;
|
|
89
89
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
90
|
-
var shiftLeft = kotlin_kotlin.$_$.
|
|
91
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
92
|
-
var NoSuchElementException = kotlin_kotlin.$_$.
|
|
90
|
+
var shiftLeft = kotlin_kotlin.$_$.ca;
|
|
91
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.bb;
|
|
92
|
+
var NoSuchElementException = kotlin_kotlin.$_$.uf;
|
|
93
93
|
var NoSuchElementException_init_$Init$ = kotlin_kotlin.$_$.w1;
|
|
94
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
94
|
+
var IllegalStateException = kotlin_kotlin.$_$.sf;
|
|
95
95
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.q1;
|
|
96
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
97
|
-
var Unit = kotlin_kotlin.$_$.
|
|
98
|
-
var Exception = kotlin_kotlin.$_$.
|
|
96
|
+
var getKClass = kotlin_kotlin.$_$.qc;
|
|
97
|
+
var Unit = kotlin_kotlin.$_$.jg;
|
|
98
|
+
var Exception = kotlin_kotlin.$_$.qf;
|
|
99
99
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
|
|
100
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
101
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
102
|
-
var createCoroutineUnintercepted_0 = kotlin_kotlin.$_$.
|
|
103
|
-
var startCoroutineUninterceptedOrReturnNonGeneratorVersion = kotlin_kotlin.$_$.
|
|
104
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
105
|
-
var Collection = kotlin_kotlin.$_$.
|
|
106
|
-
var KtList = kotlin_kotlin.$_$.
|
|
107
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
108
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
109
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
100
|
+
var defineProp = kotlin_kotlin.$_$.sa;
|
|
101
|
+
var toLongOrNull = kotlin_kotlin.$_$.se;
|
|
102
|
+
var createCoroutineUnintercepted_0 = kotlin_kotlin.$_$.t8;
|
|
103
|
+
var startCoroutineUninterceptedOrReturnNonGeneratorVersion = kotlin_kotlin.$_$.w8;
|
|
104
|
+
var isSuspendFunction = kotlin_kotlin.$_$.sb;
|
|
105
|
+
var Collection = kotlin_kotlin.$_$.c5;
|
|
106
|
+
var KtList = kotlin_kotlin.$_$.h5;
|
|
107
|
+
var plus_0 = kotlin_kotlin.$_$.s7;
|
|
108
|
+
var listOf_0 = kotlin_kotlin.$_$.k7;
|
|
109
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.pc;
|
|
110
110
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
111
|
-
var removeFirstOrNull = kotlin_kotlin.$_$.
|
|
112
|
-
var KtMutableList = kotlin_kotlin.$_$.
|
|
113
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
111
|
+
var removeFirstOrNull = kotlin_kotlin.$_$.t7;
|
|
112
|
+
var KtMutableList = kotlin_kotlin.$_$.l5;
|
|
113
|
+
var coerceIn = kotlin_kotlin.$_$.ic;
|
|
114
114
|
var CancellationException_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
115
115
|
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
116
116
|
var CancellationException_init_$Init$_0 = kotlin_kotlin.$_$.w;
|
|
@@ -206,6 +206,7 @@
|
|
|
206
206
|
initMetadataForClass(ResumeAwaitOnCompletion, 'ResumeAwaitOnCompletion', VOID, JobNode);
|
|
207
207
|
initMetadataForClass(MainCoroutineDispatcher, 'MainCoroutineDispatcher', VOID, CoroutineDispatcher);
|
|
208
208
|
initMetadataForClass(SupervisorJobImpl, 'SupervisorJobImpl', VOID, JobImpl, VOID, [0]);
|
|
209
|
+
initMetadataForClass(SupervisorCoroutine, 'SupervisorCoroutine', VOID, ScopeCoroutine, VOID, [0]);
|
|
209
210
|
initMetadataForClass(TimeoutCancellationException, 'TimeoutCancellationException', VOID, CancellationException, [CancellationException, CopyableThrowable]);
|
|
210
211
|
initMetadataForObject(Unconfined, 'Unconfined', VOID, CoroutineDispatcher);
|
|
211
212
|
initMetadataForObject(Key_3, 'Key');
|
|
@@ -219,7 +220,7 @@
|
|
|
219
220
|
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
220
221
|
function close$default(cause, $super) {
|
|
221
222
|
cause = cause === VOID ? null : cause;
|
|
222
|
-
return $super === VOID ? this.
|
|
223
|
+
return $super === VOID ? this.x19(cause) : $super.x19.call(this, cause);
|
|
223
224
|
}
|
|
224
225
|
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
225
226
|
function cancel$default_0(cause, $super) {
|
|
@@ -3604,6 +3605,16 @@
|
|
|
3604
3605
|
protoOf(SupervisorJobImpl).wt = function (cause) {
|
|
3605
3606
|
return false;
|
|
3606
3607
|
};
|
|
3608
|
+
function supervisorScope(block, $completion) {
|
|
3609
|
+
var coroutine = new SupervisorCoroutine($completion.a9(), $completion);
|
|
3610
|
+
return startUndispatchedOrReturn(coroutine, coroutine, block);
|
|
3611
|
+
}
|
|
3612
|
+
function SupervisorCoroutine(context, uCont) {
|
|
3613
|
+
ScopeCoroutine.call(this, context, uCont);
|
|
3614
|
+
}
|
|
3615
|
+
protoOf(SupervisorCoroutine).wt = function (cause) {
|
|
3616
|
+
return false;
|
|
3617
|
+
};
|
|
3607
3618
|
function TimeoutCancellationException() {
|
|
3608
3619
|
}
|
|
3609
3620
|
function Unconfined() {
|
|
@@ -3616,7 +3627,7 @@
|
|
|
3616
3627
|
protoOf(Unconfined).w10 = function (context, block) {
|
|
3617
3628
|
var yieldContext = context.h9(Key_instance_4);
|
|
3618
3629
|
if (!(yieldContext == null)) {
|
|
3619
|
-
yieldContext.
|
|
3630
|
+
yieldContext.g15_1 = true;
|
|
3620
3631
|
return Unit_instance;
|
|
3621
3632
|
}
|
|
3622
3633
|
throw UnsupportedOperationException_init_$Create$('Dispatchers.Unconfined.dispatch function can only be used by the yield function. If you wrap Unconfined dispatcher in your code, make sure you properly delegate isDispatchNeeded and dispatch calls.');
|
|
@@ -3762,53 +3773,53 @@
|
|
|
3762
3773
|
var NO_CLOSE_CAUSE;
|
|
3763
3774
|
function setElementLazy($this, index, value) {
|
|
3764
3775
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
3765
|
-
$this.
|
|
3776
|
+
$this.m15_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
3766
3777
|
}
|
|
3767
3778
|
function ChannelSegment(id, prev, channel, pointers) {
|
|
3768
3779
|
Segment.call(this, id, prev, pointers);
|
|
3769
|
-
this.
|
|
3770
|
-
this.
|
|
3780
|
+
this.l15_1 = channel;
|
|
3781
|
+
this.m15_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
3771
3782
|
}
|
|
3772
|
-
protoOf(ChannelSegment).
|
|
3773
|
-
return ensureNotNull(this.
|
|
3783
|
+
protoOf(ChannelSegment).n15 = function () {
|
|
3784
|
+
return ensureNotNull(this.l15_1);
|
|
3774
3785
|
};
|
|
3775
|
-
protoOf(ChannelSegment).
|
|
3786
|
+
protoOf(ChannelSegment).o15 = function () {
|
|
3776
3787
|
return get_SEGMENT_SIZE();
|
|
3777
3788
|
};
|
|
3778
|
-
protoOf(ChannelSegment).
|
|
3789
|
+
protoOf(ChannelSegment).p15 = function (index, element) {
|
|
3779
3790
|
setElementLazy(this, index, element);
|
|
3780
3791
|
};
|
|
3781
|
-
protoOf(ChannelSegment).
|
|
3782
|
-
var tmp = this.
|
|
3792
|
+
protoOf(ChannelSegment).q15 = function (index) {
|
|
3793
|
+
var tmp = this.m15_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
3783
3794
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
3784
3795
|
};
|
|
3785
|
-
protoOf(ChannelSegment).
|
|
3796
|
+
protoOf(ChannelSegment).r15 = function (index) {
|
|
3786
3797
|
// Inline function 'kotlin.also' call
|
|
3787
|
-
var this_0 = this.
|
|
3788
|
-
this.
|
|
3798
|
+
var this_0 = this.q15(index);
|
|
3799
|
+
this.s15(index);
|
|
3789
3800
|
return this_0;
|
|
3790
3801
|
};
|
|
3791
|
-
protoOf(ChannelSegment).
|
|
3802
|
+
protoOf(ChannelSegment).s15 = function (index) {
|
|
3792
3803
|
setElementLazy(this, index, null);
|
|
3793
3804
|
};
|
|
3794
|
-
protoOf(ChannelSegment).
|
|
3795
|
-
return this.
|
|
3805
|
+
protoOf(ChannelSegment).t15 = function (index) {
|
|
3806
|
+
return this.m15_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
3796
3807
|
};
|
|
3797
|
-
protoOf(ChannelSegment).
|
|
3798
|
-
this.
|
|
3808
|
+
protoOf(ChannelSegment).u15 = function (index, value) {
|
|
3809
|
+
this.m15_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
3799
3810
|
};
|
|
3800
|
-
protoOf(ChannelSegment).
|
|
3801
|
-
return this.
|
|
3811
|
+
protoOf(ChannelSegment).v15 = function (index, from, to) {
|
|
3812
|
+
return this.m15_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
3802
3813
|
};
|
|
3803
|
-
protoOf(ChannelSegment).
|
|
3804
|
-
return this.
|
|
3814
|
+
protoOf(ChannelSegment).w15 = function (index, update) {
|
|
3815
|
+
return this.m15_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
3805
3816
|
};
|
|
3806
3817
|
protoOf(ChannelSegment).sy = function (index, cause, context) {
|
|
3807
3818
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
3808
3819
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
3809
|
-
var element = this.
|
|
3820
|
+
var element = this.q15(index_0);
|
|
3810
3821
|
$l$loop: while (true) {
|
|
3811
|
-
var cur = this.
|
|
3822
|
+
var cur = this.t15(index_0);
|
|
3812
3823
|
var tmp;
|
|
3813
3824
|
if (!(cur == null) ? isInterface(cur, Waiter) : false) {
|
|
3814
3825
|
tmp = true;
|
|
@@ -3817,11 +3828,11 @@
|
|
|
3817
3828
|
}
|
|
3818
3829
|
if (tmp) {
|
|
3819
3830
|
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
3820
|
-
if (this.
|
|
3821
|
-
this.
|
|
3822
|
-
this.
|
|
3831
|
+
if (this.v15(index_0, cur, update)) {
|
|
3832
|
+
this.s15(index_0);
|
|
3833
|
+
this.j16(index_0, !isSender);
|
|
3823
3834
|
if (isSender) {
|
|
3824
|
-
var tmp0_safe_receiver = this.
|
|
3835
|
+
var tmp0_safe_receiver = this.n15().y15_1;
|
|
3825
3836
|
if (tmp0_safe_receiver == null)
|
|
3826
3837
|
null;
|
|
3827
3838
|
else {
|
|
@@ -3832,9 +3843,9 @@
|
|
|
3832
3843
|
}
|
|
3833
3844
|
} else {
|
|
3834
3845
|
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
3835
|
-
this.
|
|
3846
|
+
this.s15(index_0);
|
|
3836
3847
|
if (isSender) {
|
|
3837
|
-
var tmp1_safe_receiver = this.
|
|
3848
|
+
var tmp1_safe_receiver = this.n15().y15_1;
|
|
3838
3849
|
if (tmp1_safe_receiver == null)
|
|
3839
3850
|
null;
|
|
3840
3851
|
else {
|
|
@@ -3862,22 +3873,22 @@
|
|
|
3862
3873
|
}
|
|
3863
3874
|
}
|
|
3864
3875
|
};
|
|
3865
|
-
protoOf(ChannelSegment).
|
|
3876
|
+
protoOf(ChannelSegment).j16 = function (index, receiver) {
|
|
3866
3877
|
if (receiver) {
|
|
3867
|
-
var tmp = this.
|
|
3878
|
+
var tmp = this.n15();
|
|
3868
3879
|
var tmp0 = this.qy_1;
|
|
3869
3880
|
// Inline function 'kotlin.Long.times' call
|
|
3870
3881
|
var other = get_SEGMENT_SIZE();
|
|
3871
3882
|
// Inline function 'kotlin.Long.plus' call
|
|
3872
3883
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
3873
3884
|
var tmp$ret$1 = add(this_0, fromInt(index));
|
|
3874
|
-
tmp.
|
|
3885
|
+
tmp.k16(tmp$ret$1);
|
|
3875
3886
|
}
|
|
3876
|
-
this.
|
|
3887
|
+
this.l16();
|
|
3877
3888
|
};
|
|
3878
3889
|
function onClosedHasNext($this) {
|
|
3879
|
-
$this.
|
|
3880
|
-
var tmp0_elvis_lhs = $this.
|
|
3890
|
+
$this.x16_1 = get_CHANNEL_CLOSED();
|
|
3891
|
+
var tmp0_elvis_lhs = $this.z16_1.a17();
|
|
3881
3892
|
var tmp;
|
|
3882
3893
|
if (tmp0_elvis_lhs == null) {
|
|
3883
3894
|
return false;
|
|
@@ -3890,25 +3901,25 @@
|
|
|
3890
3901
|
function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
3891
3902
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
3892
3903
|
try {
|
|
3893
|
-
$this.
|
|
3904
|
+
$this.y16_1 = cancellable;
|
|
3894
3905
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
3895
|
-
var this_0 = $this.
|
|
3906
|
+
var this_0 = $this.z16_1;
|
|
3896
3907
|
var updCellResult = updateCellReceive(this_0, segment, index, r, $this);
|
|
3897
3908
|
if (updCellResult === get_SUSPEND()) {
|
|
3898
3909
|
prepareReceiverForSuspension(this_0, $this, segment, index);
|
|
3899
3910
|
} else if (updCellResult === get_FAILED()) {
|
|
3900
|
-
if (compare(r, this_0.
|
|
3901
|
-
segment.
|
|
3911
|
+
if (compare(r, this_0.b17()) < 0) {
|
|
3912
|
+
segment.v16();
|
|
3902
3913
|
}
|
|
3903
3914
|
$l$block_0: {
|
|
3904
3915
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
3905
|
-
var segment_0 = this_0.
|
|
3916
|
+
var segment_0 = this_0.e16_1.kotlinx$atomicfu$value;
|
|
3906
3917
|
$l$loop_0: while (true) {
|
|
3907
|
-
if (this_0.
|
|
3918
|
+
if (this_0.c17()) {
|
|
3908
3919
|
onClosedHasNextNoWaiterSuspend($this);
|
|
3909
3920
|
break $l$block_0;
|
|
3910
3921
|
}
|
|
3911
|
-
var r_0 = this_0.
|
|
3922
|
+
var r_0 = this_0.a16_1.atomicfu$getAndIncrement$long();
|
|
3912
3923
|
// Inline function 'kotlin.Long.div' call
|
|
3913
3924
|
var other = get_SEGMENT_SIZE();
|
|
3914
3925
|
var id = divide(r_0, fromInt(other));
|
|
@@ -3935,8 +3946,8 @@
|
|
|
3935
3946
|
prepareReceiverForSuspension(this_0, tmp1_safe_receiver, segment_0, i);
|
|
3936
3947
|
}
|
|
3937
3948
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
3938
|
-
if (compare(r_0, this_0.
|
|
3939
|
-
segment_0.
|
|
3949
|
+
if (compare(r_0, this_0.b17()) < 0) {
|
|
3950
|
+
segment_0.v16();
|
|
3940
3951
|
}
|
|
3941
3952
|
continue $l$loop_0;
|
|
3942
3953
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -3944,23 +3955,23 @@
|
|
|
3944
3955
|
var message = 'unexpected';
|
|
3945
3956
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3946
3957
|
} else {
|
|
3947
|
-
segment_0.
|
|
3958
|
+
segment_0.v16();
|
|
3948
3959
|
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
3949
|
-
$this.
|
|
3950
|
-
$this.
|
|
3951
|
-
var tmp0_safe_receiver = $this.
|
|
3952
|
-
cancellable.zx(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.
|
|
3960
|
+
$this.x16_1 = element;
|
|
3961
|
+
$this.y16_1 = null;
|
|
3962
|
+
var tmp0_safe_receiver = $this.z16_1.y15_1;
|
|
3963
|
+
cancellable.zx(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.z16_1, tmp0_safe_receiver, element));
|
|
3953
3964
|
}
|
|
3954
3965
|
break $l$block_0;
|
|
3955
3966
|
}
|
|
3956
3967
|
}
|
|
3957
3968
|
} else {
|
|
3958
|
-
segment.
|
|
3969
|
+
segment.v16();
|
|
3959
3970
|
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
3960
|
-
$this.
|
|
3961
|
-
$this.
|
|
3962
|
-
var tmp0_safe_receiver_0 = $this.
|
|
3963
|
-
cancellable.zx(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.
|
|
3971
|
+
$this.x16_1 = element_0;
|
|
3972
|
+
$this.y16_1 = null;
|
|
3973
|
+
var tmp0_safe_receiver_0 = $this.z16_1.y15_1;
|
|
3974
|
+
cancellable.zx(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.z16_1, tmp0_safe_receiver_0, element_0));
|
|
3964
3975
|
}
|
|
3965
3976
|
} catch ($p) {
|
|
3966
3977
|
if ($p instanceof Error) {
|
|
@@ -3974,10 +3985,10 @@
|
|
|
3974
3985
|
return cancellable.lw();
|
|
3975
3986
|
}
|
|
3976
3987
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
3977
|
-
var cont = ensureNotNull($this.
|
|
3978
|
-
$this.
|
|
3979
|
-
$this.
|
|
3980
|
-
var cause = $this.
|
|
3988
|
+
var cont = ensureNotNull($this.y16_1);
|
|
3989
|
+
$this.y16_1 = null;
|
|
3990
|
+
$this.x16_1 = get_CHANNEL_CLOSED();
|
|
3991
|
+
var cause = $this.z16_1.a17();
|
|
3981
3992
|
if (cause == null) {
|
|
3982
3993
|
// Inline function 'kotlin.coroutines.resume' call
|
|
3983
3994
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -3993,7 +4004,7 @@
|
|
|
3993
4004
|
}
|
|
3994
4005
|
function $hasNextCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
3995
4006
|
CoroutineImpl.call(this, resultContinuation);
|
|
3996
|
-
this.
|
|
4007
|
+
this.l17_1 = _this__u8e3s4;
|
|
3997
4008
|
}
|
|
3998
4009
|
protoOf($hasNextCOROUTINE$).c9 = function () {
|
|
3999
4010
|
var suspendResult = this.w8_1;
|
|
@@ -4003,24 +4014,24 @@
|
|
|
4003
4014
|
switch (tmp) {
|
|
4004
4015
|
case 0:
|
|
4005
4016
|
this.v8_1 = 8;
|
|
4006
|
-
if (!(this.
|
|
4017
|
+
if (!(this.l17_1.x16_1 === get_NO_RECEIVE_RESULT()) && !(this.l17_1.x16_1 === get_CHANNEL_CLOSED())) {
|
|
4007
4018
|
var tmp_0 = this;
|
|
4008
|
-
tmp_0.
|
|
4019
|
+
tmp_0.m17_1 = true;
|
|
4009
4020
|
this.u8_1 = 11;
|
|
4010
4021
|
continue $sm;
|
|
4011
4022
|
} else {
|
|
4012
4023
|
var tmp_1 = this;
|
|
4013
|
-
tmp_1.
|
|
4024
|
+
tmp_1.w17_1 = this.l17_1.z16_1;
|
|
4014
4025
|
var tmp_2 = this;
|
|
4015
|
-
tmp_2.
|
|
4026
|
+
tmp_2.v17_1 = null;
|
|
4016
4027
|
this.u8_1 = 1;
|
|
4017
4028
|
continue $sm;
|
|
4018
4029
|
}
|
|
4019
4030
|
|
|
4020
4031
|
case 1:
|
|
4021
|
-
this.
|
|
4022
|
-
this.
|
|
4023
|
-
this.
|
|
4032
|
+
this.s17_1 = this.w17_1;
|
|
4033
|
+
this.t17_1 = this.v17_1;
|
|
4034
|
+
this.p17_1 = this.s17_1.e16_1.kotlinx$atomicfu$value;
|
|
4024
4035
|
this.u8_1 = 2;
|
|
4025
4036
|
continue $sm;
|
|
4026
4037
|
case 2:
|
|
@@ -4029,9 +4040,9 @@
|
|
|
4029
4040
|
continue $sm;
|
|
4030
4041
|
}
|
|
4031
4042
|
|
|
4032
|
-
if (this.
|
|
4043
|
+
if (this.s17_1.c17()) {
|
|
4033
4044
|
var tmp_3 = this;
|
|
4034
|
-
tmp_3.
|
|
4045
|
+
tmp_3.n17_1 = onClosedHasNext(this.l17_1);
|
|
4035
4046
|
this.u8_1 = 10;
|
|
4036
4047
|
continue $sm;
|
|
4037
4048
|
} else {
|
|
@@ -4040,22 +4051,22 @@
|
|
|
4040
4051
|
}
|
|
4041
4052
|
|
|
4042
4053
|
case 3:
|
|
4043
|
-
this.
|
|
4044
|
-
var tmp0 = this.
|
|
4054
|
+
this.q17_1 = this.s17_1.a16_1.atomicfu$getAndIncrement$long();
|
|
4055
|
+
var tmp0 = this.q17_1;
|
|
4045
4056
|
var other = get_SEGMENT_SIZE();
|
|
4046
4057
|
var id = divide(tmp0, fromInt(other));
|
|
4047
4058
|
var tmp_4 = this;
|
|
4048
|
-
var tmp0_0 = this.
|
|
4059
|
+
var tmp0_0 = this.q17_1;
|
|
4049
4060
|
var other_0 = get_SEGMENT_SIZE();
|
|
4050
|
-
tmp_4.
|
|
4051
|
-
if (!equalsLong(this.
|
|
4052
|
-
var tmp0_elvis_lhs = findSegmentReceive(this.
|
|
4061
|
+
tmp_4.r17_1 = convertToInt(modulo(tmp0_0, fromInt(other_0)));
|
|
4062
|
+
if (!equalsLong(this.p17_1.qy_1, id)) {
|
|
4063
|
+
var tmp0_elvis_lhs = findSegmentReceive(this.s17_1, id, this.p17_1);
|
|
4053
4064
|
if (tmp0_elvis_lhs == null) {
|
|
4054
4065
|
this.u8_1 = 2;
|
|
4055
4066
|
var tmp_5 = this;
|
|
4056
4067
|
continue $sm;
|
|
4057
4068
|
} else {
|
|
4058
|
-
this.
|
|
4069
|
+
this.u17_1 = tmp0_elvis_lhs;
|
|
4059
4070
|
this.u8_1 = 4;
|
|
4060
4071
|
continue $sm;
|
|
4061
4072
|
}
|
|
@@ -4065,50 +4076,50 @@
|
|
|
4065
4076
|
}
|
|
4066
4077
|
|
|
4067
4078
|
case 4:
|
|
4068
|
-
this.
|
|
4079
|
+
this.p17_1 = this.u17_1;
|
|
4069
4080
|
this.u8_1 = 5;
|
|
4070
4081
|
continue $sm;
|
|
4071
4082
|
case 5:
|
|
4072
|
-
var updCellResult = updateCellReceive(this.
|
|
4083
|
+
var updCellResult = updateCellReceive(this.s17_1, this.p17_1, this.r17_1, this.q17_1, this.t17_1);
|
|
4073
4084
|
if (updCellResult === get_SUSPEND()) {
|
|
4074
4085
|
var tmp_6 = this;
|
|
4075
|
-
var tmp_7 = this.
|
|
4086
|
+
var tmp_7 = this.t17_1;
|
|
4076
4087
|
var tmp1_safe_receiver = (!(tmp_7 == null) ? isInterface(tmp_7, Waiter) : false) ? tmp_7 : null;
|
|
4077
4088
|
if (tmp1_safe_receiver == null)
|
|
4078
4089
|
null;
|
|
4079
4090
|
else {
|
|
4080
|
-
prepareReceiverForSuspension(this.
|
|
4091
|
+
prepareReceiverForSuspension(this.s17_1, tmp1_safe_receiver, this.p17_1, this.r17_1);
|
|
4081
4092
|
}
|
|
4082
|
-
this.
|
|
4083
|
-
this.
|
|
4084
|
-
this.
|
|
4093
|
+
this.p17_1;
|
|
4094
|
+
this.r17_1;
|
|
4095
|
+
this.q17_1;
|
|
4085
4096
|
var message = 'unreachable';
|
|
4086
4097
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4087
4098
|
} else {
|
|
4088
4099
|
if (updCellResult === get_FAILED()) {
|
|
4089
|
-
if (compare(this.
|
|
4090
|
-
this.
|
|
4100
|
+
if (compare(this.q17_1, this.s17_1.b17()) < 0) {
|
|
4101
|
+
this.p17_1.v16();
|
|
4091
4102
|
}
|
|
4092
4103
|
this.u8_1 = 2;
|
|
4093
4104
|
var tmp_8 = this;
|
|
4094
4105
|
continue $sm;
|
|
4095
4106
|
} else {
|
|
4096
4107
|
if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
4097
|
-
var tmp0_1 = this.
|
|
4098
|
-
var tmp2 = this.
|
|
4099
|
-
var r = this.
|
|
4108
|
+
var tmp0_1 = this.p17_1;
|
|
4109
|
+
var tmp2 = this.r17_1;
|
|
4110
|
+
var r = this.q17_1;
|
|
4100
4111
|
this.u8_1 = 6;
|
|
4101
|
-
suspendResult = hasNextOnNoWaiterSuspend(this.
|
|
4112
|
+
suspendResult = hasNextOnNoWaiterSuspend(this.l17_1, tmp0_1, tmp2, r, this);
|
|
4102
4113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4103
4114
|
return suspendResult;
|
|
4104
4115
|
}
|
|
4105
4116
|
continue $sm;
|
|
4106
4117
|
} else {
|
|
4107
4118
|
var tmp_9 = this;
|
|
4108
|
-
this.
|
|
4119
|
+
this.p17_1.v16();
|
|
4109
4120
|
var element = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
4110
|
-
this.
|
|
4111
|
-
tmp_9.
|
|
4121
|
+
this.l17_1.x16_1 = element;
|
|
4122
|
+
tmp_9.o17_1 = true;
|
|
4112
4123
|
this.u8_1 = 7;
|
|
4113
4124
|
continue $sm;
|
|
4114
4125
|
}
|
|
@@ -4119,7 +4130,7 @@
|
|
|
4119
4130
|
var tmp_10 = this;
|
|
4120
4131
|
return suspendResult;
|
|
4121
4132
|
case 7:
|
|
4122
|
-
this.
|
|
4133
|
+
this.n17_1 = this.o17_1;
|
|
4123
4134
|
this.u8_1 = 10;
|
|
4124
4135
|
continue $sm;
|
|
4125
4136
|
case 8:
|
|
@@ -4133,11 +4144,11 @@
|
|
|
4133
4144
|
this.u8_1 = 10;
|
|
4134
4145
|
continue $sm;
|
|
4135
4146
|
case 10:
|
|
4136
|
-
this.
|
|
4147
|
+
this.m17_1 = this.n17_1;
|
|
4137
4148
|
this.u8_1 = 11;
|
|
4138
4149
|
continue $sm;
|
|
4139
4150
|
case 11:
|
|
4140
|
-
return this.
|
|
4151
|
+
return this.m17_1;
|
|
4141
4152
|
}
|
|
4142
4153
|
} catch ($p) {
|
|
4143
4154
|
var e = $p;
|
|
@@ -4151,7 +4162,7 @@
|
|
|
4151
4162
|
while (true);
|
|
4152
4163
|
};
|
|
4153
4164
|
function _get_bufferEndCounter__2d4hee($this) {
|
|
4154
|
-
return $this.
|
|
4165
|
+
return $this.b16_1.kotlinx$atomicfu$value;
|
|
4155
4166
|
}
|
|
4156
4167
|
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
4157
4168
|
// Inline function 'kotlin.let' call
|
|
@@ -4162,13 +4173,13 @@
|
|
|
4162
4173
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
4163
4174
|
cancellable.kw();
|
|
4164
4175
|
$l$block: {
|
|
4165
|
-
var tmp0_safe_receiver = $this.
|
|
4176
|
+
var tmp0_safe_receiver = $this.y15_1;
|
|
4166
4177
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
4167
4178
|
if (tmp1_safe_receiver == null)
|
|
4168
4179
|
null;
|
|
4169
4180
|
else {
|
|
4170
4181
|
// Inline function 'kotlin.let' call
|
|
4171
|
-
addSuppressed(tmp1_safe_receiver, $this.
|
|
4182
|
+
addSuppressed(tmp1_safe_receiver, $this.x17());
|
|
4172
4183
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
4173
4184
|
// Inline function 'kotlin.Companion.failure' call
|
|
4174
4185
|
var exception = recoverStackTrace(tmp1_safe_receiver, cancellable);
|
|
@@ -4177,7 +4188,7 @@
|
|
|
4177
4188
|
break $l$block;
|
|
4178
4189
|
}
|
|
4179
4190
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
4180
|
-
var exception_0 = $this.
|
|
4191
|
+
var exception_0 = $this.x17();
|
|
4181
4192
|
// Inline function 'kotlin.Companion.failure' call
|
|
4182
4193
|
var exception_1 = recoverStackTrace(exception_0, cancellable);
|
|
4183
4194
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
@@ -4191,7 +4202,7 @@
|
|
|
4191
4202
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImplOnNoWaiter' call
|
|
4192
4203
|
switch (updateCellSend($this, segment, index, element, s, cancellable, false)) {
|
|
4193
4204
|
case 0:
|
|
4194
|
-
segment.
|
|
4205
|
+
segment.v16();
|
|
4195
4206
|
// Inline function 'kotlin.coroutines.resume' call
|
|
4196
4207
|
|
|
4197
4208
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -4211,19 +4222,19 @@
|
|
|
4211
4222
|
prepareSenderForSuspension($this, cancellable, segment, index);
|
|
4212
4223
|
break;
|
|
4213
4224
|
case 4:
|
|
4214
|
-
if (compare(s, $this.
|
|
4215
|
-
segment.
|
|
4225
|
+
if (compare(s, $this.y17()) < 0) {
|
|
4226
|
+
segment.v16();
|
|
4216
4227
|
}
|
|
4217
4228
|
|
|
4218
4229
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
4219
4230
|
break;
|
|
4220
4231
|
case 5:
|
|
4221
|
-
segment.
|
|
4232
|
+
segment.v16();
|
|
4222
4233
|
$l$block_5: {
|
|
4223
4234
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
4224
|
-
var segment_0 = $this.
|
|
4235
|
+
var segment_0 = $this.d16_1.kotlinx$atomicfu$value;
|
|
4225
4236
|
$l$loop_0: while (true) {
|
|
4226
|
-
var sendersAndCloseStatusCur = $this.
|
|
4237
|
+
var sendersAndCloseStatusCur = $this.z15_1.atomicfu$getAndIncrement$long();
|
|
4227
4238
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
4228
4239
|
var s_0 = bitwiseAnd(sendersAndCloseStatusCur, new Long(-1, 268435455));
|
|
4229
4240
|
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
@@ -4252,7 +4263,7 @@
|
|
|
4252
4263
|
}
|
|
4253
4264
|
switch (updateCellSend($this, segment_0, i, element, s_0, cancellable, closed)) {
|
|
4254
4265
|
case 0:
|
|
4255
|
-
segment_0.
|
|
4266
|
+
segment_0.v16();
|
|
4256
4267
|
// Inline function 'kotlin.coroutines.resume' call
|
|
4257
4268
|
|
|
4258
4269
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -4270,7 +4281,7 @@
|
|
|
4270
4281
|
break $l$block_5;
|
|
4271
4282
|
case 2:
|
|
4272
4283
|
if (closed) {
|
|
4273
|
-
segment_0.
|
|
4284
|
+
segment_0.l16();
|
|
4274
4285
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
4275
4286
|
break $l$block_5;
|
|
4276
4287
|
}
|
|
@@ -4284,14 +4295,14 @@
|
|
|
4284
4295
|
|
|
4285
4296
|
break $l$block_5;
|
|
4286
4297
|
case 4:
|
|
4287
|
-
if (compare(s_0, $this.
|
|
4288
|
-
segment_0.
|
|
4298
|
+
if (compare(s_0, $this.y17()) < 0) {
|
|
4299
|
+
segment_0.v16();
|
|
4289
4300
|
}
|
|
4290
4301
|
|
|
4291
4302
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
4292
4303
|
break $l$block_5;
|
|
4293
4304
|
case 5:
|
|
4294
|
-
segment_0.
|
|
4305
|
+
segment_0.v16();
|
|
4295
4306
|
continue $l$loop_0;
|
|
4296
4307
|
case 3:
|
|
4297
4308
|
// Inline function 'kotlin.error' call
|
|
@@ -4324,7 +4335,7 @@
|
|
|
4324
4335
|
_this__u8e3s4.rz(segment, index + get_SEGMENT_SIZE() | 0);
|
|
4325
4336
|
}
|
|
4326
4337
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
4327
|
-
var tmp0_safe_receiver = $this.
|
|
4338
|
+
var tmp0_safe_receiver = $this.y15_1;
|
|
4328
4339
|
if (tmp0_safe_receiver == null)
|
|
4329
4340
|
null;
|
|
4330
4341
|
else {
|
|
@@ -4332,41 +4343,41 @@
|
|
|
4332
4343
|
}
|
|
4333
4344
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
4334
4345
|
// Inline function 'kotlin.Companion.failure' call
|
|
4335
|
-
var exception = recoverStackTrace($this.
|
|
4346
|
+
var exception = recoverStackTrace($this.x17(), cont);
|
|
4336
4347
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
4337
4348
|
cont.f9(tmp$ret$0);
|
|
4338
4349
|
}
|
|
4339
4350
|
function SendBroadcast() {
|
|
4340
4351
|
}
|
|
4341
4352
|
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
4342
|
-
segment.
|
|
4353
|
+
segment.p15(index, element);
|
|
4343
4354
|
if (closed)
|
|
4344
4355
|
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
4345
|
-
var state = segment.
|
|
4356
|
+
var state = segment.t15(index);
|
|
4346
4357
|
if (state === null) {
|
|
4347
4358
|
if (bufferOrRendezvousSend($this, s)) {
|
|
4348
|
-
if (segment.
|
|
4359
|
+
if (segment.v15(index, null, get_BUFFERED())) {
|
|
4349
4360
|
return 1;
|
|
4350
4361
|
}
|
|
4351
4362
|
} else {
|
|
4352
4363
|
if (waiter == null) {
|
|
4353
4364
|
return 3;
|
|
4354
4365
|
} else {
|
|
4355
|
-
if (segment.
|
|
4366
|
+
if (segment.v15(index, null, waiter))
|
|
4356
4367
|
return 2;
|
|
4357
4368
|
}
|
|
4358
4369
|
}
|
|
4359
4370
|
} else {
|
|
4360
4371
|
if (!(state == null) ? isInterface(state, Waiter) : false) {
|
|
4361
|
-
segment.
|
|
4372
|
+
segment.s15(index);
|
|
4362
4373
|
var tmp;
|
|
4363
4374
|
if (tryResumeReceiver($this, state, element)) {
|
|
4364
|
-
segment.
|
|
4365
|
-
$this.
|
|
4375
|
+
segment.u15(index, get_DONE_RCV());
|
|
4376
|
+
$this.z17();
|
|
4366
4377
|
tmp = 0;
|
|
4367
4378
|
} else {
|
|
4368
|
-
if (!(segment.
|
|
4369
|
-
segment.
|
|
4379
|
+
if (!(segment.w15(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
4380
|
+
segment.j16(index, true);
|
|
4370
4381
|
}
|
|
4371
4382
|
tmp = 5;
|
|
4372
4383
|
}
|
|
@@ -4377,55 +4388,55 @@
|
|
|
4377
4388
|
}
|
|
4378
4389
|
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
4379
4390
|
while (true) {
|
|
4380
|
-
var state = segment.
|
|
4391
|
+
var state = segment.t15(index);
|
|
4381
4392
|
if (state === null) {
|
|
4382
4393
|
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
4383
|
-
if (segment.
|
|
4394
|
+
if (segment.v15(index, null, get_BUFFERED())) {
|
|
4384
4395
|
return 1;
|
|
4385
4396
|
}
|
|
4386
4397
|
} else {
|
|
4387
4398
|
if (closed) {
|
|
4388
|
-
if (segment.
|
|
4389
|
-
segment.
|
|
4399
|
+
if (segment.v15(index, null, get_INTERRUPTED_SEND())) {
|
|
4400
|
+
segment.j16(index, false);
|
|
4390
4401
|
return 4;
|
|
4391
4402
|
}
|
|
4392
4403
|
} else if (waiter == null)
|
|
4393
4404
|
return 3;
|
|
4394
|
-
else if (segment.
|
|
4405
|
+
else if (segment.v15(index, null, waiter))
|
|
4395
4406
|
return 2;
|
|
4396
4407
|
}
|
|
4397
4408
|
} else if (state === get_IN_BUFFER()) {
|
|
4398
|
-
if (segment.
|
|
4409
|
+
if (segment.v15(index, state, get_BUFFERED())) {
|
|
4399
4410
|
return 1;
|
|
4400
4411
|
}
|
|
4401
4412
|
} else if (state === get_INTERRUPTED_RCV()) {
|
|
4402
|
-
segment.
|
|
4413
|
+
segment.s15(index);
|
|
4403
4414
|
return 5;
|
|
4404
4415
|
} else if (state === get_POISONED()) {
|
|
4405
|
-
segment.
|
|
4416
|
+
segment.s15(index);
|
|
4406
4417
|
return 5;
|
|
4407
4418
|
} else if (state === get_CHANNEL_CLOSED()) {
|
|
4408
|
-
segment.
|
|
4419
|
+
segment.s15(index);
|
|
4409
4420
|
completeCloseOrCancel($this);
|
|
4410
4421
|
return 4;
|
|
4411
4422
|
} else {
|
|
4412
4423
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
4413
|
-
segment.
|
|
4424
|
+
segment.s15(index);
|
|
4414
4425
|
var tmp;
|
|
4415
4426
|
if (state instanceof WaiterEB) {
|
|
4416
|
-
tmp = state.
|
|
4427
|
+
tmp = state.a18_1;
|
|
4417
4428
|
} else {
|
|
4418
4429
|
tmp = state;
|
|
4419
4430
|
}
|
|
4420
4431
|
var receiver = tmp;
|
|
4421
4432
|
var tmp_0;
|
|
4422
4433
|
if (tryResumeReceiver($this, receiver, element)) {
|
|
4423
|
-
segment.
|
|
4424
|
-
$this.
|
|
4434
|
+
segment.u15(index, get_DONE_RCV());
|
|
4435
|
+
$this.z17();
|
|
4425
4436
|
tmp_0 = 0;
|
|
4426
4437
|
} else {
|
|
4427
|
-
if (!(segment.
|
|
4428
|
-
segment.
|
|
4438
|
+
if (!(segment.w15(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
4439
|
+
segment.j16(index, true);
|
|
4429
4440
|
}
|
|
4430
4441
|
tmp_0 = 5;
|
|
4431
4442
|
}
|
|
@@ -4445,9 +4456,9 @@
|
|
|
4445
4456
|
if (compare(curSenders, _get_bufferEndCounter__2d4hee($this)) < 0) {
|
|
4446
4457
|
tmp = true;
|
|
4447
4458
|
} else {
|
|
4448
|
-
var tmp0 = $this.
|
|
4459
|
+
var tmp0 = $this.y17();
|
|
4449
4460
|
// Inline function 'kotlin.Long.plus' call
|
|
4450
|
-
var other = $this.
|
|
4461
|
+
var other = $this.x15_1;
|
|
4451
4462
|
var tmp$ret$0 = add(tmp0, fromInt(other));
|
|
4452
4463
|
tmp = compare(curSenders, tmp$ret$0) < 0;
|
|
4453
4464
|
}
|
|
@@ -4461,19 +4472,19 @@
|
|
|
4461
4472
|
if (_this__u8e3s4 instanceof ReceiveCatching) {
|
|
4462
4473
|
if (!(_this__u8e3s4 instanceof ReceiveCatching))
|
|
4463
4474
|
THROW_CCE();
|
|
4464
|
-
var tmp_0 = Companion_getInstance().
|
|
4465
|
-
var tmp1_safe_receiver = $this.
|
|
4466
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
4475
|
+
var tmp_0 = Companion_getInstance().d18(element);
|
|
4476
|
+
var tmp1_safe_receiver = $this.y15_1;
|
|
4477
|
+
tmp = tryResume0(_this__u8e3s4.e18_1, new ChannelResult(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
4467
4478
|
} else {
|
|
4468
4479
|
if (_this__u8e3s4 instanceof BufferedChannelIterator) {
|
|
4469
4480
|
if (!(_this__u8e3s4 instanceof BufferedChannelIterator))
|
|
4470
4481
|
THROW_CCE();
|
|
4471
|
-
tmp = _this__u8e3s4.
|
|
4482
|
+
tmp = _this__u8e3s4.b18(element);
|
|
4472
4483
|
} else {
|
|
4473
4484
|
if (isInterface(_this__u8e3s4, CancellableContinuation)) {
|
|
4474
4485
|
if (!isInterface(_this__u8e3s4, CancellableContinuation))
|
|
4475
4486
|
THROW_CCE();
|
|
4476
|
-
var tmp2_safe_receiver = $this.
|
|
4487
|
+
var tmp2_safe_receiver = $this.y15_1;
|
|
4477
4488
|
tmp = tryResume0(_this__u8e3s4, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
4478
4489
|
} else {
|
|
4479
4490
|
var message = 'Unexpected receiver type: ' + toString(_this__u8e3s4);
|
|
@@ -4485,40 +4496,40 @@
|
|
|
4485
4496
|
return tmp;
|
|
4486
4497
|
}
|
|
4487
4498
|
function prepareReceiverForSuspension($this, _this__u8e3s4, segment, index) {
|
|
4488
|
-
$this.
|
|
4499
|
+
$this.f18();
|
|
4489
4500
|
_this__u8e3s4.rz(segment, index);
|
|
4490
4501
|
}
|
|
4491
4502
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
4492
|
-
var state = segment.
|
|
4503
|
+
var state = segment.t15(index);
|
|
4493
4504
|
if (state === null) {
|
|
4494
4505
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
4495
|
-
var this_0 = $this.
|
|
4506
|
+
var this_0 = $this.z15_1.kotlinx$atomicfu$value;
|
|
4496
4507
|
var senders = bitwiseAnd(this_0, new Long(-1, 268435455));
|
|
4497
4508
|
if (compare(r, senders) >= 0) {
|
|
4498
4509
|
if (waiter === null) {
|
|
4499
4510
|
return get_SUSPEND_NO_WAITER();
|
|
4500
4511
|
}
|
|
4501
|
-
if (segment.
|
|
4512
|
+
if (segment.v15(index, state, waiter)) {
|
|
4502
4513
|
expandBuffer($this);
|
|
4503
4514
|
return get_SUSPEND();
|
|
4504
4515
|
}
|
|
4505
4516
|
}
|
|
4506
4517
|
} else if (state === get_BUFFERED())
|
|
4507
|
-
if (segment.
|
|
4518
|
+
if (segment.v15(index, state, get_DONE_RCV())) {
|
|
4508
4519
|
expandBuffer($this);
|
|
4509
|
-
return segment.
|
|
4520
|
+
return segment.r15(index);
|
|
4510
4521
|
}
|
|
4511
4522
|
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
4512
4523
|
}
|
|
4513
4524
|
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
4514
4525
|
$l$loop: while (true) {
|
|
4515
|
-
var state = segment.
|
|
4526
|
+
var state = segment.t15(index);
|
|
4516
4527
|
if (state === null || state === get_IN_BUFFER()) {
|
|
4517
4528
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
4518
|
-
var this_0 = $this.
|
|
4529
|
+
var this_0 = $this.z15_1.kotlinx$atomicfu$value;
|
|
4519
4530
|
var senders = bitwiseAnd(this_0, new Long(-1, 268435455));
|
|
4520
4531
|
if (compare(r, senders) < 0) {
|
|
4521
|
-
if (segment.
|
|
4532
|
+
if (segment.v15(index, state, get_POISONED())) {
|
|
4522
4533
|
expandBuffer($this);
|
|
4523
4534
|
return get_FAILED();
|
|
4524
4535
|
}
|
|
@@ -4526,15 +4537,15 @@
|
|
|
4526
4537
|
if (waiter === null) {
|
|
4527
4538
|
return get_SUSPEND_NO_WAITER();
|
|
4528
4539
|
}
|
|
4529
|
-
if (segment.
|
|
4540
|
+
if (segment.v15(index, state, waiter)) {
|
|
4530
4541
|
expandBuffer($this);
|
|
4531
4542
|
return get_SUSPEND();
|
|
4532
4543
|
}
|
|
4533
4544
|
}
|
|
4534
4545
|
} else if (state === get_BUFFERED()) {
|
|
4535
|
-
if (segment.
|
|
4546
|
+
if (segment.v15(index, state, get_DONE_RCV())) {
|
|
4536
4547
|
expandBuffer($this);
|
|
4537
|
-
return segment.
|
|
4548
|
+
return segment.r15(index);
|
|
4538
4549
|
}
|
|
4539
4550
|
} else if (state === get_INTERRUPTED_SEND())
|
|
4540
4551
|
return get_FAILED();
|
|
@@ -4546,23 +4557,23 @@
|
|
|
4546
4557
|
} else if (state === get_RESUMING_BY_EB())
|
|
4547
4558
|
continue $l$loop;
|
|
4548
4559
|
else {
|
|
4549
|
-
if (segment.
|
|
4560
|
+
if (segment.v15(index, state, get_RESUMING_BY_RCV())) {
|
|
4550
4561
|
var helpExpandBuffer = state instanceof WaiterEB;
|
|
4551
4562
|
var tmp;
|
|
4552
4563
|
if (state instanceof WaiterEB) {
|
|
4553
|
-
tmp = state.
|
|
4564
|
+
tmp = state.a18_1;
|
|
4554
4565
|
} else {
|
|
4555
4566
|
tmp = state;
|
|
4556
4567
|
}
|
|
4557
4568
|
var sender = tmp;
|
|
4558
4569
|
var tmp_0;
|
|
4559
4570
|
if (tryResumeSender($this, sender, segment, index)) {
|
|
4560
|
-
segment.
|
|
4571
|
+
segment.u15(index, get_DONE_RCV());
|
|
4561
4572
|
expandBuffer($this);
|
|
4562
|
-
tmp_0 = segment.
|
|
4573
|
+
tmp_0 = segment.r15(index);
|
|
4563
4574
|
} else {
|
|
4564
|
-
segment.
|
|
4565
|
-
segment.
|
|
4575
|
+
segment.u15(index, get_INTERRUPTED_SEND());
|
|
4576
|
+
segment.j16(index, false);
|
|
4566
4577
|
if (helpExpandBuffer) {
|
|
4567
4578
|
expandBuffer($this);
|
|
4568
4579
|
}
|
|
@@ -4583,14 +4594,14 @@
|
|
|
4583
4594
|
if (isInterface(_this__u8e3s4, SelectInstance)) {
|
|
4584
4595
|
if (!(_this__u8e3s4 instanceof SelectImplementation))
|
|
4585
4596
|
THROW_CCE();
|
|
4586
|
-
var trySelectResult = _this__u8e3s4.
|
|
4597
|
+
var trySelectResult = _this__u8e3s4.n18($this, Unit_instance);
|
|
4587
4598
|
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
4588
|
-
segment.
|
|
4599
|
+
segment.s15(index);
|
|
4589
4600
|
}
|
|
4590
4601
|
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
4591
4602
|
} else {
|
|
4592
4603
|
if (_this__u8e3s4 instanceof SendBroadcast) {
|
|
4593
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
4604
|
+
tmp = tryResume0(_this__u8e3s4.g18_1, true);
|
|
4594
4605
|
} else {
|
|
4595
4606
|
var message = 'Unexpected waiter: ' + toString(_this__u8e3s4);
|
|
4596
4607
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -4602,15 +4613,15 @@
|
|
|
4602
4613
|
function expandBuffer($this) {
|
|
4603
4614
|
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
4604
4615
|
return Unit_instance;
|
|
4605
|
-
var segment = $this.
|
|
4616
|
+
var segment = $this.f16_1.kotlinx$atomicfu$value;
|
|
4606
4617
|
try_again: while (true) {
|
|
4607
|
-
var b = $this.
|
|
4618
|
+
var b = $this.b16_1.atomicfu$getAndIncrement$long();
|
|
4608
4619
|
// Inline function 'kotlin.Long.div' call
|
|
4609
4620
|
var other = get_SEGMENT_SIZE();
|
|
4610
4621
|
var id = divide(b, fromInt(other));
|
|
4611
|
-
var s = $this.
|
|
4622
|
+
var s = $this.b17();
|
|
4612
4623
|
if (compare(s, b) <= 0) {
|
|
4613
|
-
if (compare(segment.qy_1, id) < 0 && !(segment.
|
|
4624
|
+
if (compare(segment.qy_1, id) < 0 && !(segment.r16() == null)) {
|
|
4614
4625
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
4615
4626
|
}
|
|
4616
4627
|
incCompletedExpandBufferAttempts$default($this);
|
|
@@ -4640,17 +4651,17 @@
|
|
|
4640
4651
|
}
|
|
4641
4652
|
}
|
|
4642
4653
|
function updateCellExpandBuffer($this, segment, index, b) {
|
|
4643
|
-
var state = segment.
|
|
4654
|
+
var state = segment.t15(index);
|
|
4644
4655
|
if (!(state == null) ? isInterface(state, Waiter) : false) {
|
|
4645
|
-
if (compare(b, $this.
|
|
4646
|
-
if (segment.
|
|
4656
|
+
if (compare(b, $this.a16_1.kotlinx$atomicfu$value) >= 0) {
|
|
4657
|
+
if (segment.v15(index, state, get_RESUMING_BY_EB())) {
|
|
4647
4658
|
var tmp;
|
|
4648
4659
|
if (tryResumeSender($this, state, segment, index)) {
|
|
4649
|
-
segment.
|
|
4660
|
+
segment.u15(index, get_BUFFERED());
|
|
4650
4661
|
tmp = true;
|
|
4651
4662
|
} else {
|
|
4652
|
-
segment.
|
|
4653
|
-
segment.
|
|
4663
|
+
segment.u15(index, get_INTERRUPTED_SEND());
|
|
4664
|
+
segment.j16(index, false);
|
|
4654
4665
|
tmp = false;
|
|
4655
4666
|
}
|
|
4656
4667
|
return tmp;
|
|
@@ -4661,20 +4672,20 @@
|
|
|
4661
4672
|
}
|
|
4662
4673
|
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
4663
4674
|
$l$loop: while (true) {
|
|
4664
|
-
var state = segment.
|
|
4675
|
+
var state = segment.t15(index);
|
|
4665
4676
|
if (!(state == null) ? isInterface(state, Waiter) : false) {
|
|
4666
|
-
if (compare(b, $this.
|
|
4667
|
-
if (segment.
|
|
4677
|
+
if (compare(b, $this.a16_1.kotlinx$atomicfu$value) < 0) {
|
|
4678
|
+
if (segment.v15(index, state, new WaiterEB(state)))
|
|
4668
4679
|
return true;
|
|
4669
4680
|
} else {
|
|
4670
|
-
if (segment.
|
|
4681
|
+
if (segment.v15(index, state, get_RESUMING_BY_EB())) {
|
|
4671
4682
|
var tmp;
|
|
4672
4683
|
if (tryResumeSender($this, state, segment, index)) {
|
|
4673
|
-
segment.
|
|
4684
|
+
segment.u15(index, get_BUFFERED());
|
|
4674
4685
|
tmp = true;
|
|
4675
4686
|
} else {
|
|
4676
|
-
segment.
|
|
4677
|
-
segment.
|
|
4687
|
+
segment.u15(index, get_INTERRUPTED_SEND());
|
|
4688
|
+
segment.j16(index, false);
|
|
4678
4689
|
tmp = false;
|
|
4679
4690
|
}
|
|
4680
4691
|
return tmp;
|
|
@@ -4685,7 +4696,7 @@
|
|
|
4685
4696
|
return false;
|
|
4686
4697
|
else {
|
|
4687
4698
|
if (state === null) {
|
|
4688
|
-
if (segment.
|
|
4699
|
+
if (segment.v15(index, state, get_IN_BUFFER()))
|
|
4689
4700
|
return true;
|
|
4690
4701
|
} else {
|
|
4691
4702
|
if (state === get_BUFFERED())
|
|
@@ -4714,12 +4725,12 @@
|
|
|
4714
4725
|
}
|
|
4715
4726
|
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
4716
4727
|
// Inline function 'kotlin.also' call
|
|
4717
|
-
var this_0 = $this.
|
|
4728
|
+
var this_0 = $this.c16_1.atomicfu$addAndGet$long(nAttempts);
|
|
4718
4729
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
4719
4730
|
if (!equalsLong(bitwiseAnd(this_0, new Long(0, 1073741824)), new Long(0, 0))) {
|
|
4720
4731
|
$l$loop: while (true) {
|
|
4721
4732
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
4722
|
-
var this_1 = $this.
|
|
4733
|
+
var this_1 = $this.c16_1.kotlinx$atomicfu$value;
|
|
4723
4734
|
if (!!equalsLong(bitwiseAnd(this_1, new Long(0, 1073741824)), new Long(0, 0))) {
|
|
4724
4735
|
break $l$loop;
|
|
4725
4736
|
}
|
|
@@ -4731,18 +4742,18 @@
|
|
|
4731
4742
|
return incCompletedExpandBufferAttempts($this, nAttempts);
|
|
4732
4743
|
}
|
|
4733
4744
|
function BufferedChannelIterator($outer) {
|
|
4734
|
-
this.
|
|
4735
|
-
this.
|
|
4736
|
-
this.
|
|
4745
|
+
this.z16_1 = $outer;
|
|
4746
|
+
this.x16_1 = get_NO_RECEIVE_RESULT();
|
|
4747
|
+
this.y16_1 = null;
|
|
4737
4748
|
}
|
|
4738
|
-
protoOf(BufferedChannelIterator).
|
|
4749
|
+
protoOf(BufferedChannelIterator).o18 = function ($completion) {
|
|
4739
4750
|
var tmp = new $hasNextCOROUTINE$(this, $completion);
|
|
4740
4751
|
tmp.w8_1 = Unit_instance;
|
|
4741
4752
|
tmp.x8_1 = null;
|
|
4742
4753
|
return tmp.c9();
|
|
4743
4754
|
};
|
|
4744
4755
|
protoOf(BufferedChannelIterator).rz = function (segment, index) {
|
|
4745
|
-
var tmp0_safe_receiver = this.
|
|
4756
|
+
var tmp0_safe_receiver = this.y16_1;
|
|
4746
4757
|
if (tmp0_safe_receiver == null)
|
|
4747
4758
|
null;
|
|
4748
4759
|
else {
|
|
@@ -4750,29 +4761,29 @@
|
|
|
4750
4761
|
}
|
|
4751
4762
|
};
|
|
4752
4763
|
protoOf(BufferedChannelIterator).t = function () {
|
|
4753
|
-
var result = this.
|
|
4764
|
+
var result = this.x16_1;
|
|
4754
4765
|
// Inline function 'kotlin.check' call
|
|
4755
4766
|
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
4756
4767
|
var message = '`hasNext()` has not been invoked';
|
|
4757
4768
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4758
4769
|
}
|
|
4759
|
-
this.
|
|
4770
|
+
this.x16_1 = get_NO_RECEIVE_RESULT();
|
|
4760
4771
|
if (result === get_CHANNEL_CLOSED())
|
|
4761
|
-
throw recoverStackTrace_0(_get_receiveException__foorc1(this.
|
|
4772
|
+
throw recoverStackTrace_0(_get_receiveException__foorc1(this.z16_1));
|
|
4762
4773
|
return (result == null ? true : !(result == null)) ? result : THROW_CCE();
|
|
4763
4774
|
};
|
|
4764
|
-
protoOf(BufferedChannelIterator).
|
|
4765
|
-
var cont = ensureNotNull(this.
|
|
4766
|
-
this.
|
|
4767
|
-
this.
|
|
4768
|
-
var tmp0_safe_receiver = this.
|
|
4769
|
-
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.
|
|
4770
|
-
};
|
|
4771
|
-
protoOf(BufferedChannelIterator).
|
|
4772
|
-
var cont = ensureNotNull(this.
|
|
4773
|
-
this.
|
|
4774
|
-
this.
|
|
4775
|
-
var cause = this.
|
|
4775
|
+
protoOf(BufferedChannelIterator).b18 = function (element) {
|
|
4776
|
+
var cont = ensureNotNull(this.y16_1);
|
|
4777
|
+
this.y16_1 = null;
|
|
4778
|
+
this.x16_1 = element;
|
|
4779
|
+
var tmp0_safe_receiver = this.z16_1.y15_1;
|
|
4780
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.z16_1, tmp0_safe_receiver, element));
|
|
4781
|
+
};
|
|
4782
|
+
protoOf(BufferedChannelIterator).p18 = function () {
|
|
4783
|
+
var cont = ensureNotNull(this.y16_1);
|
|
4784
|
+
this.y16_1 = null;
|
|
4785
|
+
this.x16_1 = get_CHANNEL_CLOSED();
|
|
4786
|
+
var cause = this.z16_1.a17();
|
|
4776
4787
|
if (cause == null) {
|
|
4777
4788
|
// Inline function 'kotlin.coroutines.resume' call
|
|
4778
4789
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -4787,11 +4798,11 @@
|
|
|
4787
4798
|
}
|
|
4788
4799
|
};
|
|
4789
4800
|
function _get_receiveException__foorc1($this) {
|
|
4790
|
-
var tmp0_elvis_lhs = $this.
|
|
4801
|
+
var tmp0_elvis_lhs = $this.a17();
|
|
4791
4802
|
return tmp0_elvis_lhs == null ? new ClosedReceiveChannelException('Channel was closed') : tmp0_elvis_lhs;
|
|
4792
4803
|
}
|
|
4793
4804
|
function invokeCloseHandler($this) {
|
|
4794
|
-
var tmp0 = $this.
|
|
4805
|
+
var tmp0 = $this.i16_1;
|
|
4795
4806
|
var tmp$ret$1;
|
|
4796
4807
|
$l$block: {
|
|
4797
4808
|
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
@@ -4820,10 +4831,10 @@
|
|
|
4820
4831
|
var closeHandler = tmp_0;
|
|
4821
4832
|
if (typeof closeHandler !== 'function')
|
|
4822
4833
|
THROW_CCE();
|
|
4823
|
-
closeHandler($this.
|
|
4834
|
+
closeHandler($this.a17());
|
|
4824
4835
|
}
|
|
4825
4836
|
function markClosed($this) {
|
|
4826
|
-
var tmp0 = $this.
|
|
4837
|
+
var tmp0 = $this.z15_1;
|
|
4827
4838
|
var tmp$ret$4;
|
|
4828
4839
|
$l$block: {
|
|
4829
4840
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -4858,7 +4869,7 @@
|
|
|
4858
4869
|
return tmp$ret$4;
|
|
4859
4870
|
}
|
|
4860
4871
|
function markCancelled($this) {
|
|
4861
|
-
var tmp0 = $this.
|
|
4872
|
+
var tmp0 = $this.z15_1;
|
|
4862
4873
|
var tmp$ret$2;
|
|
4863
4874
|
$l$block: {
|
|
4864
4875
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -4877,7 +4888,7 @@
|
|
|
4877
4888
|
return tmp$ret$2;
|
|
4878
4889
|
}
|
|
4879
4890
|
function markCancellationStarted($this) {
|
|
4880
|
-
var tmp0 = $this.
|
|
4891
|
+
var tmp0 = $this.z15_1;
|
|
4881
4892
|
var tmp$ret$3;
|
|
4882
4893
|
$l$block: {
|
|
4883
4894
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -4903,14 +4914,14 @@
|
|
|
4903
4914
|
return tmp$ret$3;
|
|
4904
4915
|
}
|
|
4905
4916
|
function completeCloseOrCancel($this) {
|
|
4906
|
-
$this.
|
|
4917
|
+
$this.q18();
|
|
4907
4918
|
}
|
|
4908
4919
|
function completeClose($this, sendersCur) {
|
|
4909
4920
|
var lastSegment = closeLinkedList($this);
|
|
4910
|
-
if ($this.
|
|
4921
|
+
if ($this.s18()) {
|
|
4911
4922
|
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
4912
4923
|
if (!equalsLong(lastBufferedCellGlobalIndex, new Long(-1, -1))) {
|
|
4913
|
-
$this.
|
|
4924
|
+
$this.r18(lastBufferedCellGlobalIndex);
|
|
4914
4925
|
}
|
|
4915
4926
|
}
|
|
4916
4927
|
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
@@ -4921,13 +4932,13 @@
|
|
|
4921
4932
|
removeUnprocessedElements($this, lastSegment);
|
|
4922
4933
|
}
|
|
4923
4934
|
function closeLinkedList($this) {
|
|
4924
|
-
var lastSegment = $this.
|
|
4935
|
+
var lastSegment = $this.f16_1.kotlinx$atomicfu$value;
|
|
4925
4936
|
// Inline function 'kotlin.let' call
|
|
4926
|
-
var it = $this.
|
|
4937
|
+
var it = $this.d16_1.kotlinx$atomicfu$value;
|
|
4927
4938
|
if (compare(it.qy_1, lastSegment.qy_1) > 0)
|
|
4928
4939
|
lastSegment = it;
|
|
4929
4940
|
// Inline function 'kotlin.let' call
|
|
4930
|
-
var it_0 = $this.
|
|
4941
|
+
var it_0 = $this.e16_1.kotlinx$atomicfu$value;
|
|
4931
4942
|
if (compare(it_0.qy_1, lastSegment.qy_1) > 0)
|
|
4932
4943
|
lastSegment = it_0;
|
|
4933
4944
|
return close(lastSegment);
|
|
@@ -4946,13 +4957,13 @@
|
|
|
4946
4957
|
// Inline function 'kotlin.Long.plus' call
|
|
4947
4958
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
4948
4959
|
var globalIndex = add(this_0, fromInt(index));
|
|
4949
|
-
if (compare(globalIndex, $this.
|
|
4960
|
+
if (compare(globalIndex, $this.y17()) < 0)
|
|
4950
4961
|
return new Long(-1, -1);
|
|
4951
4962
|
cell_update: while (true) {
|
|
4952
|
-
var state = segment.
|
|
4963
|
+
var state = segment.t15(index);
|
|
4953
4964
|
if (state === null || state === get_IN_BUFFER()) {
|
|
4954
|
-
if (segment.
|
|
4955
|
-
segment.
|
|
4965
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
4966
|
+
segment.l16();
|
|
4956
4967
|
break cell_update;
|
|
4957
4968
|
}
|
|
4958
4969
|
} else if (state === get_BUFFERED())
|
|
@@ -4962,7 +4973,7 @@
|
|
|
4962
4973
|
}
|
|
4963
4974
|
}
|
|
4964
4975
|
while (0 <= inductionVariable);
|
|
4965
|
-
var tmp0_elvis_lhs = segment.
|
|
4976
|
+
var tmp0_elvis_lhs = segment.u16();
|
|
4966
4977
|
var tmp;
|
|
4967
4978
|
if (tmp0_elvis_lhs == null) {
|
|
4968
4979
|
return new Long(-1, -1);
|
|
@@ -4973,7 +4984,7 @@
|
|
|
4973
4984
|
}
|
|
4974
4985
|
}
|
|
4975
4986
|
function removeUnprocessedElements($this, lastSegment) {
|
|
4976
|
-
var onUndeliveredElement = $this.
|
|
4987
|
+
var onUndeliveredElement = $this.y15_1;
|
|
4977
4988
|
var undeliveredElementException = null;
|
|
4978
4989
|
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
4979
4990
|
var segment = lastSegment;
|
|
@@ -4990,26 +5001,26 @@
|
|
|
4990
5001
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
4991
5002
|
var globalIndex = add(this_0, fromInt(index));
|
|
4992
5003
|
update_cell: while (true) {
|
|
4993
|
-
var state = segment.
|
|
5004
|
+
var state = segment.t15(index);
|
|
4994
5005
|
if (state === get_DONE_RCV())
|
|
4995
5006
|
break process_segments;
|
|
4996
5007
|
else {
|
|
4997
5008
|
if (state === get_BUFFERED()) {
|
|
4998
|
-
if (compare(globalIndex, $this.
|
|
5009
|
+
if (compare(globalIndex, $this.y17()) < 0)
|
|
4999
5010
|
break process_segments;
|
|
5000
|
-
if (segment.
|
|
5011
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
5001
5012
|
if (!(onUndeliveredElement == null)) {
|
|
5002
|
-
var element = segment.
|
|
5013
|
+
var element = segment.q15(index);
|
|
5003
5014
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
5004
5015
|
}
|
|
5005
|
-
segment.
|
|
5006
|
-
segment.
|
|
5016
|
+
segment.s15(index);
|
|
5017
|
+
segment.l16();
|
|
5007
5018
|
break update_cell;
|
|
5008
5019
|
}
|
|
5009
5020
|
} else {
|
|
5010
5021
|
if (state === get_IN_BUFFER() || state === null) {
|
|
5011
|
-
if (segment.
|
|
5012
|
-
segment.
|
|
5022
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
5023
|
+
segment.l16();
|
|
5013
5024
|
break update_cell;
|
|
5014
5025
|
}
|
|
5015
5026
|
} else {
|
|
@@ -5020,23 +5031,23 @@
|
|
|
5020
5031
|
tmp = state instanceof WaiterEB;
|
|
5021
5032
|
}
|
|
5022
5033
|
if (tmp) {
|
|
5023
|
-
if (compare(globalIndex, $this.
|
|
5034
|
+
if (compare(globalIndex, $this.y17()) < 0)
|
|
5024
5035
|
break process_segments;
|
|
5025
5036
|
var tmp_0;
|
|
5026
5037
|
if (state instanceof WaiterEB) {
|
|
5027
|
-
tmp_0 = state.
|
|
5038
|
+
tmp_0 = state.a18_1;
|
|
5028
5039
|
} else {
|
|
5029
5040
|
tmp_0 = (!(state == null) ? isInterface(state, Waiter) : false) ? state : THROW_CCE();
|
|
5030
5041
|
}
|
|
5031
5042
|
var sender = tmp_0;
|
|
5032
|
-
if (segment.
|
|
5043
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
5033
5044
|
if (!(onUndeliveredElement == null)) {
|
|
5034
|
-
var element_0 = segment.
|
|
5045
|
+
var element_0 = segment.q15(index);
|
|
5035
5046
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
5036
5047
|
}
|
|
5037
5048
|
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
5038
|
-
segment.
|
|
5039
|
-
segment.
|
|
5049
|
+
segment.s15(index);
|
|
5050
|
+
segment.l16();
|
|
5040
5051
|
break update_cell;
|
|
5041
5052
|
}
|
|
5042
5053
|
} else {
|
|
@@ -5056,7 +5067,7 @@
|
|
|
5056
5067
|
}
|
|
5057
5068
|
}
|
|
5058
5069
|
while (0 <= inductionVariable);
|
|
5059
|
-
var tmp0_elvis_lhs = segment.
|
|
5070
|
+
var tmp0_elvis_lhs = segment.u16();
|
|
5060
5071
|
var tmp_1;
|
|
5061
5072
|
if (tmp0_elvis_lhs == null) {
|
|
5062
5073
|
break process_segments;
|
|
@@ -5117,24 +5128,24 @@
|
|
|
5117
5128
|
if (compare(tmp$ret$1, sendersCounter) < 0)
|
|
5118
5129
|
break process_segments;
|
|
5119
5130
|
cell_update: while (true) {
|
|
5120
|
-
var state = segment.
|
|
5131
|
+
var state = segment.t15(index);
|
|
5121
5132
|
if (state === null || state === get_IN_BUFFER()) {
|
|
5122
|
-
if (segment.
|
|
5123
|
-
segment.
|
|
5133
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
5134
|
+
segment.l16();
|
|
5124
5135
|
break cell_update;
|
|
5125
5136
|
}
|
|
5126
5137
|
} else {
|
|
5127
5138
|
if (state instanceof WaiterEB) {
|
|
5128
|
-
if (segment.
|
|
5129
|
-
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.
|
|
5130
|
-
segment.
|
|
5139
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
5140
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.a18_1);
|
|
5141
|
+
segment.j16(index, true);
|
|
5131
5142
|
break cell_update;
|
|
5132
5143
|
}
|
|
5133
5144
|
} else {
|
|
5134
5145
|
if (!(state == null) ? isInterface(state, Waiter) : false) {
|
|
5135
|
-
if (segment.
|
|
5146
|
+
if (segment.v15(index, state, get_CHANNEL_CLOSED())) {
|
|
5136
5147
|
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
5137
|
-
segment.
|
|
5148
|
+
segment.j16(index, true);
|
|
5138
5149
|
break cell_update;
|
|
5139
5150
|
}
|
|
5140
5151
|
} else {
|
|
@@ -5145,7 +5156,7 @@
|
|
|
5145
5156
|
}
|
|
5146
5157
|
}
|
|
5147
5158
|
while (0 <= inductionVariable);
|
|
5148
|
-
segment = segment.
|
|
5159
|
+
segment = segment.u16();
|
|
5149
5160
|
}
|
|
5150
5161
|
var tmp0_0 = suspendedReceivers;
|
|
5151
5162
|
$l$block: {
|
|
@@ -5183,7 +5194,7 @@
|
|
|
5183
5194
|
function resumeWaiterOnClosedChannel($this, _this__u8e3s4, receiver) {
|
|
5184
5195
|
if (_this__u8e3s4 instanceof SendBroadcast) {
|
|
5185
5196
|
// Inline function 'kotlin.coroutines.resume' call
|
|
5186
|
-
var this_0 = _this__u8e3s4.
|
|
5197
|
+
var this_0 = _this__u8e3s4.g18_1;
|
|
5187
5198
|
// Inline function 'kotlin.Companion.success' call
|
|
5188
5199
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
5189
5200
|
this_0.f9(tmp$ret$0);
|
|
@@ -5191,20 +5202,20 @@
|
|
|
5191
5202
|
if (isInterface(_this__u8e3s4, CancellableContinuation)) {
|
|
5192
5203
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
5193
5204
|
// Inline function 'kotlin.Companion.failure' call
|
|
5194
|
-
var exception = receiver ? _get_receiveException__foorc1($this) : $this.
|
|
5205
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.x17();
|
|
5195
5206
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
5196
5207
|
_this__u8e3s4.f9(tmp$ret$2);
|
|
5197
5208
|
} else {
|
|
5198
5209
|
if (_this__u8e3s4 instanceof ReceiveCatching) {
|
|
5199
|
-
var tmp0 = _this__u8e3s4.
|
|
5210
|
+
var tmp0 = _this__u8e3s4.e18_1;
|
|
5200
5211
|
// Inline function 'kotlin.coroutines.resume' call
|
|
5201
5212
|
// Inline function 'kotlin.Companion.success' call
|
|
5202
|
-
var value = new ChannelResult(Companion_getInstance().
|
|
5213
|
+
var value = new ChannelResult(Companion_getInstance().t18($this.a17()));
|
|
5203
5214
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(value);
|
|
5204
5215
|
tmp0.f9(tmp$ret$4);
|
|
5205
5216
|
} else {
|
|
5206
5217
|
if (_this__u8e3s4 instanceof BufferedChannelIterator) {
|
|
5207
|
-
_this__u8e3s4.
|
|
5218
|
+
_this__u8e3s4.p18();
|
|
5208
5219
|
} else {
|
|
5209
5220
|
if (isInterface(_this__u8e3s4, SelectInstance))
|
|
5210
5221
|
_this__u8e3s4.m13($this, get_CHANNEL_CLOSED());
|
|
@@ -5239,7 +5250,7 @@
|
|
|
5239
5250
|
|
|
5240
5251
|
var tmp$ret$1 = bitwiseAnd(sendersAndCloseStatusCur, new Long(-1, 268435455));
|
|
5241
5252
|
completeClose($this, tmp$ret$1);
|
|
5242
|
-
tmp = isClosedForReceive ? !$this.
|
|
5253
|
+
tmp = isClosedForReceive ? !$this.u18() : true;
|
|
5243
5254
|
break;
|
|
5244
5255
|
case 3:
|
|
5245
5256
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -5258,9 +5269,9 @@
|
|
|
5258
5269
|
}
|
|
5259
5270
|
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
5260
5271
|
while (true) {
|
|
5261
|
-
var state = segment.
|
|
5272
|
+
var state = segment.t15(index);
|
|
5262
5273
|
if (state === null || state === get_IN_BUFFER()) {
|
|
5263
|
-
if (segment.
|
|
5274
|
+
if (segment.v15(index, state, get_POISONED())) {
|
|
5264
5275
|
expandBuffer($this);
|
|
5265
5276
|
return false;
|
|
5266
5277
|
}
|
|
@@ -5279,11 +5290,11 @@
|
|
|
5279
5290
|
else if (state === get_RESUMING_BY_RCV())
|
|
5280
5291
|
return false;
|
|
5281
5292
|
else
|
|
5282
|
-
return equalsLong(globalIndex, $this.
|
|
5293
|
+
return equalsLong(globalIndex, $this.y17());
|
|
5283
5294
|
}
|
|
5284
5295
|
}
|
|
5285
5296
|
function findSegmentSend($this, id, startFrom) {
|
|
5286
|
-
var tmp0 = $this.
|
|
5297
|
+
var tmp0 = $this.d16_1;
|
|
5287
5298
|
var tmp6 = createSegmentFunction();
|
|
5288
5299
|
var tmp$ret$2;
|
|
5289
5300
|
$l$block_2: {
|
|
@@ -5304,18 +5315,18 @@
|
|
|
5304
5315
|
tmp$ret$0 = true;
|
|
5305
5316
|
break $l$block_1;
|
|
5306
5317
|
}
|
|
5307
|
-
if (!tmp2.
|
|
5318
|
+
if (!tmp2.n16()) {
|
|
5308
5319
|
tmp$ret$0 = false;
|
|
5309
5320
|
break $l$block_1;
|
|
5310
5321
|
}
|
|
5311
5322
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
5312
|
-
if (cur.
|
|
5323
|
+
if (cur.o16()) {
|
|
5313
5324
|
cur.d4();
|
|
5314
5325
|
}
|
|
5315
5326
|
tmp$ret$0 = true;
|
|
5316
5327
|
break $l$block_1;
|
|
5317
5328
|
}
|
|
5318
|
-
if (tmp2.
|
|
5329
|
+
if (tmp2.o16()) {
|
|
5319
5330
|
tmp2.d4();
|
|
5320
5331
|
}
|
|
5321
5332
|
}
|
|
@@ -5338,8 +5349,8 @@
|
|
|
5338
5349
|
// Inline function 'kotlin.Long.times' call
|
|
5339
5350
|
var other = get_SEGMENT_SIZE();
|
|
5340
5351
|
var tmp$ret$3 = multiply(tmp0_0, fromInt(other));
|
|
5341
|
-
if (compare(tmp$ret$3, $this.
|
|
5342
|
-
startFrom.
|
|
5352
|
+
if (compare(tmp$ret$3, $this.y17()) < 0) {
|
|
5353
|
+
startFrom.v16();
|
|
5343
5354
|
}
|
|
5344
5355
|
tmp_0 = null;
|
|
5345
5356
|
} else {
|
|
@@ -5355,8 +5366,8 @@
|
|
|
5355
5366
|
// Inline function 'kotlin.Long.times' call
|
|
5356
5367
|
var other_1 = get_SEGMENT_SIZE();
|
|
5357
5368
|
var tmp$ret$5 = multiply(tmp0_2, fromInt(other_1));
|
|
5358
|
-
if (compare(tmp$ret$5, $this.
|
|
5359
|
-
segment.
|
|
5369
|
+
if (compare(tmp$ret$5, $this.y17()) < 0) {
|
|
5370
|
+
segment.v16();
|
|
5360
5371
|
}
|
|
5361
5372
|
tmp_1 = null;
|
|
5362
5373
|
} else {
|
|
@@ -5368,7 +5379,7 @@
|
|
|
5368
5379
|
return tmp_0;
|
|
5369
5380
|
}
|
|
5370
5381
|
function findSegmentReceive($this, id, startFrom) {
|
|
5371
|
-
var tmp0 = $this.
|
|
5382
|
+
var tmp0 = $this.e16_1;
|
|
5372
5383
|
var tmp6 = createSegmentFunction();
|
|
5373
5384
|
var tmp$ret$2;
|
|
5374
5385
|
$l$block_2: {
|
|
@@ -5389,18 +5400,18 @@
|
|
|
5389
5400
|
tmp$ret$0 = true;
|
|
5390
5401
|
break $l$block_1;
|
|
5391
5402
|
}
|
|
5392
|
-
if (!tmp2.
|
|
5403
|
+
if (!tmp2.n16()) {
|
|
5393
5404
|
tmp$ret$0 = false;
|
|
5394
5405
|
break $l$block_1;
|
|
5395
5406
|
}
|
|
5396
5407
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
5397
|
-
if (cur.
|
|
5408
|
+
if (cur.o16()) {
|
|
5398
5409
|
cur.d4();
|
|
5399
5410
|
}
|
|
5400
5411
|
tmp$ret$0 = true;
|
|
5401
5412
|
break $l$block_1;
|
|
5402
5413
|
}
|
|
5403
|
-
if (tmp2.
|
|
5414
|
+
if (tmp2.o16()) {
|
|
5404
5415
|
tmp2.d4();
|
|
5405
5416
|
}
|
|
5406
5417
|
}
|
|
@@ -5423,8 +5434,8 @@
|
|
|
5423
5434
|
// Inline function 'kotlin.Long.times' call
|
|
5424
5435
|
var other = get_SEGMENT_SIZE();
|
|
5425
5436
|
var tmp$ret$3 = multiply(tmp0_0, fromInt(other));
|
|
5426
|
-
if (compare(tmp$ret$3, $this.
|
|
5427
|
-
startFrom.
|
|
5437
|
+
if (compare(tmp$ret$3, $this.b17()) < 0) {
|
|
5438
|
+
startFrom.v16();
|
|
5428
5439
|
}
|
|
5429
5440
|
tmp_0 = null;
|
|
5430
5441
|
} else {
|
|
@@ -5440,7 +5451,7 @@
|
|
|
5440
5451
|
tmp_1 = false;
|
|
5441
5452
|
}
|
|
5442
5453
|
if (tmp_1) {
|
|
5443
|
-
var tmp0_2 = $this.
|
|
5454
|
+
var tmp0_2 = $this.f16_1;
|
|
5444
5455
|
$l$block_5: {
|
|
5445
5456
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
5446
5457
|
while (true) {
|
|
@@ -5448,16 +5459,16 @@
|
|
|
5448
5459
|
if (compare(cur_0.qy_1, segment.qy_1) >= 0) {
|
|
5449
5460
|
break $l$block_5;
|
|
5450
5461
|
}
|
|
5451
|
-
if (!segment.
|
|
5462
|
+
if (!segment.n16()) {
|
|
5452
5463
|
break $l$block_5;
|
|
5453
5464
|
}
|
|
5454
5465
|
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
5455
|
-
if (cur_0.
|
|
5466
|
+
if (cur_0.o16()) {
|
|
5456
5467
|
cur_0.d4();
|
|
5457
5468
|
}
|
|
5458
5469
|
break $l$block_5;
|
|
5459
5470
|
}
|
|
5460
|
-
if (segment.
|
|
5471
|
+
if (segment.o16()) {
|
|
5461
5472
|
segment.d4();
|
|
5462
5473
|
}
|
|
5463
5474
|
}
|
|
@@ -5474,8 +5485,8 @@
|
|
|
5474
5485
|
// Inline function 'kotlin.Long.times' call
|
|
5475
5486
|
var other_2 = get_SEGMENT_SIZE();
|
|
5476
5487
|
var tmp$ret$8 = multiply(tmp0_4, fromInt(other_2));
|
|
5477
|
-
if (compare(tmp$ret$8, $this.
|
|
5478
|
-
segment.
|
|
5488
|
+
if (compare(tmp$ret$8, $this.b17()) < 0) {
|
|
5489
|
+
segment.v16();
|
|
5479
5490
|
}
|
|
5480
5491
|
tmp_2 = null;
|
|
5481
5492
|
} else {
|
|
@@ -5487,7 +5498,7 @@
|
|
|
5487
5498
|
return tmp_0;
|
|
5488
5499
|
}
|
|
5489
5500
|
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
5490
|
-
var tmp0 = $this.
|
|
5501
|
+
var tmp0 = $this.f16_1;
|
|
5491
5502
|
var tmp6 = createSegmentFunction();
|
|
5492
5503
|
var tmp$ret$2;
|
|
5493
5504
|
$l$block_2: {
|
|
@@ -5508,18 +5519,18 @@
|
|
|
5508
5519
|
tmp$ret$0 = true;
|
|
5509
5520
|
break $l$block_1;
|
|
5510
5521
|
}
|
|
5511
|
-
if (!tmp2.
|
|
5522
|
+
if (!tmp2.n16()) {
|
|
5512
5523
|
tmp$ret$0 = false;
|
|
5513
5524
|
break $l$block_1;
|
|
5514
5525
|
}
|
|
5515
5526
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
5516
|
-
if (cur.
|
|
5527
|
+
if (cur.o16()) {
|
|
5517
5528
|
cur.d4();
|
|
5518
5529
|
}
|
|
5519
5530
|
tmp$ret$0 = true;
|
|
5520
5531
|
break $l$block_1;
|
|
5521
5532
|
}
|
|
5522
|
-
if (tmp2.
|
|
5533
|
+
if (tmp2.o16()) {
|
|
5523
5534
|
tmp2.d4();
|
|
5524
5535
|
}
|
|
5525
5536
|
}
|
|
@@ -5551,7 +5562,7 @@
|
|
|
5551
5562
|
// Inline function 'kotlin.Long.times' call
|
|
5552
5563
|
var other = get_SEGMENT_SIZE();
|
|
5553
5564
|
var tmp$ret$4 = multiply(tmp0_0, fromInt(other));
|
|
5554
|
-
if ($this.
|
|
5565
|
+
if ($this.b16_1.atomicfu$compareAndSet(tmp_2, tmp$ret$4)) {
|
|
5555
5566
|
var tmp0_1 = segment.qy_1;
|
|
5556
5567
|
// Inline function 'kotlin.Long.times' call
|
|
5557
5568
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -5572,7 +5583,7 @@
|
|
|
5572
5583
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
5573
5584
|
var segment = startFrom;
|
|
5574
5585
|
$l$loop: while (compare(segment.qy_1, id) < 0) {
|
|
5575
|
-
var tmp0_elvis_lhs = segment.
|
|
5586
|
+
var tmp0_elvis_lhs = segment.r16();
|
|
5576
5587
|
var tmp;
|
|
5577
5588
|
if (tmp0_elvis_lhs == null) {
|
|
5578
5589
|
break $l$loop;
|
|
@@ -5582,8 +5593,8 @@
|
|
|
5582
5593
|
segment = tmp;
|
|
5583
5594
|
}
|
|
5584
5595
|
while (true) {
|
|
5585
|
-
$l$loop_0: while (segment.
|
|
5586
|
-
var tmp1_elvis_lhs = segment.
|
|
5596
|
+
$l$loop_0: while (segment.m16()) {
|
|
5597
|
+
var tmp1_elvis_lhs = segment.r16();
|
|
5587
5598
|
var tmp_0;
|
|
5588
5599
|
if (tmp1_elvis_lhs == null) {
|
|
5589
5600
|
break $l$loop_0;
|
|
@@ -5592,7 +5603,7 @@
|
|
|
5592
5603
|
}
|
|
5593
5604
|
segment = tmp_0;
|
|
5594
5605
|
}
|
|
5595
|
-
var tmp0 = $this.
|
|
5606
|
+
var tmp0 = $this.f16_1;
|
|
5596
5607
|
var tmp2 = segment;
|
|
5597
5608
|
var tmp$ret$0;
|
|
5598
5609
|
$l$block_1: {
|
|
@@ -5603,18 +5614,18 @@
|
|
|
5603
5614
|
tmp$ret$0 = true;
|
|
5604
5615
|
break $l$block_1;
|
|
5605
5616
|
}
|
|
5606
|
-
if (!tmp2.
|
|
5617
|
+
if (!tmp2.n16()) {
|
|
5607
5618
|
tmp$ret$0 = false;
|
|
5608
5619
|
break $l$block_1;
|
|
5609
5620
|
}
|
|
5610
5621
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
5611
|
-
if (cur.
|
|
5622
|
+
if (cur.o16()) {
|
|
5612
5623
|
cur.d4();
|
|
5613
5624
|
}
|
|
5614
5625
|
tmp$ret$0 = true;
|
|
5615
5626
|
break $l$block_1;
|
|
5616
5627
|
}
|
|
5617
|
-
if (tmp2.
|
|
5628
|
+
if (tmp2.o16()) {
|
|
5618
5629
|
tmp2.d4();
|
|
5619
5630
|
}
|
|
5620
5631
|
}
|
|
@@ -5625,7 +5636,7 @@
|
|
|
5625
5636
|
}
|
|
5626
5637
|
}
|
|
5627
5638
|
function updateSendersCounterIfLower($this, value) {
|
|
5628
|
-
var this_0 = $this.
|
|
5639
|
+
var this_0 = $this.z15_1;
|
|
5629
5640
|
while (true) {
|
|
5630
5641
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
5631
5642
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -5635,18 +5646,18 @@
|
|
|
5635
5646
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
5636
5647
|
var tmp$ret$1 = convertToInt(shiftRight(cur, 60));
|
|
5637
5648
|
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$1);
|
|
5638
|
-
if ($this.
|
|
5649
|
+
if ($this.z15_1.atomicfu$compareAndSet(cur, update))
|
|
5639
5650
|
return Unit_instance;
|
|
5640
5651
|
}
|
|
5641
5652
|
return Unit_instance;
|
|
5642
5653
|
}
|
|
5643
5654
|
function updateReceiversCounterIfLower($this, value) {
|
|
5644
|
-
var this_0 = $this.
|
|
5655
|
+
var this_0 = $this.a16_1;
|
|
5645
5656
|
while (true) {
|
|
5646
5657
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
5647
5658
|
if (compare(cur, value) >= 0)
|
|
5648
5659
|
return Unit_instance;
|
|
5649
|
-
if ($this.
|
|
5660
|
+
if ($this.a16_1.atomicfu$compareAndSet(cur, value))
|
|
5650
5661
|
return Unit_instance;
|
|
5651
5662
|
}
|
|
5652
5663
|
return Unit_instance;
|
|
@@ -5655,7 +5666,7 @@
|
|
|
5655
5666
|
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
5656
5667
|
}
|
|
5657
5668
|
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
5658
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
5669
|
+
callUndeliveredElement(ensureNotNull($this.y15_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
5659
5670
|
}
|
|
5660
5671
|
function bindCancellationFun($this, _this__u8e3s4, element) {
|
|
5661
5672
|
return BufferedChannel$bindCancellationFun$lambda(_this__u8e3s4, element);
|
|
@@ -5664,13 +5675,13 @@
|
|
|
5664
5675
|
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
5665
5676
|
}
|
|
5666
5677
|
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
5667
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
5678
|
+
callUndeliveredElement(ensureNotNull($this.y15_1), element, context);
|
|
5668
5679
|
}
|
|
5669
5680
|
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda($element, this$0, $select) {
|
|
5670
5681
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
5671
5682
|
var tmp;
|
|
5672
5683
|
if (!($element === get_CHANNEL_CLOSED())) {
|
|
5673
|
-
callUndeliveredElement(this$0.
|
|
5684
|
+
callUndeliveredElement(this$0.y15_1, ($element == null ? true : !($element == null)) ? $element : THROW_CCE(), $select.a9());
|
|
5674
5685
|
tmp = Unit_instance;
|
|
5675
5686
|
}
|
|
5676
5687
|
return Unit_instance;
|
|
@@ -5684,7 +5695,7 @@
|
|
|
5684
5695
|
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
5685
5696
|
var l = function (_this__u8e3s4, p0_0, p1) {
|
|
5686
5697
|
var tmp0 = p0;
|
|
5687
|
-
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.
|
|
5698
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.w18_1, p1);
|
|
5688
5699
|
return Unit_instance;
|
|
5689
5700
|
};
|
|
5690
5701
|
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
@@ -5707,8 +5718,8 @@
|
|
|
5707
5718
|
}
|
|
5708
5719
|
function $sendCOROUTINE$(_this__u8e3s4, element, resultContinuation) {
|
|
5709
5720
|
CoroutineImpl.call(this, resultContinuation);
|
|
5710
|
-
this.
|
|
5711
|
-
this.
|
|
5721
|
+
this.f19_1 = _this__u8e3s4;
|
|
5722
|
+
this.g19_1 = element;
|
|
5712
5723
|
}
|
|
5713
5724
|
protoOf($sendCOROUTINE$).c9 = function () {
|
|
5714
5725
|
var suspendResult = this.w8_1;
|
|
@@ -5719,18 +5730,18 @@
|
|
|
5719
5730
|
case 0:
|
|
5720
5731
|
this.v8_1 = 11;
|
|
5721
5732
|
var tmp_0 = this;
|
|
5722
|
-
tmp_0.
|
|
5733
|
+
tmp_0.r19_1 = this.f19_1;
|
|
5723
5734
|
var tmp_1 = this;
|
|
5724
|
-
tmp_1.
|
|
5735
|
+
tmp_1.q19_1 = this.g19_1;
|
|
5725
5736
|
var tmp_2 = this;
|
|
5726
|
-
tmp_2.
|
|
5737
|
+
tmp_2.p19_1 = null;
|
|
5727
5738
|
this.u8_1 = 1;
|
|
5728
5739
|
continue $sm;
|
|
5729
5740
|
case 1:
|
|
5730
|
-
this.
|
|
5731
|
-
this.
|
|
5732
|
-
this.
|
|
5733
|
-
this.
|
|
5741
|
+
this.j19_1 = this.r19_1;
|
|
5742
|
+
this.m19_1 = this.q19_1;
|
|
5743
|
+
this.k19_1 = this.p19_1;
|
|
5744
|
+
this.i19_1 = this.j19_1.d16_1.kotlinx$atomicfu$value;
|
|
5734
5745
|
this.u8_1 = 2;
|
|
5735
5746
|
continue $sm;
|
|
5736
5747
|
case 2:
|
|
@@ -5739,23 +5750,23 @@
|
|
|
5739
5750
|
continue $sm;
|
|
5740
5751
|
}
|
|
5741
5752
|
|
|
5742
|
-
var sendersAndCloseStatusCur = this.
|
|
5753
|
+
var sendersAndCloseStatusCur = this.j19_1.z15_1.atomicfu$getAndIncrement$long();
|
|
5743
5754
|
var tmp_3 = this;
|
|
5744
|
-
tmp_3.
|
|
5745
|
-
this.
|
|
5746
|
-
var tmp0 = this.
|
|
5755
|
+
tmp_3.l19_1 = bitwiseAnd(sendersAndCloseStatusCur, new Long(-1, 268435455));
|
|
5756
|
+
this.n19_1 = _get_isClosedForSend0__kxgf9m(this.j19_1, sendersAndCloseStatusCur);
|
|
5757
|
+
var tmp0 = this.l19_1;
|
|
5747
5758
|
var other = get_SEGMENT_SIZE();
|
|
5748
5759
|
var id = divide(tmp0, fromInt(other));
|
|
5749
5760
|
var tmp_4 = this;
|
|
5750
|
-
var tmp0_0 = this.
|
|
5761
|
+
var tmp0_0 = this.l19_1;
|
|
5751
5762
|
var other_0 = get_SEGMENT_SIZE();
|
|
5752
|
-
tmp_4.
|
|
5753
|
-
if (!equalsLong(this.
|
|
5754
|
-
var tmp0_elvis_lhs = findSegmentSend(this.
|
|
5763
|
+
tmp_4.h19_1 = convertToInt(modulo(tmp0_0, fromInt(other_0)));
|
|
5764
|
+
if (!equalsLong(this.i19_1.qy_1, id)) {
|
|
5765
|
+
var tmp0_elvis_lhs = findSegmentSend(this.j19_1, id, this.i19_1);
|
|
5755
5766
|
if (tmp0_elvis_lhs == null) {
|
|
5756
|
-
if (this.
|
|
5767
|
+
if (this.n19_1) {
|
|
5757
5768
|
this.u8_1 = 10;
|
|
5758
|
-
suspendResult = onClosedSend(this.
|
|
5769
|
+
suspendResult = onClosedSend(this.f19_1, this.g19_1, this);
|
|
5759
5770
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5760
5771
|
return suspendResult;
|
|
5761
5772
|
}
|
|
@@ -5766,7 +5777,7 @@
|
|
|
5766
5777
|
continue $sm;
|
|
5767
5778
|
}
|
|
5768
5779
|
} else {
|
|
5769
|
-
this.
|
|
5780
|
+
this.o19_1 = tmp0_elvis_lhs;
|
|
5770
5781
|
this.u8_1 = 3;
|
|
5771
5782
|
continue $sm;
|
|
5772
5783
|
}
|
|
@@ -5776,13 +5787,13 @@
|
|
|
5776
5787
|
}
|
|
5777
5788
|
|
|
5778
5789
|
case 3:
|
|
5779
|
-
this.
|
|
5790
|
+
this.i19_1 = this.o19_1;
|
|
5780
5791
|
this.u8_1 = 4;
|
|
5781
5792
|
continue $sm;
|
|
5782
5793
|
case 4:
|
|
5783
|
-
var tmp1_subject = updateCellSend(this.
|
|
5794
|
+
var tmp1_subject = updateCellSend(this.j19_1, this.i19_1, this.h19_1, this.m19_1, this.l19_1, this.k19_1, this.n19_1);
|
|
5784
5795
|
if (tmp1_subject === 0) {
|
|
5785
|
-
this.
|
|
5796
|
+
this.i19_1.v16();
|
|
5786
5797
|
this.u8_1 = 13;
|
|
5787
5798
|
continue $sm;
|
|
5788
5799
|
} else {
|
|
@@ -5791,10 +5802,10 @@
|
|
|
5791
5802
|
continue $sm;
|
|
5792
5803
|
} else {
|
|
5793
5804
|
if (tmp1_subject === 2) {
|
|
5794
|
-
if (this.
|
|
5795
|
-
this.
|
|
5805
|
+
if (this.n19_1) {
|
|
5806
|
+
this.i19_1.l16();
|
|
5796
5807
|
this.u8_1 = 9;
|
|
5797
|
-
suspendResult = onClosedSend(this.
|
|
5808
|
+
suspendResult = onClosedSend(this.f19_1, this.g19_1, this);
|
|
5798
5809
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5799
5810
|
return suspendResult;
|
|
5800
5811
|
}
|
|
@@ -5805,28 +5816,28 @@
|
|
|
5805
5816
|
}
|
|
5806
5817
|
} else {
|
|
5807
5818
|
if (tmp1_subject === 4) {
|
|
5808
|
-
if (compare(this.
|
|
5809
|
-
this.
|
|
5819
|
+
if (compare(this.l19_1, this.j19_1.y17()) < 0) {
|
|
5820
|
+
this.i19_1.v16();
|
|
5810
5821
|
}
|
|
5811
5822
|
this.u8_1 = 7;
|
|
5812
|
-
suspendResult = onClosedSend(this.
|
|
5823
|
+
suspendResult = onClosedSend(this.f19_1, this.g19_1, this);
|
|
5813
5824
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5814
5825
|
return suspendResult;
|
|
5815
5826
|
}
|
|
5816
5827
|
continue $sm;
|
|
5817
5828
|
} else {
|
|
5818
5829
|
if (tmp1_subject === 5) {
|
|
5819
|
-
this.
|
|
5830
|
+
this.i19_1.v16();
|
|
5820
5831
|
this.u8_1 = 2;
|
|
5821
5832
|
continue $sm;
|
|
5822
5833
|
} else {
|
|
5823
5834
|
if (tmp1_subject === 3) {
|
|
5824
|
-
var tmp0_1 = this.
|
|
5825
|
-
var tmp2 = this.
|
|
5826
|
-
var tmp4 = this.
|
|
5827
|
-
var s = this.
|
|
5835
|
+
var tmp0_1 = this.i19_1;
|
|
5836
|
+
var tmp2 = this.h19_1;
|
|
5837
|
+
var tmp4 = this.m19_1;
|
|
5838
|
+
var s = this.l19_1;
|
|
5828
5839
|
this.u8_1 = 6;
|
|
5829
|
-
suspendResult = sendOnNoWaiterSuspend(this.
|
|
5840
|
+
suspendResult = sendOnNoWaiterSuspend(this.f19_1, tmp0_1, tmp2, tmp4, s, this);
|
|
5830
5841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5831
5842
|
return suspendResult;
|
|
5832
5843
|
}
|
|
@@ -5851,16 +5862,16 @@
|
|
|
5851
5862
|
this.u8_1 = 13;
|
|
5852
5863
|
continue $sm;
|
|
5853
5864
|
case 8:
|
|
5854
|
-
var tmp_6 = this.
|
|
5865
|
+
var tmp_6 = this.k19_1;
|
|
5855
5866
|
var tmp2_safe_receiver = (!(tmp_6 == null) ? isInterface(tmp_6, Waiter) : false) ? tmp_6 : null;
|
|
5856
5867
|
if (tmp2_safe_receiver == null)
|
|
5857
5868
|
null;
|
|
5858
5869
|
else {
|
|
5859
|
-
prepareSenderForSuspension(this.
|
|
5870
|
+
prepareSenderForSuspension(this.j19_1, tmp2_safe_receiver, this.i19_1, this.h19_1);
|
|
5860
5871
|
}
|
|
5861
5872
|
|
|
5862
|
-
this.
|
|
5863
|
-
this.
|
|
5873
|
+
this.i19_1;
|
|
5874
|
+
this.h19_1;
|
|
5864
5875
|
this.u8_1 = 13;
|
|
5865
5876
|
continue $sm;
|
|
5866
5877
|
case 9:
|
|
@@ -5895,20 +5906,20 @@
|
|
|
5895
5906
|
};
|
|
5896
5907
|
function BufferedChannel(capacity, onUndeliveredElement) {
|
|
5897
5908
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
5898
|
-
this.
|
|
5899
|
-
this.
|
|
5909
|
+
this.x15_1 = capacity;
|
|
5910
|
+
this.y15_1 = onUndeliveredElement;
|
|
5900
5911
|
// Inline function 'kotlin.require' call
|
|
5901
|
-
if (!(this.
|
|
5902
|
-
var message = 'Invalid channel capacity: ' + this.
|
|
5912
|
+
if (!(this.x15_1 >= 0)) {
|
|
5913
|
+
var message = 'Invalid channel capacity: ' + this.x15_1 + ', should be >=0';
|
|
5903
5914
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
5904
5915
|
}
|
|
5905
|
-
this.
|
|
5906
|
-
this.
|
|
5907
|
-
this.
|
|
5908
|
-
this.
|
|
5916
|
+
this.z15_1 = atomic$long$1(new Long(0, 0));
|
|
5917
|
+
this.a16_1 = atomic$long$1(new Long(0, 0));
|
|
5918
|
+
this.b16_1 = atomic$long$1(initialBufferEnd(this.x15_1));
|
|
5919
|
+
this.c16_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
5909
5920
|
var firstSegment = new ChannelSegment(new Long(0, 0), null, this, 3);
|
|
5910
|
-
this.
|
|
5911
|
-
this.
|
|
5921
|
+
this.d16_1 = atomic$ref$1(firstSegment);
|
|
5922
|
+
this.e16_1 = atomic$ref$1(firstSegment);
|
|
5912
5923
|
var tmp = this;
|
|
5913
5924
|
var tmp_0;
|
|
5914
5925
|
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
@@ -5917,43 +5928,43 @@
|
|
|
5917
5928
|
} else {
|
|
5918
5929
|
tmp_0 = firstSegment;
|
|
5919
5930
|
}
|
|
5920
|
-
tmp.
|
|
5931
|
+
tmp.f16_1 = atomic$ref$1(tmp_0);
|
|
5921
5932
|
var tmp_2 = this;
|
|
5922
5933
|
var tmp_3;
|
|
5923
|
-
if (this.
|
|
5934
|
+
if (this.y15_1 == null) {
|
|
5924
5935
|
tmp_3 = null;
|
|
5925
5936
|
} else {
|
|
5926
5937
|
// Inline function 'kotlin.let' call
|
|
5927
5938
|
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
5928
5939
|
}
|
|
5929
|
-
tmp_2.
|
|
5930
|
-
this.
|
|
5931
|
-
this.
|
|
5940
|
+
tmp_2.g16_1 = tmp_3;
|
|
5941
|
+
this.h16_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
5942
|
+
this.i16_1 = atomic$ref$1(null);
|
|
5932
5943
|
}
|
|
5933
|
-
protoOf(BufferedChannel).
|
|
5944
|
+
protoOf(BufferedChannel).b17 = function () {
|
|
5934
5945
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
5935
|
-
var this_0 = this.
|
|
5946
|
+
var this_0 = this.z15_1.kotlinx$atomicfu$value;
|
|
5936
5947
|
return bitwiseAnd(this_0, new Long(-1, 268435455));
|
|
5937
5948
|
};
|
|
5938
|
-
protoOf(BufferedChannel).
|
|
5939
|
-
return this.
|
|
5949
|
+
protoOf(BufferedChannel).y17 = function () {
|
|
5950
|
+
return this.a16_1.kotlinx$atomicfu$value;
|
|
5940
5951
|
};
|
|
5941
|
-
protoOf(BufferedChannel).
|
|
5952
|
+
protoOf(BufferedChannel).s19 = function (element, $completion) {
|
|
5942
5953
|
var tmp = new $sendCOROUTINE$(this, element, $completion);
|
|
5943
5954
|
tmp.w8_1 = Unit_instance;
|
|
5944
5955
|
tmp.x8_1 = null;
|
|
5945
5956
|
return tmp.c9();
|
|
5946
5957
|
};
|
|
5947
|
-
protoOf(BufferedChannel).
|
|
5948
|
-
if (shouldSendSuspend0(this, this.
|
|
5949
|
-
return Companion_getInstance().
|
|
5958
|
+
protoOf(BufferedChannel).t19 = function (element) {
|
|
5959
|
+
if (shouldSendSuspend0(this, this.z15_1.kotlinx$atomicfu$value))
|
|
5960
|
+
return Companion_getInstance().u19();
|
|
5950
5961
|
var tmp4 = get_INTERRUPTED_SEND();
|
|
5951
5962
|
var tmp$ret$4;
|
|
5952
5963
|
$l$block_4: {
|
|
5953
5964
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
5954
|
-
var segment = this.
|
|
5965
|
+
var segment = this.d16_1.kotlinx$atomicfu$value;
|
|
5955
5966
|
$l$loop_0: while (true) {
|
|
5956
|
-
var sendersAndCloseStatusCur = this.
|
|
5967
|
+
var sendersAndCloseStatusCur = this.z15_1.atomicfu$getAndIncrement$long();
|
|
5957
5968
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
5958
5969
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new Long(-1, 268435455));
|
|
5959
5970
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -5970,7 +5981,7 @@
|
|
|
5970
5981
|
if (tmp0_elvis_lhs == null) {
|
|
5971
5982
|
var tmp_0;
|
|
5972
5983
|
if (closed) {
|
|
5973
|
-
tmp$ret$4 = Companion_getInstance().
|
|
5984
|
+
tmp$ret$4 = Companion_getInstance().t18(this.x17());
|
|
5974
5985
|
break $l$block_4;
|
|
5975
5986
|
} else {
|
|
5976
5987
|
continue $l$loop_0;
|
|
@@ -5982,16 +5993,16 @@
|
|
|
5982
5993
|
}
|
|
5983
5994
|
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
5984
5995
|
case 0:
|
|
5985
|
-
segment.
|
|
5986
|
-
tmp$ret$4 = Companion_getInstance().
|
|
5996
|
+
segment.v16();
|
|
5997
|
+
tmp$ret$4 = Companion_getInstance().d18(Unit_instance);
|
|
5987
5998
|
break $l$block_4;
|
|
5988
5999
|
case 1:
|
|
5989
|
-
tmp$ret$4 = Companion_getInstance().
|
|
6000
|
+
tmp$ret$4 = Companion_getInstance().d18(Unit_instance);
|
|
5990
6001
|
break $l$block_4;
|
|
5991
6002
|
case 2:
|
|
5992
6003
|
if (closed) {
|
|
5993
|
-
segment.
|
|
5994
|
-
tmp$ret$4 = Companion_getInstance().
|
|
6004
|
+
segment.l16();
|
|
6005
|
+
tmp$ret$4 = Companion_getInstance().t18(this.x17());
|
|
5995
6006
|
break $l$block_4;
|
|
5996
6007
|
}
|
|
5997
6008
|
|
|
@@ -6002,18 +6013,18 @@
|
|
|
6002
6013
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
6003
6014
|
}
|
|
6004
6015
|
|
|
6005
|
-
segment.
|
|
6006
|
-
tmp$ret$4 = Companion_getInstance().
|
|
6016
|
+
segment.l16();
|
|
6017
|
+
tmp$ret$4 = Companion_getInstance().u19();
|
|
6007
6018
|
break $l$block_4;
|
|
6008
6019
|
case 4:
|
|
6009
|
-
if (compare(s, this.
|
|
6010
|
-
segment.
|
|
6020
|
+
if (compare(s, this.y17()) < 0) {
|
|
6021
|
+
segment.v16();
|
|
6011
6022
|
}
|
|
6012
6023
|
|
|
6013
|
-
tmp$ret$4 = Companion_getInstance().
|
|
6024
|
+
tmp$ret$4 = Companion_getInstance().t18(this.x17());
|
|
6014
6025
|
break $l$block_4;
|
|
6015
6026
|
case 5:
|
|
6016
|
-
segment.
|
|
6027
|
+
segment.v16();
|
|
6017
6028
|
continue $l$loop_0;
|
|
6018
6029
|
case 3:
|
|
6019
6030
|
var message = 'unexpected';
|
|
@@ -6023,13 +6034,13 @@
|
|
|
6023
6034
|
}
|
|
6024
6035
|
return tmp$ret$4;
|
|
6025
6036
|
};
|
|
6026
|
-
protoOf(BufferedChannel).
|
|
6037
|
+
protoOf(BufferedChannel).v19 = function (element) {
|
|
6027
6038
|
var tmp$ret$3;
|
|
6028
6039
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
6029
6040
|
var waiter = get_BUFFERED();
|
|
6030
|
-
var segment = this.
|
|
6041
|
+
var segment = this.d16_1.kotlinx$atomicfu$value;
|
|
6031
6042
|
$l$loop_0: while (true) {
|
|
6032
|
-
var sendersAndCloseStatusCur = this.
|
|
6043
|
+
var sendersAndCloseStatusCur = this.z15_1.atomicfu$getAndIncrement$long();
|
|
6033
6044
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
6034
6045
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new Long(-1, 268435455));
|
|
6035
6046
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -6046,7 +6057,7 @@
|
|
|
6046
6057
|
if (tmp0_elvis_lhs == null) {
|
|
6047
6058
|
var tmp_0;
|
|
6048
6059
|
if (closed) {
|
|
6049
|
-
return Companion_getInstance().
|
|
6060
|
+
return Companion_getInstance().t18(this.x17());
|
|
6050
6061
|
} else {
|
|
6051
6062
|
continue $l$loop_0;
|
|
6052
6063
|
}
|
|
@@ -6057,14 +6068,14 @@
|
|
|
6057
6068
|
}
|
|
6058
6069
|
switch (updateCellSend(this, segment, i, element, s, waiter, closed)) {
|
|
6059
6070
|
case 0:
|
|
6060
|
-
segment.
|
|
6061
|
-
return Companion_getInstance().
|
|
6071
|
+
segment.v16();
|
|
6072
|
+
return Companion_getInstance().d18(Unit_instance);
|
|
6062
6073
|
case 1:
|
|
6063
|
-
return Companion_getInstance().
|
|
6074
|
+
return Companion_getInstance().d18(Unit_instance);
|
|
6064
6075
|
case 2:
|
|
6065
6076
|
if (closed) {
|
|
6066
|
-
segment.
|
|
6067
|
-
return Companion_getInstance().
|
|
6077
|
+
segment.l16();
|
|
6078
|
+
return Companion_getInstance().t18(this.x17());
|
|
6068
6079
|
}
|
|
6069
6080
|
|
|
6070
6081
|
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter) : false) ? waiter : null;
|
|
@@ -6082,16 +6093,16 @@
|
|
|
6082
6093
|
|
|
6083
6094
|
var this_0 = multiply(tmp0, fromInt(other_1));
|
|
6084
6095
|
var tmp$ret$5 = add(this_0, fromInt(i));
|
|
6085
|
-
this.
|
|
6086
|
-
return Companion_getInstance().
|
|
6096
|
+
this.r18(tmp$ret$5);
|
|
6097
|
+
return Companion_getInstance().d18(Unit_instance);
|
|
6087
6098
|
case 4:
|
|
6088
|
-
if (compare(s, this.
|
|
6089
|
-
segment.
|
|
6099
|
+
if (compare(s, this.y17()) < 0) {
|
|
6100
|
+
segment.v16();
|
|
6090
6101
|
}
|
|
6091
6102
|
|
|
6092
|
-
return Companion_getInstance().
|
|
6103
|
+
return Companion_getInstance().t18(this.x17());
|
|
6093
6104
|
case 5:
|
|
6094
|
-
segment.
|
|
6105
|
+
segment.v16();
|
|
6095
6106
|
continue $l$loop_0;
|
|
6096
6107
|
case 3:
|
|
6097
6108
|
var message = 'unexpected';
|
|
@@ -6100,17 +6111,17 @@
|
|
|
6100
6111
|
}
|
|
6101
6112
|
return tmp$ret$3;
|
|
6102
6113
|
};
|
|
6103
|
-
protoOf(BufferedChannel).
|
|
6114
|
+
protoOf(BufferedChannel).f18 = function () {
|
|
6104
6115
|
};
|
|
6105
|
-
protoOf(BufferedChannel).
|
|
6116
|
+
protoOf(BufferedChannel).z17 = function () {
|
|
6106
6117
|
};
|
|
6107
|
-
protoOf(BufferedChannel).
|
|
6118
|
+
protoOf(BufferedChannel).r18 = function (globalCellIndex) {
|
|
6108
6119
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
6109
|
-
var segment = this.
|
|
6120
|
+
var segment = this.e16_1.kotlinx$atomicfu$value;
|
|
6110
6121
|
$l$loop_0: while (true) {
|
|
6111
|
-
var r = this.
|
|
6122
|
+
var r = this.a16_1.kotlinx$atomicfu$value;
|
|
6112
6123
|
// Inline function 'kotlin.Long.plus' call
|
|
6113
|
-
var other = this.
|
|
6124
|
+
var other = this.x15_1;
|
|
6114
6125
|
var tmp0 = add(r, fromInt(other));
|
|
6115
6126
|
// Inline function 'kotlin.math.max' call
|
|
6116
6127
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
@@ -6119,7 +6130,7 @@
|
|
|
6119
6130
|
return Unit_instance;
|
|
6120
6131
|
// Inline function 'kotlin.Long.plus' call
|
|
6121
6132
|
var tmp$ret$3 = add(r, fromInt(1));
|
|
6122
|
-
if (!this.
|
|
6133
|
+
if (!this.a16_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
6123
6134
|
continue $l$loop_0;
|
|
6124
6135
|
// Inline function 'kotlin.Long.div' call
|
|
6125
6136
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -6140,12 +6151,12 @@
|
|
|
6140
6151
|
}
|
|
6141
6152
|
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
6142
6153
|
if (updCellResult === get_FAILED()) {
|
|
6143
|
-
if (compare(r, this.
|
|
6144
|
-
segment.
|
|
6154
|
+
if (compare(r, this.b17()) < 0) {
|
|
6155
|
+
segment.v16();
|
|
6145
6156
|
}
|
|
6146
6157
|
} else {
|
|
6147
|
-
segment.
|
|
6148
|
-
var tmp1_safe_receiver = this.
|
|
6158
|
+
segment.v16();
|
|
6159
|
+
var tmp1_safe_receiver = this.y15_1;
|
|
6149
6160
|
var tmp_0;
|
|
6150
6161
|
if (tmp1_safe_receiver == null) {
|
|
6151
6162
|
tmp_0 = null;
|
|
@@ -6162,7 +6173,7 @@
|
|
|
6162
6173
|
}
|
|
6163
6174
|
}
|
|
6164
6175
|
};
|
|
6165
|
-
protoOf(BufferedChannel).
|
|
6176
|
+
protoOf(BufferedChannel).k16 = function (globalIndex) {
|
|
6166
6177
|
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
6167
6178
|
return Unit_instance;
|
|
6168
6179
|
while (compare(_get_bufferEndCounter__2d4hee(this), globalIndex) <= 0) {
|
|
@@ -6176,13 +6187,13 @@
|
|
|
6176
6187
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6177
6188
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
6178
6189
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
6179
|
-
var this_0 = this.
|
|
6190
|
+
var this_0 = this.c16_1.kotlinx$atomicfu$value;
|
|
6180
6191
|
var ebCompleted = bitwiseAnd(this_0, new Long(-1, 1073741823));
|
|
6181
6192
|
if (equalsLong(b, ebCompleted) && equalsLong(b, _get_bufferEndCounter__2d4hee(this)))
|
|
6182
6193
|
return Unit_instance;
|
|
6183
6194
|
}
|
|
6184
6195
|
while (inductionVariable < times);
|
|
6185
|
-
var tmp0 = this.
|
|
6196
|
+
var tmp0 = this.c16_1;
|
|
6186
6197
|
$l$block: {
|
|
6187
6198
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
6188
6199
|
while (true) {
|
|
@@ -6197,13 +6208,13 @@
|
|
|
6197
6208
|
}
|
|
6198
6209
|
while (true) {
|
|
6199
6210
|
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
6200
|
-
var ebCompletedAndBit = this.
|
|
6211
|
+
var ebCompletedAndBit = this.c16_1.kotlinx$atomicfu$value;
|
|
6201
6212
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
6202
6213
|
var ebCompleted_0 = bitwiseAnd(ebCompletedAndBit, new Long(-1, 1073741823));
|
|
6203
6214
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
6204
6215
|
var pauseExpandBuffers = !equalsLong(bitwiseAnd(ebCompletedAndBit, new Long(0, 1073741824)), new Long(0, 0));
|
|
6205
6216
|
if (equalsLong(b_0, ebCompleted_0) && equalsLong(b_0, _get_bufferEndCounter__2d4hee(this))) {
|
|
6206
|
-
var tmp0_0 = this.
|
|
6217
|
+
var tmp0_0 = this.c16_1;
|
|
6207
6218
|
$l$block_0: {
|
|
6208
6219
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
6209
6220
|
while (true) {
|
|
@@ -6219,37 +6230,37 @@
|
|
|
6219
6230
|
return Unit_instance;
|
|
6220
6231
|
}
|
|
6221
6232
|
if (!pauseExpandBuffers) {
|
|
6222
|
-
this.
|
|
6233
|
+
this.c16_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
6223
6234
|
}
|
|
6224
6235
|
}
|
|
6225
6236
|
};
|
|
6226
6237
|
protoOf(BufferedChannel).r = function () {
|
|
6227
6238
|
return new BufferedChannelIterator(this);
|
|
6228
6239
|
};
|
|
6229
|
-
protoOf(BufferedChannel).
|
|
6230
|
-
var tmp = this.
|
|
6240
|
+
protoOf(BufferedChannel).a17 = function () {
|
|
6241
|
+
var tmp = this.h16_1.kotlinx$atomicfu$value;
|
|
6231
6242
|
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
6232
6243
|
};
|
|
6233
|
-
protoOf(BufferedChannel).
|
|
6234
|
-
var tmp0_elvis_lhs = this.
|
|
6244
|
+
protoOf(BufferedChannel).x17 = function () {
|
|
6245
|
+
var tmp0_elvis_lhs = this.a17();
|
|
6235
6246
|
return tmp0_elvis_lhs == null ? new ClosedSendChannelException('Channel was closed') : tmp0_elvis_lhs;
|
|
6236
6247
|
};
|
|
6237
|
-
protoOf(BufferedChannel).
|
|
6248
|
+
protoOf(BufferedChannel).w19 = function () {
|
|
6238
6249
|
};
|
|
6239
|
-
protoOf(BufferedChannel).
|
|
6240
|
-
return this.
|
|
6250
|
+
protoOf(BufferedChannel).x19 = function (cause) {
|
|
6251
|
+
return this.y19(cause, false);
|
|
6241
6252
|
};
|
|
6242
6253
|
protoOf(BufferedChannel).st = function (cause) {
|
|
6243
|
-
this.
|
|
6254
|
+
this.a1a(cause);
|
|
6244
6255
|
};
|
|
6245
|
-
protoOf(BufferedChannel).
|
|
6246
|
-
return this.
|
|
6256
|
+
protoOf(BufferedChannel).a1a = function (cause) {
|
|
6257
|
+
return this.y19(cause == null ? CancellationException_init_$Create$('Channel was cancelled') : cause, true);
|
|
6247
6258
|
};
|
|
6248
|
-
protoOf(BufferedChannel).
|
|
6259
|
+
protoOf(BufferedChannel).y19 = function (cause, cancel) {
|
|
6249
6260
|
if (cancel) {
|
|
6250
6261
|
markCancellationStarted(this);
|
|
6251
6262
|
}
|
|
6252
|
-
var closedByThisOperation = this.
|
|
6263
|
+
var closedByThisOperation = this.h16_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
6253
6264
|
if (cancel) {
|
|
6254
6265
|
markCancelled(this);
|
|
6255
6266
|
} else {
|
|
@@ -6257,26 +6268,26 @@
|
|
|
6257
6268
|
}
|
|
6258
6269
|
completeCloseOrCancel(this);
|
|
6259
6270
|
// Inline function 'kotlin.also' call
|
|
6260
|
-
this.
|
|
6271
|
+
this.w19();
|
|
6261
6272
|
if (closedByThisOperation) {
|
|
6262
6273
|
invokeCloseHandler(this);
|
|
6263
6274
|
}
|
|
6264
6275
|
return closedByThisOperation;
|
|
6265
6276
|
};
|
|
6266
|
-
protoOf(BufferedChannel).
|
|
6277
|
+
protoOf(BufferedChannel).s18 = function () {
|
|
6267
6278
|
return false;
|
|
6268
6279
|
};
|
|
6269
|
-
protoOf(BufferedChannel).
|
|
6270
|
-
return _get_isClosedForSend0__kxgf9m(this, this.
|
|
6280
|
+
protoOf(BufferedChannel).q18 = function () {
|
|
6281
|
+
return _get_isClosedForSend0__kxgf9m(this, this.z15_1.kotlinx$atomicfu$value);
|
|
6271
6282
|
};
|
|
6272
|
-
protoOf(BufferedChannel).
|
|
6273
|
-
return _get_isClosedForReceive0__f7qknl(this, this.
|
|
6283
|
+
protoOf(BufferedChannel).c17 = function () {
|
|
6284
|
+
return _get_isClosedForReceive0__f7qknl(this, this.z15_1.kotlinx$atomicfu$value);
|
|
6274
6285
|
};
|
|
6275
|
-
protoOf(BufferedChannel).
|
|
6286
|
+
protoOf(BufferedChannel).u18 = function () {
|
|
6276
6287
|
$l$loop: while (true) {
|
|
6277
|
-
var segment = this.
|
|
6278
|
-
var r = this.
|
|
6279
|
-
var s = this.
|
|
6288
|
+
var segment = this.e16_1.kotlinx$atomicfu$value;
|
|
6289
|
+
var r = this.y17();
|
|
6290
|
+
var s = this.b17();
|
|
6280
6291
|
if (compare(s, r) <= 0)
|
|
6281
6292
|
return false;
|
|
6282
6293
|
// Inline function 'kotlin.Long.div' call
|
|
@@ -6287,7 +6298,7 @@
|
|
|
6287
6298
|
var tmp;
|
|
6288
6299
|
if (tmp0_elvis_lhs == null) {
|
|
6289
6300
|
var tmp_0;
|
|
6290
|
-
if (compare(this.
|
|
6301
|
+
if (compare(this.e16_1.kotlinx$atomicfu$value.qy_1, id) < 0) {
|
|
6291
6302
|
return false;
|
|
6292
6303
|
} else {
|
|
6293
6304
|
continue $l$loop;
|
|
@@ -6297,7 +6308,7 @@
|
|
|
6297
6308
|
}
|
|
6298
6309
|
segment = tmp;
|
|
6299
6310
|
}
|
|
6300
|
-
segment.
|
|
6311
|
+
segment.v16();
|
|
6301
6312
|
// Inline function 'kotlin.Long.rem' call
|
|
6302
6313
|
var other_0 = get_SEGMENT_SIZE();
|
|
6303
6314
|
var tmp$ret$1 = modulo(r, fromInt(other_0));
|
|
@@ -6306,23 +6317,23 @@
|
|
|
6306
6317
|
return true;
|
|
6307
6318
|
// Inline function 'kotlin.Long.plus' call
|
|
6308
6319
|
var tmp$ret$2 = add(r, fromInt(1));
|
|
6309
|
-
this.
|
|
6320
|
+
this.a16_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
6310
6321
|
}
|
|
6311
6322
|
};
|
|
6312
6323
|
protoOf(BufferedChannel).toString = function () {
|
|
6313
6324
|
var sb = StringBuilder_init_$Create$();
|
|
6314
6325
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
6315
|
-
var this_0 = this.
|
|
6326
|
+
var this_0 = this.z15_1.kotlinx$atomicfu$value;
|
|
6316
6327
|
var tmp0_subject = convertToInt(shiftRight(this_0, 60));
|
|
6317
6328
|
if (tmp0_subject === 2) {
|
|
6318
6329
|
sb.f8('closed,');
|
|
6319
6330
|
} else if (tmp0_subject === 3) {
|
|
6320
6331
|
sb.f8('cancelled,');
|
|
6321
6332
|
}
|
|
6322
|
-
sb.f8('capacity=' + this.
|
|
6333
|
+
sb.f8('capacity=' + this.x15_1 + ',');
|
|
6323
6334
|
sb.f8('data=[');
|
|
6324
6335
|
// Inline function 'kotlin.collections.filter' call
|
|
6325
|
-
var tmp0 = listOf([this.
|
|
6336
|
+
var tmp0 = listOf([this.e16_1.kotlinx$atomicfu$value, this.d16_1.kotlinx$atomicfu$value, this.f16_1.kotlinx$atomicfu$value]);
|
|
6326
6337
|
// Inline function 'kotlin.collections.filterTo' call
|
|
6327
6338
|
var destination = ArrayList_init_$Create$_0();
|
|
6328
6339
|
var _iterator__ex2g4s = tmp0.r();
|
|
@@ -6356,8 +6367,8 @@
|
|
|
6356
6367
|
tmp$ret$4 = minElem;
|
|
6357
6368
|
}
|
|
6358
6369
|
var firstSegment = tmp$ret$4;
|
|
6359
|
-
var r = this.
|
|
6360
|
-
var s = this.
|
|
6370
|
+
var r = this.y17();
|
|
6371
|
+
var s = this.b17();
|
|
6361
6372
|
var segment = firstSegment;
|
|
6362
6373
|
append_elements: while (true) {
|
|
6363
6374
|
var inductionVariable = 0;
|
|
@@ -6374,8 +6385,8 @@
|
|
|
6374
6385
|
var globalCellIndex = add(this_1, fromInt(i));
|
|
6375
6386
|
if (compare(globalCellIndex, s) >= 0 && compare(globalCellIndex, r) >= 0)
|
|
6376
6387
|
break append_elements;
|
|
6377
|
-
var cellState = segment.
|
|
6378
|
-
var element_0 = segment.
|
|
6388
|
+
var cellState = segment.t15(i);
|
|
6389
|
+
var element_0 = segment.q15(i);
|
|
6379
6390
|
var tmp;
|
|
6380
6391
|
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation) : false) {
|
|
6381
6392
|
tmp = compare(globalCellIndex, r) < 0 && compare(globalCellIndex, s) >= 0 ? 'receive' : compare(globalCellIndex, s) < 0 && compare(globalCellIndex, r) >= 0 ? 'send' : 'cont';
|
|
@@ -6414,7 +6425,7 @@
|
|
|
6414
6425
|
}
|
|
6415
6426
|
}
|
|
6416
6427
|
while (inductionVariable < last_0);
|
|
6417
|
-
var tmp2_elvis_lhs = segment.
|
|
6428
|
+
var tmp2_elvis_lhs = segment.r16();
|
|
6418
6429
|
var tmp_0;
|
|
6419
6430
|
if (tmp2_elvis_lhs == null) {
|
|
6420
6431
|
break append_elements;
|
|
@@ -6430,10 +6441,10 @@
|
|
|
6430
6441
|
return sb.toString();
|
|
6431
6442
|
};
|
|
6432
6443
|
function WaiterEB(waiter) {
|
|
6433
|
-
this.
|
|
6444
|
+
this.a18_1 = waiter;
|
|
6434
6445
|
}
|
|
6435
6446
|
protoOf(WaiterEB).toString = function () {
|
|
6436
|
-
return 'WaiterEB(' + toString(this.
|
|
6447
|
+
return 'WaiterEB(' + toString(this.a18_1) + ')';
|
|
6437
6448
|
};
|
|
6438
6449
|
function initialBufferEnd(capacity) {
|
|
6439
6450
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
@@ -6476,7 +6487,7 @@
|
|
|
6476
6487
|
}
|
|
6477
6488
|
function createSegment(id, prev) {
|
|
6478
6489
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
6479
|
-
return new ChannelSegment(id, prev, prev.
|
|
6490
|
+
return new ChannelSegment(id, prev, prev.n15(), 0);
|
|
6480
6491
|
}
|
|
6481
6492
|
function createSegment$ref() {
|
|
6482
6493
|
var l = function (p0, p1) {
|
|
@@ -6512,13 +6523,13 @@
|
|
|
6512
6523
|
}
|
|
6513
6524
|
function Factory() {
|
|
6514
6525
|
Factory_instance = this;
|
|
6515
|
-
this.
|
|
6516
|
-
this.
|
|
6517
|
-
this.
|
|
6518
|
-
this.
|
|
6519
|
-
this.
|
|
6520
|
-
this.
|
|
6521
|
-
this.
|
|
6526
|
+
this.c1a_1 = 2147483647;
|
|
6527
|
+
this.d1a_1 = 0;
|
|
6528
|
+
this.e1a_1 = -1;
|
|
6529
|
+
this.f1a_1 = -2;
|
|
6530
|
+
this.g1a_1 = -3;
|
|
6531
|
+
this.h1a_1 = 'kotlinx.coroutines.channels.defaultBuffer';
|
|
6532
|
+
this.i1a_1 = systemProp('kotlinx.coroutines.channels.defaultBuffer', 64, 1, 2147483646);
|
|
6522
6533
|
}
|
|
6523
6534
|
var Factory_instance;
|
|
6524
6535
|
function Factory_getInstance() {
|
|
@@ -6549,7 +6560,7 @@
|
|
|
6549
6560
|
tmp = new BufferedChannel(2147483647, onUndeliveredElement);
|
|
6550
6561
|
break;
|
|
6551
6562
|
case -2:
|
|
6552
|
-
tmp = onBufferOverflow.equals(BufferOverflow_SUSPEND_getInstance()) ? new BufferedChannel(Factory_getInstance().
|
|
6563
|
+
tmp = onBufferOverflow.equals(BufferOverflow_SUSPEND_getInstance()) ? new BufferedChannel(Factory_getInstance().i1a_1, onUndeliveredElement) : new ConflatedBufferedChannel(1, onBufferOverflow, onUndeliveredElement);
|
|
6553
6564
|
break;
|
|
6554
6565
|
default:
|
|
6555
6566
|
tmp = onBufferOverflow === BufferOverflow_SUSPEND_getInstance() ? new BufferedChannel(capacity, onUndeliveredElement) : new ConflatedBufferedChannel(capacity, onBufferOverflow, onUndeliveredElement);
|
|
@@ -6589,7 +6600,7 @@
|
|
|
6589
6600
|
function ChannelResult__exceptionOrNull_impl_16ei30($this) {
|
|
6590
6601
|
var tmp = _ChannelResult___get_holder__impl__pm9gzw($this);
|
|
6591
6602
|
var tmp0_safe_receiver = tmp instanceof Closed ? tmp : null;
|
|
6592
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6603
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1a_1;
|
|
6593
6604
|
}
|
|
6594
6605
|
function Failed() {
|
|
6595
6606
|
}
|
|
@@ -6598,12 +6609,12 @@
|
|
|
6598
6609
|
};
|
|
6599
6610
|
function Closed(cause) {
|
|
6600
6611
|
Failed.call(this);
|
|
6601
|
-
this.
|
|
6612
|
+
this.j1a_1 = cause;
|
|
6602
6613
|
}
|
|
6603
6614
|
protoOf(Closed).equals = function (other) {
|
|
6604
6615
|
var tmp;
|
|
6605
6616
|
if (other instanceof Closed) {
|
|
6606
|
-
tmp = equals(this.
|
|
6617
|
+
tmp = equals(this.j1a_1, other.j1a_1);
|
|
6607
6618
|
} else {
|
|
6608
6619
|
tmp = false;
|
|
6609
6620
|
}
|
|
@@ -6611,24 +6622,24 @@
|
|
|
6611
6622
|
};
|
|
6612
6623
|
protoOf(Closed).hashCode = function () {
|
|
6613
6624
|
// Inline function 'kotlin.hashCode' call
|
|
6614
|
-
var tmp0_safe_receiver = this.
|
|
6625
|
+
var tmp0_safe_receiver = this.j1a_1;
|
|
6615
6626
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
6616
6627
|
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
6617
6628
|
};
|
|
6618
6629
|
protoOf(Closed).toString = function () {
|
|
6619
|
-
return 'Closed(' + toString_0(this.
|
|
6630
|
+
return 'Closed(' + toString_0(this.j1a_1) + ')';
|
|
6620
6631
|
};
|
|
6621
6632
|
function Companion() {
|
|
6622
6633
|
Companion_instance_0 = this;
|
|
6623
|
-
this.
|
|
6634
|
+
this.c18_1 = new Failed();
|
|
6624
6635
|
}
|
|
6625
|
-
protoOf(Companion).
|
|
6636
|
+
protoOf(Companion).d18 = function (value) {
|
|
6626
6637
|
return _ChannelResult___init__impl__siwsuf(value);
|
|
6627
6638
|
};
|
|
6628
|
-
protoOf(Companion).
|
|
6629
|
-
return _ChannelResult___init__impl__siwsuf(this.
|
|
6639
|
+
protoOf(Companion).u19 = function () {
|
|
6640
|
+
return _ChannelResult___init__impl__siwsuf(this.c18_1);
|
|
6630
6641
|
};
|
|
6631
|
-
protoOf(Companion).
|
|
6642
|
+
protoOf(Companion).t18 = function (cause) {
|
|
6632
6643
|
return _ChannelResult___init__impl__siwsuf(new Closed(cause));
|
|
6633
6644
|
};
|
|
6634
6645
|
var Companion_instance_0;
|
|
@@ -6652,23 +6663,23 @@
|
|
|
6652
6663
|
function ChannelResult__equals_impl_f471ri($this, other) {
|
|
6653
6664
|
if (!(other instanceof ChannelResult))
|
|
6654
6665
|
return false;
|
|
6655
|
-
var tmp0_other_with_cast = other instanceof ChannelResult ? other.
|
|
6666
|
+
var tmp0_other_with_cast = other instanceof ChannelResult ? other.w18_1 : THROW_CCE();
|
|
6656
6667
|
if (!equals($this, tmp0_other_with_cast))
|
|
6657
6668
|
return false;
|
|
6658
6669
|
return true;
|
|
6659
6670
|
}
|
|
6660
6671
|
function ChannelResult(holder) {
|
|
6661
6672
|
Companion_getInstance();
|
|
6662
|
-
this.
|
|
6673
|
+
this.w18_1 = holder;
|
|
6663
6674
|
}
|
|
6664
6675
|
protoOf(ChannelResult).toString = function () {
|
|
6665
|
-
return ChannelResult__toString_impl_rrcqu7(this.
|
|
6676
|
+
return ChannelResult__toString_impl_rrcqu7(this.w18_1);
|
|
6666
6677
|
};
|
|
6667
6678
|
protoOf(ChannelResult).hashCode = function () {
|
|
6668
|
-
return ChannelResult__hashCode_impl_lilec2(this.
|
|
6679
|
+
return ChannelResult__hashCode_impl_lilec2(this.w18_1);
|
|
6669
6680
|
};
|
|
6670
6681
|
protoOf(ChannelResult).equals = function (other) {
|
|
6671
|
-
return ChannelResult__equals_impl_f471ri(this.
|
|
6682
|
+
return ChannelResult__equals_impl_f471ri(this.w18_1, other);
|
|
6672
6683
|
};
|
|
6673
6684
|
function ClosedReceiveChannelException(message) {
|
|
6674
6685
|
NoSuchElementException_init_$Init$(message, this);
|
|
@@ -6680,7 +6691,7 @@
|
|
|
6680
6691
|
}
|
|
6681
6692
|
function ChannelCoroutine(parentContext, _channel, initParentJob, active) {
|
|
6682
6693
|
AbstractCoroutine.call(this, parentContext, initParentJob, active);
|
|
6683
|
-
this.
|
|
6694
|
+
this.n1a_1 = _channel;
|
|
6684
6695
|
}
|
|
6685
6696
|
protoOf(ChannelCoroutine).st = function (cause) {
|
|
6686
6697
|
if (this.ft())
|
|
@@ -6694,25 +6705,25 @@
|
|
|
6694
6705
|
}
|
|
6695
6706
|
this.ut(tmp);
|
|
6696
6707
|
};
|
|
6697
|
-
protoOf(ChannelCoroutine).
|
|
6708
|
+
protoOf(ChannelCoroutine).b1a = function (cause, $super) {
|
|
6698
6709
|
return this.tt(cause, ($super == null ? true : $super instanceof ChannelCoroutine) ? $super : THROW_CCE());
|
|
6699
6710
|
};
|
|
6700
6711
|
protoOf(ChannelCoroutine).ut = function (cause) {
|
|
6701
6712
|
var exception = this.kt(cause);
|
|
6702
|
-
this.
|
|
6713
|
+
this.n1a_1.st(exception);
|
|
6703
6714
|
this.xt(exception);
|
|
6704
6715
|
};
|
|
6705
|
-
protoOf(ChannelCoroutine).
|
|
6706
|
-
return this.
|
|
6716
|
+
protoOf(ChannelCoroutine).s19 = function (element, $completion) {
|
|
6717
|
+
return this.n1a_1.s19(element, $completion);
|
|
6707
6718
|
};
|
|
6708
|
-
protoOf(ChannelCoroutine).
|
|
6709
|
-
return this.
|
|
6719
|
+
protoOf(ChannelCoroutine).t19 = function (element) {
|
|
6720
|
+
return this.n1a_1.t19(element);
|
|
6710
6721
|
};
|
|
6711
|
-
protoOf(ChannelCoroutine).
|
|
6712
|
-
return this.
|
|
6722
|
+
protoOf(ChannelCoroutine).x19 = function (cause) {
|
|
6723
|
+
return this.n1a_1.x19(cause);
|
|
6713
6724
|
};
|
|
6714
6725
|
protoOf(ChannelCoroutine).r = function () {
|
|
6715
|
-
return this.
|
|
6726
|
+
return this.n1a_1.r();
|
|
6716
6727
|
};
|
|
6717
6728
|
function cancelConsumed(_this__u8e3s4, cause) {
|
|
6718
6729
|
var tmp;
|
|
@@ -6726,14 +6737,14 @@
|
|
|
6726
6737
|
_this__u8e3s4.st(tmp);
|
|
6727
6738
|
}
|
|
6728
6739
|
function trySendImpl($this, element, isSendOp) {
|
|
6729
|
-
return $this.
|
|
6740
|
+
return $this.b1b_1 === BufferOverflow_DROP_LATEST_getInstance() ? trySendDropLatest($this, element, isSendOp) : $this.v19(element);
|
|
6730
6741
|
}
|
|
6731
6742
|
function trySendDropLatest($this, element, isSendOp) {
|
|
6732
|
-
var result = protoOf(BufferedChannel).
|
|
6743
|
+
var result = protoOf(BufferedChannel).t19.call($this, element);
|
|
6733
6744
|
if (_ChannelResult___get_isSuccess__impl__odq1z9(result) || _ChannelResult___get_isClosed__impl__mg7kuu(result))
|
|
6734
6745
|
return result;
|
|
6735
6746
|
if (isSendOp) {
|
|
6736
|
-
var tmp0_safe_receiver = $this.
|
|
6747
|
+
var tmp0_safe_receiver = $this.y15_1;
|
|
6737
6748
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
6738
6749
|
if (tmp1_safe_receiver == null)
|
|
6739
6750
|
null;
|
|
@@ -6742,47 +6753,47 @@
|
|
|
6742
6753
|
throw tmp1_safe_receiver;
|
|
6743
6754
|
}
|
|
6744
6755
|
}
|
|
6745
|
-
return Companion_getInstance().
|
|
6756
|
+
return Companion_getInstance().d18(Unit_instance);
|
|
6746
6757
|
}
|
|
6747
6758
|
function ConflatedBufferedChannel(capacity, onBufferOverflow, onUndeliveredElement) {
|
|
6748
6759
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
6749
6760
|
BufferedChannel.call(this, capacity, onUndeliveredElement);
|
|
6750
|
-
this.
|
|
6751
|
-
this.
|
|
6761
|
+
this.a1b_1 = capacity;
|
|
6762
|
+
this.b1b_1 = onBufferOverflow;
|
|
6752
6763
|
// Inline function 'kotlin.require' call
|
|
6753
|
-
if (!!(this.
|
|
6764
|
+
if (!!(this.b1b_1 === BufferOverflow_SUSPEND_getInstance())) {
|
|
6754
6765
|
var message = 'This implementation does not support suspension for senders, use ' + getKClass(BufferedChannel).va() + ' instead';
|
|
6755
6766
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6756
6767
|
}
|
|
6757
6768
|
// Inline function 'kotlin.require' call
|
|
6758
|
-
if (!(this.
|
|
6759
|
-
var message_0 = 'Buffered channel capacity must be at least 1, but ' + this.
|
|
6769
|
+
if (!(this.a1b_1 >= 1)) {
|
|
6770
|
+
var message_0 = 'Buffered channel capacity must be at least 1, but ' + this.a1b_1 + ' was specified';
|
|
6760
6771
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
6761
6772
|
}
|
|
6762
6773
|
}
|
|
6763
|
-
protoOf(ConflatedBufferedChannel).
|
|
6764
|
-
return this.
|
|
6774
|
+
protoOf(ConflatedBufferedChannel).s18 = function () {
|
|
6775
|
+
return this.b1b_1.equals(BufferOverflow_DROP_OLDEST_getInstance());
|
|
6765
6776
|
};
|
|
6766
|
-
protoOf(ConflatedBufferedChannel).
|
|
6777
|
+
protoOf(ConflatedBufferedChannel).s19 = function (element, $completion) {
|
|
6767
6778
|
// Inline function 'kotlinx.coroutines.channels.onClosed' call
|
|
6768
6779
|
var this_0 = trySendImpl(this, element, true);
|
|
6769
6780
|
var tmp = _ChannelResult___get_holder__impl__pm9gzw(this_0);
|
|
6770
6781
|
if (tmp instanceof Closed) {
|
|
6771
6782
|
ChannelResult__exceptionOrNull_impl_16ei30(this_0);
|
|
6772
|
-
var tmp0_safe_receiver = this.
|
|
6783
|
+
var tmp0_safe_receiver = this.y15_1;
|
|
6773
6784
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
6774
6785
|
if (tmp1_safe_receiver == null)
|
|
6775
6786
|
null;
|
|
6776
6787
|
else {
|
|
6777
6788
|
// Inline function 'kotlin.let' call
|
|
6778
|
-
addSuppressed(tmp1_safe_receiver, this.
|
|
6789
|
+
addSuppressed(tmp1_safe_receiver, this.x17());
|
|
6779
6790
|
throw tmp1_safe_receiver;
|
|
6780
6791
|
}
|
|
6781
|
-
throw this.
|
|
6792
|
+
throw this.x17();
|
|
6782
6793
|
}
|
|
6783
6794
|
return Unit_instance;
|
|
6784
6795
|
};
|
|
6785
|
-
protoOf(ConflatedBufferedChannel).
|
|
6796
|
+
protoOf(ConflatedBufferedChannel).t19 = function (element) {
|
|
6786
6797
|
return trySendImpl(this, element, false);
|
|
6787
6798
|
};
|
|
6788
6799
|
function produce(_this__u8e3s4, context, capacity, block) {
|
|
@@ -6813,19 +6824,19 @@
|
|
|
6813
6824
|
protoOf(ProducerCoroutine).ks = function () {
|
|
6814
6825
|
return protoOf(ChannelCoroutine).ks.call(this);
|
|
6815
6826
|
};
|
|
6816
|
-
protoOf(ProducerCoroutine).
|
|
6817
|
-
this.
|
|
6827
|
+
protoOf(ProducerCoroutine).g1b = function (value) {
|
|
6828
|
+
this.n1a_1.z19();
|
|
6818
6829
|
};
|
|
6819
6830
|
protoOf(ProducerCoroutine).ls = function (value) {
|
|
6820
|
-
return this.
|
|
6831
|
+
return this.g1b(value instanceof Unit ? value : THROW_CCE());
|
|
6821
6832
|
};
|
|
6822
6833
|
protoOf(ProducerCoroutine).ms = function (cause, handled) {
|
|
6823
|
-
var processed = this.
|
|
6834
|
+
var processed = this.n1a_1.x19(cause);
|
|
6824
6835
|
if (!processed && !handled) {
|
|
6825
6836
|
handleCoroutineException(this.is_1, cause);
|
|
6826
6837
|
}
|
|
6827
6838
|
};
|
|
6828
|
-
protoOf(ProducerCoroutine).
|
|
6839
|
+
protoOf(ProducerCoroutine).b1a = function (cause, $super) {
|
|
6829
6840
|
return this.tt(cause, ($super == null ? true : $super instanceof ProducerCoroutine) ? $super : THROW_CCE());
|
|
6830
6841
|
};
|
|
6831
6842
|
function asFlow(_this__u8e3s4) {
|
|
@@ -6834,8 +6845,8 @@
|
|
|
6834
6845
|
}
|
|
6835
6846
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
6836
6847
|
CoroutineImpl.call(this, resultContinuation);
|
|
6837
|
-
this.
|
|
6838
|
-
this.
|
|
6848
|
+
this.p1b_1 = _this__u8e3s4;
|
|
6849
|
+
this.q1b_1 = collector;
|
|
6839
6850
|
}
|
|
6840
6851
|
protoOf($collectCOROUTINE$).c9 = function () {
|
|
6841
6852
|
var suspendResult = this.w8_1;
|
|
@@ -6845,19 +6856,19 @@
|
|
|
6845
6856
|
switch (tmp) {
|
|
6846
6857
|
case 0:
|
|
6847
6858
|
this.v8_1 = 4;
|
|
6848
|
-
this.
|
|
6849
|
-
this.
|
|
6859
|
+
this.r1b_1 = this.q1b_1;
|
|
6860
|
+
this.s1b_1 = this.p1b_1.t1b_1.r();
|
|
6850
6861
|
this.u8_1 = 1;
|
|
6851
6862
|
continue $sm;
|
|
6852
6863
|
case 1:
|
|
6853
|
-
if (!this.
|
|
6864
|
+
if (!this.s1b_1.s()) {
|
|
6854
6865
|
this.u8_1 = 3;
|
|
6855
6866
|
continue $sm;
|
|
6856
6867
|
}
|
|
6857
6868
|
|
|
6858
|
-
var element = this.
|
|
6869
|
+
var element = this.s1b_1.t();
|
|
6859
6870
|
this.u8_1 = 2;
|
|
6860
|
-
suspendResult = this.
|
|
6871
|
+
suspendResult = this.r1b_1.u1b(element, this);
|
|
6861
6872
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6862
6873
|
return suspendResult;
|
|
6863
6874
|
}
|
|
@@ -6883,21 +6894,21 @@
|
|
|
6883
6894
|
while (true);
|
|
6884
6895
|
};
|
|
6885
6896
|
function asFlow$$inlined$unsafeFlow$1($this_asFlow) {
|
|
6886
|
-
this.
|
|
6897
|
+
this.t1b_1 = $this_asFlow;
|
|
6887
6898
|
}
|
|
6888
|
-
protoOf(asFlow$$inlined$unsafeFlow$1).
|
|
6899
|
+
protoOf(asFlow$$inlined$unsafeFlow$1).v1b = function (collector, $completion) {
|
|
6889
6900
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
6890
6901
|
tmp.w8_1 = Unit_instance;
|
|
6891
6902
|
tmp.x8_1 = null;
|
|
6892
6903
|
return tmp.c9();
|
|
6893
6904
|
};
|
|
6894
|
-
protoOf(asFlow$$inlined$unsafeFlow$1).
|
|
6895
|
-
return this.
|
|
6905
|
+
protoOf(asFlow$$inlined$unsafeFlow$1).w1b = function (collector, $completion) {
|
|
6906
|
+
return this.v1b(collector, $completion);
|
|
6896
6907
|
};
|
|
6897
6908
|
function FlowCollector() {
|
|
6898
6909
|
}
|
|
6899
6910
|
function checkOwnership(_this__u8e3s4, owner) {
|
|
6900
|
-
if (!(_this__u8e3s4.
|
|
6911
|
+
if (!(_this__u8e3s4.x1b_1 === owner))
|
|
6901
6912
|
throw _this__u8e3s4;
|
|
6902
6913
|
}
|
|
6903
6914
|
function firstOrNull(_this__u8e3s4, predicate, $completion) {
|
|
@@ -6908,8 +6919,8 @@
|
|
|
6908
6919
|
}
|
|
6909
6920
|
function $emitCOROUTINE$(_this__u8e3s4, value, resultContinuation) {
|
|
6910
6921
|
CoroutineImpl.call(this, resultContinuation);
|
|
6911
|
-
this.
|
|
6912
|
-
this.
|
|
6922
|
+
this.s1c_1 = _this__u8e3s4;
|
|
6923
|
+
this.t1c_1 = value;
|
|
6913
6924
|
}
|
|
6914
6925
|
protoOf($emitCOROUTINE$).c9 = function () {
|
|
6915
6926
|
var suspendResult = this.w8_1;
|
|
@@ -6919,9 +6930,9 @@
|
|
|
6919
6930
|
switch (tmp) {
|
|
6920
6931
|
case 0:
|
|
6921
6932
|
this.v8_1 = 4;
|
|
6922
|
-
this.
|
|
6933
|
+
this.v1c_1 = this.t1c_1;
|
|
6923
6934
|
this.u8_1 = 1;
|
|
6924
|
-
suspendResult = this.
|
|
6935
|
+
suspendResult = this.s1c_1.w1c_1(this.v1c_1, this);
|
|
6925
6936
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6926
6937
|
return suspendResult;
|
|
6927
6938
|
}
|
|
@@ -6930,20 +6941,20 @@
|
|
|
6930
6941
|
case 1:
|
|
6931
6942
|
if (suspendResult) {
|
|
6932
6943
|
var tmp_0 = this;
|
|
6933
|
-
this.
|
|
6934
|
-
tmp_0.
|
|
6944
|
+
this.s1c_1.x1c_1._v = this.v1c_1;
|
|
6945
|
+
tmp_0.u1c_1 = false;
|
|
6935
6946
|
this.u8_1 = 2;
|
|
6936
6947
|
continue $sm;
|
|
6937
6948
|
} else {
|
|
6938
6949
|
var tmp_1 = this;
|
|
6939
|
-
tmp_1.
|
|
6950
|
+
tmp_1.u1c_1 = true;
|
|
6940
6951
|
this.u8_1 = 2;
|
|
6941
6952
|
continue $sm;
|
|
6942
6953
|
}
|
|
6943
6954
|
|
|
6944
6955
|
case 2:
|
|
6945
|
-
if (!this.
|
|
6946
|
-
throw new AbortFlowException(this.
|
|
6956
|
+
if (!this.u1c_1) {
|
|
6957
|
+
throw new AbortFlowException(this.s1c_1);
|
|
6947
6958
|
} else {
|
|
6948
6959
|
this.u8_1 = 3;
|
|
6949
6960
|
continue $sm;
|
|
@@ -6966,22 +6977,22 @@
|
|
|
6966
6977
|
while (true);
|
|
6967
6978
|
};
|
|
6968
6979
|
function firstOrNull$$inlined$collectWhile$1($predicate, $result) {
|
|
6969
|
-
this.
|
|
6970
|
-
this.
|
|
6980
|
+
this.w1c_1 = $predicate;
|
|
6981
|
+
this.x1c_1 = $result;
|
|
6971
6982
|
}
|
|
6972
|
-
protoOf(firstOrNull$$inlined$collectWhile$1).
|
|
6983
|
+
protoOf(firstOrNull$$inlined$collectWhile$1).y1c = function (value, $completion) {
|
|
6973
6984
|
var tmp = new $emitCOROUTINE$(this, value, $completion);
|
|
6974
6985
|
tmp.w8_1 = Unit_instance;
|
|
6975
6986
|
tmp.x8_1 = null;
|
|
6976
6987
|
return tmp.c9();
|
|
6977
6988
|
};
|
|
6978
|
-
protoOf(firstOrNull$$inlined$collectWhile$1).
|
|
6979
|
-
return this.
|
|
6989
|
+
protoOf(firstOrNull$$inlined$collectWhile$1).u1b = function (value, $completion) {
|
|
6990
|
+
return this.y1c((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
|
|
6980
6991
|
};
|
|
6981
6992
|
function $firstOrNullCOROUTINE$(_this__u8e3s4, predicate, resultContinuation) {
|
|
6982
6993
|
CoroutineImpl.call(this, resultContinuation);
|
|
6983
|
-
this.
|
|
6984
|
-
this.
|
|
6994
|
+
this.g1c_1 = _this__u8e3s4;
|
|
6995
|
+
this.h1c_1 = predicate;
|
|
6985
6996
|
}
|
|
6986
6997
|
protoOf($firstOrNullCOROUTINE$).c9 = function () {
|
|
6987
6998
|
var suspendResult = this.w8_1;
|
|
@@ -6991,13 +7002,13 @@
|
|
|
6991
7002
|
switch (tmp) {
|
|
6992
7003
|
case 0:
|
|
6993
7004
|
this.v8_1 = 4;
|
|
6994
|
-
this.
|
|
6995
|
-
var this_0 = this.
|
|
7005
|
+
this.i1c_1 = {_v: null};
|
|
7006
|
+
var this_0 = this.g1c_1;
|
|
6996
7007
|
var tmp_0 = this;
|
|
6997
|
-
tmp_0.
|
|
7008
|
+
tmp_0.j1c_1 = new firstOrNull$$inlined$collectWhile$1(this.h1c_1, this.i1c_1);
|
|
6998
7009
|
this.v8_1 = 2;
|
|
6999
7010
|
this.u8_1 = 1;
|
|
7000
|
-
suspendResult = this_0.
|
|
7011
|
+
suspendResult = this_0.w1b(this.j1c_1, this);
|
|
7001
7012
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7002
7013
|
return suspendResult;
|
|
7003
7014
|
}
|
|
@@ -7012,7 +7023,7 @@
|
|
|
7012
7023
|
var tmp_1 = this.x8_1;
|
|
7013
7024
|
if (tmp_1 instanceof AbortFlowException) {
|
|
7014
7025
|
var e = this.x8_1;
|
|
7015
|
-
checkOwnership(e, this.
|
|
7026
|
+
checkOwnership(e, this.j1c_1);
|
|
7016
7027
|
ensureActive(this.a9());
|
|
7017
7028
|
this.u8_1 = 3;
|
|
7018
7029
|
continue $sm;
|
|
@@ -7022,7 +7033,7 @@
|
|
|
7022
7033
|
|
|
7023
7034
|
case 3:
|
|
7024
7035
|
this.v8_1 = 4;
|
|
7025
|
-
return this.
|
|
7036
|
+
return this.i1c_1._v;
|
|
7026
7037
|
case 4:
|
|
7027
7038
|
throw this.x8_1;
|
|
7028
7039
|
}
|
|
@@ -7047,17 +7058,17 @@
|
|
|
7047
7058
|
this.qy_1 = id;
|
|
7048
7059
|
this.ry_1 = atomic$int$1(pointers << 16);
|
|
7049
7060
|
}
|
|
7050
|
-
protoOf(Segment).
|
|
7051
|
-
return this.ry_1.kotlinx$atomicfu$value === this.
|
|
7061
|
+
protoOf(Segment).m16 = function () {
|
|
7062
|
+
return this.ry_1.kotlinx$atomicfu$value === this.o15() && !this.t16();
|
|
7052
7063
|
};
|
|
7053
|
-
protoOf(Segment).
|
|
7064
|
+
protoOf(Segment).n16 = function () {
|
|
7054
7065
|
var tmp0 = this.ry_1;
|
|
7055
7066
|
var tmp$ret$1;
|
|
7056
7067
|
$l$block_0: {
|
|
7057
7068
|
// Inline function 'kotlinx.coroutines.internal.addConditionally' call
|
|
7058
7069
|
while (true) {
|
|
7059
7070
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
7060
|
-
if (!(!(cur === this.
|
|
7071
|
+
if (!(!(cur === this.o15()) || this.t16())) {
|
|
7061
7072
|
tmp$ret$1 = false;
|
|
7062
7073
|
break $l$block_0;
|
|
7063
7074
|
}
|
|
@@ -7069,11 +7080,11 @@
|
|
|
7069
7080
|
}
|
|
7070
7081
|
return tmp$ret$1;
|
|
7071
7082
|
};
|
|
7072
|
-
protoOf(Segment).
|
|
7073
|
-
return this.ry_1.atomicfu$addAndGet(-65536) === this.
|
|
7083
|
+
protoOf(Segment).o16 = function () {
|
|
7084
|
+
return this.ry_1.atomicfu$addAndGet(-65536) === this.o15() && !this.t16();
|
|
7074
7085
|
};
|
|
7075
|
-
protoOf(Segment).
|
|
7076
|
-
if (this.ry_1.atomicfu$incrementAndGet() === this.
|
|
7086
|
+
protoOf(Segment).l16 = function () {
|
|
7087
|
+
if (this.ry_1.atomicfu$incrementAndGet() === this.o15()) {
|
|
7077
7088
|
this.d4();
|
|
7078
7089
|
}
|
|
7079
7090
|
};
|
|
@@ -7093,7 +7104,7 @@
|
|
|
7093
7104
|
}
|
|
7094
7105
|
var next = tmp;
|
|
7095
7106
|
if (next === null) {
|
|
7096
|
-
if (cur.
|
|
7107
|
+
if (cur.w16())
|
|
7097
7108
|
return cur;
|
|
7098
7109
|
} else {
|
|
7099
7110
|
cur = next;
|
|
@@ -7129,37 +7140,37 @@
|
|
|
7129
7140
|
function SegmentOrClosed__equals_impl_6erq1g($this, other) {
|
|
7130
7141
|
if (!(other instanceof SegmentOrClosed))
|
|
7131
7142
|
return false;
|
|
7132
|
-
var tmp0_other_with_cast = other instanceof SegmentOrClosed ? other.
|
|
7143
|
+
var tmp0_other_with_cast = other instanceof SegmentOrClosed ? other.v18_1 : THROW_CCE();
|
|
7133
7144
|
if (!equals($this, tmp0_other_with_cast))
|
|
7134
7145
|
return false;
|
|
7135
7146
|
return true;
|
|
7136
7147
|
}
|
|
7137
7148
|
function SegmentOrClosed(value) {
|
|
7138
|
-
this.
|
|
7149
|
+
this.v18_1 = value;
|
|
7139
7150
|
}
|
|
7140
7151
|
protoOf(SegmentOrClosed).toString = function () {
|
|
7141
|
-
return SegmentOrClosed__toString_impl_pzb2an(this.
|
|
7152
|
+
return SegmentOrClosed__toString_impl_pzb2an(this.v18_1);
|
|
7142
7153
|
};
|
|
7143
7154
|
protoOf(SegmentOrClosed).hashCode = function () {
|
|
7144
|
-
return SegmentOrClosed__hashCode_impl_4855hs(this.
|
|
7155
|
+
return SegmentOrClosed__hashCode_impl_4855hs(this.v18_1);
|
|
7145
7156
|
};
|
|
7146
7157
|
protoOf(SegmentOrClosed).equals = function (other) {
|
|
7147
|
-
return SegmentOrClosed__equals_impl_6erq1g(this.
|
|
7158
|
+
return SegmentOrClosed__equals_impl_6erq1g(this.v18_1, other);
|
|
7148
7159
|
};
|
|
7149
7160
|
function _get_nextOrClosed__w0gmuv($this) {
|
|
7150
|
-
return $this.
|
|
7161
|
+
return $this.p16_1.kotlinx$atomicfu$value;
|
|
7151
7162
|
}
|
|
7152
7163
|
function _get_aliveSegmentLeft__mr4ndu($this) {
|
|
7153
|
-
var cur = $this.
|
|
7154
|
-
while (!(cur === null) && cur.
|
|
7155
|
-
cur = cur.
|
|
7164
|
+
var cur = $this.u16();
|
|
7165
|
+
while (!(cur === null) && cur.m16())
|
|
7166
|
+
cur = cur.q16_1.kotlinx$atomicfu$value;
|
|
7156
7167
|
return cur;
|
|
7157
7168
|
}
|
|
7158
7169
|
function _get_aliveSegmentRight__7ulr0b($this) {
|
|
7159
7170
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7160
|
-
var cur = ensureNotNull($this.
|
|
7161
|
-
while (cur.
|
|
7162
|
-
var tmp0_elvis_lhs = cur.
|
|
7171
|
+
var cur = ensureNotNull($this.r16());
|
|
7172
|
+
while (cur.m16()) {
|
|
7173
|
+
var tmp0_elvis_lhs = cur.r16();
|
|
7163
7174
|
var tmp;
|
|
7164
7175
|
if (tmp0_elvis_lhs == null) {
|
|
7165
7176
|
return cur;
|
|
@@ -7174,10 +7185,10 @@
|
|
|
7174
7185
|
return _get_nextOrClosed__w0gmuv($this);
|
|
7175
7186
|
}
|
|
7176
7187
|
function ConcurrentLinkedListNode(prev) {
|
|
7177
|
-
this.
|
|
7178
|
-
this.
|
|
7188
|
+
this.p16_1 = atomic$ref$1(null);
|
|
7189
|
+
this.q16_1 = atomic$ref$1(prev);
|
|
7179
7190
|
}
|
|
7180
|
-
protoOf(ConcurrentLinkedListNode).
|
|
7191
|
+
protoOf(ConcurrentLinkedListNode).r16 = function () {
|
|
7181
7192
|
// Inline function 'kotlinx.coroutines.internal.ConcurrentLinkedListNode.nextOrIfClosed' call
|
|
7182
7193
|
// Inline function 'kotlin.let' call
|
|
7183
7194
|
var it = access$_get_nextOrClosed__ywzond(this);
|
|
@@ -7189,30 +7200,30 @@
|
|
|
7189
7200
|
}
|
|
7190
7201
|
return tmp;
|
|
7191
7202
|
};
|
|
7192
|
-
protoOf(ConcurrentLinkedListNode).
|
|
7193
|
-
return this.
|
|
7203
|
+
protoOf(ConcurrentLinkedListNode).s16 = function (value) {
|
|
7204
|
+
return this.p16_1.atomicfu$compareAndSet(null, value);
|
|
7194
7205
|
};
|
|
7195
|
-
protoOf(ConcurrentLinkedListNode).
|
|
7196
|
-
return this.
|
|
7206
|
+
protoOf(ConcurrentLinkedListNode).t16 = function () {
|
|
7207
|
+
return this.r16() == null;
|
|
7197
7208
|
};
|
|
7198
|
-
protoOf(ConcurrentLinkedListNode).
|
|
7199
|
-
return this.
|
|
7209
|
+
protoOf(ConcurrentLinkedListNode).u16 = function () {
|
|
7210
|
+
return this.q16_1.kotlinx$atomicfu$value;
|
|
7200
7211
|
};
|
|
7201
|
-
protoOf(ConcurrentLinkedListNode).
|
|
7212
|
+
protoOf(ConcurrentLinkedListNode).v16 = function () {
|
|
7202
7213
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
7203
|
-
this.
|
|
7214
|
+
this.q16_1.kotlinx$atomicfu$value = null;
|
|
7204
7215
|
};
|
|
7205
|
-
protoOf(ConcurrentLinkedListNode).
|
|
7206
|
-
return this.
|
|
7216
|
+
protoOf(ConcurrentLinkedListNode).w16 = function () {
|
|
7217
|
+
return this.p16_1.atomicfu$compareAndSet(null, get_CLOSED());
|
|
7207
7218
|
};
|
|
7208
7219
|
protoOf(ConcurrentLinkedListNode).d4 = function () {
|
|
7209
7220
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7210
|
-
if (this.
|
|
7221
|
+
if (this.t16())
|
|
7211
7222
|
return Unit_instance;
|
|
7212
7223
|
$l$loop_0: while (true) {
|
|
7213
7224
|
var prev = _get_aliveSegmentLeft__mr4ndu(this);
|
|
7214
7225
|
var next = _get_aliveSegmentRight__7ulr0b(this);
|
|
7215
|
-
var tmp0 = next.
|
|
7226
|
+
var tmp0 = next.q16_1;
|
|
7216
7227
|
$l$block: {
|
|
7217
7228
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
7218
7229
|
while (true) {
|
|
@@ -7224,10 +7235,10 @@
|
|
|
7224
7235
|
}
|
|
7225
7236
|
}
|
|
7226
7237
|
if (!(prev === null))
|
|
7227
|
-
prev.
|
|
7228
|
-
if (next.
|
|
7238
|
+
prev.p16_1.kotlinx$atomicfu$value = next;
|
|
7239
|
+
if (next.m16() && !next.t16())
|
|
7229
7240
|
continue $l$loop_0;
|
|
7230
|
-
if (!(prev === null) && prev.
|
|
7241
|
+
if (!(prev === null) && prev.m16())
|
|
7231
7242
|
continue $l$loop_0;
|
|
7232
7243
|
return Unit_instance;
|
|
7233
7244
|
}
|
|
@@ -7235,7 +7246,7 @@
|
|
|
7235
7246
|
function findSegmentInternal(_this__u8e3s4, id, createNewSegment) {
|
|
7236
7247
|
_init_properties_ConcurrentLinkedList_kt__5gcgzy();
|
|
7237
7248
|
var cur = _this__u8e3s4;
|
|
7238
|
-
$l$loop: while (compare(cur.qy_1, id) < 0 || cur.
|
|
7249
|
+
$l$loop: while (compare(cur.qy_1, id) < 0 || cur.m16()) {
|
|
7239
7250
|
// Inline function 'kotlinx.coroutines.internal.ConcurrentLinkedListNode.nextOrIfClosed' call
|
|
7240
7251
|
var this_0 = cur;
|
|
7241
7252
|
// Inline function 'kotlin.let' call
|
|
@@ -7254,8 +7265,8 @@
|
|
|
7254
7265
|
// Inline function 'kotlin.Long.plus' call
|
|
7255
7266
|
var this_1 = cur.qy_1;
|
|
7256
7267
|
var newTail = createNewSegment(add(this_1, fromInt(1)), cur);
|
|
7257
|
-
if (cur.
|
|
7258
|
-
if (cur.
|
|
7268
|
+
if (cur.s16(newTail)) {
|
|
7269
|
+
if (cur.m16()) {
|
|
7259
7270
|
cur.d4();
|
|
7260
7271
|
}
|
|
7261
7272
|
cur = newTail;
|
|
@@ -7406,7 +7417,7 @@
|
|
|
7406
7417
|
protoOf(DispatchedContinuation).ly = function () {
|
|
7407
7418
|
return !(this.hy_1.kotlinx$atomicfu$value == null);
|
|
7408
7419
|
};
|
|
7409
|
-
protoOf(DispatchedContinuation).
|
|
7420
|
+
protoOf(DispatchedContinuation).z1c = function () {
|
|
7410
7421
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
7411
7422
|
var this_0 = this.hy_1;
|
|
7412
7423
|
while (true) {
|
|
@@ -7415,7 +7426,7 @@
|
|
|
7415
7426
|
}
|
|
7416
7427
|
};
|
|
7417
7428
|
protoOf(DispatchedContinuation).x10 = function () {
|
|
7418
|
-
this.
|
|
7429
|
+
this.z1c();
|
|
7419
7430
|
var tmp0_safe_receiver = _get_reusableCancellableContinuation__9qex09(this);
|
|
7420
7431
|
if (tmp0_safe_receiver == null)
|
|
7421
7432
|
null;
|
|
@@ -7820,19 +7831,19 @@
|
|
|
7820
7831
|
this.ux_1.f9(recoverResult(state, this.ux_1));
|
|
7821
7832
|
};
|
|
7822
7833
|
function ContextScope(context) {
|
|
7823
|
-
this.
|
|
7834
|
+
this.a1d_1 = context;
|
|
7824
7835
|
}
|
|
7825
7836
|
protoOf(ContextScope).js = function () {
|
|
7826
|
-
return this.
|
|
7837
|
+
return this.a1d_1;
|
|
7827
7838
|
};
|
|
7828
7839
|
protoOf(ContextScope).toString = function () {
|
|
7829
|
-
return 'CoroutineScope(coroutineContext=' + toString(this.
|
|
7840
|
+
return 'CoroutineScope(coroutineContext=' + toString(this.a1d_1) + ')';
|
|
7830
7841
|
};
|
|
7831
7842
|
function Symbol(symbol) {
|
|
7832
|
-
this.
|
|
7843
|
+
this.b1d_1 = symbol;
|
|
7833
7844
|
}
|
|
7834
7845
|
protoOf(Symbol).toString = function () {
|
|
7835
|
-
return '<' + this.
|
|
7846
|
+
return '<' + this.b1d_1 + '>';
|
|
7836
7847
|
};
|
|
7837
7848
|
function systemProp(propertyName, defaultValue, minValue, maxValue) {
|
|
7838
7849
|
minValue = minValue === VOID ? 1 : minValue;
|
|
@@ -8026,7 +8037,7 @@
|
|
|
8026
8037
|
if (!(cause instanceof TimeoutCancellationException)) {
|
|
8027
8038
|
tmp = true;
|
|
8028
8039
|
} else {
|
|
8029
|
-
tmp = !(cause.
|
|
8040
|
+
tmp = !(cause.c1d_1 === _this__u8e3s4);
|
|
8030
8041
|
}
|
|
8031
8042
|
return tmp;
|
|
8032
8043
|
}
|
|
@@ -8062,27 +8073,27 @@
|
|
|
8062
8073
|
}
|
|
8063
8074
|
function SelectClause1Impl(clauseObject, regFunc, processResFunc, onCancellationConstructor) {
|
|
8064
8075
|
onCancellationConstructor = onCancellationConstructor === VOID ? null : onCancellationConstructor;
|
|
8065
|
-
this.
|
|
8066
|
-
this.
|
|
8067
|
-
this.
|
|
8068
|
-
this.
|
|
8076
|
+
this.h1d_1 = clauseObject;
|
|
8077
|
+
this.i1d_1 = regFunc;
|
|
8078
|
+
this.j1d_1 = processResFunc;
|
|
8079
|
+
this.k1d_1 = onCancellationConstructor;
|
|
8069
8080
|
}
|
|
8070
|
-
protoOf(SelectClause1Impl).
|
|
8071
|
-
return this.
|
|
8081
|
+
protoOf(SelectClause1Impl).d1d = function () {
|
|
8082
|
+
return this.h1d_1;
|
|
8072
8083
|
};
|
|
8073
|
-
protoOf(SelectClause1Impl).
|
|
8074
|
-
return this.
|
|
8084
|
+
protoOf(SelectClause1Impl).e1d = function () {
|
|
8085
|
+
return this.i1d_1;
|
|
8075
8086
|
};
|
|
8076
|
-
protoOf(SelectClause1Impl).
|
|
8077
|
-
return this.
|
|
8087
|
+
protoOf(SelectClause1Impl).f1d = function () {
|
|
8088
|
+
return this.j1d_1;
|
|
8078
8089
|
};
|
|
8079
|
-
protoOf(SelectClause1Impl).
|
|
8080
|
-
return this.
|
|
8090
|
+
protoOf(SelectClause1Impl).g1d = function () {
|
|
8091
|
+
return this.k1d_1;
|
|
8081
8092
|
};
|
|
8082
8093
|
function $invokeBlockCOROUTINE$(_this__u8e3s4, argument, resultContinuation) {
|
|
8083
8094
|
CoroutineImpl.call(this, resultContinuation);
|
|
8084
|
-
this.
|
|
8085
|
-
this.
|
|
8095
|
+
this.t1d_1 = _this__u8e3s4;
|
|
8096
|
+
this.u1d_1 = argument;
|
|
8086
8097
|
}
|
|
8087
8098
|
protoOf($invokeBlockCOROUTINE$).c9 = function () {
|
|
8088
8099
|
var suspendResult = this.w8_1;
|
|
@@ -8092,8 +8103,8 @@
|
|
|
8092
8103
|
switch (tmp) {
|
|
8093
8104
|
case 0:
|
|
8094
8105
|
this.v8_1 = 4;
|
|
8095
|
-
var block = this.
|
|
8096
|
-
if (this.
|
|
8106
|
+
var block = this.t1d_1.a1e_1;
|
|
8107
|
+
if (this.t1d_1.z1d_1 === get_PARAM_CLAUSE_0()) {
|
|
8097
8108
|
if (!isSuspendFunction(block, 0))
|
|
8098
8109
|
THROW_CCE();
|
|
8099
8110
|
this.u8_1 = 2;
|
|
@@ -8106,7 +8117,7 @@
|
|
|
8106
8117
|
if (!isSuspendFunction(block, 1))
|
|
8107
8118
|
THROW_CCE();
|
|
8108
8119
|
this.u8_1 = 1;
|
|
8109
|
-
suspendResult = block(this.
|
|
8120
|
+
suspendResult = block(this.u1d_1, this);
|
|
8110
8121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8111
8122
|
return suspendResult;
|
|
8112
8123
|
}
|
|
@@ -8114,15 +8125,15 @@
|
|
|
8114
8125
|
}
|
|
8115
8126
|
|
|
8116
8127
|
case 1:
|
|
8117
|
-
this.
|
|
8128
|
+
this.v1d_1 = suspendResult;
|
|
8118
8129
|
this.u8_1 = 3;
|
|
8119
8130
|
continue $sm;
|
|
8120
8131
|
case 2:
|
|
8121
|
-
this.
|
|
8132
|
+
this.v1d_1 = suspendResult;
|
|
8122
8133
|
this.u8_1 = 3;
|
|
8123
8134
|
continue $sm;
|
|
8124
8135
|
case 3:
|
|
8125
|
-
return this.
|
|
8136
|
+
return this.v1d_1;
|
|
8126
8137
|
case 4:
|
|
8127
8138
|
throw this.x8_1;
|
|
8128
8139
|
}
|
|
@@ -8138,7 +8149,7 @@
|
|
|
8138
8149
|
while (true);
|
|
8139
8150
|
};
|
|
8140
8151
|
function _get_isSelected__uy0hmu($this) {
|
|
8141
|
-
var tmp = $this.
|
|
8152
|
+
var tmp = $this.i18_1.kotlinx$atomicfu$value;
|
|
8142
8153
|
return tmp instanceof ClauseData;
|
|
8143
8154
|
}
|
|
8144
8155
|
function doSelectSuspend($this, $completion) {
|
|
@@ -8148,7 +8159,7 @@
|
|
|
8148
8159
|
return tmp.c9();
|
|
8149
8160
|
}
|
|
8150
8161
|
function checkClauseObject($this, clauseObject) {
|
|
8151
|
-
var clauses = ensureNotNull($this.
|
|
8162
|
+
var clauses = ensureNotNull($this.j18_1);
|
|
8152
8163
|
var tmp$ret$0;
|
|
8153
8164
|
$l$block_0: {
|
|
8154
8165
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -8165,7 +8176,7 @@
|
|
|
8165
8176
|
var _iterator__ex2g4s = clauses.r();
|
|
8166
8177
|
while (_iterator__ex2g4s.s()) {
|
|
8167
8178
|
var element = _iterator__ex2g4s.t();
|
|
8168
|
-
if (element.
|
|
8179
|
+
if (element.w1d_1 === clauseObject) {
|
|
8169
8180
|
tmp$ret$0 = false;
|
|
8170
8181
|
break $l$block_0;
|
|
8171
8182
|
}
|
|
@@ -8183,17 +8194,17 @@
|
|
|
8183
8194
|
cancellable.kw();
|
|
8184
8195
|
$l$block_0: {
|
|
8185
8196
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
8186
|
-
var this_0 = $this.
|
|
8197
|
+
var this_0 = $this.i18_1;
|
|
8187
8198
|
while (true) {
|
|
8188
8199
|
var curState = this_0.kotlinx$atomicfu$value;
|
|
8189
8200
|
if (curState === get_STATE_REG()) {
|
|
8190
|
-
if ($this.
|
|
8201
|
+
if ($this.i18_1.atomicfu$compareAndSet(curState, cancellable)) {
|
|
8191
8202
|
invokeOnCancellation(cancellable, $this);
|
|
8192
8203
|
break $l$block_0;
|
|
8193
8204
|
}
|
|
8194
8205
|
} else {
|
|
8195
8206
|
if (isInterface(curState, KtList)) {
|
|
8196
|
-
if ($this.
|
|
8207
|
+
if ($this.i18_1.atomicfu$compareAndSet(curState, get_STATE_REG())) {
|
|
8197
8208
|
if (!isInterface(curState, KtList))
|
|
8198
8209
|
THROW_CCE();
|
|
8199
8210
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -8205,7 +8216,7 @@
|
|
|
8205
8216
|
}
|
|
8206
8217
|
} else {
|
|
8207
8218
|
if (curState instanceof ClauseData) {
|
|
8208
|
-
cancellable.zx(Unit_instance, curState.
|
|
8219
|
+
cancellable.zx(Unit_instance, curState.o1e($this, $this.m18_1));
|
|
8209
8220
|
break $l$block_0;
|
|
8210
8221
|
} else {
|
|
8211
8222
|
// Inline function 'kotlin.error' call
|
|
@@ -8220,13 +8231,13 @@
|
|
|
8220
8231
|
}
|
|
8221
8232
|
function reregisterClause($this, clauseObject) {
|
|
8222
8233
|
var clause = ensureNotNull(findClause($this, clauseObject));
|
|
8223
|
-
clause.
|
|
8224
|
-
clause.
|
|
8225
|
-
$this.
|
|
8234
|
+
clause.c1e_1 = null;
|
|
8235
|
+
clause.d1e_1 = -1;
|
|
8236
|
+
$this.p1e(clause, true);
|
|
8226
8237
|
}
|
|
8227
8238
|
function trySelectInternal($this, clauseObject, internalResult) {
|
|
8228
8239
|
$l$loop: while (true) {
|
|
8229
|
-
var curState = $this.
|
|
8240
|
+
var curState = $this.i18_1.kotlinx$atomicfu$value;
|
|
8230
8241
|
if (isInterface(curState, CancellableContinuation)) {
|
|
8231
8242
|
var tmp0_elvis_lhs = findClause($this, clauseObject);
|
|
8232
8243
|
var tmp;
|
|
@@ -8236,13 +8247,13 @@
|
|
|
8236
8247
|
tmp = tmp0_elvis_lhs;
|
|
8237
8248
|
}
|
|
8238
8249
|
var clause = tmp;
|
|
8239
|
-
var onCancellation = clause.
|
|
8240
|
-
if ($this.
|
|
8250
|
+
var onCancellation = clause.o1e($this, internalResult);
|
|
8251
|
+
if ($this.i18_1.atomicfu$compareAndSet(curState, clause)) {
|
|
8241
8252
|
var cont = isInterface(curState, CancellableContinuation) ? curState : THROW_CCE();
|
|
8242
|
-
$this.
|
|
8253
|
+
$this.m18_1 = internalResult;
|
|
8243
8254
|
if (tryResume_1(cont, onCancellation))
|
|
8244
8255
|
return 0;
|
|
8245
|
-
$this.
|
|
8256
|
+
$this.m18_1 = get_NO_RESULT();
|
|
8246
8257
|
return 2;
|
|
8247
8258
|
}
|
|
8248
8259
|
} else {
|
|
@@ -8259,11 +8270,11 @@
|
|
|
8259
8270
|
return 2;
|
|
8260
8271
|
else {
|
|
8261
8272
|
if (equals(curState, get_STATE_REG())) {
|
|
8262
|
-
if ($this.
|
|
8273
|
+
if ($this.i18_1.atomicfu$compareAndSet(curState, listOf_0(clauseObject)))
|
|
8263
8274
|
return 1;
|
|
8264
8275
|
} else {
|
|
8265
8276
|
if (isInterface(curState, KtList)) {
|
|
8266
|
-
if ($this.
|
|
8277
|
+
if ($this.i18_1.atomicfu$compareAndSet(curState, plus_0(curState, clauseObject)))
|
|
8267
8278
|
return 1;
|
|
8268
8279
|
} else {
|
|
8269
8280
|
// Inline function 'kotlin.error' call
|
|
@@ -8277,7 +8288,7 @@
|
|
|
8277
8288
|
}
|
|
8278
8289
|
}
|
|
8279
8290
|
function findClause($this, clauseObject) {
|
|
8280
|
-
var tmp0_elvis_lhs = $this.
|
|
8291
|
+
var tmp0_elvis_lhs = $this.j18_1;
|
|
8281
8292
|
var tmp;
|
|
8282
8293
|
if (tmp0_elvis_lhs == null) {
|
|
8283
8294
|
return null;
|
|
@@ -8292,7 +8303,7 @@
|
|
|
8292
8303
|
var _iterator__ex2g4s = clauses.r();
|
|
8293
8304
|
while (_iterator__ex2g4s.s()) {
|
|
8294
8305
|
var element = _iterator__ex2g4s.t();
|
|
8295
|
-
if (element.
|
|
8306
|
+
if (element.w1d_1 === clauseObject) {
|
|
8296
8307
|
tmp$ret$1 = element;
|
|
8297
8308
|
break $l$block;
|
|
8298
8309
|
}
|
|
@@ -8323,7 +8334,7 @@
|
|
|
8323
8334
|
}
|
|
8324
8335
|
function cleanup($this, selectedClause) {
|
|
8325
8336
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8326
|
-
var tmp0_elvis_lhs = $this.
|
|
8337
|
+
var tmp0_elvis_lhs = $this.j18_1;
|
|
8327
8338
|
var tmp;
|
|
8328
8339
|
if (tmp0_elvis_lhs == null) {
|
|
8329
8340
|
return Unit_instance;
|
|
@@ -8339,31 +8350,31 @@
|
|
|
8339
8350
|
element.hv();
|
|
8340
8351
|
}
|
|
8341
8352
|
}
|
|
8342
|
-
$this.
|
|
8343
|
-
$this.
|
|
8344
|
-
$this.
|
|
8353
|
+
$this.i18_1.kotlinx$atomicfu$value = get_STATE_COMPLETED();
|
|
8354
|
+
$this.m18_1 = get_NO_RESULT();
|
|
8355
|
+
$this.j18_1 = null;
|
|
8345
8356
|
}
|
|
8346
8357
|
function ClauseData($outer, clauseObject, regFunc, processResFunc, param, block, onCancellationConstructor) {
|
|
8347
|
-
this.
|
|
8348
|
-
this.
|
|
8349
|
-
this.
|
|
8350
|
-
this.
|
|
8351
|
-
this.
|
|
8352
|
-
this.
|
|
8353
|
-
this.
|
|
8354
|
-
this.
|
|
8355
|
-
this.
|
|
8356
|
-
}
|
|
8357
|
-
protoOf(ClauseData).
|
|
8358
|
+
this.e1e_1 = $outer;
|
|
8359
|
+
this.w1d_1 = clauseObject;
|
|
8360
|
+
this.x1d_1 = regFunc;
|
|
8361
|
+
this.y1d_1 = processResFunc;
|
|
8362
|
+
this.z1d_1 = param;
|
|
8363
|
+
this.a1e_1 = block;
|
|
8364
|
+
this.b1e_1 = onCancellationConstructor;
|
|
8365
|
+
this.c1e_1 = null;
|
|
8366
|
+
this.d1e_1 = -1;
|
|
8367
|
+
}
|
|
8368
|
+
protoOf(ClauseData).m1f = function (select) {
|
|
8358
8369
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8359
8370
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8360
|
-
this.
|
|
8361
|
-
return select.
|
|
8371
|
+
this.x1d_1(this.w1d_1, select, this.z1d_1);
|
|
8372
|
+
return select.m18_1 === get_NO_RESULT();
|
|
8362
8373
|
};
|
|
8363
|
-
protoOf(ClauseData).
|
|
8364
|
-
return this.
|
|
8374
|
+
protoOf(ClauseData).n1f = function (result) {
|
|
8375
|
+
return this.y1d_1(this.w1d_1, this.z1d_1, result);
|
|
8365
8376
|
};
|
|
8366
|
-
protoOf(ClauseData).
|
|
8377
|
+
protoOf(ClauseData).o1f = function (argument, $completion) {
|
|
8367
8378
|
var tmp = new $invokeBlockCOROUTINE$(this, argument, $completion);
|
|
8368
8379
|
tmp.w8_1 = Unit_instance;
|
|
8369
8380
|
tmp.x8_1 = null;
|
|
@@ -8371,10 +8382,10 @@
|
|
|
8371
8382
|
};
|
|
8372
8383
|
protoOf(ClauseData).hv = function () {
|
|
8373
8384
|
// Inline function 'kotlin.with' call
|
|
8374
|
-
var $this$with = this.
|
|
8385
|
+
var $this$with = this.c1e_1;
|
|
8375
8386
|
var tmp;
|
|
8376
8387
|
if ($this$with instanceof Segment) {
|
|
8377
|
-
$this$with.sy(this.
|
|
8388
|
+
$this$with.sy(this.d1e_1, null, this.e1e_1.a9());
|
|
8378
8389
|
tmp = Unit_instance;
|
|
8379
8390
|
} else {
|
|
8380
8391
|
var tmp0_safe_receiver = (!($this$with == null) ? isInterface($this$with, DisposableHandle) : false) ? $this$with : null;
|
|
@@ -8388,13 +8399,13 @@
|
|
|
8388
8399
|
tmp = tmp_0;
|
|
8389
8400
|
}
|
|
8390
8401
|
};
|
|
8391
|
-
protoOf(ClauseData).
|
|
8392
|
-
var tmp0_safe_receiver = this.
|
|
8393
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.
|
|
8402
|
+
protoOf(ClauseData).o1e = function (select, internalResult) {
|
|
8403
|
+
var tmp0_safe_receiver = this.b1e_1;
|
|
8404
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.z1d_1, internalResult);
|
|
8394
8405
|
};
|
|
8395
8406
|
function $doSelectCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
8396
8407
|
CoroutineImpl.call(this, resultContinuation);
|
|
8397
|
-
this.
|
|
8408
|
+
this.x1f_1 = _this__u8e3s4;
|
|
8398
8409
|
}
|
|
8399
8410
|
protoOf($doSelectCOROUTINE$).c9 = function () {
|
|
8400
8411
|
var suspendResult = this.w8_1;
|
|
@@ -8404,16 +8415,16 @@
|
|
|
8404
8415
|
switch (tmp) {
|
|
8405
8416
|
case 0:
|
|
8406
8417
|
this.v8_1 = 4;
|
|
8407
|
-
if (_get_isSelected__uy0hmu(this.
|
|
8418
|
+
if (_get_isSelected__uy0hmu(this.x1f_1)) {
|
|
8408
8419
|
this.u8_1 = 2;
|
|
8409
|
-
suspendResult = complete(this.
|
|
8420
|
+
suspendResult = complete(this.x1f_1, this);
|
|
8410
8421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8411
8422
|
return suspendResult;
|
|
8412
8423
|
}
|
|
8413
8424
|
continue $sm;
|
|
8414
8425
|
} else {
|
|
8415
8426
|
this.u8_1 = 1;
|
|
8416
|
-
suspendResult = doSelectSuspend(this.
|
|
8427
|
+
suspendResult = doSelectSuspend(this.x1f_1, this);
|
|
8417
8428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8418
8429
|
return suspendResult;
|
|
8419
8430
|
}
|
|
@@ -8421,15 +8432,15 @@
|
|
|
8421
8432
|
}
|
|
8422
8433
|
|
|
8423
8434
|
case 1:
|
|
8424
|
-
this.
|
|
8435
|
+
this.y1f_1 = suspendResult;
|
|
8425
8436
|
this.u8_1 = 3;
|
|
8426
8437
|
continue $sm;
|
|
8427
8438
|
case 2:
|
|
8428
|
-
this.
|
|
8439
|
+
this.y1f_1 = suspendResult;
|
|
8429
8440
|
this.u8_1 = 3;
|
|
8430
8441
|
continue $sm;
|
|
8431
8442
|
case 3:
|
|
8432
|
-
return this.
|
|
8443
|
+
return this.y1f_1;
|
|
8433
8444
|
case 4:
|
|
8434
8445
|
throw this.x8_1;
|
|
8435
8446
|
}
|
|
@@ -8446,7 +8457,7 @@
|
|
|
8446
8457
|
};
|
|
8447
8458
|
function $doSelectSuspendCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
8448
8459
|
CoroutineImpl.call(this, resultContinuation);
|
|
8449
|
-
this.
|
|
8460
|
+
this.n1e_1 = _this__u8e3s4;
|
|
8450
8461
|
}
|
|
8451
8462
|
protoOf($doSelectSuspendCOROUTINE$).c9 = function () {
|
|
8452
8463
|
var suspendResult = this.w8_1;
|
|
@@ -8457,7 +8468,7 @@
|
|
|
8457
8468
|
case 0:
|
|
8458
8469
|
this.v8_1 = 3;
|
|
8459
8470
|
this.u8_1 = 1;
|
|
8460
|
-
suspendResult = waitUntilSelected(this.
|
|
8471
|
+
suspendResult = waitUntilSelected(this.n1e_1, this);
|
|
8461
8472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8462
8473
|
return suspendResult;
|
|
8463
8474
|
}
|
|
@@ -8465,7 +8476,7 @@
|
|
|
8465
8476
|
continue $sm;
|
|
8466
8477
|
case 1:
|
|
8467
8478
|
this.u8_1 = 2;
|
|
8468
|
-
suspendResult = complete(this.
|
|
8479
|
+
suspendResult = complete(this.n1e_1, this);
|
|
8469
8480
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8470
8481
|
return suspendResult;
|
|
8471
8482
|
}
|
|
@@ -8489,7 +8500,7 @@
|
|
|
8489
8500
|
};
|
|
8490
8501
|
function $completeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
8491
8502
|
CoroutineImpl.call(this, resultContinuation);
|
|
8492
|
-
this.
|
|
8503
|
+
this.y1e_1 = _this__u8e3s4;
|
|
8493
8504
|
}
|
|
8494
8505
|
protoOf($completeCOROUTINE$).c9 = function () {
|
|
8495
8506
|
var suspendResult = this.w8_1;
|
|
@@ -8499,21 +8510,21 @@
|
|
|
8499
8510
|
switch (tmp) {
|
|
8500
8511
|
case 0:
|
|
8501
8512
|
this.v8_1 = 4;
|
|
8502
|
-
var tmp_0 = this.
|
|
8513
|
+
var tmp_0 = this.y1e_1.i18_1.kotlinx$atomicfu$value;
|
|
8503
8514
|
var selectedClause = tmp_0 instanceof ClauseData ? tmp_0 : THROW_CCE();
|
|
8504
|
-
var internalResult = this.
|
|
8505
|
-
cleanup(this.
|
|
8515
|
+
var internalResult = this.y1e_1.m18_1;
|
|
8516
|
+
cleanup(this.y1e_1, selectedClause);
|
|
8506
8517
|
if (!get_RECOVER_STACK_TRACES()) {
|
|
8507
|
-
var blockArgument = selectedClause.
|
|
8518
|
+
var blockArgument = selectedClause.n1f(internalResult);
|
|
8508
8519
|
this.u8_1 = 2;
|
|
8509
|
-
suspendResult = selectedClause.
|
|
8520
|
+
suspendResult = selectedClause.o1f(blockArgument, this);
|
|
8510
8521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8511
8522
|
return suspendResult;
|
|
8512
8523
|
}
|
|
8513
8524
|
continue $sm;
|
|
8514
8525
|
} else {
|
|
8515
8526
|
this.u8_1 = 1;
|
|
8516
|
-
suspendResult = processResultAndInvokeBlockRecoveringException(this.
|
|
8527
|
+
suspendResult = processResultAndInvokeBlockRecoveringException(this.y1e_1, selectedClause, internalResult, this);
|
|
8517
8528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8518
8529
|
return suspendResult;
|
|
8519
8530
|
}
|
|
@@ -8521,15 +8532,15 @@
|
|
|
8521
8532
|
}
|
|
8522
8533
|
|
|
8523
8534
|
case 1:
|
|
8524
|
-
this.
|
|
8535
|
+
this.z1e_1 = suspendResult;
|
|
8525
8536
|
this.u8_1 = 3;
|
|
8526
8537
|
continue $sm;
|
|
8527
8538
|
case 2:
|
|
8528
|
-
this.
|
|
8539
|
+
this.z1e_1 = suspendResult;
|
|
8529
8540
|
this.u8_1 = 3;
|
|
8530
8541
|
continue $sm;
|
|
8531
8542
|
case 3:
|
|
8532
|
-
return this.
|
|
8543
|
+
return this.z1e_1;
|
|
8533
8544
|
case 4:
|
|
8534
8545
|
throw this.x8_1;
|
|
8535
8546
|
}
|
|
@@ -8546,9 +8557,9 @@
|
|
|
8546
8557
|
};
|
|
8547
8558
|
function $processResultAndInvokeBlockRecoveringExceptionCOROUTINE$(_this__u8e3s4, clause, internalResult, resultContinuation) {
|
|
8548
8559
|
CoroutineImpl.call(this, resultContinuation);
|
|
8549
|
-
this.
|
|
8550
|
-
this.
|
|
8551
|
-
this.
|
|
8560
|
+
this.i1f_1 = _this__u8e3s4;
|
|
8561
|
+
this.j1f_1 = clause;
|
|
8562
|
+
this.k1f_1 = internalResult;
|
|
8552
8563
|
}
|
|
8553
8564
|
protoOf($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$).c9 = function () {
|
|
8554
8565
|
var suspendResult = this.w8_1;
|
|
@@ -8559,16 +8570,16 @@
|
|
|
8559
8570
|
case 0:
|
|
8560
8571
|
this.v8_1 = 3;
|
|
8561
8572
|
this.v8_1 = 2;
|
|
8562
|
-
var blockArgument = this.
|
|
8573
|
+
var blockArgument = this.j1f_1.n1f(this.k1f_1);
|
|
8563
8574
|
this.u8_1 = 1;
|
|
8564
|
-
suspendResult = this.
|
|
8575
|
+
suspendResult = this.j1f_1.o1f(blockArgument, this);
|
|
8565
8576
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8566
8577
|
return suspendResult;
|
|
8567
8578
|
}
|
|
8568
8579
|
|
|
8569
8580
|
continue $sm;
|
|
8570
8581
|
case 1:
|
|
8571
|
-
this.
|
|
8582
|
+
this.l1f_1 = suspendResult;
|
|
8572
8583
|
this.v8_1 = 3;
|
|
8573
8584
|
this.u8_1 = 4;
|
|
8574
8585
|
continue $sm;
|
|
@@ -8587,7 +8598,7 @@
|
|
|
8587
8598
|
throw this.x8_1;
|
|
8588
8599
|
case 4:
|
|
8589
8600
|
this.v8_1 = 3;
|
|
8590
|
-
return this.
|
|
8601
|
+
return this.l1f_1;
|
|
8591
8602
|
}
|
|
8592
8603
|
} catch ($p) {
|
|
8593
8604
|
var e_0 = $p;
|
|
@@ -8601,75 +8612,75 @@
|
|
|
8601
8612
|
while (true);
|
|
8602
8613
|
};
|
|
8603
8614
|
function SelectImplementation(context) {
|
|
8604
|
-
this.
|
|
8605
|
-
this.
|
|
8606
|
-
this.
|
|
8607
|
-
this.
|
|
8608
|
-
this.
|
|
8609
|
-
this.
|
|
8615
|
+
this.h18_1 = context;
|
|
8616
|
+
this.i18_1 = atomic$ref$1(get_STATE_REG());
|
|
8617
|
+
this.j18_1 = ArrayList_init_$Create$(2);
|
|
8618
|
+
this.k18_1 = null;
|
|
8619
|
+
this.l18_1 = -1;
|
|
8620
|
+
this.m18_1 = get_NO_RESULT();
|
|
8610
8621
|
}
|
|
8611
8622
|
protoOf(SelectImplementation).a9 = function () {
|
|
8612
|
-
return this.
|
|
8623
|
+
return this.h18_1;
|
|
8613
8624
|
};
|
|
8614
|
-
protoOf(SelectImplementation).
|
|
8625
|
+
protoOf(SelectImplementation).z1f = function ($completion) {
|
|
8615
8626
|
var tmp = new $doSelectCOROUTINE$(this, $completion);
|
|
8616
8627
|
tmp.w8_1 = Unit_instance;
|
|
8617
8628
|
tmp.x8_1 = null;
|
|
8618
8629
|
return tmp.c9();
|
|
8619
8630
|
};
|
|
8620
|
-
protoOf(SelectImplementation).
|
|
8621
|
-
return this.
|
|
8631
|
+
protoOf(SelectImplementation).a1g = function (_this__u8e3s4, block) {
|
|
8632
|
+
return this.b1g(new ClauseData(this, _this__u8e3s4.d1d(), _this__u8e3s4.e1d(), _this__u8e3s4.f1d(), null, block, _this__u8e3s4.g1d()));
|
|
8622
8633
|
};
|
|
8623
|
-
protoOf(SelectImplementation).
|
|
8634
|
+
protoOf(SelectImplementation).p1e = function (_this__u8e3s4, reregister) {
|
|
8624
8635
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8625
8636
|
// Inline function 'kotlin.let' call
|
|
8626
|
-
if (this.
|
|
8637
|
+
if (this.i18_1.kotlinx$atomicfu$value instanceof ClauseData)
|
|
8627
8638
|
return Unit_instance;
|
|
8628
8639
|
if (!reregister) {
|
|
8629
|
-
checkClauseObject(this, _this__u8e3s4.
|
|
8640
|
+
checkClauseObject(this, _this__u8e3s4.w1d_1);
|
|
8630
8641
|
}
|
|
8631
|
-
if (_this__u8e3s4.
|
|
8642
|
+
if (_this__u8e3s4.m1f(this)) {
|
|
8632
8643
|
if (!reregister) {
|
|
8633
8644
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
8634
|
-
ensureNotNull(this.
|
|
8645
|
+
ensureNotNull(this.j18_1).p(_this__u8e3s4);
|
|
8635
8646
|
}
|
|
8636
|
-
_this__u8e3s4.
|
|
8637
|
-
_this__u8e3s4.
|
|
8638
|
-
this.
|
|
8639
|
-
this.
|
|
8647
|
+
_this__u8e3s4.c1e_1 = this.k18_1;
|
|
8648
|
+
_this__u8e3s4.d1e_1 = this.l18_1;
|
|
8649
|
+
this.k18_1 = null;
|
|
8650
|
+
this.l18_1 = -1;
|
|
8640
8651
|
} else {
|
|
8641
|
-
this.
|
|
8652
|
+
this.i18_1.kotlinx$atomicfu$value = _this__u8e3s4;
|
|
8642
8653
|
}
|
|
8643
8654
|
};
|
|
8644
|
-
protoOf(SelectImplementation).
|
|
8655
|
+
protoOf(SelectImplementation).b1g = function (_this__u8e3s4, reregister, $super) {
|
|
8645
8656
|
reregister = reregister === VOID ? false : reregister;
|
|
8646
8657
|
var tmp;
|
|
8647
8658
|
if ($super === VOID) {
|
|
8648
|
-
this.
|
|
8659
|
+
this.p1e(_this__u8e3s4, reregister);
|
|
8649
8660
|
tmp = Unit_instance;
|
|
8650
8661
|
} else {
|
|
8651
|
-
tmp = $super.
|
|
8662
|
+
tmp = $super.p1e.call(this, _this__u8e3s4, reregister);
|
|
8652
8663
|
}
|
|
8653
8664
|
return tmp;
|
|
8654
8665
|
};
|
|
8655
8666
|
protoOf(SelectImplementation).f13 = function (disposableHandle) {
|
|
8656
|
-
this.
|
|
8667
|
+
this.k18_1 = disposableHandle;
|
|
8657
8668
|
};
|
|
8658
8669
|
protoOf(SelectImplementation).rz = function (segment, index) {
|
|
8659
|
-
this.
|
|
8660
|
-
this.
|
|
8670
|
+
this.k18_1 = segment;
|
|
8671
|
+
this.l18_1 = index;
|
|
8661
8672
|
};
|
|
8662
8673
|
protoOf(SelectImplementation).e13 = function (internalResult) {
|
|
8663
|
-
this.
|
|
8674
|
+
this.m18_1 = internalResult;
|
|
8664
8675
|
};
|
|
8665
8676
|
protoOf(SelectImplementation).m13 = function (clauseObject, result) {
|
|
8666
8677
|
return trySelectInternal(this, clauseObject, result) === 0;
|
|
8667
8678
|
};
|
|
8668
|
-
protoOf(SelectImplementation).
|
|
8679
|
+
protoOf(SelectImplementation).n18 = function (clauseObject, result) {
|
|
8669
8680
|
return TrySelectDetailedResult_0(trySelectInternal(this, clauseObject, result));
|
|
8670
8681
|
};
|
|
8671
8682
|
protoOf(SelectImplementation).iv = function (cause) {
|
|
8672
|
-
var tmp0 = this.
|
|
8683
|
+
var tmp0 = this.i18_1;
|
|
8673
8684
|
$l$block: {
|
|
8674
8685
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
8675
8686
|
while (true) {
|
|
@@ -8682,7 +8693,7 @@
|
|
|
8682
8693
|
}
|
|
8683
8694
|
}
|
|
8684
8695
|
}
|
|
8685
|
-
var tmp0_elvis_lhs = this.
|
|
8696
|
+
var tmp0_elvis_lhs = this.j18_1;
|
|
8686
8697
|
var tmp;
|
|
8687
8698
|
if (tmp0_elvis_lhs == null) {
|
|
8688
8699
|
return Unit_instance;
|
|
@@ -8696,8 +8707,8 @@
|
|
|
8696
8707
|
var element = _iterator__ex2g4s.t();
|
|
8697
8708
|
element.hv();
|
|
8698
8709
|
}
|
|
8699
|
-
this.
|
|
8700
|
-
this.
|
|
8710
|
+
this.m18_1 = get_NO_RESULT();
|
|
8711
|
+
this.j18_1 = null;
|
|
8701
8712
|
};
|
|
8702
8713
|
var TrySelectDetailedResult_SUCCESSFUL_instance;
|
|
8703
8714
|
var TrySelectDetailedResult_REREGISTER_instance;
|
|
@@ -8797,22 +8808,22 @@
|
|
|
8797
8808
|
function MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this$0, this$1) {
|
|
8798
8809
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
8799
8810
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8800
|
-
this$0.
|
|
8801
|
-
this$0.
|
|
8811
|
+
this$0.j1g_1.kotlinx$atomicfu$value = this$1.m1g_1;
|
|
8812
|
+
this$0.o1g(this$1.m1g_1);
|
|
8802
8813
|
return Unit_instance;
|
|
8803
8814
|
};
|
|
8804
8815
|
}
|
|
8805
8816
|
function MutexImpl$CancellableContinuationWithOwner$resume$lambda(this$0, this$1) {
|
|
8806
8817
|
return function (it) {
|
|
8807
|
-
this$0.
|
|
8818
|
+
this$0.o1g(this$1.m1g_1);
|
|
8808
8819
|
return Unit_instance;
|
|
8809
8820
|
};
|
|
8810
8821
|
}
|
|
8811
8822
|
function holdsLockImpl($this, owner) {
|
|
8812
8823
|
$l$loop: while (true) {
|
|
8813
|
-
if (!$this.
|
|
8824
|
+
if (!$this.p1g())
|
|
8814
8825
|
return 0;
|
|
8815
|
-
var curOwner = $this.
|
|
8826
|
+
var curOwner = $this.j1g_1.kotlinx$atomicfu$value;
|
|
8816
8827
|
if (curOwner === get_NO_OWNER())
|
|
8817
8828
|
continue $l$loop;
|
|
8818
8829
|
return curOwner === owner ? 1 : 2;
|
|
@@ -8836,9 +8847,9 @@
|
|
|
8836
8847
|
}
|
|
8837
8848
|
function tryLockImpl($this, owner) {
|
|
8838
8849
|
$l$loop: while (true) {
|
|
8839
|
-
if ($this.
|
|
8850
|
+
if ($this.x1g()) {
|
|
8840
8851
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8841
|
-
$this.
|
|
8852
|
+
$this.j1g_1.kotlinx$atomicfu$value = owner;
|
|
8842
8853
|
return 0;
|
|
8843
8854
|
} else {
|
|
8844
8855
|
if (owner == null)
|
|
@@ -8855,66 +8866,66 @@
|
|
|
8855
8866
|
}
|
|
8856
8867
|
}
|
|
8857
8868
|
function CancellableContinuationWithOwner($outer, cont, owner) {
|
|
8858
|
-
this.
|
|
8859
|
-
this.
|
|
8860
|
-
this.
|
|
8869
|
+
this.n1g_1 = $outer;
|
|
8870
|
+
this.l1g_1 = cont;
|
|
8871
|
+
this.m1g_1 = owner;
|
|
8861
8872
|
}
|
|
8862
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8873
|
+
protoOf(CancellableContinuationWithOwner).y1g = function (value, idempotent, onCancellation) {
|
|
8863
8874
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8864
|
-
var token = this.
|
|
8875
|
+
var token = this.l1g_1.wx(value, idempotent, MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this.n1g_1, this));
|
|
8865
8876
|
if (!(token == null)) {
|
|
8866
8877
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8867
|
-
this.j1g_1.
|
|
8878
|
+
this.n1g_1.j1g_1.kotlinx$atomicfu$value = this.m1g_1;
|
|
8868
8879
|
}
|
|
8869
8880
|
return token;
|
|
8870
8881
|
};
|
|
8871
8882
|
protoOf(CancellableContinuationWithOwner).wx = function (value, idempotent, onCancellation) {
|
|
8872
|
-
return this.
|
|
8883
|
+
return this.y1g(value instanceof Unit ? value : THROW_CCE(), idempotent, onCancellation);
|
|
8873
8884
|
};
|
|
8874
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8885
|
+
protoOf(CancellableContinuationWithOwner).z1g = function (value, onCancellation) {
|
|
8875
8886
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8876
|
-
this.j1g_1.
|
|
8877
|
-
this.
|
|
8887
|
+
this.n1g_1.j1g_1.kotlinx$atomicfu$value = this.m1g_1;
|
|
8888
|
+
this.l1g_1.pz(Unit_instance, MutexImpl$CancellableContinuationWithOwner$resume$lambda(this.n1g_1, this));
|
|
8878
8889
|
};
|
|
8879
8890
|
protoOf(CancellableContinuationWithOwner).zx = function (value, onCancellation) {
|
|
8880
|
-
return this.
|
|
8891
|
+
return this.z1g(value instanceof Unit ? value : THROW_CCE(), onCancellation);
|
|
8881
8892
|
};
|
|
8882
8893
|
protoOf(CancellableContinuationWithOwner).et = function () {
|
|
8883
|
-
return this.
|
|
8894
|
+
return this.l1g_1.et();
|
|
8884
8895
|
};
|
|
8885
8896
|
protoOf(CancellableContinuationWithOwner).ft = function () {
|
|
8886
|
-
return this.
|
|
8897
|
+
return this.l1g_1.ft();
|
|
8887
8898
|
};
|
|
8888
8899
|
protoOf(CancellableContinuationWithOwner).pv = function (exception) {
|
|
8889
|
-
return this.
|
|
8900
|
+
return this.l1g_1.pv(exception);
|
|
8890
8901
|
};
|
|
8891
8902
|
protoOf(CancellableContinuationWithOwner).qv = function (token) {
|
|
8892
|
-
this.
|
|
8903
|
+
this.l1g_1.qv(token);
|
|
8893
8904
|
};
|
|
8894
8905
|
protoOf(CancellableContinuationWithOwner).xx = function (handler) {
|
|
8895
|
-
this.
|
|
8906
|
+
this.l1g_1.xx(handler);
|
|
8896
8907
|
};
|
|
8897
8908
|
protoOf(CancellableContinuationWithOwner).rz = function (segment, index) {
|
|
8898
|
-
this.
|
|
8909
|
+
this.l1g_1.rz(segment, index);
|
|
8899
8910
|
};
|
|
8900
|
-
protoOf(CancellableContinuationWithOwner).
|
|
8901
|
-
this.
|
|
8911
|
+
protoOf(CancellableContinuationWithOwner).a1h = function (_this__u8e3s4, value) {
|
|
8912
|
+
this.l1g_1.yx(_this__u8e3s4, Unit_instance);
|
|
8902
8913
|
};
|
|
8903
8914
|
protoOf(CancellableContinuationWithOwner).yx = function (_this__u8e3s4, value) {
|
|
8904
|
-
return this.
|
|
8915
|
+
return this.a1h(_this__u8e3s4, value instanceof Unit ? value : THROW_CCE());
|
|
8905
8916
|
};
|
|
8906
8917
|
protoOf(CancellableContinuationWithOwner).sg = function (result) {
|
|
8907
|
-
this.
|
|
8918
|
+
this.l1g_1.f9(result);
|
|
8908
8919
|
};
|
|
8909
8920
|
protoOf(CancellableContinuationWithOwner).f9 = function (result) {
|
|
8910
8921
|
return this.sg(result);
|
|
8911
8922
|
};
|
|
8912
8923
|
protoOf(CancellableContinuationWithOwner).a9 = function () {
|
|
8913
|
-
return this.
|
|
8924
|
+
return this.l1g_1.a9();
|
|
8914
8925
|
};
|
|
8915
8926
|
function MutexImpl$onSelectCancellationUnlockConstructor$lambda$lambda(this$0, $owner) {
|
|
8916
8927
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
8917
|
-
this$0.
|
|
8928
|
+
this$0.o1g($owner);
|
|
8918
8929
|
return Unit_instance;
|
|
8919
8930
|
};
|
|
8920
8931
|
}
|
|
@@ -8925,19 +8936,19 @@
|
|
|
8925
8936
|
}
|
|
8926
8937
|
function MutexImpl(locked) {
|
|
8927
8938
|
SemaphoreAndMutexImpl.call(this, 1, locked ? 1 : 0);
|
|
8928
|
-
this.
|
|
8939
|
+
this.j1g_1 = atomic$ref$1(locked ? null : get_NO_OWNER());
|
|
8929
8940
|
var tmp = this;
|
|
8930
|
-
tmp.
|
|
8941
|
+
tmp.k1g_1 = MutexImpl$onSelectCancellationUnlockConstructor$lambda(this);
|
|
8931
8942
|
}
|
|
8932
|
-
protoOf(MutexImpl).
|
|
8933
|
-
return this.
|
|
8943
|
+
protoOf(MutexImpl).p1g = function () {
|
|
8944
|
+
return this.b1h() === 0;
|
|
8934
8945
|
};
|
|
8935
|
-
protoOf(MutexImpl).
|
|
8936
|
-
if (this.
|
|
8946
|
+
protoOf(MutexImpl).c1h = function (owner, $completion) {
|
|
8947
|
+
if (this.d1h(owner))
|
|
8937
8948
|
return Unit_instance;
|
|
8938
8949
|
return lockSuspend(this, owner, $completion);
|
|
8939
8950
|
};
|
|
8940
|
-
protoOf(MutexImpl).
|
|
8951
|
+
protoOf(MutexImpl).d1h = function (owner) {
|
|
8941
8952
|
var tmp;
|
|
8942
8953
|
switch (tryLockImpl(this, owner)) {
|
|
8943
8954
|
case 0:
|
|
@@ -8955,14 +8966,14 @@
|
|
|
8955
8966
|
}
|
|
8956
8967
|
return tmp;
|
|
8957
8968
|
};
|
|
8958
|
-
protoOf(MutexImpl).
|
|
8969
|
+
protoOf(MutexImpl).o1g = function (owner) {
|
|
8959
8970
|
$l$loop_0: while (true) {
|
|
8960
8971
|
// Inline function 'kotlin.check' call
|
|
8961
|
-
if (!this.
|
|
8972
|
+
if (!this.p1g()) {
|
|
8962
8973
|
var message = 'This mutex is not locked';
|
|
8963
8974
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
8964
8975
|
}
|
|
8965
|
-
var curOwner = this.
|
|
8976
|
+
var curOwner = this.j1g_1.kotlinx$atomicfu$value;
|
|
8966
8977
|
if (curOwner === get_NO_OWNER())
|
|
8967
8978
|
continue $l$loop_0;
|
|
8968
8979
|
// Inline function 'kotlin.check' call
|
|
@@ -8970,14 +8981,14 @@
|
|
|
8970
8981
|
var message_0 = 'This mutex is locked by ' + toString_0(curOwner) + ', but ' + toString_0(owner) + ' is expected';
|
|
8971
8982
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
8972
8983
|
}
|
|
8973
|
-
if (!this.
|
|
8984
|
+
if (!this.j1g_1.atomicfu$compareAndSet(curOwner, get_NO_OWNER()))
|
|
8974
8985
|
continue $l$loop_0;
|
|
8975
|
-
this.
|
|
8986
|
+
this.e1h();
|
|
8976
8987
|
return Unit_instance;
|
|
8977
8988
|
}
|
|
8978
8989
|
};
|
|
8979
8990
|
protoOf(MutexImpl).toString = function () {
|
|
8980
|
-
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.
|
|
8991
|
+
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.p1g() + ',owner=' + toString_0(this.j1g_1.kotlinx$atomicfu$value) + ']';
|
|
8981
8992
|
};
|
|
8982
8993
|
var properties_initialized_Mutex_kt_yv4p3j;
|
|
8983
8994
|
function _init_properties_Mutex_kt__jod56b() {
|
|
@@ -9019,26 +9030,26 @@
|
|
|
9019
9030
|
var SEGMENT_SIZE_0;
|
|
9020
9031
|
function decPermits($this) {
|
|
9021
9032
|
$l$loop: while (true) {
|
|
9022
|
-
var p = $this.
|
|
9023
|
-
if (p > $this.
|
|
9033
|
+
var p = $this.v1g_1.atomicfu$getAndDecrement();
|
|
9034
|
+
if (p > $this.q1g_1)
|
|
9024
9035
|
continue $l$loop;
|
|
9025
9036
|
return p;
|
|
9026
9037
|
}
|
|
9027
9038
|
}
|
|
9028
9039
|
function coerceAvailablePermitsAtMaximum($this) {
|
|
9029
9040
|
$l$loop_0: while (true) {
|
|
9030
|
-
var cur = $this.
|
|
9031
|
-
if (cur <= $this.
|
|
9041
|
+
var cur = $this.v1g_1.kotlinx$atomicfu$value;
|
|
9042
|
+
if (cur <= $this.q1g_1)
|
|
9032
9043
|
break $l$loop_0;
|
|
9033
|
-
if ($this.
|
|
9044
|
+
if ($this.v1g_1.atomicfu$compareAndSet(cur, $this.q1g_1))
|
|
9034
9045
|
break $l$loop_0;
|
|
9035
9046
|
}
|
|
9036
9047
|
}
|
|
9037
9048
|
function addAcquireToQueue($this, waiter) {
|
|
9038
|
-
var curTail = $this.
|
|
9039
|
-
var enqIdx = $this.
|
|
9049
|
+
var curTail = $this.t1g_1.kotlinx$atomicfu$value;
|
|
9050
|
+
var enqIdx = $this.u1g_1.atomicfu$getAndIncrement$long();
|
|
9040
9051
|
var createNewSegment = createSegment$ref_0();
|
|
9041
|
-
var tmp0 = $this.
|
|
9052
|
+
var tmp0 = $this.t1g_1;
|
|
9042
9053
|
// Inline function 'kotlin.Long.div' call
|
|
9043
9054
|
var other = get_SEGMENT_SIZE_0();
|
|
9044
9055
|
var tmp2 = divide(enqIdx, fromInt(other));
|
|
@@ -9061,18 +9072,18 @@
|
|
|
9061
9072
|
tmp$ret$1 = true;
|
|
9062
9073
|
break $l$block_1;
|
|
9063
9074
|
}
|
|
9064
|
-
if (!tmp2_0.
|
|
9075
|
+
if (!tmp2_0.n16()) {
|
|
9065
9076
|
tmp$ret$1 = false;
|
|
9066
9077
|
break $l$block_1;
|
|
9067
9078
|
}
|
|
9068
9079
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2_0)) {
|
|
9069
|
-
if (cur.
|
|
9080
|
+
if (cur.o16()) {
|
|
9070
9081
|
cur.d4();
|
|
9071
9082
|
}
|
|
9072
9083
|
tmp$ret$1 = true;
|
|
9073
9084
|
break $l$block_1;
|
|
9074
9085
|
}
|
|
9075
|
-
if (tmp2_0.
|
|
9086
|
+
if (tmp2_0.o16()) {
|
|
9076
9087
|
tmp2_0.d4();
|
|
9077
9088
|
}
|
|
9078
9089
|
}
|
|
@@ -9092,18 +9103,18 @@
|
|
|
9092
9103
|
var tmp$ret$4 = modulo(enqIdx, fromInt(other_0));
|
|
9093
9104
|
var i = convertToInt(tmp$ret$4);
|
|
9094
9105
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
9095
|
-
if (segment.
|
|
9106
|
+
if (segment.j1h_1.atomicfu$get(i).atomicfu$compareAndSet(null, waiter)) {
|
|
9096
9107
|
waiter.rz(segment, i);
|
|
9097
9108
|
return true;
|
|
9098
9109
|
}
|
|
9099
9110
|
var tmp4 = get_PERMIT();
|
|
9100
9111
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
9101
9112
|
var value = get_TAKEN();
|
|
9102
|
-
if (segment.
|
|
9113
|
+
if (segment.j1h_1.atomicfu$get(i).atomicfu$compareAndSet(tmp4, value)) {
|
|
9103
9114
|
if (isInterface(waiter, CancellableContinuation)) {
|
|
9104
9115
|
if (!isInterface(waiter, CancellableContinuation))
|
|
9105
9116
|
THROW_CCE();
|
|
9106
|
-
waiter.zx(Unit_instance, $this.
|
|
9117
|
+
waiter.zx(Unit_instance, $this.w1g_1);
|
|
9107
9118
|
} else {
|
|
9108
9119
|
if (isInterface(waiter, SelectInstance)) {
|
|
9109
9120
|
waiter.e13(Unit_instance);
|
|
@@ -9119,13 +9130,13 @@
|
|
|
9119
9130
|
return false;
|
|
9120
9131
|
}
|
|
9121
9132
|
function tryResumeNextFromQueue($this) {
|
|
9122
|
-
var curHead = $this.
|
|
9123
|
-
var deqIdx = $this.
|
|
9133
|
+
var curHead = $this.r1g_1.kotlinx$atomicfu$value;
|
|
9134
|
+
var deqIdx = $this.s1g_1.atomicfu$getAndIncrement$long();
|
|
9124
9135
|
// Inline function 'kotlin.Long.div' call
|
|
9125
9136
|
var other = get_SEGMENT_SIZE_0();
|
|
9126
9137
|
var id = divide(deqIdx, fromInt(other));
|
|
9127
9138
|
var createNewSegment = createSegment$ref_1();
|
|
9128
|
-
var tmp0 = $this.
|
|
9139
|
+
var tmp0 = $this.r1g_1;
|
|
9129
9140
|
var tmp$ret$3;
|
|
9130
9141
|
$l$block_2: {
|
|
9131
9142
|
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
@@ -9145,18 +9156,18 @@
|
|
|
9145
9156
|
tmp$ret$1 = true;
|
|
9146
9157
|
break $l$block_1;
|
|
9147
9158
|
}
|
|
9148
|
-
if (!tmp2.
|
|
9159
|
+
if (!tmp2.n16()) {
|
|
9149
9160
|
tmp$ret$1 = false;
|
|
9150
9161
|
break $l$block_1;
|
|
9151
9162
|
}
|
|
9152
9163
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
9153
|
-
if (cur.
|
|
9164
|
+
if (cur.o16()) {
|
|
9154
9165
|
cur.d4();
|
|
9155
9166
|
}
|
|
9156
9167
|
tmp$ret$1 = true;
|
|
9157
9168
|
break $l$block_1;
|
|
9158
9169
|
}
|
|
9159
|
-
if (tmp2.
|
|
9170
|
+
if (tmp2.o16()) {
|
|
9160
9171
|
tmp2.d4();
|
|
9161
9172
|
}
|
|
9162
9173
|
}
|
|
@@ -9171,7 +9182,7 @@
|
|
|
9171
9182
|
}
|
|
9172
9183
|
}
|
|
9173
9184
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(tmp$ret$3);
|
|
9174
|
-
segment.
|
|
9185
|
+
segment.v16();
|
|
9175
9186
|
if (compare(segment.qy_1, id) > 0)
|
|
9176
9187
|
return false;
|
|
9177
9188
|
// Inline function 'kotlin.Long.rem' call
|
|
@@ -9180,7 +9191,7 @@
|
|
|
9180
9191
|
var i = convertToInt(tmp$ret$4);
|
|
9181
9192
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.getAndSet' call
|
|
9182
9193
|
var value = get_PERMIT();
|
|
9183
|
-
var cellState = segment.
|
|
9194
|
+
var cellState = segment.j1h_1.atomicfu$get(i).atomicfu$getAndSet(value);
|
|
9184
9195
|
if (cellState === null) {
|
|
9185
9196
|
// Inline function 'kotlin.repeat' call
|
|
9186
9197
|
var times = get_MAX_SPIN_CYCLES();
|
|
@@ -9190,14 +9201,14 @@
|
|
|
9190
9201
|
var index = inductionVariable;
|
|
9191
9202
|
inductionVariable = inductionVariable + 1 | 0;
|
|
9192
9203
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.get' call
|
|
9193
|
-
if (segment.
|
|
9204
|
+
if (segment.j1h_1.atomicfu$get(i).kotlinx$atomicfu$value === get_TAKEN())
|
|
9194
9205
|
return true;
|
|
9195
9206
|
}
|
|
9196
9207
|
while (inductionVariable < times);
|
|
9197
9208
|
var tmp4 = get_PERMIT();
|
|
9198
9209
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
9199
9210
|
var value_0 = get_BROKEN();
|
|
9200
|
-
return !segment.
|
|
9211
|
+
return !segment.j1h_1.atomicfu$get(i).atomicfu$compareAndSet(tmp4, value_0);
|
|
9201
9212
|
} else if (cellState === get_CANCELLED())
|
|
9202
9213
|
return false;
|
|
9203
9214
|
else
|
|
@@ -9208,7 +9219,7 @@
|
|
|
9208
9219
|
if (isInterface(_this__u8e3s4, CancellableContinuation)) {
|
|
9209
9220
|
if (!isInterface(_this__u8e3s4, CancellableContinuation))
|
|
9210
9221
|
THROW_CCE();
|
|
9211
|
-
var token = _this__u8e3s4.wx(Unit_instance, null, $this.
|
|
9222
|
+
var token = _this__u8e3s4.wx(Unit_instance, null, $this.w1g_1);
|
|
9212
9223
|
var tmp_0;
|
|
9213
9224
|
if (!(token == null)) {
|
|
9214
9225
|
_this__u8e3s4.qv(token);
|
|
@@ -9229,7 +9240,7 @@
|
|
|
9229
9240
|
}
|
|
9230
9241
|
function SemaphoreAndMutexImpl$onCancellationRelease$lambda(this$0) {
|
|
9231
9242
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
9232
|
-
this$0.
|
|
9243
|
+
this$0.e1h();
|
|
9233
9244
|
return Unit_instance;
|
|
9234
9245
|
};
|
|
9235
9246
|
}
|
|
@@ -9248,41 +9259,41 @@
|
|
|
9248
9259
|
return l;
|
|
9249
9260
|
}
|
|
9250
9261
|
function SemaphoreAndMutexImpl(permits, acquiredPermits) {
|
|
9251
|
-
this.
|
|
9252
|
-
this.
|
|
9253
|
-
this.
|
|
9262
|
+
this.q1g_1 = permits;
|
|
9263
|
+
this.s1g_1 = atomic$long$1(new Long(0, 0));
|
|
9264
|
+
this.u1g_1 = atomic$long$1(new Long(0, 0));
|
|
9254
9265
|
// Inline function 'kotlin.require' call
|
|
9255
|
-
if (!(this.
|
|
9256
|
-
var message = 'Semaphore should have at least 1 permit, but had ' + this.
|
|
9266
|
+
if (!(this.q1g_1 > 0)) {
|
|
9267
|
+
var message = 'Semaphore should have at least 1 permit, but had ' + this.q1g_1;
|
|
9257
9268
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9258
9269
|
}
|
|
9259
9270
|
// Inline function 'kotlin.require' call
|
|
9260
|
-
if (!(0 <= acquiredPermits ? acquiredPermits <= this.
|
|
9261
|
-
var message_0 = 'The number of acquired permits should be in 0..' + this.
|
|
9271
|
+
if (!(0 <= acquiredPermits ? acquiredPermits <= this.q1g_1 : false)) {
|
|
9272
|
+
var message_0 = 'The number of acquired permits should be in 0..' + this.q1g_1;
|
|
9262
9273
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
9263
9274
|
}
|
|
9264
9275
|
var s = new SemaphoreSegment(new Long(0, 0), null, 2);
|
|
9265
|
-
this.
|
|
9266
|
-
this.
|
|
9267
|
-
this.
|
|
9276
|
+
this.r1g_1 = atomic$ref$1(s);
|
|
9277
|
+
this.t1g_1 = atomic$ref$1(s);
|
|
9278
|
+
this.v1g_1 = atomic$int$1(this.q1g_1 - acquiredPermits | 0);
|
|
9268
9279
|
var tmp = this;
|
|
9269
|
-
tmp.
|
|
9280
|
+
tmp.w1g_1 = SemaphoreAndMutexImpl$onCancellationRelease$lambda(this);
|
|
9270
9281
|
}
|
|
9271
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
9282
|
+
protoOf(SemaphoreAndMutexImpl).b1h = function () {
|
|
9272
9283
|
// Inline function 'kotlin.math.max' call
|
|
9273
|
-
var a = this.
|
|
9284
|
+
var a = this.v1g_1.kotlinx$atomicfu$value;
|
|
9274
9285
|
return Math.max(a, 0);
|
|
9275
9286
|
};
|
|
9276
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
9287
|
+
protoOf(SemaphoreAndMutexImpl).x1g = function () {
|
|
9277
9288
|
$l$loop: while (true) {
|
|
9278
|
-
var p = this.
|
|
9279
|
-
if (p > this.
|
|
9289
|
+
var p = this.v1g_1.kotlinx$atomicfu$value;
|
|
9290
|
+
if (p > this.q1g_1) {
|
|
9280
9291
|
coerceAvailablePermitsAtMaximum(this);
|
|
9281
9292
|
continue $l$loop;
|
|
9282
9293
|
}
|
|
9283
9294
|
if (p <= 0)
|
|
9284
9295
|
return false;
|
|
9285
|
-
if (this.
|
|
9296
|
+
if (this.v1g_1.atomicfu$compareAndSet(p, p - 1 | 0))
|
|
9286
9297
|
return true;
|
|
9287
9298
|
}
|
|
9288
9299
|
};
|
|
@@ -9293,7 +9304,7 @@
|
|
|
9293
9304
|
while (true) {
|
|
9294
9305
|
var p = decPermits(this);
|
|
9295
9306
|
if (p > 0) {
|
|
9296
|
-
waiter.zx(Unit_instance, this.
|
|
9307
|
+
waiter.zx(Unit_instance, this.w1g_1);
|
|
9297
9308
|
tmp$ret$1 = Unit_instance;
|
|
9298
9309
|
break $l$block_0;
|
|
9299
9310
|
}
|
|
@@ -9306,13 +9317,13 @@
|
|
|
9306
9317
|
}
|
|
9307
9318
|
return tmp$ret$1;
|
|
9308
9319
|
};
|
|
9309
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
9320
|
+
protoOf(SemaphoreAndMutexImpl).e1h = function () {
|
|
9310
9321
|
while (true) {
|
|
9311
|
-
var p = this.
|
|
9312
|
-
if (p >= this.
|
|
9322
|
+
var p = this.v1g_1.atomicfu$getAndIncrement();
|
|
9323
|
+
if (p >= this.q1g_1) {
|
|
9313
9324
|
coerceAvailablePermitsAtMaximum(this);
|
|
9314
9325
|
// Inline function 'kotlin.error' call
|
|
9315
|
-
var message = 'The number of released permits cannot be greater than ' + this.
|
|
9326
|
+
var message = 'The number of released permits cannot be greater than ' + this.q1g_1;
|
|
9316
9327
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
9317
9328
|
}
|
|
9318
9329
|
if (p >= 0)
|
|
@@ -9323,16 +9334,16 @@
|
|
|
9323
9334
|
};
|
|
9324
9335
|
function SemaphoreSegment(id, prev, pointers) {
|
|
9325
9336
|
Segment.call(this, id, prev, pointers);
|
|
9326
|
-
this.
|
|
9337
|
+
this.j1h_1 = atomicfu$AtomicRefArray$ofNulls(get_SEGMENT_SIZE_0());
|
|
9327
9338
|
}
|
|
9328
|
-
protoOf(SemaphoreSegment).
|
|
9339
|
+
protoOf(SemaphoreSegment).o15 = function () {
|
|
9329
9340
|
return get_SEGMENT_SIZE_0();
|
|
9330
9341
|
};
|
|
9331
9342
|
protoOf(SemaphoreSegment).sy = function (index, cause, context) {
|
|
9332
9343
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.set' call
|
|
9333
9344
|
var value = get_CANCELLED();
|
|
9334
|
-
this.
|
|
9335
|
-
this.
|
|
9345
|
+
this.j1h_1.atomicfu$get(index).kotlinx$atomicfu$value = value;
|
|
9346
|
+
this.l16();
|
|
9336
9347
|
};
|
|
9337
9348
|
protoOf(SemaphoreSegment).toString = function () {
|
|
9338
9349
|
return 'SemaphoreSegment[id=' + this.qy_1.toString() + ', hashCode=' + hashCode(this) + ']';
|
|
@@ -9411,8 +9422,8 @@
|
|
|
9411
9422
|
NodeDispatcher_instance = this;
|
|
9412
9423
|
SetTimeoutBasedDispatcher.call(this);
|
|
9413
9424
|
}
|
|
9414
|
-
protoOf(NodeDispatcher).
|
|
9415
|
-
process.nextTick(this.
|
|
9425
|
+
protoOf(NodeDispatcher).m1h = function () {
|
|
9426
|
+
process.nextTick(this.t1h_1.r1h_1);
|
|
9416
9427
|
};
|
|
9417
9428
|
var NodeDispatcher_instance;
|
|
9418
9429
|
function NodeDispatcher_getInstance() {
|
|
@@ -9422,24 +9433,24 @@
|
|
|
9422
9433
|
}
|
|
9423
9434
|
function ScheduledMessageQueue$processQueue$lambda(this$0) {
|
|
9424
9435
|
return function () {
|
|
9425
|
-
this$0.
|
|
9436
|
+
this$0.x1h();
|
|
9426
9437
|
return Unit_instance;
|
|
9427
9438
|
};
|
|
9428
9439
|
}
|
|
9429
9440
|
function ScheduledMessageQueue(dispatcher) {
|
|
9430
9441
|
MessageQueue.call(this);
|
|
9431
|
-
this.
|
|
9442
|
+
this.q1h_1 = dispatcher;
|
|
9432
9443
|
var tmp = this;
|
|
9433
|
-
tmp.
|
|
9444
|
+
tmp.r1h_1 = ScheduledMessageQueue$processQueue$lambda(this);
|
|
9434
9445
|
}
|
|
9435
|
-
protoOf(ScheduledMessageQueue).
|
|
9436
|
-
this.
|
|
9446
|
+
protoOf(ScheduledMessageQueue).y1h = function () {
|
|
9447
|
+
this.q1h_1.m1h();
|
|
9437
9448
|
};
|
|
9438
|
-
protoOf(ScheduledMessageQueue).
|
|
9439
|
-
setTimeout(this.
|
|
9449
|
+
protoOf(ScheduledMessageQueue).z1h = function () {
|
|
9450
|
+
setTimeout(this.r1h_1, 0);
|
|
9440
9451
|
};
|
|
9441
|
-
protoOf(ScheduledMessageQueue).
|
|
9442
|
-
setTimeout(this.
|
|
9452
|
+
protoOf(ScheduledMessageQueue).a1i = function (timeout) {
|
|
9453
|
+
setTimeout(this.r1h_1, timeout);
|
|
9443
9454
|
};
|
|
9444
9455
|
function w3cSetTimeout(handler, timeout) {
|
|
9445
9456
|
return setTimeout(handler, timeout);
|
|
@@ -9447,9 +9458,9 @@
|
|
|
9447
9458
|
function WindowMessageQueue$lambda(this$0) {
|
|
9448
9459
|
return function (event) {
|
|
9449
9460
|
var tmp;
|
|
9450
|
-
if (event.source == this$0.
|
|
9461
|
+
if (event.source == this$0.n1i_1 && event.data == this$0.o1i_1) {
|
|
9451
9462
|
event.stopPropagation();
|
|
9452
|
-
this$0.
|
|
9463
|
+
this$0.x1h();
|
|
9453
9464
|
tmp = Unit_instance;
|
|
9454
9465
|
}
|
|
9455
9466
|
return Unit_instance;
|
|
@@ -9457,22 +9468,22 @@
|
|
|
9457
9468
|
}
|
|
9458
9469
|
function WindowMessageQueue$schedule$lambda(this$0) {
|
|
9459
9470
|
return function (it) {
|
|
9460
|
-
this$0.
|
|
9471
|
+
this$0.x1h();
|
|
9461
9472
|
return Unit_instance;
|
|
9462
9473
|
};
|
|
9463
9474
|
}
|
|
9464
9475
|
function WindowMessageQueue(window_0) {
|
|
9465
9476
|
MessageQueue.call(this);
|
|
9466
|
-
this.
|
|
9467
|
-
this.
|
|
9468
|
-
this.
|
|
9477
|
+
this.n1i_1 = window_0;
|
|
9478
|
+
this.o1i_1 = 'dispatchCoroutine';
|
|
9479
|
+
this.n1i_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
|
|
9469
9480
|
}
|
|
9470
|
-
protoOf(WindowMessageQueue).
|
|
9481
|
+
protoOf(WindowMessageQueue).y1h = function () {
|
|
9471
9482
|
var tmp = Promise.resolve(Unit_instance);
|
|
9472
9483
|
tmp.then(WindowMessageQueue$schedule$lambda(this));
|
|
9473
9484
|
};
|
|
9474
|
-
protoOf(WindowMessageQueue).
|
|
9475
|
-
this.
|
|
9485
|
+
protoOf(WindowMessageQueue).z1h = function () {
|
|
9486
|
+
this.n1i_1.postMessage(this.o1i_1, '*');
|
|
9476
9487
|
};
|
|
9477
9488
|
function w3cSetTimeout_0(window_0, handler, timeout) {
|
|
9478
9489
|
return setTimeout_0(window_0, handler, timeout);
|
|
@@ -9578,8 +9589,8 @@
|
|
|
9578
9589
|
SetTimeoutDispatcher_instance = this;
|
|
9579
9590
|
SetTimeoutBasedDispatcher.call(this);
|
|
9580
9591
|
}
|
|
9581
|
-
protoOf(SetTimeoutDispatcher).
|
|
9582
|
-
this.
|
|
9592
|
+
protoOf(SetTimeoutDispatcher).m1h = function () {
|
|
9593
|
+
this.t1h_1.a1i(0);
|
|
9583
9594
|
};
|
|
9584
9595
|
var SetTimeoutDispatcher_instance;
|
|
9585
9596
|
function SetTimeoutDispatcher_getInstance() {
|
|
@@ -9596,31 +9607,31 @@
|
|
|
9596
9607
|
}
|
|
9597
9608
|
function SetTimeoutBasedDispatcher() {
|
|
9598
9609
|
CoroutineDispatcher.call(this);
|
|
9599
|
-
this.
|
|
9610
|
+
this.t1h_1 = new ScheduledMessageQueue(this);
|
|
9600
9611
|
}
|
|
9601
9612
|
protoOf(SetTimeoutBasedDispatcher).w10 = function (context, block) {
|
|
9602
|
-
this.
|
|
9613
|
+
this.t1h_1.b1i(block);
|
|
9603
9614
|
};
|
|
9604
9615
|
protoOf(SetTimeoutBasedDispatcher).d11 = function (timeMillis, continuation) {
|
|
9605
9616
|
var handle = w3cSetTimeout(SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
9606
9617
|
invokeOnCancellation(continuation, new ClearTimeout(handle));
|
|
9607
9618
|
};
|
|
9608
9619
|
function MessageQueue() {
|
|
9609
|
-
this.
|
|
9610
|
-
this.
|
|
9611
|
-
this.
|
|
9620
|
+
this.u1h_1 = ArrayDeque_init_$Create$();
|
|
9621
|
+
this.v1h_1 = 16;
|
|
9622
|
+
this.w1h_1 = false;
|
|
9612
9623
|
}
|
|
9613
|
-
protoOf(MessageQueue).
|
|
9614
|
-
this.
|
|
9615
|
-
if (!this.
|
|
9616
|
-
this.
|
|
9617
|
-
this.
|
|
9624
|
+
protoOf(MessageQueue).b1i = function (element) {
|
|
9625
|
+
this.c1i(element);
|
|
9626
|
+
if (!this.w1h_1) {
|
|
9627
|
+
this.w1h_1 = true;
|
|
9628
|
+
this.y1h();
|
|
9618
9629
|
}
|
|
9619
9630
|
};
|
|
9620
|
-
protoOf(MessageQueue).
|
|
9631
|
+
protoOf(MessageQueue).x1h = function () {
|
|
9621
9632
|
try {
|
|
9622
9633
|
// Inline function 'kotlin.repeat' call
|
|
9623
|
-
var times = this.
|
|
9634
|
+
var times = this.v1h_1;
|
|
9624
9635
|
var inductionVariable = 0;
|
|
9625
9636
|
if (inductionVariable < times)
|
|
9626
9637
|
do {
|
|
@@ -9639,105 +9650,105 @@
|
|
|
9639
9650
|
while (inductionVariable < times);
|
|
9640
9651
|
}finally {
|
|
9641
9652
|
if (this.j()) {
|
|
9642
|
-
this.
|
|
9653
|
+
this.w1h_1 = false;
|
|
9643
9654
|
} else {
|
|
9644
|
-
this.
|
|
9655
|
+
this.z1h();
|
|
9645
9656
|
}
|
|
9646
9657
|
}
|
|
9647
9658
|
};
|
|
9648
|
-
protoOf(MessageQueue).
|
|
9649
|
-
return this.
|
|
9659
|
+
protoOf(MessageQueue).c1i = function (element) {
|
|
9660
|
+
return this.u1h_1.p(element);
|
|
9650
9661
|
};
|
|
9651
9662
|
protoOf(MessageQueue).p = function (element) {
|
|
9652
|
-
return this.
|
|
9663
|
+
return this.c1i((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9653
9664
|
};
|
|
9654
|
-
protoOf(MessageQueue).
|
|
9655
|
-
this.
|
|
9665
|
+
protoOf(MessageQueue).d1i = function (index, element) {
|
|
9666
|
+
this.u1h_1.d2(index, element);
|
|
9656
9667
|
};
|
|
9657
9668
|
protoOf(MessageQueue).d2 = function (index, element) {
|
|
9658
|
-
return this.
|
|
9669
|
+
return this.d1i(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9659
9670
|
};
|
|
9660
|
-
protoOf(MessageQueue).
|
|
9661
|
-
return this.
|
|
9671
|
+
protoOf(MessageQueue).e1i = function (elements) {
|
|
9672
|
+
return this.u1h_1.w(elements);
|
|
9662
9673
|
};
|
|
9663
9674
|
protoOf(MessageQueue).w = function (elements) {
|
|
9664
|
-
return this.
|
|
9675
|
+
return this.e1i(elements);
|
|
9665
9676
|
};
|
|
9666
9677
|
protoOf(MessageQueue).b2 = function () {
|
|
9667
|
-
this.
|
|
9678
|
+
this.u1h_1.b2();
|
|
9668
9679
|
};
|
|
9669
|
-
protoOf(MessageQueue).
|
|
9670
|
-
return this.
|
|
9680
|
+
protoOf(MessageQueue).f1i = function (index, element) {
|
|
9681
|
+
return this.u1h_1.c2(index, element);
|
|
9671
9682
|
};
|
|
9672
9683
|
protoOf(MessageQueue).c2 = function (index, element) {
|
|
9673
|
-
return this.
|
|
9684
|
+
return this.f1i(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9674
9685
|
};
|
|
9675
9686
|
protoOf(MessageQueue).e2 = function (index) {
|
|
9676
|
-
return this.
|
|
9687
|
+
return this.u1h_1.e2(index);
|
|
9677
9688
|
};
|
|
9678
9689
|
protoOf(MessageQueue).y1 = function () {
|
|
9679
|
-
return this.
|
|
9690
|
+
return this.u1h_1.y1();
|
|
9680
9691
|
};
|
|
9681
9692
|
protoOf(MessageQueue).z1 = function (index) {
|
|
9682
|
-
return this.
|
|
9693
|
+
return this.u1h_1.z1(index);
|
|
9683
9694
|
};
|
|
9684
9695
|
protoOf(MessageQueue).a2 = function (fromIndex, toIndex) {
|
|
9685
|
-
return this.
|
|
9696
|
+
return this.u1h_1.a2(fromIndex, toIndex);
|
|
9686
9697
|
};
|
|
9687
9698
|
protoOf(MessageQueue).f2 = function () {
|
|
9688
|
-
return this.
|
|
9699
|
+
return this.u1h_1.f2();
|
|
9689
9700
|
};
|
|
9690
9701
|
protoOf(MessageQueue).j = function () {
|
|
9691
|
-
return this.
|
|
9702
|
+
return this.u1h_1.j();
|
|
9692
9703
|
};
|
|
9693
|
-
protoOf(MessageQueue).
|
|
9694
|
-
return this.
|
|
9704
|
+
protoOf(MessageQueue).g1i = function (element) {
|
|
9705
|
+
return this.u1h_1.u1(element);
|
|
9695
9706
|
};
|
|
9696
9707
|
protoOf(MessageQueue).u1 = function (element) {
|
|
9697
9708
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
9698
9709
|
return false;
|
|
9699
|
-
return this.
|
|
9710
|
+
return this.g1i((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9700
9711
|
};
|
|
9701
9712
|
protoOf(MessageQueue).r = function () {
|
|
9702
|
-
return this.
|
|
9713
|
+
return this.u1h_1.r();
|
|
9703
9714
|
};
|
|
9704
|
-
protoOf(MessageQueue).
|
|
9705
|
-
return this.
|
|
9715
|
+
protoOf(MessageQueue).h1i = function (elements) {
|
|
9716
|
+
return this.u1h_1.v1(elements);
|
|
9706
9717
|
};
|
|
9707
9718
|
protoOf(MessageQueue).v1 = function (elements) {
|
|
9708
|
-
return this.
|
|
9719
|
+
return this.h1i(elements);
|
|
9709
9720
|
};
|
|
9710
9721
|
protoOf(MessageQueue).v = function (index) {
|
|
9711
|
-
return this.
|
|
9722
|
+
return this.u1h_1.v(index);
|
|
9712
9723
|
};
|
|
9713
|
-
protoOf(MessageQueue).
|
|
9714
|
-
return this.
|
|
9724
|
+
protoOf(MessageQueue).i1i = function (element) {
|
|
9725
|
+
return this.u1h_1.w1(element);
|
|
9715
9726
|
};
|
|
9716
9727
|
protoOf(MessageQueue).w1 = function (element) {
|
|
9717
9728
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
9718
9729
|
return -1;
|
|
9719
|
-
return this.
|
|
9730
|
+
return this.i1i((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9720
9731
|
};
|
|
9721
|
-
protoOf(MessageQueue).
|
|
9722
|
-
return this.
|
|
9732
|
+
protoOf(MessageQueue).j1i = function (element) {
|
|
9733
|
+
return this.u1h_1.x1(element);
|
|
9723
9734
|
};
|
|
9724
9735
|
protoOf(MessageQueue).x1 = function (element) {
|
|
9725
9736
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
9726
9737
|
return -1;
|
|
9727
|
-
return this.
|
|
9738
|
+
return this.j1i((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
9728
9739
|
};
|
|
9729
9740
|
protoOf(MessageQueue).asJsReadonlyArrayView = function () {
|
|
9730
|
-
return this.
|
|
9741
|
+
return this.u1h_1.asJsReadonlyArrayView();
|
|
9731
9742
|
};
|
|
9732
9743
|
protoOf(MessageQueue).u = function () {
|
|
9733
|
-
return this.
|
|
9744
|
+
return this.u1h_1.ef_1;
|
|
9734
9745
|
};
|
|
9735
9746
|
function WindowClearTimeout($outer, handle) {
|
|
9736
|
-
this.
|
|
9747
|
+
this.w1i_1 = $outer;
|
|
9737
9748
|
ClearTimeout.call(this, handle);
|
|
9738
9749
|
}
|
|
9739
9750
|
protoOf(WindowClearTimeout).hv = function () {
|
|
9740
|
-
w3cClearTimeout(this.
|
|
9751
|
+
w3cClearTimeout(this.w1i_1.y1i_1, this.a1j_1);
|
|
9741
9752
|
};
|
|
9742
9753
|
function WindowDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
9743
9754
|
return function () {
|
|
@@ -9748,30 +9759,30 @@
|
|
|
9748
9759
|
}
|
|
9749
9760
|
function WindowDispatcher(window_0) {
|
|
9750
9761
|
CoroutineDispatcher.call(this);
|
|
9751
|
-
this.
|
|
9752
|
-
this.
|
|
9762
|
+
this.y1i_1 = window_0;
|
|
9763
|
+
this.z1i_1 = new WindowMessageQueue(this.y1i_1);
|
|
9753
9764
|
}
|
|
9754
9765
|
protoOf(WindowDispatcher).w10 = function (context, block) {
|
|
9755
|
-
return this.
|
|
9766
|
+
return this.z1i_1.b1i(block);
|
|
9756
9767
|
};
|
|
9757
9768
|
protoOf(WindowDispatcher).d11 = function (timeMillis, continuation) {
|
|
9758
|
-
var handle = w3cSetTimeout_0(this.
|
|
9769
|
+
var handle = w3cSetTimeout_0(this.y1i_1, WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
9759
9770
|
invokeOnCancellation(continuation, new WindowClearTimeout(this, handle));
|
|
9760
9771
|
};
|
|
9761
9772
|
function delayToInt(timeMillis) {
|
|
9762
9773
|
return convertToInt(coerceIn(timeMillis, new Long(0, 0), new Long(2147483647, 0)));
|
|
9763
9774
|
}
|
|
9764
9775
|
function ClearTimeout(handle) {
|
|
9765
|
-
this.
|
|
9776
|
+
this.a1j_1 = handle;
|
|
9766
9777
|
}
|
|
9767
9778
|
protoOf(ClearTimeout).hv = function () {
|
|
9768
|
-
w3cClearTimeout_0(this.
|
|
9779
|
+
w3cClearTimeout_0(this.a1j_1);
|
|
9769
9780
|
};
|
|
9770
9781
|
protoOf(ClearTimeout).iv = function (cause) {
|
|
9771
9782
|
this.hv();
|
|
9772
9783
|
};
|
|
9773
9784
|
protoOf(ClearTimeout).toString = function () {
|
|
9774
|
-
return 'ClearTimeout[' + this.
|
|
9785
|
+
return 'ClearTimeout[' + this.a1j_1 + ']';
|
|
9775
9786
|
};
|
|
9776
9787
|
function newCoroutineContext(_this__u8e3s4, context) {
|
|
9777
9788
|
var combined = _this__u8e3s4.js().fh(context);
|
|
@@ -9815,22 +9826,22 @@
|
|
|
9815
9826
|
}
|
|
9816
9827
|
function JsMainDispatcher(delegate, invokeImmediately) {
|
|
9817
9828
|
MainCoroutineDispatcher.call(this);
|
|
9818
|
-
this.
|
|
9819
|
-
this.
|
|
9820
|
-
this.
|
|
9829
|
+
this.g1j_1 = delegate;
|
|
9830
|
+
this.h1j_1 = invokeImmediately;
|
|
9831
|
+
this.i1j_1 = this.h1j_1 ? this : new JsMainDispatcher(this.g1j_1, true);
|
|
9821
9832
|
}
|
|
9822
9833
|
protoOf(JsMainDispatcher).q14 = function () {
|
|
9823
|
-
return this.
|
|
9834
|
+
return this.i1j_1;
|
|
9824
9835
|
};
|
|
9825
9836
|
protoOf(JsMainDispatcher).v10 = function (context) {
|
|
9826
|
-
return !this.
|
|
9837
|
+
return !this.h1j_1;
|
|
9827
9838
|
};
|
|
9828
9839
|
protoOf(JsMainDispatcher).w10 = function (context, block) {
|
|
9829
|
-
return this.
|
|
9840
|
+
return this.g1j_1.w10(context, block);
|
|
9830
9841
|
};
|
|
9831
9842
|
protoOf(JsMainDispatcher).toString = function () {
|
|
9832
9843
|
var tmp0_elvis_lhs = this.r14();
|
|
9833
|
-
return tmp0_elvis_lhs == null ? this.
|
|
9844
|
+
return tmp0_elvis_lhs == null ? this.g1j_1.toString() : tmp0_elvis_lhs;
|
|
9834
9845
|
};
|
|
9835
9846
|
function get_RECOVER_STACK_TRACES() {
|
|
9836
9847
|
return RECOVER_STACK_TRACES;
|
|
@@ -9842,10 +9853,10 @@
|
|
|
9842
9853
|
function JobCancellationException(message, cause, job) {
|
|
9843
9854
|
CancellationException_init_$Init$(message, cause, this);
|
|
9844
9855
|
captureStack(this, JobCancellationException);
|
|
9845
|
-
this.
|
|
9856
|
+
this.j1j_1 = job;
|
|
9846
9857
|
}
|
|
9847
9858
|
protoOf(JobCancellationException).toString = function () {
|
|
9848
|
-
return protoOf(CancellationException).toString.call(this) + '; job=' + toString(this.
|
|
9859
|
+
return protoOf(CancellationException).toString.call(this) + '; job=' + toString(this.j1j_1);
|
|
9849
9860
|
};
|
|
9850
9861
|
protoOf(JobCancellationException).equals = function (other) {
|
|
9851
9862
|
var tmp;
|
|
@@ -9861,7 +9872,7 @@
|
|
|
9861
9872
|
tmp_2 = false;
|
|
9862
9873
|
}
|
|
9863
9874
|
if (tmp_2) {
|
|
9864
|
-
tmp_1 = equals(other.
|
|
9875
|
+
tmp_1 = equals(other.j1j_1, this.j1j_1);
|
|
9865
9876
|
} else {
|
|
9866
9877
|
tmp_1 = false;
|
|
9867
9878
|
}
|
|
@@ -9875,7 +9886,7 @@
|
|
|
9875
9886
|
return tmp;
|
|
9876
9887
|
};
|
|
9877
9888
|
protoOf(JobCancellationException).hashCode = function () {
|
|
9878
|
-
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.
|
|
9889
|
+
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.j1j_1) | 0, 31);
|
|
9879
9890
|
var tmp0_safe_receiver = this.cause;
|
|
9880
9891
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
9881
9892
|
return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
@@ -9887,7 +9898,7 @@
|
|
|
9887
9898
|
function AbortFlowException(owner) {
|
|
9888
9899
|
CancellationException_init_$Init$_0('Flow was aborted, no more elements needed', this);
|
|
9889
9900
|
captureStack(this, AbortFlowException);
|
|
9890
|
-
this.
|
|
9901
|
+
this.x1b_1 = owner;
|
|
9891
9902
|
}
|
|
9892
9903
|
function identitySet(expectedSize) {
|
|
9893
9904
|
return HashSet_init_$Create$(expectedSize);
|
|
@@ -9922,7 +9933,7 @@
|
|
|
9922
9933
|
var prev = this.yv_1;
|
|
9923
9934
|
var tmp;
|
|
9924
9935
|
if (prev instanceof ListClosed) {
|
|
9925
|
-
tmp = ((prev.
|
|
9936
|
+
tmp = ((prev.n1j_1 & permissionsBitmask) === 0 && prev.aw(node, permissionsBitmask));
|
|
9926
9937
|
} else {
|
|
9927
9938
|
node.xv_1 = this;
|
|
9928
9939
|
node.yv_1 = prev;
|
|
@@ -9956,7 +9967,7 @@
|
|
|
9956
9967
|
}
|
|
9957
9968
|
function ListClosed(forbiddenElementsBitmask) {
|
|
9958
9969
|
LockFreeLinkedListNode.call(this);
|
|
9959
|
-
this.
|
|
9970
|
+
this.n1j_1 = forbiddenElementsBitmask;
|
|
9960
9971
|
}
|
|
9961
9972
|
function recoverStackTrace(exception, continuation) {
|
|
9962
9973
|
return exception;
|
|
@@ -9997,9 +10008,9 @@
|
|
|
9997
10008
|
protoOf(JobSupport).dh = minusKey_0;
|
|
9998
10009
|
protoOf(CoroutineDispatcher).h9 = get;
|
|
9999
10010
|
protoOf(CoroutineDispatcher).dh = minusKey;
|
|
10000
|
-
protoOf(BufferedChannel).
|
|
10001
|
-
protoOf(BufferedChannel).
|
|
10002
|
-
protoOf(ChannelCoroutine).
|
|
10011
|
+
protoOf(BufferedChannel).z19 = close$default;
|
|
10012
|
+
protoOf(BufferedChannel).b1a = cancel$default_0;
|
|
10013
|
+
protoOf(ChannelCoroutine).z19 = close$default;
|
|
10003
10014
|
defineProp(protoOf(DispatchException), 'cause', function () {
|
|
10004
10015
|
return this.f();
|
|
10005
10016
|
});
|
|
@@ -10022,40 +10033,41 @@
|
|
|
10022
10033
|
_.$_$.b = awaitAll;
|
|
10023
10034
|
_.$_$.c = await_0;
|
|
10024
10035
|
_.$_$.d = delay;
|
|
10025
|
-
_.$_$.e =
|
|
10026
|
-
_.$_$.f =
|
|
10027
|
-
_.$_$.g =
|
|
10028
|
-
_.$_$.h =
|
|
10029
|
-
_.$_$.i =
|
|
10030
|
-
_.$_$.j =
|
|
10031
|
-
_.$_$.k =
|
|
10032
|
-
_.$_$.l =
|
|
10033
|
-
_.$_$.m =
|
|
10034
|
-
_.$_$.n =
|
|
10035
|
-
_.$_$.o =
|
|
10036
|
-
_.$_$.p =
|
|
10037
|
-
_.$_$.q =
|
|
10038
|
-
_.$_$.r =
|
|
10039
|
-
_.$_$.s =
|
|
10040
|
-
_.$_$.t =
|
|
10041
|
-
_.$_$.u =
|
|
10042
|
-
_.$_$.v =
|
|
10043
|
-
_.$_$.w =
|
|
10044
|
-
_.$_$.x =
|
|
10045
|
-
_.$_$.y =
|
|
10046
|
-
_.$_$.z =
|
|
10047
|
-
_.$_$.a1 =
|
|
10048
|
-
_.$_$.b1 =
|
|
10049
|
-
_.$_$.c1 =
|
|
10050
|
-
_.$_$.d1 =
|
|
10051
|
-
_.$_$.e1 =
|
|
10052
|
-
_.$_$.f1 =
|
|
10053
|
-
_.$_$.g1 =
|
|
10054
|
-
_.$_$.h1 =
|
|
10055
|
-
_.$_$.i1 =
|
|
10056
|
-
_.$_$.j1 =
|
|
10057
|
-
_.$_$.k1 =
|
|
10058
|
-
_.$_$.l1 =
|
|
10036
|
+
_.$_$.e = supervisorScope;
|
|
10037
|
+
_.$_$.f = withContext;
|
|
10038
|
+
_.$_$.g = Key_instance_1;
|
|
10039
|
+
_.$_$.h = Dispatchers_getInstance;
|
|
10040
|
+
_.$_$.i = GlobalScope_instance;
|
|
10041
|
+
_.$_$.j = Key_instance_3;
|
|
10042
|
+
_.$_$.k = Channel;
|
|
10043
|
+
_.$_$.l = ProducerScope;
|
|
10044
|
+
_.$_$.m = cancelConsumed;
|
|
10045
|
+
_.$_$.n = produce;
|
|
10046
|
+
_.$_$.o = FlowCollector;
|
|
10047
|
+
_.$_$.p = asFlow;
|
|
10048
|
+
_.$_$.q = recoverStackTrace;
|
|
10049
|
+
_.$_$.r = startCoroutineCancellable;
|
|
10050
|
+
_.$_$.s = SelectImplementation;
|
|
10051
|
+
_.$_$.t = Mutex;
|
|
10052
|
+
_.$_$.u = CancellableContinuationImpl;
|
|
10053
|
+
_.$_$.v = CancellationException_0;
|
|
10054
|
+
_.$_$.w = CompletableDeferred;
|
|
10055
|
+
_.$_$.x = CompletableJob;
|
|
10056
|
+
_.$_$.y = CopyableThrowable;
|
|
10057
|
+
_.$_$.z = CoroutineName;
|
|
10058
|
+
_.$_$.a1 = CoroutineScope_0;
|
|
10059
|
+
_.$_$.b1 = CoroutineScope;
|
|
10060
|
+
_.$_$.c1 = DisposableHandle;
|
|
10061
|
+
_.$_$.d1 = Job_0;
|
|
10062
|
+
_.$_$.e1 = SupervisorJob;
|
|
10063
|
+
_.$_$.f1 = async;
|
|
10064
|
+
_.$_$.g1 = cancel;
|
|
10065
|
+
_.$_$.h1 = cancel_2;
|
|
10066
|
+
_.$_$.i1 = cancel_0;
|
|
10067
|
+
_.$_$.j1 = cancel_1;
|
|
10068
|
+
_.$_$.k1 = get_job;
|
|
10069
|
+
_.$_$.l1 = launch;
|
|
10070
|
+
_.$_$.m1 = promise;
|
|
10059
10071
|
//endregion
|
|
10060
10072
|
return _;
|
|
10061
10073
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-atomicfu.js')));
|