@glandais/vcyclist-engine 1.2.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +166 -28
- package/kotlin-kotlin-stdlib.js +2778 -1761
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +1218 -1211
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/package.json +3 -2
- package/vcyclist-elevation.js +1051 -961
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.d.ts +16 -1
- package/vcyclist-engine.js +1290 -2522
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +811 -0
- package/vcyclist-fit.js.map +1 -0
- package/vcyclist-gpx.js +3636 -0
- package/vcyclist-gpx.js.map +1 -0
- package/xmlutil-core.js +2717 -2718
- package/xmlutil-core.js.map +1 -1
|
@@ -16,98 +16,99 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
21
|
-
var Element = kotlin_kotlin.$_$.
|
|
22
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.t;
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.a6;
|
|
21
|
+
var Element = kotlin_kotlin.$_$.d4;
|
|
22
|
+
var Continuation = kotlin_kotlin.$_$.z3;
|
|
23
|
+
var initMetadataForClass = kotlin_kotlin.$_$.l5;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.a;
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
25
|
+
var toString = kotlin_kotlin.$_$.c6;
|
|
26
26
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
27
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
28
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
29
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
30
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
27
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.i4;
|
|
28
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
29
|
+
var Companion_instance = kotlin_kotlin.$_$.s;
|
|
30
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.h;
|
|
31
31
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
32
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
33
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
35
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
36
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
38
|
-
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.
|
|
39
|
-
var createCoroutineUnintercepted = kotlin_kotlin.$_$.
|
|
40
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
41
|
-
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
43
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
44
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
45
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
47
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
48
|
-
var equals = kotlin_kotlin.$_$.
|
|
49
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
32
|
+
var intercepted = kotlin_kotlin.$_$.s3;
|
|
33
|
+
var CoroutineImpl = kotlin_kotlin.$_$.f4;
|
|
34
|
+
var copyToArray = kotlin_kotlin.$_$.o2;
|
|
35
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q3;
|
|
36
|
+
var emptyList = kotlin_kotlin.$_$.p2;
|
|
37
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.n5;
|
|
38
|
+
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.o;
|
|
39
|
+
var createCoroutineUnintercepted = kotlin_kotlin.$_$.r3;
|
|
40
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.p5;
|
|
41
|
+
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
42
|
+
var isInterface = kotlin_kotlin.$_$.t5;
|
|
43
|
+
var THROW_CCE = kotlin_kotlin.$_$.i8;
|
|
44
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
45
|
+
var toString_0 = kotlin_kotlin.$_$.u8;
|
|
46
|
+
var initMetadataForObject = kotlin_kotlin.$_$.r5;
|
|
47
|
+
var hashCode = kotlin_kotlin.$_$.k5;
|
|
48
|
+
var equals = kotlin_kotlin.$_$.f5;
|
|
49
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
50
50
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
51
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
52
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
53
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
54
|
-
var AbstractCoroutineContextKey = kotlin_kotlin.$_$.
|
|
55
|
-
var Key_instance = kotlin_kotlin.$_$.
|
|
56
|
-
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.
|
|
57
|
-
var get = kotlin_kotlin.$_$.
|
|
58
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
59
|
-
var ContinuationInterceptor = kotlin_kotlin.$_$.
|
|
60
|
-
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.
|
|
61
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
62
|
-
var Enum = kotlin_kotlin.$_$.
|
|
63
|
-
var startCoroutine = kotlin_kotlin.$_$.
|
|
64
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
65
|
-
var Long = kotlin_kotlin.$_$.
|
|
66
|
-
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.
|
|
67
|
-
var compare = kotlin_kotlin.$_$.
|
|
68
|
-
var add = kotlin_kotlin.$_$.
|
|
69
|
-
var subtract = kotlin_kotlin.$_$.
|
|
70
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
71
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
72
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
73
|
-
var Error_0 = kotlin_kotlin.$_$.
|
|
74
|
-
var Error_init_$Init$ = kotlin_kotlin.$_$.
|
|
75
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
76
|
-
var ArrayList = kotlin_kotlin.$_$.
|
|
77
|
-
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
78
|
-
var plus = kotlin_kotlin.$_$.
|
|
79
|
-
var get_0 = kotlin_kotlin.$_$.
|
|
80
|
-
var fold = kotlin_kotlin.$_$.
|
|
81
|
-
var minusKey_0 = kotlin_kotlin.$_$.
|
|
82
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
83
|
-
var anyToString = kotlin_kotlin.$_$.
|
|
84
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
85
|
-
var UnsupportedOperationException = kotlin_kotlin.$_$.
|
|
86
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
87
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
88
|
-
var Exception = kotlin_kotlin.$_$.
|
|
89
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
90
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
91
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
92
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
93
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
94
|
-
var startCoroutineUninterceptedOrReturnNonGeneratorVersion = kotlin_kotlin.$_$.
|
|
95
|
-
var Unit = kotlin_kotlin.$_$.
|
|
96
|
-
var divide = kotlin_kotlin.$_$.
|
|
97
|
-
var modulo = kotlin_kotlin.$_$.
|
|
51
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.i;
|
|
52
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.l;
|
|
53
|
+
var createFailure = kotlin_kotlin.$_$.m8;
|
|
54
|
+
var AbstractCoroutineContextKey = kotlin_kotlin.$_$.v3;
|
|
55
|
+
var Key_instance = kotlin_kotlin.$_$.n;
|
|
56
|
+
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.u3;
|
|
57
|
+
var get = kotlin_kotlin.$_$.w3;
|
|
58
|
+
var minusKey = kotlin_kotlin.$_$.x3;
|
|
59
|
+
var ContinuationInterceptor = kotlin_kotlin.$_$.y3;
|
|
60
|
+
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
61
|
+
var addSuppressed = kotlin_kotlin.$_$.l8;
|
|
62
|
+
var Enum = kotlin_kotlin.$_$.z7;
|
|
63
|
+
var startCoroutine = kotlin_kotlin.$_$.g4;
|
|
64
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.r8;
|
|
65
|
+
var Long = kotlin_kotlin.$_$.d8;
|
|
66
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
67
|
+
var compare = kotlin_kotlin.$_$.l4;
|
|
68
|
+
var add = kotlin_kotlin.$_$.k4;
|
|
69
|
+
var subtract = kotlin_kotlin.$_$.t4;
|
|
70
|
+
var RuntimeException = kotlin_kotlin.$_$.h8;
|
|
71
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.v1;
|
|
72
|
+
var captureStack = kotlin_kotlin.$_$.y4;
|
|
73
|
+
var Error_0 = kotlin_kotlin.$_$.a8;
|
|
74
|
+
var Error_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
75
|
+
var CancellationException = kotlin_kotlin.$_$.p3;
|
|
76
|
+
var ArrayList = kotlin_kotlin.$_$.y1;
|
|
77
|
+
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.p1;
|
|
78
|
+
var plus = kotlin_kotlin.$_$.e4;
|
|
79
|
+
var get_0 = kotlin_kotlin.$_$.b4;
|
|
80
|
+
var fold = kotlin_kotlin.$_$.a4;
|
|
81
|
+
var minusKey_0 = kotlin_kotlin.$_$.c4;
|
|
82
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
83
|
+
var anyToString = kotlin_kotlin.$_$.w4;
|
|
84
|
+
var constructCallableReference = kotlin_kotlin.$_$.d5;
|
|
85
|
+
var UnsupportedOperationException = kotlin_kotlin.$_$.k8;
|
|
86
|
+
var ensureNotNull = kotlin_kotlin.$_$.n8;
|
|
87
|
+
var fromInt = kotlin_kotlin.$_$.p4;
|
|
88
|
+
var Exception = kotlin_kotlin.$_$.b8;
|
|
89
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.m1;
|
|
90
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.l1;
|
|
91
|
+
var defineProp = kotlin_kotlin.$_$.e5;
|
|
92
|
+
var convertToInt = kotlin_kotlin.$_$.m4;
|
|
93
|
+
var toLongOrNull = kotlin_kotlin.$_$.s7;
|
|
94
|
+
var startCoroutineUninterceptedOrReturnNonGeneratorVersion = kotlin_kotlin.$_$.t3;
|
|
95
|
+
var Unit = kotlin_kotlin.$_$.j8;
|
|
96
|
+
var divide = kotlin_kotlin.$_$.n4;
|
|
97
|
+
var modulo = kotlin_kotlin.$_$.q4;
|
|
98
98
|
var atomic$long$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
99
99
|
var atomicfu$AtomicRefArray$ofNulls = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
100
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
101
|
-
var Exception_init_$Create$ = kotlin_kotlin.$_$.
|
|
102
|
-
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.
|
|
103
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
104
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
105
|
-
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.
|
|
106
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
107
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
108
|
-
var removeFirstOrNull = kotlin_kotlin.$_$.
|
|
109
|
-
var KtList = kotlin_kotlin.$_$.
|
|
110
|
-
var Collection = kotlin_kotlin.$_$.
|
|
100
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.p6;
|
|
101
|
+
var Exception_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
102
|
+
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.e1;
|
|
103
|
+
var getStringHashCode = kotlin_kotlin.$_$.j5;
|
|
104
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
105
|
+
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.u1;
|
|
106
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
107
|
+
var stackTraceToString = kotlin_kotlin.$_$.t8;
|
|
108
|
+
var removeFirstOrNull = kotlin_kotlin.$_$.d3;
|
|
109
|
+
var KtList = kotlin_kotlin.$_$.a2;
|
|
110
|
+
var Collection = kotlin_kotlin.$_$.z1;
|
|
111
|
+
var MutableIterable = kotlin_kotlin.$_$.c2;
|
|
111
112
|
//endregion
|
|
112
113
|
//region block: pre-declaration
|
|
113
114
|
initMetadataForInterface(ParentJob, 'ParentJob', VOID, VOID, [Element], [0]);
|
|
@@ -183,7 +184,7 @@
|
|
|
183
184
|
initMetadataForClass(SemaphoreSegment, 'SemaphoreSegment', VOID, Segment);
|
|
184
185
|
initMetadataForClass(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', VOID, CoroutineDispatcher, VOID, [1]);
|
|
185
186
|
initMetadataForObject(NodeDispatcher, 'NodeDispatcher', VOID, SetTimeoutBasedDispatcher, VOID, [1]);
|
|
186
|
-
initMetadataForClass(MessageQueue, 'MessageQueue', VOID, VOID, [KtList, Collection]);
|
|
187
|
+
initMetadataForClass(MessageQueue, 'MessageQueue', VOID, VOID, [KtList, Collection, MutableIterable]);
|
|
187
188
|
initMetadataForClass(ScheduledMessageQueue, 'ScheduledMessageQueue', VOID, MessageQueue);
|
|
188
189
|
initMetadataForClass(WindowMessageQueue, 'WindowMessageQueue', VOID, MessageQueue);
|
|
189
190
|
initMetadataForObject(Dispatchers, 'Dispatchers');
|
|
@@ -199,125 +200,125 @@
|
|
|
199
200
|
function AbstractCoroutine(parentContext, initParentJob, active) {
|
|
200
201
|
JobSupport.call(this, active);
|
|
201
202
|
if (initParentJob) {
|
|
202
|
-
this.
|
|
203
|
+
this.bf(parentContext.u6(Key_instance_2));
|
|
203
204
|
}
|
|
204
|
-
this.
|
|
205
|
+
this.ef_1 = parentContext.pb(this);
|
|
205
206
|
}
|
|
206
|
-
protoOf(AbstractCoroutine).
|
|
207
|
-
return this.
|
|
207
|
+
protoOf(AbstractCoroutine).n6 = function () {
|
|
208
|
+
return this.ef_1;
|
|
208
209
|
};
|
|
209
|
-
protoOf(AbstractCoroutine).
|
|
210
|
-
return this.
|
|
210
|
+
protoOf(AbstractCoroutine).ff = function () {
|
|
211
|
+
return this.ef_1;
|
|
211
212
|
};
|
|
212
|
-
protoOf(AbstractCoroutine).
|
|
213
|
-
return protoOf(JobSupport).
|
|
213
|
+
protoOf(AbstractCoroutine).gf = function () {
|
|
214
|
+
return protoOf(JobSupport).gf.call(this);
|
|
214
215
|
};
|
|
215
|
-
protoOf(AbstractCoroutine).
|
|
216
|
+
protoOf(AbstractCoroutine).hf = function (value) {
|
|
216
217
|
};
|
|
217
|
-
protoOf(AbstractCoroutine).
|
|
218
|
+
protoOf(AbstractCoroutine).if = function (cause, handled) {
|
|
218
219
|
};
|
|
219
|
-
protoOf(AbstractCoroutine).
|
|
220
|
+
protoOf(AbstractCoroutine).jf = function () {
|
|
220
221
|
return get_classSimpleName(this) + ' was cancelled';
|
|
221
222
|
};
|
|
222
|
-
protoOf(AbstractCoroutine).
|
|
223
|
+
protoOf(AbstractCoroutine).kf = function (state) {
|
|
223
224
|
if (state instanceof CompletedExceptionally) {
|
|
224
|
-
this.
|
|
225
|
+
this.if(state.lf_1, state.nf());
|
|
225
226
|
} else {
|
|
226
|
-
this.
|
|
227
|
+
this.hf(state);
|
|
227
228
|
}
|
|
228
229
|
};
|
|
229
|
-
protoOf(AbstractCoroutine).
|
|
230
|
-
var state = this.
|
|
230
|
+
protoOf(AbstractCoroutine).s6 = function (result) {
|
|
231
|
+
var state = this.of(toState_0(result));
|
|
231
232
|
if (state === get_COMPLETING_WAITING_CHILDREN())
|
|
232
233
|
return Unit_instance;
|
|
233
|
-
this.
|
|
234
|
+
this.pf(state);
|
|
234
235
|
};
|
|
235
|
-
protoOf(AbstractCoroutine).
|
|
236
|
-
return this.
|
|
236
|
+
protoOf(AbstractCoroutine).pf = function (state) {
|
|
237
|
+
return this.qf(state);
|
|
237
238
|
};
|
|
238
|
-
protoOf(AbstractCoroutine).
|
|
239
|
-
handleCoroutineException(this.
|
|
239
|
+
protoOf(AbstractCoroutine).rf = function (exception) {
|
|
240
|
+
handleCoroutineException(this.ef_1, exception);
|
|
240
241
|
};
|
|
241
|
-
protoOf(AbstractCoroutine).
|
|
242
|
-
var tmp0_elvis_lhs = get_coroutineName(this.
|
|
242
|
+
protoOf(AbstractCoroutine).sf = function () {
|
|
243
|
+
var tmp0_elvis_lhs = get_coroutineName(this.ef_1);
|
|
243
244
|
var tmp;
|
|
244
245
|
if (tmp0_elvis_lhs == null) {
|
|
245
|
-
return protoOf(JobSupport).
|
|
246
|
+
return protoOf(JobSupport).sf.call(this);
|
|
246
247
|
} else {
|
|
247
248
|
tmp = tmp0_elvis_lhs;
|
|
248
249
|
}
|
|
249
250
|
var coroutineName = tmp;
|
|
250
|
-
return '"' + coroutineName + '":' + protoOf(JobSupport).
|
|
251
|
+
return '"' + coroutineName + '":' + protoOf(JobSupport).sf.call(this);
|
|
251
252
|
};
|
|
252
|
-
protoOf(AbstractCoroutine).
|
|
253
|
-
start.
|
|
253
|
+
protoOf(AbstractCoroutine).tf = function (start, receiver, block) {
|
|
254
|
+
start.wf(block, receiver, this);
|
|
254
255
|
};
|
|
255
256
|
function awaitAll(_this__u8e3s4, $completion) {
|
|
256
257
|
var tmp = new $awaitAllCOROUTINE$(_this__u8e3s4, $completion);
|
|
257
|
-
tmp.
|
|
258
|
-
tmp.
|
|
259
|
-
return tmp.
|
|
258
|
+
tmp.j6_1 = Unit_instance;
|
|
259
|
+
tmp.k6_1 = null;
|
|
260
|
+
return tmp.p6();
|
|
260
261
|
}
|
|
261
262
|
function DisposeHandlersOnCancel($outer, nodes) {
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
263
|
+
this.kh_1 = $outer;
|
|
264
|
+
this.jh_1 = nodes;
|
|
264
265
|
}
|
|
265
|
-
protoOf(DisposeHandlersOnCancel).
|
|
266
|
+
protoOf(DisposeHandlersOnCancel).lh = function () {
|
|
266
267
|
// Inline function 'kotlin.collections.forEach' call
|
|
267
|
-
var indexedObject = this.
|
|
268
|
+
var indexedObject = this.jh_1;
|
|
268
269
|
var inductionVariable = 0;
|
|
269
270
|
var last = indexedObject.length;
|
|
270
271
|
while (inductionVariable < last) {
|
|
271
272
|
var element = indexedObject[inductionVariable];
|
|
272
273
|
inductionVariable = inductionVariable + 1 | 0;
|
|
273
|
-
element.
|
|
274
|
+
element.uh().vh();
|
|
274
275
|
}
|
|
275
276
|
};
|
|
276
|
-
protoOf(DisposeHandlersOnCancel).
|
|
277
|
-
this.
|
|
277
|
+
protoOf(DisposeHandlersOnCancel).wh = function (cause) {
|
|
278
|
+
this.lh();
|
|
278
279
|
};
|
|
279
280
|
protoOf(DisposeHandlersOnCancel).toString = function () {
|
|
280
|
-
return 'DisposeHandlersOnCancel[' + toString(this.
|
|
281
|
+
return 'DisposeHandlersOnCancel[' + toString(this.jh_1) + ']';
|
|
281
282
|
};
|
|
282
283
|
function AwaitAllNode($outer, continuation) {
|
|
283
|
-
this.
|
|
284
|
+
this.th_1 = $outer;
|
|
284
285
|
JobNode.call(this);
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
286
|
+
this.qh_1 = continuation;
|
|
287
|
+
this.sh_1 = atomic$ref$1(null);
|
|
287
288
|
}
|
|
288
|
-
protoOf(AwaitAllNode).
|
|
289
|
-
var tmp = this.
|
|
289
|
+
protoOf(AwaitAllNode).uh = function () {
|
|
290
|
+
var tmp = this.rh_1;
|
|
290
291
|
if (!(tmp == null))
|
|
291
292
|
return tmp;
|
|
292
293
|
else {
|
|
293
294
|
throwUninitializedPropertyAccessException('handle');
|
|
294
295
|
}
|
|
295
296
|
};
|
|
296
|
-
protoOf(AwaitAllNode).
|
|
297
|
-
this.
|
|
297
|
+
protoOf(AwaitAllNode).xh = function (value) {
|
|
298
|
+
this.sh_1.kotlinx$atomicfu$value = value;
|
|
298
299
|
};
|
|
299
|
-
protoOf(AwaitAllNode).
|
|
300
|
-
return this.
|
|
300
|
+
protoOf(AwaitAllNode).yh = function () {
|
|
301
|
+
return this.sh_1.kotlinx$atomicfu$value;
|
|
301
302
|
};
|
|
302
|
-
protoOf(AwaitAllNode).
|
|
303
|
+
protoOf(AwaitAllNode).zh = function () {
|
|
303
304
|
return false;
|
|
304
305
|
};
|
|
305
|
-
protoOf(AwaitAllNode).
|
|
306
|
+
protoOf(AwaitAllNode).wh = function (cause) {
|
|
306
307
|
if (!(cause == null)) {
|
|
307
|
-
var token = this.
|
|
308
|
+
var token = this.qh_1.di(cause);
|
|
308
309
|
if (!(token == null)) {
|
|
309
|
-
this.
|
|
310
|
-
var tmp0_safe_receiver = this.
|
|
310
|
+
this.qh_1.ei(token);
|
|
311
|
+
var tmp0_safe_receiver = this.yh();
|
|
311
312
|
if (tmp0_safe_receiver == null)
|
|
312
313
|
null;
|
|
313
314
|
else {
|
|
314
|
-
tmp0_safe_receiver.
|
|
315
|
+
tmp0_safe_receiver.lh();
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
|
-
} else if (this.
|
|
318
|
-
var tmp0 = this.
|
|
318
|
+
} else if (this.th_1.bi_1.atomicfu$decrementAndGet() === 0) {
|
|
319
|
+
var tmp0 = this.qh_1;
|
|
319
320
|
// Inline function 'kotlin.collections.map' call
|
|
320
|
-
var this_0 = this.
|
|
321
|
+
var this_0 = this.th_1.ai_1;
|
|
321
322
|
// Inline function 'kotlin.collections.mapTo' call
|
|
322
323
|
var destination = ArrayList_init_$Create$(this_0.length);
|
|
323
324
|
var inductionVariable = 0;
|
|
@@ -325,33 +326,33 @@
|
|
|
325
326
|
while (inductionVariable < last) {
|
|
326
327
|
var item = this_0[inductionVariable];
|
|
327
328
|
inductionVariable = inductionVariable + 1 | 0;
|
|
328
|
-
var tmp$ret$2 = item.
|
|
329
|
-
destination.
|
|
329
|
+
var tmp$ret$2 = item.ci();
|
|
330
|
+
destination.h(tmp$ret$2);
|
|
330
331
|
}
|
|
331
332
|
// Inline function 'kotlin.coroutines.resume' call
|
|
332
333
|
// Inline function 'kotlin.Companion.success' call
|
|
333
334
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(destination);
|
|
334
|
-
tmp0.
|
|
335
|
+
tmp0.s6(tmp$ret$4);
|
|
335
336
|
}
|
|
336
337
|
};
|
|
337
338
|
function AwaitAll(deferreds) {
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
339
|
+
this.ai_1 = deferreds;
|
|
340
|
+
this.bi_1 = atomic$int$1(this.ai_1.length);
|
|
340
341
|
}
|
|
341
|
-
protoOf(AwaitAll).
|
|
342
|
+
protoOf(AwaitAll).ri = function ($completion) {
|
|
342
343
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
343
|
-
cancellable.
|
|
344
|
+
cancellable.yi();
|
|
344
345
|
var tmp = 0;
|
|
345
|
-
var tmp_0 = this.
|
|
346
|
+
var tmp_0 = this.ai_1.length;
|
|
346
347
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
347
348
|
var tmp_1 = Array(tmp_0);
|
|
348
349
|
while (tmp < tmp_0) {
|
|
349
350
|
var tmp_2 = tmp;
|
|
350
|
-
var deferred = this.
|
|
351
|
-
deferred.
|
|
351
|
+
var deferred = this.ai_1[tmp_2];
|
|
352
|
+
deferred.bg();
|
|
352
353
|
// Inline function 'kotlin.apply' call
|
|
353
354
|
var this_0 = new AwaitAllNode(this, cancellable);
|
|
354
|
-
this_0.
|
|
355
|
+
this_0.rh_1 = invokeOnCompletion(deferred, VOID, this_0);
|
|
355
356
|
tmp_1[tmp_2] = this_0;
|
|
356
357
|
tmp = tmp + 1 | 0;
|
|
357
358
|
}
|
|
@@ -363,35 +364,35 @@
|
|
|
363
364
|
while (inductionVariable < last) {
|
|
364
365
|
var element = nodes[inductionVariable];
|
|
365
366
|
inductionVariable = inductionVariable + 1 | 0;
|
|
366
|
-
element.
|
|
367
|
+
element.xh(disposer);
|
|
367
368
|
}
|
|
368
|
-
if (cancellable.
|
|
369
|
-
disposer.
|
|
369
|
+
if (cancellable.ag()) {
|
|
370
|
+
disposer.lh();
|
|
370
371
|
} else {
|
|
371
372
|
invokeOnCancellation(cancellable, disposer);
|
|
372
373
|
}
|
|
373
|
-
return cancellable.
|
|
374
|
+
return cancellable.zi();
|
|
374
375
|
};
|
|
375
376
|
function $awaitAllCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
376
377
|
CoroutineImpl.call(this, resultContinuation);
|
|
377
|
-
this.
|
|
378
|
+
this.hh_1 = _this__u8e3s4;
|
|
378
379
|
}
|
|
379
|
-
protoOf($awaitAllCOROUTINE$).
|
|
380
|
-
var suspendResult = this.
|
|
380
|
+
protoOf($awaitAllCOROUTINE$).p6 = function () {
|
|
381
|
+
var suspendResult = this.j6_1;
|
|
381
382
|
$sm: do
|
|
382
383
|
try {
|
|
383
|
-
var tmp = this.
|
|
384
|
+
var tmp = this.h6_1;
|
|
384
385
|
switch (tmp) {
|
|
385
386
|
case 0:
|
|
386
|
-
this.
|
|
387
|
-
if (this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
387
|
+
this.i6_1 = 3;
|
|
388
|
+
if (this.hh_1.n()) {
|
|
389
|
+
this.ih_1 = emptyList();
|
|
390
|
+
this.h6_1 = 2;
|
|
390
391
|
continue $sm;
|
|
391
392
|
} else {
|
|
392
|
-
this.
|
|
393
|
-
var this_0 = this.
|
|
394
|
-
suspendResult = (new AwaitAll(copyToArray(this_0))).
|
|
393
|
+
this.h6_1 = 1;
|
|
394
|
+
var this_0 = this.hh_1;
|
|
395
|
+
suspendResult = (new AwaitAll(copyToArray(this_0))).ri(this);
|
|
395
396
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
396
397
|
return suspendResult;
|
|
397
398
|
}
|
|
@@ -399,21 +400,21 @@
|
|
|
399
400
|
}
|
|
400
401
|
|
|
401
402
|
case 1:
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
403
|
+
this.ih_1 = suspendResult;
|
|
404
|
+
this.h6_1 = 2;
|
|
404
405
|
continue $sm;
|
|
405
406
|
case 2:
|
|
406
|
-
return this.
|
|
407
|
+
return this.ih_1;
|
|
407
408
|
case 3:
|
|
408
|
-
throw this.
|
|
409
|
+
throw this.k6_1;
|
|
409
410
|
}
|
|
410
411
|
} catch ($p) {
|
|
411
412
|
var e = $p;
|
|
412
|
-
if (this.
|
|
413
|
+
if (this.i6_1 === 3) {
|
|
413
414
|
throw e;
|
|
414
415
|
} else {
|
|
415
|
-
this.
|
|
416
|
-
this.
|
|
416
|
+
this.h6_1 = this.i6_1;
|
|
417
|
+
this.k6_1 = e;
|
|
417
418
|
}
|
|
418
419
|
}
|
|
419
420
|
while (true);
|
|
@@ -422,24 +423,24 @@
|
|
|
422
423
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
423
424
|
start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
|
|
424
425
|
var newContext = newCoroutineContext(_this__u8e3s4, context);
|
|
425
|
-
var coroutine = start.
|
|
426
|
-
coroutine.
|
|
426
|
+
var coroutine = start.aj() ? new LazyDeferredCoroutine(newContext, block) : new DeferredCoroutine(newContext, true);
|
|
427
|
+
coroutine.tf(start, coroutine, block);
|
|
427
428
|
return coroutine;
|
|
428
429
|
}
|
|
429
430
|
function $awaitCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
430
431
|
CoroutineImpl.call(this, resultContinuation);
|
|
431
|
-
this.
|
|
432
|
+
this.jj_1 = _this__u8e3s4;
|
|
432
433
|
}
|
|
433
|
-
protoOf($awaitCOROUTINE$).
|
|
434
|
-
var suspendResult = this.
|
|
434
|
+
protoOf($awaitCOROUTINE$).p6 = function () {
|
|
435
|
+
var suspendResult = this.j6_1;
|
|
435
436
|
$sm: do
|
|
436
437
|
try {
|
|
437
|
-
var tmp = this.
|
|
438
|
+
var tmp = this.h6_1;
|
|
438
439
|
switch (tmp) {
|
|
439
440
|
case 0:
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
suspendResult = this.
|
|
441
|
+
this.i6_1 = 2;
|
|
442
|
+
this.h6_1 = 1;
|
|
443
|
+
suspendResult = this.jj_1.yg(this);
|
|
443
444
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
444
445
|
return suspendResult;
|
|
445
446
|
}
|
|
@@ -448,15 +449,15 @@
|
|
|
448
449
|
case 1:
|
|
449
450
|
return suspendResult;
|
|
450
451
|
case 2:
|
|
451
|
-
throw this.
|
|
452
|
+
throw this.k6_1;
|
|
452
453
|
}
|
|
453
454
|
} catch ($p) {
|
|
454
455
|
var e = $p;
|
|
455
|
-
if (this.
|
|
456
|
+
if (this.i6_1 === 2) {
|
|
456
457
|
throw e;
|
|
457
458
|
} else {
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
459
|
+
this.h6_1 = this.i6_1;
|
|
460
|
+
this.k6_1 = e;
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
while (true);
|
|
@@ -464,28 +465,28 @@
|
|
|
464
465
|
function DeferredCoroutine(parentContext, active) {
|
|
465
466
|
AbstractCoroutine.call(this, parentContext, true, active);
|
|
466
467
|
}
|
|
467
|
-
protoOf(DeferredCoroutine).
|
|
468
|
-
return this.
|
|
468
|
+
protoOf(DeferredCoroutine).ci = function () {
|
|
469
|
+
return this.xg();
|
|
469
470
|
};
|
|
470
|
-
protoOf(DeferredCoroutine).
|
|
471
|
+
protoOf(DeferredCoroutine).nj = function ($completion) {
|
|
471
472
|
var tmp = new $awaitCOROUTINE$(this, $completion);
|
|
472
|
-
tmp.
|
|
473
|
-
tmp.
|
|
474
|
-
return tmp.
|
|
473
|
+
tmp.j6_1 = Unit_instance;
|
|
474
|
+
tmp.k6_1 = null;
|
|
475
|
+
return tmp.p6();
|
|
475
476
|
};
|
|
476
477
|
function LazyDeferredCoroutine(parentContext, block) {
|
|
477
478
|
DeferredCoroutine.call(this, parentContext, false);
|
|
478
|
-
this.
|
|
479
|
+
this.rj_1 = createCoroutineUnintercepted(block, this, this);
|
|
479
480
|
}
|
|
480
|
-
protoOf(LazyDeferredCoroutine).
|
|
481
|
-
startCoroutineCancellable(this.
|
|
481
|
+
protoOf(LazyDeferredCoroutine).cg = function () {
|
|
482
|
+
startCoroutineCancellable(this.rj_1, this);
|
|
482
483
|
};
|
|
483
484
|
function CancellableContinuation() {
|
|
484
485
|
}
|
|
485
486
|
function invokeOnCancellation(_this__u8e3s4, handler) {
|
|
486
487
|
var tmp;
|
|
487
488
|
if (_this__u8e3s4 instanceof CancellableContinuationImpl) {
|
|
488
|
-
_this__u8e3s4.
|
|
489
|
+
_this__u8e3s4.uj(handler);
|
|
489
490
|
tmp = Unit_instance;
|
|
490
491
|
} else {
|
|
491
492
|
throw UnsupportedOperationException_init_$Create$('third-party implementation of CancellableContinuation is not supported');
|
|
@@ -496,26 +497,26 @@
|
|
|
496
497
|
return invokeOnCancellation(_this__u8e3s4, new DisposeOnCancel(handle));
|
|
497
498
|
}
|
|
498
499
|
function DisposeOnCancel(handle) {
|
|
499
|
-
this.
|
|
500
|
+
this.vj_1 = handle;
|
|
500
501
|
}
|
|
501
|
-
protoOf(DisposeOnCancel).
|
|
502
|
-
return this.
|
|
502
|
+
protoOf(DisposeOnCancel).wh = function (cause) {
|
|
503
|
+
return this.vj_1.vh();
|
|
503
504
|
};
|
|
504
505
|
protoOf(DisposeOnCancel).toString = function () {
|
|
505
|
-
return 'DisposeOnCancel[' + toString(this.
|
|
506
|
+
return 'DisposeOnCancel[' + toString(this.vj_1) + ']';
|
|
506
507
|
};
|
|
507
508
|
function getOrCreateCancellableContinuation(delegate) {
|
|
508
509
|
if (!(delegate instanceof DispatchedContinuation)) {
|
|
509
510
|
return new CancellableContinuationImpl(delegate, 1);
|
|
510
511
|
}
|
|
511
|
-
var tmp0_safe_receiver = delegate.
|
|
512
|
+
var tmp0_safe_receiver = delegate.ck();
|
|
512
513
|
var tmp;
|
|
513
514
|
if (tmp0_safe_receiver == null) {
|
|
514
515
|
tmp = null;
|
|
515
516
|
} else {
|
|
516
517
|
// Inline function 'kotlin.takeIf' call
|
|
517
518
|
var tmp_0;
|
|
518
|
-
if (tmp0_safe_receiver.
|
|
519
|
+
if (tmp0_safe_receiver.dk()) {
|
|
519
520
|
tmp_0 = tmp0_safe_receiver;
|
|
520
521
|
} else {
|
|
521
522
|
tmp_0 = null;
|
|
@@ -539,10 +540,10 @@
|
|
|
539
540
|
function CancelHandler() {
|
|
540
541
|
}
|
|
541
542
|
function _get_parentHandle__f8dcex($this) {
|
|
542
|
-
return $this.
|
|
543
|
+
return $this.xi_1.kotlinx$atomicfu$value;
|
|
543
544
|
}
|
|
544
545
|
function _get_stateDebugRepresentation__bf18u4($this) {
|
|
545
|
-
var tmp0_subject = $this.
|
|
546
|
+
var tmp0_subject = $this.zf();
|
|
546
547
|
var tmp;
|
|
547
548
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, NotCompleted) : false) {
|
|
548
549
|
tmp = 'Active';
|
|
@@ -557,9 +558,9 @@
|
|
|
557
558
|
}
|
|
558
559
|
function isReusable($this) {
|
|
559
560
|
var tmp;
|
|
560
|
-
if (get_isReusableMode($this.
|
|
561
|
-
var tmp_0 = $this.
|
|
562
|
-
tmp = (tmp_0 instanceof DispatchedContinuation ? tmp_0 : THROW_CCE()).
|
|
561
|
+
if (get_isReusableMode($this.fk_1)) {
|
|
562
|
+
var tmp_0 = $this.ti_1;
|
|
563
|
+
tmp = (tmp_0 instanceof DispatchedContinuation ? tmp_0 : THROW_CCE()).ek();
|
|
563
564
|
} else {
|
|
564
565
|
tmp = false;
|
|
565
566
|
}
|
|
@@ -568,13 +569,13 @@
|
|
|
568
569
|
function cancelLater($this, cause) {
|
|
569
570
|
if (!isReusable($this))
|
|
570
571
|
return false;
|
|
571
|
-
var tmp = $this.
|
|
572
|
+
var tmp = $this.ti_1;
|
|
572
573
|
var dispatched = tmp instanceof DispatchedContinuation ? tmp : THROW_CCE();
|
|
573
|
-
return dispatched.
|
|
574
|
+
return dispatched.gk(cause);
|
|
574
575
|
}
|
|
575
576
|
function callSegmentOnCancellation($this, segment, cause) {
|
|
576
577
|
// Inline function 'kotlinx.coroutines.index' call
|
|
577
|
-
var index = $this.
|
|
578
|
+
var index = $this.vi_1.kotlinx$atomicfu$value & 536870911;
|
|
578
579
|
// Inline function 'kotlin.check' call
|
|
579
580
|
if (!!(index === 536870911)) {
|
|
580
581
|
var message = 'The index for Segment.onCancellation(..) is broken';
|
|
@@ -582,11 +583,11 @@
|
|
|
582
583
|
}
|
|
583
584
|
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.callCancelHandlerSafely' call
|
|
584
585
|
try {
|
|
585
|
-
segment.
|
|
586
|
+
segment.lk(index, cause, $this.n6());
|
|
586
587
|
} catch ($p) {
|
|
587
588
|
if ($p instanceof Error) {
|
|
588
589
|
var ex = $p;
|
|
589
|
-
handleCoroutineException($this.
|
|
590
|
+
handleCoroutineException($this.n6(), new CompletionHandlerException('Exception in invokeOnCancellation handler for ' + $this.toString(), ex));
|
|
590
591
|
} else {
|
|
591
592
|
throw $p;
|
|
592
593
|
}
|
|
@@ -594,7 +595,7 @@
|
|
|
594
595
|
}
|
|
595
596
|
function trySuspend($this) {
|
|
596
597
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
597
|
-
var this_0 = $this.
|
|
598
|
+
var this_0 = $this.vi_1;
|
|
598
599
|
while (true) {
|
|
599
600
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
600
601
|
// Inline function 'kotlinx.coroutines.decision' call
|
|
@@ -605,7 +606,7 @@
|
|
|
605
606
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
606
607
|
|
|
607
608
|
var tmp$ret$4 = (1 << 29) + (cur & 536870911) | 0;
|
|
608
|
-
if ($this.
|
|
609
|
+
if ($this.vi_1.atomicfu$compareAndSet(cur, tmp$ret$4))
|
|
609
610
|
return true;
|
|
610
611
|
break;
|
|
611
612
|
case 2:
|
|
@@ -620,7 +621,7 @@
|
|
|
620
621
|
}
|
|
621
622
|
function tryResume($this) {
|
|
622
623
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
623
|
-
var this_0 = $this.
|
|
624
|
+
var this_0 = $this.vi_1;
|
|
624
625
|
while (true) {
|
|
625
626
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
626
627
|
// Inline function 'kotlinx.coroutines.decision' call
|
|
@@ -631,7 +632,7 @@
|
|
|
631
632
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
632
633
|
|
|
633
634
|
var tmp$ret$4 = (2 << 29) + (cur & 536870911) | 0;
|
|
634
|
-
if ($this.
|
|
635
|
+
if ($this.vi_1.atomicfu$compareAndSet(cur, tmp$ret$4))
|
|
635
636
|
return true;
|
|
636
637
|
break;
|
|
637
638
|
case 1:
|
|
@@ -645,7 +646,7 @@
|
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
648
|
function installParentHandle($this) {
|
|
648
|
-
var tmp0_elvis_lhs = $this.
|
|
649
|
+
var tmp0_elvis_lhs = $this.n6().u6(Key_instance_2);
|
|
649
650
|
var tmp;
|
|
650
651
|
if (tmp0_elvis_lhs == null) {
|
|
651
652
|
return null;
|
|
@@ -654,17 +655,17 @@
|
|
|
654
655
|
}
|
|
655
656
|
var parent = tmp;
|
|
656
657
|
var handle = invokeOnCompletion(parent, VOID, new ChildContinuation($this));
|
|
657
|
-
$this.
|
|
658
|
+
$this.xi_1.atomicfu$compareAndSet(null, handle);
|
|
658
659
|
return handle;
|
|
659
660
|
}
|
|
660
661
|
function invokeOnCancellationImpl($this, handler) {
|
|
661
662
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
662
663
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
663
|
-
var this_0 = $this.
|
|
664
|
+
var this_0 = $this.wi_1;
|
|
664
665
|
while (true) {
|
|
665
666
|
var state = this_0.kotlinx$atomicfu$value;
|
|
666
667
|
if (state instanceof Active) {
|
|
667
|
-
if ($this.
|
|
668
|
+
if ($this.wi_1.atomicfu$compareAndSet(state, handler))
|
|
668
669
|
return Unit_instance;
|
|
669
670
|
} else {
|
|
670
671
|
var tmp;
|
|
@@ -677,14 +678,14 @@
|
|
|
677
678
|
multipleHandlersError($this, handler, state);
|
|
678
679
|
} else {
|
|
679
680
|
if (state instanceof CompletedExceptionally) {
|
|
680
|
-
if (!state.
|
|
681
|
+
if (!state.uk()) {
|
|
681
682
|
multipleHandlersError($this, handler, state);
|
|
682
683
|
}
|
|
683
684
|
if (state instanceof CancelledContinuation) {
|
|
684
685
|
var tmp1_safe_receiver = state instanceof CompletedExceptionally ? state : null;
|
|
685
|
-
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
686
|
+
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lf_1;
|
|
686
687
|
if (isInterface(handler, CancelHandler)) {
|
|
687
|
-
$this.
|
|
688
|
+
$this.rk(handler, cause);
|
|
688
689
|
} else {
|
|
689
690
|
var segment = handler instanceof Segment ? handler : THROW_CCE();
|
|
690
691
|
callSegmentOnCancellation($this, segment, cause);
|
|
@@ -693,19 +694,19 @@
|
|
|
693
694
|
return Unit_instance;
|
|
694
695
|
} else {
|
|
695
696
|
if (state instanceof CompletedContinuation) {
|
|
696
|
-
if (!(state.
|
|
697
|
+
if (!(state.nk_1 == null)) {
|
|
697
698
|
multipleHandlersError($this, handler, state);
|
|
698
699
|
}
|
|
699
700
|
if (handler instanceof Segment)
|
|
700
701
|
return Unit_instance;
|
|
701
702
|
if (!isInterface(handler, CancelHandler))
|
|
702
703
|
THROW_CCE();
|
|
703
|
-
if (state.
|
|
704
|
-
$this.
|
|
704
|
+
if (state.sk()) {
|
|
705
|
+
$this.rk(handler, state.qk_1);
|
|
705
706
|
return Unit_instance;
|
|
706
707
|
}
|
|
707
|
-
var update = state.
|
|
708
|
-
if ($this.
|
|
708
|
+
var update = state.tk(VOID, handler);
|
|
709
|
+
if ($this.wi_1.atomicfu$compareAndSet(state, update))
|
|
709
710
|
return Unit_instance;
|
|
710
711
|
} else {
|
|
711
712
|
if (handler instanceof Segment)
|
|
@@ -713,7 +714,7 @@
|
|
|
713
714
|
if (!isInterface(handler, CancelHandler))
|
|
714
715
|
THROW_CCE();
|
|
715
716
|
var update_0 = new CompletedContinuation(state, handler);
|
|
716
|
-
if ($this.
|
|
717
|
+
if ($this.wi_1.atomicfu$compareAndSet(state, update_0))
|
|
717
718
|
return Unit_instance;
|
|
718
719
|
}
|
|
719
720
|
}
|
|
@@ -764,13 +765,13 @@
|
|
|
764
765
|
}
|
|
765
766
|
function tryResumeImpl($this, proposedUpdate, idempotent, onCancellation) {
|
|
766
767
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
767
|
-
var this_0 = $this.
|
|
768
|
+
var this_0 = $this.wi_1;
|
|
768
769
|
while (true) {
|
|
769
770
|
var tmp0 = this_0.kotlinx$atomicfu$value;
|
|
770
771
|
$l$block: {
|
|
771
772
|
if (!(tmp0 == null) ? isInterface(tmp0, NotCompleted) : false) {
|
|
772
|
-
var update = resumedState($this, tmp0, proposedUpdate, $this.
|
|
773
|
-
if (!$this.
|
|
773
|
+
var update = resumedState($this, tmp0, proposedUpdate, $this.fk_1, onCancellation, idempotent);
|
|
774
|
+
if (!$this.wi_1.atomicfu$compareAndSet(tmp0, update)) {
|
|
774
775
|
break $l$block;
|
|
775
776
|
}
|
|
776
777
|
detachChildIfNonReusable($this);
|
|
@@ -778,7 +779,7 @@
|
|
|
778
779
|
} else {
|
|
779
780
|
if (tmp0 instanceof CompletedContinuation) {
|
|
780
781
|
var tmp;
|
|
781
|
-
if (!(idempotent == null) && tmp0.
|
|
782
|
+
if (!(idempotent == null) && tmp0.pk_1 === idempotent) {
|
|
782
783
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
783
784
|
tmp = get_RESUME_TOKEN();
|
|
784
785
|
} else {
|
|
@@ -799,7 +800,7 @@
|
|
|
799
800
|
}
|
|
800
801
|
function detachChildIfNonReusable($this) {
|
|
801
802
|
if (!isReusable($this)) {
|
|
802
|
-
$this.
|
|
803
|
+
$this.vk();
|
|
803
804
|
}
|
|
804
805
|
}
|
|
805
806
|
function CancellableContinuationImpl$resume$lambda($onCancellation) {
|
|
@@ -810,30 +811,30 @@
|
|
|
810
811
|
}
|
|
811
812
|
function CancellableContinuationImpl(delegate, resumeMode) {
|
|
812
813
|
DispatchedTask.call(this, resumeMode);
|
|
813
|
-
this.
|
|
814
|
+
this.ti_1 = delegate;
|
|
814
815
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
815
|
-
this.
|
|
816
|
+
this.ui_1 = this.ti_1.n6();
|
|
816
817
|
var tmp = this;
|
|
817
818
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
818
819
|
var tmp$ret$1 = (0 << 29) + 536870911 | 0;
|
|
819
|
-
tmp.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
820
|
+
tmp.vi_1 = atomic$int$1(tmp$ret$1);
|
|
821
|
+
this.wi_1 = atomic$ref$1(Active_instance);
|
|
822
|
+
this.xi_1 = atomic$ref$1(null);
|
|
822
823
|
}
|
|
823
|
-
protoOf(CancellableContinuationImpl).
|
|
824
|
-
return this.
|
|
824
|
+
protoOf(CancellableContinuationImpl).wk = function () {
|
|
825
|
+
return this.ti_1;
|
|
825
826
|
};
|
|
826
|
-
protoOf(CancellableContinuationImpl).
|
|
827
|
-
return this.
|
|
827
|
+
protoOf(CancellableContinuationImpl).n6 = function () {
|
|
828
|
+
return this.ui_1;
|
|
828
829
|
};
|
|
829
|
-
protoOf(CancellableContinuationImpl).
|
|
830
|
-
return this.
|
|
830
|
+
protoOf(CancellableContinuationImpl).zf = function () {
|
|
831
|
+
return this.wi_1.kotlinx$atomicfu$value;
|
|
831
832
|
};
|
|
832
|
-
protoOf(CancellableContinuationImpl).
|
|
833
|
-
var tmp = this.
|
|
833
|
+
protoOf(CancellableContinuationImpl).ag = function () {
|
|
834
|
+
var tmp = this.zf();
|
|
834
835
|
return !(!(tmp == null) ? isInterface(tmp, NotCompleted) : false);
|
|
835
836
|
};
|
|
836
|
-
protoOf(CancellableContinuationImpl).
|
|
837
|
+
protoOf(CancellableContinuationImpl).yi = function () {
|
|
837
838
|
var tmp0_elvis_lhs = installParentHandle(this);
|
|
838
839
|
var tmp;
|
|
839
840
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -842,39 +843,39 @@
|
|
|
842
843
|
tmp = tmp0_elvis_lhs;
|
|
843
844
|
}
|
|
844
845
|
var handle = tmp;
|
|
845
|
-
if (this.
|
|
846
|
-
handle.
|
|
847
|
-
this.
|
|
846
|
+
if (this.ag()) {
|
|
847
|
+
handle.vh();
|
|
848
|
+
this.xi_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
|
|
848
849
|
}
|
|
849
850
|
};
|
|
850
|
-
protoOf(CancellableContinuationImpl).
|
|
851
|
+
protoOf(CancellableContinuationImpl).dk = function () {
|
|
851
852
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
852
853
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
853
|
-
var state = this.
|
|
854
|
+
var state = this.wi_1.kotlinx$atomicfu$value;
|
|
854
855
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
855
856
|
var tmp;
|
|
856
857
|
if (state instanceof CompletedContinuation) {
|
|
857
|
-
tmp = !(state.
|
|
858
|
+
tmp = !(state.pk_1 == null);
|
|
858
859
|
} else {
|
|
859
860
|
tmp = false;
|
|
860
861
|
}
|
|
861
862
|
if (tmp) {
|
|
862
|
-
this.
|
|
863
|
+
this.vk();
|
|
863
864
|
return false;
|
|
864
865
|
}
|
|
865
|
-
var tmp_0 = this.
|
|
866
|
+
var tmp_0 = this.vi_1;
|
|
866
867
|
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
|
|
867
868
|
tmp_0.kotlinx$atomicfu$value = (0 << 29) + 536870911 | 0;
|
|
868
|
-
this.
|
|
869
|
+
this.wi_1.kotlinx$atomicfu$value = Active_instance;
|
|
869
870
|
return true;
|
|
870
871
|
};
|
|
871
|
-
protoOf(CancellableContinuationImpl).
|
|
872
|
-
return this.
|
|
872
|
+
protoOf(CancellableContinuationImpl).xk = function () {
|
|
873
|
+
return this.zf();
|
|
873
874
|
};
|
|
874
|
-
protoOf(CancellableContinuationImpl).
|
|
875
|
+
protoOf(CancellableContinuationImpl).yk = function (takenState, cause) {
|
|
875
876
|
var tmp$ret$0;
|
|
876
877
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
877
|
-
var this_0 = this.
|
|
878
|
+
var this_0 = this.wi_1;
|
|
878
879
|
while (true) {
|
|
879
880
|
var state = this_0.kotlinx$atomicfu$value;
|
|
880
881
|
if (!(state == null) ? isInterface(state, NotCompleted) : false) {
|
|
@@ -887,17 +888,17 @@
|
|
|
887
888
|
else {
|
|
888
889
|
if (state instanceof CompletedContinuation) {
|
|
889
890
|
// Inline function 'kotlin.check' call
|
|
890
|
-
if (!!state.
|
|
891
|
+
if (!!state.sk()) {
|
|
891
892
|
var message_0 = 'Must be called at most once';
|
|
892
893
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
893
894
|
}
|
|
894
|
-
var update = state.
|
|
895
|
-
if (this.
|
|
896
|
-
state.
|
|
895
|
+
var update = state.tk(VOID, VOID, VOID, VOID, cause);
|
|
896
|
+
if (this.wi_1.atomicfu$compareAndSet(state, update)) {
|
|
897
|
+
state.zk(this, cause);
|
|
897
898
|
return Unit_instance;
|
|
898
899
|
}
|
|
899
900
|
} else {
|
|
900
|
-
if (this.
|
|
901
|
+
if (this.wi_1.atomicfu$compareAndSet(state, new CompletedContinuation(state, VOID, VOID, VOID, cause))) {
|
|
901
902
|
return Unit_instance;
|
|
902
903
|
}
|
|
903
904
|
}
|
|
@@ -906,9 +907,9 @@
|
|
|
906
907
|
}
|
|
907
908
|
return tmp$ret$0;
|
|
908
909
|
};
|
|
909
|
-
protoOf(CancellableContinuationImpl).
|
|
910
|
+
protoOf(CancellableContinuationImpl).al = function (cause) {
|
|
910
911
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
911
|
-
var this_0 = this.
|
|
912
|
+
var this_0 = this.wi_1;
|
|
912
913
|
while (true) {
|
|
913
914
|
var tmp0 = this_0.kotlinx$atomicfu$value;
|
|
914
915
|
$l$block: {
|
|
@@ -921,88 +922,88 @@
|
|
|
921
922
|
tmp = tmp0 instanceof Segment;
|
|
922
923
|
}
|
|
923
924
|
var update = new CancelledContinuation(this, cause, tmp);
|
|
924
|
-
if (!this.
|
|
925
|
+
if (!this.wi_1.atomicfu$compareAndSet(tmp0, update)) {
|
|
925
926
|
break $l$block;
|
|
926
927
|
}
|
|
927
928
|
if (isInterface(tmp0, CancelHandler)) {
|
|
928
|
-
this.
|
|
929
|
+
this.rk(tmp0, cause);
|
|
929
930
|
} else {
|
|
930
931
|
if (tmp0 instanceof Segment) {
|
|
931
932
|
callSegmentOnCancellation(this, tmp0, cause);
|
|
932
933
|
}
|
|
933
934
|
}
|
|
934
935
|
detachChildIfNonReusable(this);
|
|
935
|
-
dispatchResume(this, this.
|
|
936
|
+
dispatchResume(this, this.fk_1);
|
|
936
937
|
return true;
|
|
937
938
|
}
|
|
938
939
|
}
|
|
939
940
|
};
|
|
940
|
-
protoOf(CancellableContinuationImpl).
|
|
941
|
+
protoOf(CancellableContinuationImpl).bl = function (cause) {
|
|
941
942
|
if (cancelLater(this, cause))
|
|
942
943
|
return Unit_instance;
|
|
943
|
-
this.
|
|
944
|
+
this.al(cause);
|
|
944
945
|
detachChildIfNonReusable(this);
|
|
945
946
|
};
|
|
946
|
-
protoOf(CancellableContinuationImpl).
|
|
947
|
+
protoOf(CancellableContinuationImpl).rk = function (handler, cause) {
|
|
947
948
|
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.callCancelHandlerSafely' call
|
|
948
949
|
try {
|
|
949
|
-
handler.
|
|
950
|
+
handler.wh(cause);
|
|
950
951
|
} catch ($p) {
|
|
951
952
|
if ($p instanceof Error) {
|
|
952
953
|
var ex = $p;
|
|
953
|
-
handleCoroutineException(this.
|
|
954
|
+
handleCoroutineException(this.n6(), new CompletionHandlerException('Exception in invokeOnCancellation handler for ' + this.toString(), ex));
|
|
954
955
|
} else {
|
|
955
956
|
throw $p;
|
|
956
957
|
}
|
|
957
958
|
}
|
|
958
959
|
return Unit_instance;
|
|
959
960
|
};
|
|
960
|
-
protoOf(CancellableContinuationImpl).
|
|
961
|
+
protoOf(CancellableContinuationImpl).cl = function (onCancellation, cause, value) {
|
|
961
962
|
try {
|
|
962
|
-
onCancellation(cause, value, this.
|
|
963
|
+
onCancellation(cause, value, this.n6());
|
|
963
964
|
} catch ($p) {
|
|
964
965
|
if ($p instanceof Error) {
|
|
965
966
|
var ex = $p;
|
|
966
|
-
handleCoroutineException(this.
|
|
967
|
+
handleCoroutineException(this.n6(), new CompletionHandlerException('Exception in resume onCancellation handler for ' + this.toString(), ex));
|
|
967
968
|
} else {
|
|
968
969
|
throw $p;
|
|
969
970
|
}
|
|
970
971
|
}
|
|
971
972
|
};
|
|
972
|
-
protoOf(CancellableContinuationImpl).
|
|
973
|
-
return parent.
|
|
973
|
+
protoOf(CancellableContinuationImpl).dl = function (parent) {
|
|
974
|
+
return parent.dg();
|
|
974
975
|
};
|
|
975
|
-
protoOf(CancellableContinuationImpl).
|
|
976
|
+
protoOf(CancellableContinuationImpl).zi = function () {
|
|
976
977
|
var isReusable_0 = isReusable(this);
|
|
977
978
|
if (trySuspend(this)) {
|
|
978
979
|
if (_get_parentHandle__f8dcex(this) == null) {
|
|
979
980
|
installParentHandle(this);
|
|
980
981
|
}
|
|
981
982
|
if (isReusable_0) {
|
|
982
|
-
this.
|
|
983
|
+
this.el();
|
|
983
984
|
}
|
|
984
985
|
return get_COROUTINE_SUSPENDED();
|
|
985
986
|
}
|
|
986
987
|
if (isReusable_0) {
|
|
987
|
-
this.
|
|
988
|
+
this.el();
|
|
988
989
|
}
|
|
989
|
-
var state = this.
|
|
990
|
+
var state = this.zf();
|
|
990
991
|
if (state instanceof CompletedExceptionally)
|
|
991
|
-
throw recoverStackTrace(state.
|
|
992
|
-
if (get_isCancellableMode(this.
|
|
993
|
-
var job = this.
|
|
994
|
-
if (!(job == null) && !job.
|
|
995
|
-
var cause = job.
|
|
996
|
-
this.
|
|
992
|
+
throw recoverStackTrace(state.lf_1, this);
|
|
993
|
+
if (get_isCancellableMode(this.fk_1)) {
|
|
994
|
+
var job = this.n6().u6(Key_instance_2);
|
|
995
|
+
if (!(job == null) && !job.gf()) {
|
|
996
|
+
var cause = job.dg();
|
|
997
|
+
this.yk(state, cause);
|
|
997
998
|
throw recoverStackTrace(cause, this);
|
|
998
999
|
}
|
|
999
1000
|
}
|
|
1000
|
-
return this.
|
|
1001
|
+
return this.fl(state);
|
|
1001
1002
|
};
|
|
1002
|
-
protoOf(CancellableContinuationImpl).
|
|
1003
|
-
var tmp = this.
|
|
1003
|
+
protoOf(CancellableContinuationImpl).el = function () {
|
|
1004
|
+
var tmp = this.ti_1;
|
|
1004
1005
|
var tmp0_safe_receiver = tmp instanceof DispatchedContinuation ? tmp : null;
|
|
1005
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1006
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gl(this);
|
|
1006
1007
|
var tmp_0;
|
|
1007
1008
|
if (tmp1_elvis_lhs == null) {
|
|
1008
1009
|
return Unit_instance;
|
|
@@ -1010,14 +1011,14 @@
|
|
|
1010
1011
|
tmp_0 = tmp1_elvis_lhs;
|
|
1011
1012
|
}
|
|
1012
1013
|
var cancellationCause = tmp_0;
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1014
|
+
this.vk();
|
|
1015
|
+
this.al(cancellationCause);
|
|
1015
1016
|
};
|
|
1016
|
-
protoOf(CancellableContinuationImpl).
|
|
1017
|
-
return this.
|
|
1017
|
+
protoOf(CancellableContinuationImpl).s6 = function (result) {
|
|
1018
|
+
return this.hl(toState(result, this), this.fk_1);
|
|
1018
1019
|
};
|
|
1019
|
-
protoOf(CancellableContinuationImpl).
|
|
1020
|
-
var tmp = this.
|
|
1020
|
+
protoOf(CancellableContinuationImpl).il = function (value, onCancellation) {
|
|
1021
|
+
var tmp = this.fk_1;
|
|
1021
1022
|
var tmp_0;
|
|
1022
1023
|
if (onCancellation == null) {
|
|
1023
1024
|
tmp_0 = null;
|
|
@@ -1025,13 +1026,13 @@
|
|
|
1025
1026
|
// Inline function 'kotlin.let' call
|
|
1026
1027
|
tmp_0 = CancellableContinuationImpl$resume$lambda(onCancellation);
|
|
1027
1028
|
}
|
|
1028
|
-
return this.
|
|
1029
|
+
return this.jl(value, tmp, tmp_0);
|
|
1029
1030
|
};
|
|
1030
|
-
protoOf(CancellableContinuationImpl).
|
|
1031
|
-
return this.
|
|
1031
|
+
protoOf(CancellableContinuationImpl).tj = function (value, onCancellation) {
|
|
1032
|
+
return this.jl(value, this.fk_1, onCancellation);
|
|
1032
1033
|
};
|
|
1033
|
-
protoOf(CancellableContinuationImpl).
|
|
1034
|
-
var tmp0 = this.
|
|
1034
|
+
protoOf(CancellableContinuationImpl).kl = function (segment, index) {
|
|
1035
|
+
var tmp0 = this.vi_1;
|
|
1035
1036
|
$l$block: {
|
|
1036
1037
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
1037
1038
|
while (true) {
|
|
@@ -1052,18 +1053,18 @@
|
|
|
1052
1053
|
}
|
|
1053
1054
|
invokeOnCancellationImpl(this, segment);
|
|
1054
1055
|
};
|
|
1055
|
-
protoOf(CancellableContinuationImpl).
|
|
1056
|
+
protoOf(CancellableContinuationImpl).uj = function (handler) {
|
|
1056
1057
|
return invokeOnCancellationImpl(this, handler);
|
|
1057
1058
|
};
|
|
1058
|
-
protoOf(CancellableContinuationImpl).
|
|
1059
|
+
protoOf(CancellableContinuationImpl).jl = function (proposedUpdate, resumeMode, onCancellation) {
|
|
1059
1060
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1060
|
-
var this_0 = this.
|
|
1061
|
+
var this_0 = this.wi_1;
|
|
1061
1062
|
while (true) {
|
|
1062
1063
|
var tmp0 = this_0.kotlinx$atomicfu$value;
|
|
1063
1064
|
$l$block: {
|
|
1064
1065
|
if (!(tmp0 == null) ? isInterface(tmp0, NotCompleted) : false) {
|
|
1065
1066
|
var update = resumedState(this, tmp0, proposedUpdate, resumeMode, onCancellation, null);
|
|
1066
|
-
if (!this.
|
|
1067
|
+
if (!this.wi_1.atomicfu$compareAndSet(tmp0, update)) {
|
|
1067
1068
|
break $l$block;
|
|
1068
1069
|
}
|
|
1069
1070
|
detachChildIfNonReusable(this);
|
|
@@ -1071,12 +1072,12 @@
|
|
|
1071
1072
|
return Unit_instance;
|
|
1072
1073
|
} else {
|
|
1073
1074
|
if (tmp0 instanceof CancelledContinuation) {
|
|
1074
|
-
if (tmp0.
|
|
1075
|
+
if (tmp0.ol()) {
|
|
1075
1076
|
if (onCancellation == null)
|
|
1076
1077
|
null;
|
|
1077
1078
|
else {
|
|
1078
1079
|
// Inline function 'kotlin.let' call
|
|
1079
|
-
this.
|
|
1080
|
+
this.cl(onCancellation, tmp0.lf_1, proposedUpdate);
|
|
1080
1081
|
}
|
|
1081
1082
|
return Unit_instance;
|
|
1082
1083
|
}
|
|
@@ -1086,18 +1087,18 @@
|
|
|
1086
1087
|
}
|
|
1087
1088
|
}
|
|
1088
1089
|
};
|
|
1089
|
-
protoOf(CancellableContinuationImpl).
|
|
1090
|
+
protoOf(CancellableContinuationImpl).hl = function (proposedUpdate, resumeMode, onCancellation, $super) {
|
|
1090
1091
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
1091
1092
|
var tmp;
|
|
1092
1093
|
if ($super === VOID) {
|
|
1093
|
-
this.
|
|
1094
|
+
this.jl(proposedUpdate, resumeMode, onCancellation);
|
|
1094
1095
|
tmp = Unit_instance;
|
|
1095
1096
|
} else {
|
|
1096
|
-
tmp = $super.
|
|
1097
|
+
tmp = $super.jl.call(this, proposedUpdate, resumeMode, onCancellation);
|
|
1097
1098
|
}
|
|
1098
1099
|
return tmp;
|
|
1099
1100
|
};
|
|
1100
|
-
protoOf(CancellableContinuationImpl).
|
|
1101
|
+
protoOf(CancellableContinuationImpl).vk = function () {
|
|
1101
1102
|
var tmp0_elvis_lhs = _get_parentHandle__f8dcex(this);
|
|
1102
1103
|
var tmp;
|
|
1103
1104
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1106,43 +1107,43 @@
|
|
|
1106
1107
|
tmp = tmp0_elvis_lhs;
|
|
1107
1108
|
}
|
|
1108
1109
|
var handle = tmp;
|
|
1109
|
-
handle.
|
|
1110
|
-
this.
|
|
1110
|
+
handle.vh();
|
|
1111
|
+
this.xi_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
|
|
1111
1112
|
};
|
|
1112
|
-
protoOf(CancellableContinuationImpl).
|
|
1113
|
+
protoOf(CancellableContinuationImpl).sj = function (value, idempotent, onCancellation) {
|
|
1113
1114
|
return tryResumeImpl(this, value, idempotent, onCancellation);
|
|
1114
1115
|
};
|
|
1115
|
-
protoOf(CancellableContinuationImpl).
|
|
1116
|
+
protoOf(CancellableContinuationImpl).di = function (exception) {
|
|
1116
1117
|
return tryResumeImpl(this, new CompletedExceptionally(exception), null, null);
|
|
1117
1118
|
};
|
|
1118
|
-
protoOf(CancellableContinuationImpl).
|
|
1119
|
+
protoOf(CancellableContinuationImpl).ei = function (token) {
|
|
1119
1120
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1120
|
-
dispatchResume(this, this.
|
|
1121
|
+
dispatchResume(this, this.fk_1);
|
|
1121
1122
|
};
|
|
1122
|
-
protoOf(CancellableContinuationImpl).
|
|
1123
|
+
protoOf(CancellableContinuationImpl).fl = function (state) {
|
|
1123
1124
|
var tmp;
|
|
1124
1125
|
if (state instanceof CompletedContinuation) {
|
|
1125
|
-
tmp = state.
|
|
1126
|
+
tmp = state.mk_1;
|
|
1126
1127
|
} else {
|
|
1127
1128
|
tmp = state;
|
|
1128
1129
|
}
|
|
1129
1130
|
return tmp;
|
|
1130
1131
|
};
|
|
1131
|
-
protoOf(CancellableContinuationImpl).
|
|
1132
|
-
var tmp0_safe_receiver = protoOf(DispatchedTask).
|
|
1132
|
+
protoOf(CancellableContinuationImpl).pl = function (state) {
|
|
1133
|
+
var tmp0_safe_receiver = protoOf(DispatchedTask).pl.call(this, state);
|
|
1133
1134
|
var tmp;
|
|
1134
1135
|
if (tmp0_safe_receiver == null) {
|
|
1135
1136
|
tmp = null;
|
|
1136
1137
|
} else {
|
|
1137
1138
|
// Inline function 'kotlin.let' call
|
|
1138
|
-
tmp = recoverStackTrace(tmp0_safe_receiver, this.
|
|
1139
|
+
tmp = recoverStackTrace(tmp0_safe_receiver, this.ti_1);
|
|
1139
1140
|
}
|
|
1140
1141
|
return tmp;
|
|
1141
1142
|
};
|
|
1142
1143
|
protoOf(CancellableContinuationImpl).toString = function () {
|
|
1143
|
-
return this.
|
|
1144
|
+
return this.ql() + '(' + toDebugString(this.ti_1) + '){' + _get_stateDebugRepresentation__bf18u4(this) + '}@' + get_hexAddress(this);
|
|
1144
1145
|
};
|
|
1145
|
-
protoOf(CancellableContinuationImpl).
|
|
1146
|
+
protoOf(CancellableContinuationImpl).ql = function () {
|
|
1146
1147
|
return 'CancellableContinuation';
|
|
1147
1148
|
};
|
|
1148
1149
|
function NotCompleted() {
|
|
@@ -1161,51 +1162,51 @@
|
|
|
1161
1162
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
1162
1163
|
idempotentResume = idempotentResume === VOID ? null : idempotentResume;
|
|
1163
1164
|
cancelCause = cancelCause === VOID ? null : cancelCause;
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1165
|
+
this.mk_1 = result;
|
|
1166
|
+
this.nk_1 = cancelHandler;
|
|
1167
|
+
this.ok_1 = onCancellation;
|
|
1168
|
+
this.pk_1 = idempotentResume;
|
|
1169
|
+
this.qk_1 = cancelCause;
|
|
1169
1170
|
}
|
|
1170
|
-
protoOf(CompletedContinuation).
|
|
1171
|
-
return !(this.
|
|
1171
|
+
protoOf(CompletedContinuation).sk = function () {
|
|
1172
|
+
return !(this.qk_1 == null);
|
|
1172
1173
|
};
|
|
1173
|
-
protoOf(CompletedContinuation).
|
|
1174
|
-
var tmp0_safe_receiver = this.
|
|
1174
|
+
protoOf(CompletedContinuation).zk = function (cont, cause) {
|
|
1175
|
+
var tmp0_safe_receiver = this.nk_1;
|
|
1175
1176
|
if (tmp0_safe_receiver == null)
|
|
1176
1177
|
null;
|
|
1177
1178
|
else {
|
|
1178
1179
|
// Inline function 'kotlin.let' call
|
|
1179
|
-
cont.
|
|
1180
|
+
cont.rk(tmp0_safe_receiver, cause);
|
|
1180
1181
|
}
|
|
1181
|
-
var tmp1_safe_receiver = this.
|
|
1182
|
+
var tmp1_safe_receiver = this.ok_1;
|
|
1182
1183
|
if (tmp1_safe_receiver == null)
|
|
1183
1184
|
null;
|
|
1184
1185
|
else {
|
|
1185
1186
|
// Inline function 'kotlin.let' call
|
|
1186
|
-
cont.
|
|
1187
|
+
cont.cl(tmp1_safe_receiver, cause, this.mk_1);
|
|
1187
1188
|
}
|
|
1188
1189
|
};
|
|
1189
|
-
protoOf(CompletedContinuation).
|
|
1190
|
+
protoOf(CompletedContinuation).tl = function (result, cancelHandler, onCancellation, idempotentResume, cancelCause) {
|
|
1190
1191
|
return new CompletedContinuation(result, cancelHandler, onCancellation, idempotentResume, cancelCause);
|
|
1191
1192
|
};
|
|
1192
|
-
protoOf(CompletedContinuation).
|
|
1193
|
-
result = result === VOID ? this.
|
|
1194
|
-
cancelHandler = cancelHandler === VOID ? this.
|
|
1195
|
-
onCancellation = onCancellation === VOID ? this.
|
|
1196
|
-
idempotentResume = idempotentResume === VOID ? this.
|
|
1197
|
-
cancelCause = cancelCause === VOID ? this.
|
|
1198
|
-
return $super === VOID ? this.
|
|
1193
|
+
protoOf(CompletedContinuation).tk = function (result, cancelHandler, onCancellation, idempotentResume, cancelCause, $super) {
|
|
1194
|
+
result = result === VOID ? this.mk_1 : result;
|
|
1195
|
+
cancelHandler = cancelHandler === VOID ? this.nk_1 : cancelHandler;
|
|
1196
|
+
onCancellation = onCancellation === VOID ? this.ok_1 : onCancellation;
|
|
1197
|
+
idempotentResume = idempotentResume === VOID ? this.pk_1 : idempotentResume;
|
|
1198
|
+
cancelCause = cancelCause === VOID ? this.qk_1 : cancelCause;
|
|
1199
|
+
return $super === VOID ? this.tl(result, cancelHandler, onCancellation, idempotentResume, cancelCause) : $super.tl.call(this, result, cancelHandler, onCancellation, idempotentResume, cancelCause);
|
|
1199
1200
|
};
|
|
1200
1201
|
protoOf(CompletedContinuation).toString = function () {
|
|
1201
|
-
return 'CompletedContinuation(result=' + toString_0(this.
|
|
1202
|
+
return 'CompletedContinuation(result=' + toString_0(this.mk_1) + ', cancelHandler=' + toString_0(this.nk_1) + ', onCancellation=' + toString_0(this.ok_1) + ', idempotentResume=' + toString_0(this.pk_1) + ', cancelCause=' + toString_0(this.qk_1) + ')';
|
|
1202
1203
|
};
|
|
1203
1204
|
protoOf(CompletedContinuation).hashCode = function () {
|
|
1204
|
-
var result = this.
|
|
1205
|
-
result = imul(result, 31) + (this.
|
|
1206
|
-
result = imul(result, 31) + (this.
|
|
1207
|
-
result = imul(result, 31) + (this.
|
|
1208
|
-
result = imul(result, 31) + (this.
|
|
1205
|
+
var result = this.mk_1 == null ? 0 : hashCode(this.mk_1);
|
|
1206
|
+
result = imul(result, 31) + (this.nk_1 == null ? 0 : hashCode(this.nk_1)) | 0;
|
|
1207
|
+
result = imul(result, 31) + (this.ok_1 == null ? 0 : hashCode(this.ok_1)) | 0;
|
|
1208
|
+
result = imul(result, 31) + (this.pk_1 == null ? 0 : hashCode(this.pk_1)) | 0;
|
|
1209
|
+
result = imul(result, 31) + (this.qk_1 == null ? 0 : hashCode(this.qk_1)) | 0;
|
|
1209
1210
|
return result;
|
|
1210
1211
|
};
|
|
1211
1212
|
protoOf(CompletedContinuation).equals = function (other) {
|
|
@@ -1213,27 +1214,27 @@
|
|
|
1213
1214
|
return true;
|
|
1214
1215
|
if (!(other instanceof CompletedContinuation))
|
|
1215
1216
|
return false;
|
|
1216
|
-
if (!equals(this.
|
|
1217
|
+
if (!equals(this.mk_1, other.mk_1))
|
|
1217
1218
|
return false;
|
|
1218
|
-
if (!equals(this.
|
|
1219
|
+
if (!equals(this.nk_1, other.nk_1))
|
|
1219
1220
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1221
|
+
if (!equals(this.ok_1, other.ok_1))
|
|
1221
1222
|
return false;
|
|
1222
|
-
if (!equals(this.
|
|
1223
|
+
if (!equals(this.pk_1, other.pk_1))
|
|
1223
1224
|
return false;
|
|
1224
|
-
if (!equals(this.
|
|
1225
|
+
if (!equals(this.qk_1, other.qk_1))
|
|
1225
1226
|
return false;
|
|
1226
1227
|
return true;
|
|
1227
1228
|
};
|
|
1228
1229
|
function ChildContinuation(child) {
|
|
1229
1230
|
JobNode.call(this);
|
|
1230
|
-
this.
|
|
1231
|
+
this.yl_1 = child;
|
|
1231
1232
|
}
|
|
1232
|
-
protoOf(ChildContinuation).
|
|
1233
|
+
protoOf(ChildContinuation).zh = function () {
|
|
1233
1234
|
return true;
|
|
1234
1235
|
};
|
|
1235
|
-
protoOf(ChildContinuation).
|
|
1236
|
-
this.
|
|
1236
|
+
protoOf(ChildContinuation).wh = function (cause) {
|
|
1237
|
+
this.yl_1.bl(this.yl_1.dl(this.ji()));
|
|
1237
1238
|
};
|
|
1238
1239
|
var properties_initialized_CancellableContinuationImpl_kt_xtzb03;
|
|
1239
1240
|
function _init_properties_CancellableContinuationImpl_kt__6rrtdd() {
|
|
@@ -1248,18 +1249,18 @@
|
|
|
1248
1249
|
}
|
|
1249
1250
|
function $awaitCOROUTINE$_0(_this__u8e3s4, resultContinuation) {
|
|
1250
1251
|
CoroutineImpl.call(this, resultContinuation);
|
|
1251
|
-
this.
|
|
1252
|
+
this.hm_1 = _this__u8e3s4;
|
|
1252
1253
|
}
|
|
1253
|
-
protoOf($awaitCOROUTINE$_0).
|
|
1254
|
-
var suspendResult = this.
|
|
1254
|
+
protoOf($awaitCOROUTINE$_0).p6 = function () {
|
|
1255
|
+
var suspendResult = this.j6_1;
|
|
1255
1256
|
$sm: do
|
|
1256
1257
|
try {
|
|
1257
|
-
var tmp = this.
|
|
1258
|
+
var tmp = this.h6_1;
|
|
1258
1259
|
switch (tmp) {
|
|
1259
1260
|
case 0:
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1262
|
-
suspendResult = this.
|
|
1261
|
+
this.i6_1 = 2;
|
|
1262
|
+
this.h6_1 = 1;
|
|
1263
|
+
suspendResult = this.hm_1.yg(this);
|
|
1263
1264
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1264
1265
|
return suspendResult;
|
|
1265
1266
|
}
|
|
@@ -1268,61 +1269,61 @@
|
|
|
1268
1269
|
case 1:
|
|
1269
1270
|
return suspendResult;
|
|
1270
1271
|
case 2:
|
|
1271
|
-
throw this.
|
|
1272
|
+
throw this.k6_1;
|
|
1272
1273
|
}
|
|
1273
1274
|
} catch ($p) {
|
|
1274
1275
|
var e = $p;
|
|
1275
|
-
if (this.
|
|
1276
|
+
if (this.i6_1 === 2) {
|
|
1276
1277
|
throw e;
|
|
1277
1278
|
} else {
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1279
|
+
this.h6_1 = this.i6_1;
|
|
1280
|
+
this.k6_1 = e;
|
|
1280
1281
|
}
|
|
1281
1282
|
}
|
|
1282
1283
|
while (true);
|
|
1283
1284
|
};
|
|
1284
1285
|
function CompletableDeferredImpl(parent) {
|
|
1285
1286
|
JobSupport.call(this, true);
|
|
1286
|
-
this.
|
|
1287
|
+
this.bf(parent);
|
|
1287
1288
|
}
|
|
1288
|
-
protoOf(CompletableDeferredImpl).
|
|
1289
|
+
protoOf(CompletableDeferredImpl).kg = function () {
|
|
1289
1290
|
return true;
|
|
1290
1291
|
};
|
|
1291
|
-
protoOf(CompletableDeferredImpl).
|
|
1292
|
-
return this.
|
|
1292
|
+
protoOf(CompletableDeferredImpl).ci = function () {
|
|
1293
|
+
return this.xg();
|
|
1293
1294
|
};
|
|
1294
|
-
protoOf(CompletableDeferredImpl).
|
|
1295
|
+
protoOf(CompletableDeferredImpl).nj = function ($completion) {
|
|
1295
1296
|
var tmp = new $awaitCOROUTINE$_0(this, $completion);
|
|
1296
|
-
tmp.
|
|
1297
|
-
tmp.
|
|
1298
|
-
return tmp.
|
|
1297
|
+
tmp.j6_1 = Unit_instance;
|
|
1298
|
+
tmp.k6_1 = null;
|
|
1299
|
+
return tmp.p6();
|
|
1299
1300
|
};
|
|
1300
|
-
protoOf(CompletableDeferredImpl).
|
|
1301
|
-
return this.
|
|
1301
|
+
protoOf(CompletableDeferredImpl).km = function (value) {
|
|
1302
|
+
return this.pg(value);
|
|
1302
1303
|
};
|
|
1303
|
-
protoOf(CompletableDeferredImpl).
|
|
1304
|
-
return this.
|
|
1304
|
+
protoOf(CompletableDeferredImpl).lm = function (exception) {
|
|
1305
|
+
return this.pg(new CompletedExceptionally(exception));
|
|
1305
1306
|
};
|
|
1306
1307
|
function CancelledContinuation(continuation, cause, handled) {
|
|
1307
1308
|
CompletedExceptionally.call(this, cause == null ? CancellationException_init_$Create$('Continuation ' + toString(continuation) + ' was cancelled normally') : cause, handled);
|
|
1308
|
-
this.
|
|
1309
|
+
this.nl_1 = atomic$boolean$1(false);
|
|
1309
1310
|
}
|
|
1310
|
-
protoOf(CancelledContinuation).
|
|
1311
|
-
return this.
|
|
1311
|
+
protoOf(CancelledContinuation).ol = function () {
|
|
1312
|
+
return this.nl_1.atomicfu$compareAndSet(false, true);
|
|
1312
1313
|
};
|
|
1313
1314
|
function CompletedExceptionally(cause, handled) {
|
|
1314
1315
|
handled = handled === VOID ? false : handled;
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1316
|
+
this.lf_1 = cause;
|
|
1317
|
+
this.mf_1 = atomic$boolean$1(handled);
|
|
1317
1318
|
}
|
|
1318
|
-
protoOf(CompletedExceptionally).
|
|
1319
|
-
return this.
|
|
1319
|
+
protoOf(CompletedExceptionally).nf = function () {
|
|
1320
|
+
return this.mf_1.kotlinx$atomicfu$value;
|
|
1320
1321
|
};
|
|
1321
|
-
protoOf(CompletedExceptionally).
|
|
1322
|
-
return this.
|
|
1322
|
+
protoOf(CompletedExceptionally).uk = function () {
|
|
1323
|
+
return this.mf_1.atomicfu$compareAndSet(false, true);
|
|
1323
1324
|
};
|
|
1324
1325
|
protoOf(CompletedExceptionally).toString = function () {
|
|
1325
|
-
return get_classSimpleName(this) + '[' + this.
|
|
1326
|
+
return get_classSimpleName(this) + '[' + this.lf_1.toString() + ']';
|
|
1326
1327
|
};
|
|
1327
1328
|
function toState(_this__u8e3s4, caller) {
|
|
1328
1329
|
// Inline function 'kotlin.getOrElse' call
|
|
@@ -1350,7 +1351,7 @@
|
|
|
1350
1351
|
var tmp;
|
|
1351
1352
|
if (state instanceof CompletedExceptionally) {
|
|
1352
1353
|
// Inline function 'kotlin.Companion.failure' call
|
|
1353
|
-
var exception = recoverStackTrace(state.
|
|
1354
|
+
var exception = recoverStackTrace(state.lf_1, uCont);
|
|
1354
1355
|
tmp = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1355
1356
|
} else {
|
|
1356
1357
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -1376,15 +1377,15 @@
|
|
|
1376
1377
|
Key_getInstance();
|
|
1377
1378
|
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
1378
1379
|
}
|
|
1379
|
-
protoOf(CoroutineDispatcher).
|
|
1380
|
+
protoOf(CoroutineDispatcher).nm = function (context) {
|
|
1380
1381
|
return true;
|
|
1381
1382
|
};
|
|
1382
|
-
protoOf(CoroutineDispatcher).
|
|
1383
|
+
protoOf(CoroutineDispatcher).v6 = function (continuation) {
|
|
1383
1384
|
return new DispatchedContinuation(this, continuation);
|
|
1384
1385
|
};
|
|
1385
|
-
protoOf(CoroutineDispatcher).
|
|
1386
|
+
protoOf(CoroutineDispatcher).w6 = function (continuation) {
|
|
1386
1387
|
var dispatched = continuation instanceof DispatchedContinuation ? continuation : THROW_CCE();
|
|
1387
|
-
dispatched.
|
|
1388
|
+
dispatched.pm();
|
|
1388
1389
|
};
|
|
1389
1390
|
protoOf(CoroutineDispatcher).toString = function () {
|
|
1390
1391
|
return get_classSimpleName(this) + '@' + get_hexAddress(this);
|
|
@@ -1392,18 +1393,18 @@
|
|
|
1392
1393
|
function handleCoroutineException(context, exception) {
|
|
1393
1394
|
var tmp;
|
|
1394
1395
|
if (exception instanceof DispatchException) {
|
|
1395
|
-
tmp = exception.
|
|
1396
|
+
tmp = exception.qm_1;
|
|
1396
1397
|
} else {
|
|
1397
1398
|
tmp = exception;
|
|
1398
1399
|
}
|
|
1399
1400
|
var reportException = tmp;
|
|
1400
1401
|
try {
|
|
1401
|
-
var tmp0_safe_receiver = context.
|
|
1402
|
+
var tmp0_safe_receiver = context.u6(Key_instance_1);
|
|
1402
1403
|
if (tmp0_safe_receiver == null)
|
|
1403
1404
|
null;
|
|
1404
1405
|
else {
|
|
1405
1406
|
// Inline function 'kotlin.let' call
|
|
1406
|
-
tmp0_safe_receiver.
|
|
1407
|
+
tmp0_safe_receiver.rm(context, reportException);
|
|
1407
1408
|
return Unit_instance;
|
|
1408
1409
|
}
|
|
1409
1410
|
} catch ($p) {
|
|
@@ -1433,7 +1434,7 @@
|
|
|
1433
1434
|
}
|
|
1434
1435
|
function GlobalScope() {
|
|
1435
1436
|
}
|
|
1436
|
-
protoOf(GlobalScope).
|
|
1437
|
+
protoOf(GlobalScope).ff = function () {
|
|
1437
1438
|
return EmptyCoroutineContext_getInstance();
|
|
1438
1439
|
};
|
|
1439
1440
|
var GlobalScope_instance;
|
|
@@ -1443,7 +1444,7 @@
|
|
|
1443
1444
|
function CoroutineScope() {
|
|
1444
1445
|
}
|
|
1445
1446
|
function coroutineScope(block, $completion) {
|
|
1446
|
-
var coroutine = new ScopeCoroutine($completion.
|
|
1447
|
+
var coroutine = new ScopeCoroutine($completion.n6(), $completion);
|
|
1447
1448
|
return startUndispatchedOrReturn(coroutine, coroutine, block);
|
|
1448
1449
|
}
|
|
1449
1450
|
var CoroutineStart_DEFAULT_instance;
|
|
@@ -1463,9 +1464,9 @@
|
|
|
1463
1464
|
function CoroutineStart(name, ordinal) {
|
|
1464
1465
|
Enum.call(this, name, ordinal);
|
|
1465
1466
|
}
|
|
1466
|
-
protoOf(CoroutineStart).
|
|
1467
|
+
protoOf(CoroutineStart).wf = function (block, receiver, completion) {
|
|
1467
1468
|
var tmp;
|
|
1468
|
-
switch (this.
|
|
1469
|
+
switch (this.o1_1) {
|
|
1469
1470
|
case 0:
|
|
1470
1471
|
startCoroutineCancellable_0(block, receiver, completion);
|
|
1471
1472
|
tmp = Unit_instance;
|
|
@@ -1487,7 +1488,7 @@
|
|
|
1487
1488
|
}
|
|
1488
1489
|
return tmp;
|
|
1489
1490
|
};
|
|
1490
|
-
protoOf(CoroutineStart).
|
|
1491
|
+
protoOf(CoroutineStart).aj = function () {
|
|
1491
1492
|
return this === CoroutineStart_LAZY_getInstance();
|
|
1492
1493
|
};
|
|
1493
1494
|
function CoroutineStart_DEFAULT_getInstance() {
|
|
@@ -1503,12 +1504,12 @@
|
|
|
1503
1504
|
}
|
|
1504
1505
|
function EventLoop() {
|
|
1505
1506
|
CoroutineDispatcher.call(this);
|
|
1506
|
-
this.
|
|
1507
|
-
this.
|
|
1508
|
-
this.
|
|
1507
|
+
this.tm_1 = new Long(0, 0);
|
|
1508
|
+
this.um_1 = false;
|
|
1509
|
+
this.vm_1 = null;
|
|
1509
1510
|
}
|
|
1510
|
-
protoOf(EventLoop).
|
|
1511
|
-
var tmp0_elvis_lhs = this.
|
|
1511
|
+
protoOf(EventLoop).wm = function () {
|
|
1512
|
+
var tmp0_elvis_lhs = this.vm_1;
|
|
1512
1513
|
var tmp;
|
|
1513
1514
|
if (tmp0_elvis_lhs == null) {
|
|
1514
1515
|
return false;
|
|
@@ -1516,7 +1517,7 @@
|
|
|
1516
1517
|
tmp = tmp0_elvis_lhs;
|
|
1517
1518
|
}
|
|
1518
1519
|
var queue = tmp;
|
|
1519
|
-
var tmp1_elvis_lhs = queue.
|
|
1520
|
+
var tmp1_elvis_lhs = queue.ha();
|
|
1520
1521
|
var tmp_0;
|
|
1521
1522
|
if (tmp1_elvis_lhs == null) {
|
|
1522
1523
|
return false;
|
|
@@ -1524,58 +1525,58 @@
|
|
|
1524
1525
|
tmp_0 = tmp1_elvis_lhs;
|
|
1525
1526
|
}
|
|
1526
1527
|
var task = tmp_0;
|
|
1527
|
-
task.
|
|
1528
|
+
task.rl();
|
|
1528
1529
|
return true;
|
|
1529
1530
|
};
|
|
1530
|
-
protoOf(EventLoop).
|
|
1531
|
-
var tmp0_elvis_lhs = this.
|
|
1531
|
+
protoOf(EventLoop).xm = function (task) {
|
|
1532
|
+
var tmp0_elvis_lhs = this.vm_1;
|
|
1532
1533
|
var tmp;
|
|
1533
1534
|
if (tmp0_elvis_lhs == null) {
|
|
1534
1535
|
// Inline function 'kotlin.also' call
|
|
1535
1536
|
var this_0 = ArrayDeque_init_$Create$();
|
|
1536
|
-
this.
|
|
1537
|
+
this.vm_1 = this_0;
|
|
1537
1538
|
tmp = this_0;
|
|
1538
1539
|
} else {
|
|
1539
1540
|
tmp = tmp0_elvis_lhs;
|
|
1540
1541
|
}
|
|
1541
1542
|
var queue = tmp;
|
|
1542
|
-
queue.
|
|
1543
|
+
queue.fa(task);
|
|
1543
1544
|
};
|
|
1544
|
-
protoOf(EventLoop).
|
|
1545
|
-
return compare(this.
|
|
1545
|
+
protoOf(EventLoop).ym = function () {
|
|
1546
|
+
return compare(this.tm_1, delta(this, true)) >= 0;
|
|
1546
1547
|
};
|
|
1547
|
-
protoOf(EventLoop).
|
|
1548
|
-
var tmp0_safe_receiver = this.
|
|
1549
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1548
|
+
protoOf(EventLoop).zm = function () {
|
|
1549
|
+
var tmp0_safe_receiver = this.vm_1;
|
|
1550
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n();
|
|
1550
1551
|
return tmp1_elvis_lhs == null ? true : tmp1_elvis_lhs;
|
|
1551
1552
|
};
|
|
1552
|
-
protoOf(EventLoop).
|
|
1553
|
-
this.
|
|
1553
|
+
protoOf(EventLoop).an = function (unconfined) {
|
|
1554
|
+
this.tm_1 = add(this.tm_1, delta(this, unconfined));
|
|
1554
1555
|
if (!unconfined)
|
|
1555
|
-
this.
|
|
1556
|
+
this.um_1 = true;
|
|
1556
1557
|
};
|
|
1557
|
-
protoOf(EventLoop).
|
|
1558
|
-
this.
|
|
1559
|
-
if (compare(this.
|
|
1558
|
+
protoOf(EventLoop).bn = function (unconfined) {
|
|
1559
|
+
this.tm_1 = subtract(this.tm_1, delta(this, unconfined));
|
|
1560
|
+
if (compare(this.tm_1, new Long(0, 0)) > 0)
|
|
1560
1561
|
return Unit_instance;
|
|
1561
1562
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1562
|
-
if (this.
|
|
1563
|
-
this.
|
|
1563
|
+
if (this.um_1) {
|
|
1564
|
+
this.cn();
|
|
1564
1565
|
}
|
|
1565
1566
|
};
|
|
1566
|
-
protoOf(EventLoop).
|
|
1567
|
+
protoOf(EventLoop).cn = function () {
|
|
1567
1568
|
};
|
|
1568
1569
|
function ThreadLocalEventLoop() {
|
|
1569
1570
|
ThreadLocalEventLoop_instance = this;
|
|
1570
|
-
this.
|
|
1571
|
+
this.dn_1 = commonThreadLocal(new Symbol('ThreadLocalEventLoop'));
|
|
1571
1572
|
}
|
|
1572
|
-
protoOf(ThreadLocalEventLoop).
|
|
1573
|
-
var tmp0_elvis_lhs = this.
|
|
1573
|
+
protoOf(ThreadLocalEventLoop).en = function () {
|
|
1574
|
+
var tmp0_elvis_lhs = this.dn_1.gn();
|
|
1574
1575
|
var tmp;
|
|
1575
1576
|
if (tmp0_elvis_lhs == null) {
|
|
1576
1577
|
// Inline function 'kotlin.also' call
|
|
1577
1578
|
var this_0 = createEventLoop();
|
|
1578
|
-
ThreadLocalEventLoop_getInstance().
|
|
1579
|
+
ThreadLocalEventLoop_getInstance().dn_1.hn(this_0);
|
|
1579
1580
|
tmp = this_0;
|
|
1580
1581
|
} else {
|
|
1581
1582
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1600,18 +1601,18 @@
|
|
|
1600
1601
|
invokeImmediately = invokeImmediately === VOID ? true : invokeImmediately;
|
|
1601
1602
|
var tmp;
|
|
1602
1603
|
if (_this__u8e3s4 instanceof JobSupport) {
|
|
1603
|
-
tmp = _this__u8e3s4.
|
|
1604
|
+
tmp = _this__u8e3s4.ig(invokeImmediately, handler);
|
|
1604
1605
|
} else {
|
|
1605
|
-
var tmp_0 = handler.
|
|
1606
|
-
tmp = _this__u8e3s4.
|
|
1606
|
+
var tmp_0 = handler.zh();
|
|
1607
|
+
tmp = _this__u8e3s4.hg(tmp_0, invokeImmediately, JobNode$invoke$ref(handler));
|
|
1607
1608
|
}
|
|
1608
1609
|
return tmp;
|
|
1609
1610
|
}
|
|
1610
1611
|
function NonDisposableHandle() {
|
|
1611
1612
|
}
|
|
1612
|
-
protoOf(NonDisposableHandle).
|
|
1613
|
+
protoOf(NonDisposableHandle).vh = function () {
|
|
1613
1614
|
};
|
|
1614
|
-
protoOf(NonDisposableHandle).
|
|
1615
|
+
protoOf(NonDisposableHandle).mg = function (cause) {
|
|
1615
1616
|
return false;
|
|
1616
1617
|
};
|
|
1617
1618
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1667,31 +1668,31 @@
|
|
|
1667
1668
|
function JobNode() {
|
|
1668
1669
|
LockFreeLinkedListNode.call(this);
|
|
1669
1670
|
}
|
|
1670
|
-
protoOf(JobNode).
|
|
1671
|
-
var tmp = this.
|
|
1671
|
+
protoOf(JobNode).ji = function () {
|
|
1672
|
+
var tmp = this.ii_1;
|
|
1672
1673
|
if (!(tmp == null))
|
|
1673
1674
|
return tmp;
|
|
1674
1675
|
else {
|
|
1675
1676
|
throwUninitializedPropertyAccessException('job');
|
|
1676
1677
|
}
|
|
1677
1678
|
};
|
|
1678
|
-
protoOf(JobNode).
|
|
1679
|
+
protoOf(JobNode).gf = function () {
|
|
1679
1680
|
return true;
|
|
1680
1681
|
};
|
|
1681
|
-
protoOf(JobNode).
|
|
1682
|
+
protoOf(JobNode).ki = function () {
|
|
1682
1683
|
return null;
|
|
1683
1684
|
};
|
|
1684
|
-
protoOf(JobNode).
|
|
1685
|
-
return this.
|
|
1685
|
+
protoOf(JobNode).vh = function () {
|
|
1686
|
+
return this.ji().jg(this);
|
|
1686
1687
|
};
|
|
1687
1688
|
protoOf(JobNode).toString = function () {
|
|
1688
|
-
return get_classSimpleName(this) + '@' + get_hexAddress(this) + '[job@' + get_hexAddress(this.
|
|
1689
|
+
return get_classSimpleName(this) + '@' + get_hexAddress(this) + '[job@' + get_hexAddress(this.ji()) + ']';
|
|
1689
1690
|
};
|
|
1690
1691
|
function _set_exceptionsHolder__tqm22h($this, value) {
|
|
1691
|
-
$this.
|
|
1692
|
+
$this.ln_1.kotlinx$atomicfu$value = value;
|
|
1692
1693
|
}
|
|
1693
1694
|
function _get_exceptionsHolder__nhszp($this) {
|
|
1694
|
-
return $this.
|
|
1695
|
+
return $this.ln_1.kotlinx$atomicfu$value;
|
|
1695
1696
|
}
|
|
1696
1697
|
function allocateList($this) {
|
|
1697
1698
|
return ArrayList_init_$Create$(4);
|
|
@@ -1701,12 +1702,12 @@
|
|
|
1701
1702
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1702
1703
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1703
1704
|
var tmp0_safe_receiver = proposedUpdate instanceof CompletedExceptionally ? proposedUpdate : null;
|
|
1704
|
-
var proposedException = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1705
|
+
var proposedException = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lf_1;
|
|
1705
1706
|
var wasCancelling;
|
|
1706
1707
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
1707
1708
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
1708
|
-
wasCancelling = state.
|
|
1709
|
-
var exceptions = state.
|
|
1709
|
+
wasCancelling = state.mn();
|
|
1710
|
+
var exceptions = state.nn(proposedException);
|
|
1710
1711
|
var finalCause = getFinalRootCause($this, state, exceptions);
|
|
1711
1712
|
if (!(finalCause == null)) {
|
|
1712
1713
|
addSuppressedExceptions($this, finalCause, exceptions);
|
|
@@ -1714,34 +1715,34 @@
|
|
|
1714
1715
|
var finalException = finalCause;
|
|
1715
1716
|
var finalState = finalException == null ? proposedUpdate : finalException === proposedException ? proposedUpdate : new CompletedExceptionally(finalException);
|
|
1716
1717
|
if (!(finalException == null)) {
|
|
1717
|
-
var handled = cancelParent($this, finalException) || $this.
|
|
1718
|
+
var handled = cancelParent($this, finalException) || $this.ug(finalException);
|
|
1718
1719
|
if (handled) {
|
|
1719
|
-
(finalState instanceof CompletedExceptionally ? finalState : THROW_CCE()).
|
|
1720
|
+
(finalState instanceof CompletedExceptionally ? finalState : THROW_CCE()).uk();
|
|
1720
1721
|
}
|
|
1721
1722
|
}
|
|
1722
1723
|
if (!wasCancelling) {
|
|
1723
|
-
$this.
|
|
1724
|
+
$this.rg(finalException);
|
|
1724
1725
|
}
|
|
1725
|
-
$this.
|
|
1726
|
-
var casSuccess = $this.
|
|
1726
|
+
$this.kf(finalState);
|
|
1727
|
+
var casSuccess = $this.ze_1.atomicfu$compareAndSet(state, boxIncomplete(finalState));
|
|
1727
1728
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1728
1729
|
completeStateFinalization($this, state, finalState);
|
|
1729
1730
|
return finalState;
|
|
1730
1731
|
}
|
|
1731
1732
|
function getFinalRootCause($this, state, exceptions) {
|
|
1732
|
-
if (exceptions.
|
|
1733
|
-
if (state.
|
|
1733
|
+
if (exceptions.n()) {
|
|
1734
|
+
if (state.mn()) {
|
|
1734
1735
|
// Inline function 'kotlinx.coroutines.JobSupport.defaultCancellationException' call
|
|
1735
|
-
return new JobCancellationException(null == null ? $this.
|
|
1736
|
+
return new JobCancellationException(null == null ? $this.jf() : null, null, $this);
|
|
1736
1737
|
}
|
|
1737
1738
|
return null;
|
|
1738
1739
|
}
|
|
1739
1740
|
var tmp$ret$1;
|
|
1740
1741
|
$l$block: {
|
|
1741
1742
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1742
|
-
var _iterator__ex2g4s = exceptions.
|
|
1743
|
-
while (_iterator__ex2g4s.
|
|
1744
|
-
var element = _iterator__ex2g4s.
|
|
1743
|
+
var _iterator__ex2g4s = exceptions.i();
|
|
1744
|
+
while (_iterator__ex2g4s.j()) {
|
|
1745
|
+
var element = _iterator__ex2g4s.k();
|
|
1745
1746
|
if (!(element instanceof CancellationException)) {
|
|
1746
1747
|
tmp$ret$1 = element;
|
|
1747
1748
|
break $l$block;
|
|
@@ -1752,14 +1753,14 @@
|
|
|
1752
1753
|
var firstNonCancellation = tmp$ret$1;
|
|
1753
1754
|
if (!(firstNonCancellation == null))
|
|
1754
1755
|
return firstNonCancellation;
|
|
1755
|
-
var first = exceptions.
|
|
1756
|
+
var first = exceptions.m(0);
|
|
1756
1757
|
if (first instanceof TimeoutCancellationException) {
|
|
1757
1758
|
var tmp$ret$3;
|
|
1758
1759
|
$l$block_0: {
|
|
1759
1760
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1760
|
-
var _iterator__ex2g4s_0 = exceptions.
|
|
1761
|
-
while (_iterator__ex2g4s_0.
|
|
1762
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1761
|
+
var _iterator__ex2g4s_0 = exceptions.i();
|
|
1762
|
+
while (_iterator__ex2g4s_0.j()) {
|
|
1763
|
+
var element_0 = _iterator__ex2g4s_0.k();
|
|
1763
1764
|
var tmp;
|
|
1764
1765
|
if (!(element_0 === first)) {
|
|
1765
1766
|
tmp = element_0 instanceof TimeoutCancellationException;
|
|
@@ -1780,13 +1781,13 @@
|
|
|
1780
1781
|
return first;
|
|
1781
1782
|
}
|
|
1782
1783
|
function addSuppressedExceptions($this, rootCause, exceptions) {
|
|
1783
|
-
if (exceptions.
|
|
1784
|
+
if (exceptions.l() <= 1)
|
|
1784
1785
|
return Unit_instance;
|
|
1785
|
-
var seenExceptions = identitySet(exceptions.
|
|
1786
|
+
var seenExceptions = identitySet(exceptions.l());
|
|
1786
1787
|
var unwrappedCause = unwrap(rootCause);
|
|
1787
|
-
var _iterator__ex2g4s = exceptions.
|
|
1788
|
-
while (_iterator__ex2g4s.
|
|
1789
|
-
var exception = _iterator__ex2g4s.
|
|
1788
|
+
var _iterator__ex2g4s = exceptions.i();
|
|
1789
|
+
while (_iterator__ex2g4s.j()) {
|
|
1790
|
+
var exception = _iterator__ex2g4s.k();
|
|
1790
1791
|
var unwrapped = unwrap(exception);
|
|
1791
1792
|
var tmp;
|
|
1792
1793
|
var tmp_0;
|
|
@@ -1796,7 +1797,7 @@
|
|
|
1796
1797
|
tmp_0 = false;
|
|
1797
1798
|
}
|
|
1798
1799
|
if (tmp_0) {
|
|
1799
|
-
tmp = seenExceptions.
|
|
1800
|
+
tmp = seenExceptions.h(unwrapped);
|
|
1800
1801
|
} else {
|
|
1801
1802
|
tmp = false;
|
|
1802
1803
|
}
|
|
@@ -1808,37 +1809,37 @@
|
|
|
1808
1809
|
function tryFinalizeSimpleState($this, state, update) {
|
|
1809
1810
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1810
1811
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1811
|
-
if (!$this.
|
|
1812
|
+
if (!$this.ze_1.atomicfu$compareAndSet(state, boxIncomplete(update)))
|
|
1812
1813
|
return false;
|
|
1813
|
-
$this.
|
|
1814
|
-
$this.
|
|
1814
|
+
$this.rg(null);
|
|
1815
|
+
$this.kf(update);
|
|
1815
1816
|
completeStateFinalization($this, state, update);
|
|
1816
1817
|
return true;
|
|
1817
1818
|
}
|
|
1818
1819
|
function completeStateFinalization($this, state, update) {
|
|
1819
|
-
var tmp0_safe_receiver = $this.
|
|
1820
|
+
var tmp0_safe_receiver = $this.yf();
|
|
1820
1821
|
if (tmp0_safe_receiver == null)
|
|
1821
1822
|
null;
|
|
1822
1823
|
else {
|
|
1823
1824
|
// Inline function 'kotlin.let' call
|
|
1824
|
-
tmp0_safe_receiver.
|
|
1825
|
-
$this.
|
|
1825
|
+
tmp0_safe_receiver.vh();
|
|
1826
|
+
$this.xf(NonDisposableHandle_instance);
|
|
1826
1827
|
}
|
|
1827
1828
|
var tmp1_safe_receiver = update instanceof CompletedExceptionally ? update : null;
|
|
1828
|
-
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1829
|
+
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lf_1;
|
|
1829
1830
|
if (state instanceof JobNode) {
|
|
1830
1831
|
try {
|
|
1831
|
-
state.
|
|
1832
|
+
state.wh(cause);
|
|
1832
1833
|
} catch ($p) {
|
|
1833
1834
|
if ($p instanceof Error) {
|
|
1834
1835
|
var ex = $p;
|
|
1835
|
-
$this.
|
|
1836
|
+
$this.rf(new CompletionHandlerException('Exception in completion handler ' + state.toString() + ' for ' + $this.toString(), ex));
|
|
1836
1837
|
} else {
|
|
1837
1838
|
throw $p;
|
|
1838
1839
|
}
|
|
1839
1840
|
}
|
|
1840
1841
|
} else {
|
|
1841
|
-
var tmp2_safe_receiver = state.
|
|
1842
|
+
var tmp2_safe_receiver = state.ki();
|
|
1842
1843
|
if (tmp2_safe_receiver == null)
|
|
1843
1844
|
null;
|
|
1844
1845
|
else {
|
|
@@ -1847,23 +1848,23 @@
|
|
|
1847
1848
|
}
|
|
1848
1849
|
}
|
|
1849
1850
|
function notifyCancelling($this, list, cause) {
|
|
1850
|
-
$this.
|
|
1851
|
-
list.
|
|
1851
|
+
$this.rg(cause);
|
|
1852
|
+
list.on(4);
|
|
1852
1853
|
// Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers' call
|
|
1853
1854
|
var exception = null;
|
|
1854
1855
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
|
|
1855
|
-
var cur = list.
|
|
1856
|
+
var cur = list.li_1;
|
|
1856
1857
|
while (!equals(cur, list)) {
|
|
1857
1858
|
var node = cur;
|
|
1858
1859
|
var tmp;
|
|
1859
1860
|
if (node instanceof JobNode) {
|
|
1860
|
-
tmp = node.
|
|
1861
|
+
tmp = node.zh();
|
|
1861
1862
|
} else {
|
|
1862
1863
|
tmp = false;
|
|
1863
1864
|
}
|
|
1864
1865
|
if (tmp) {
|
|
1865
1866
|
try {
|
|
1866
|
-
node.
|
|
1867
|
+
node.wh(cause);
|
|
1867
1868
|
} catch ($p) {
|
|
1868
1869
|
if ($p instanceof Error) {
|
|
1869
1870
|
var ex = $p;
|
|
@@ -1885,33 +1886,33 @@
|
|
|
1885
1886
|
}
|
|
1886
1887
|
}
|
|
1887
1888
|
}
|
|
1888
|
-
cur = cur.
|
|
1889
|
+
cur = cur.li_1;
|
|
1889
1890
|
}
|
|
1890
1891
|
var tmp0_safe_receiver_0 = exception;
|
|
1891
1892
|
if (tmp0_safe_receiver_0 == null)
|
|
1892
1893
|
null;
|
|
1893
1894
|
else {
|
|
1894
1895
|
// Inline function 'kotlin.let' call
|
|
1895
|
-
$this.
|
|
1896
|
+
$this.rf(tmp0_safe_receiver_0);
|
|
1896
1897
|
}
|
|
1897
1898
|
cancelParent($this, cause);
|
|
1898
1899
|
}
|
|
1899
1900
|
function cancelParent($this, cause) {
|
|
1900
|
-
if ($this.
|
|
1901
|
+
if ($this.sg())
|
|
1901
1902
|
return true;
|
|
1902
1903
|
var isCancellation = cause instanceof CancellationException;
|
|
1903
|
-
var parent = $this.
|
|
1904
|
+
var parent = $this.yf();
|
|
1904
1905
|
if (parent === null || parent === NonDisposableHandle_instance) {
|
|
1905
1906
|
return isCancellation;
|
|
1906
1907
|
}
|
|
1907
|
-
return parent.
|
|
1908
|
+
return parent.mg(cause) || isCancellation;
|
|
1908
1909
|
}
|
|
1909
1910
|
function notifyCompletion($this, $receiver, cause) {
|
|
1910
|
-
$receiver.
|
|
1911
|
+
$receiver.on(1);
|
|
1911
1912
|
// Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers' call
|
|
1912
1913
|
var exception = null;
|
|
1913
1914
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
|
|
1914
|
-
var cur = $receiver.
|
|
1915
|
+
var cur = $receiver.li_1;
|
|
1915
1916
|
while (!equals(cur, $receiver)) {
|
|
1916
1917
|
var node = cur;
|
|
1917
1918
|
var tmp;
|
|
@@ -1922,7 +1923,7 @@
|
|
|
1922
1923
|
}
|
|
1923
1924
|
if (tmp) {
|
|
1924
1925
|
try {
|
|
1925
|
-
node.
|
|
1926
|
+
node.wh(cause);
|
|
1926
1927
|
} catch ($p) {
|
|
1927
1928
|
if ($p instanceof Error) {
|
|
1928
1929
|
var ex = $p;
|
|
@@ -1944,29 +1945,29 @@
|
|
|
1944
1945
|
}
|
|
1945
1946
|
}
|
|
1946
1947
|
}
|
|
1947
|
-
cur = cur.
|
|
1948
|
+
cur = cur.li_1;
|
|
1948
1949
|
}
|
|
1949
1950
|
var tmp0_safe_receiver_0 = exception;
|
|
1950
1951
|
if (tmp0_safe_receiver_0 == null)
|
|
1951
1952
|
null;
|
|
1952
1953
|
else {
|
|
1953
1954
|
// Inline function 'kotlin.let' call
|
|
1954
|
-
$this.
|
|
1955
|
+
$this.rf(tmp0_safe_receiver_0);
|
|
1955
1956
|
}
|
|
1956
1957
|
}
|
|
1957
1958
|
function startInternal($this, state) {
|
|
1958
1959
|
if (state instanceof Empty) {
|
|
1959
|
-
if (state.
|
|
1960
|
+
if (state.qn_1)
|
|
1960
1961
|
return 0;
|
|
1961
|
-
if (!$this.
|
|
1962
|
+
if (!$this.ze_1.atomicfu$compareAndSet(state, get_EMPTY_ACTIVE()))
|
|
1962
1963
|
return -1;
|
|
1963
|
-
$this.
|
|
1964
|
+
$this.cg();
|
|
1964
1965
|
return 1;
|
|
1965
1966
|
} else {
|
|
1966
1967
|
if (state instanceof InactiveNodeList) {
|
|
1967
|
-
if (!$this.
|
|
1968
|
+
if (!$this.ze_1.atomicfu$compareAndSet(state, state.pn_1))
|
|
1968
1969
|
return -1;
|
|
1969
|
-
$this.
|
|
1970
|
+
$this.cg();
|
|
1970
1971
|
return 1;
|
|
1971
1972
|
} else {
|
|
1972
1973
|
return 0;
|
|
@@ -1975,26 +1976,26 @@
|
|
|
1975
1976
|
}
|
|
1976
1977
|
function promoteEmptyToNodeList($this, state) {
|
|
1977
1978
|
var list = new NodeList();
|
|
1978
|
-
var update = state.
|
|
1979
|
-
$this.
|
|
1979
|
+
var update = state.qn_1 ? list : new InactiveNodeList(list);
|
|
1980
|
+
$this.ze_1.atomicfu$compareAndSet(state, update);
|
|
1980
1981
|
}
|
|
1981
1982
|
function promoteSingleToNodeList($this, state) {
|
|
1982
|
-
state.
|
|
1983
|
+
state.qi(new NodeList());
|
|
1983
1984
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.nextNode' call
|
|
1984
|
-
var list = state.
|
|
1985
|
-
$this.
|
|
1985
|
+
var list = state.li_1;
|
|
1986
|
+
$this.ze_1.atomicfu$compareAndSet(state, list);
|
|
1986
1987
|
}
|
|
1987
1988
|
function cancelMakeCompleting($this, cause) {
|
|
1988
1989
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
1989
1990
|
while (true) {
|
|
1990
|
-
var state = $this.
|
|
1991
|
+
var state = $this.zf();
|
|
1991
1992
|
var tmp;
|
|
1992
1993
|
if (!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
1993
1994
|
tmp = true;
|
|
1994
1995
|
} else {
|
|
1995
1996
|
var tmp_0;
|
|
1996
1997
|
if (state instanceof Finishing) {
|
|
1997
|
-
tmp_0 = state.
|
|
1998
|
+
tmp_0 = state.rn();
|
|
1998
1999
|
} else {
|
|
1999
2000
|
tmp_0 = false;
|
|
2000
2001
|
}
|
|
@@ -2015,13 +2016,13 @@
|
|
|
2015
2016
|
var tmp_0;
|
|
2016
2017
|
if (cause == null) {
|
|
2017
2018
|
// Inline function 'kotlinx.coroutines.JobSupport.defaultCancellationException' call
|
|
2018
|
-
tmp_0 = new JobCancellationException(null == null ? $this.
|
|
2019
|
+
tmp_0 = new JobCancellationException(null == null ? $this.jf() : null, null, $this);
|
|
2019
2020
|
} else {
|
|
2020
2021
|
tmp_0 = cause;
|
|
2021
2022
|
}
|
|
2022
2023
|
tmp = tmp_0;
|
|
2023
2024
|
} else {
|
|
2024
|
-
tmp = (isInterface(cause, ParentJob) ? cause : THROW_CCE()).
|
|
2025
|
+
tmp = (isInterface(cause, ParentJob) ? cause : THROW_CCE()).og();
|
|
2025
2026
|
}
|
|
2026
2027
|
return tmp;
|
|
2027
2028
|
}
|
|
@@ -2029,14 +2030,14 @@
|
|
|
2029
2030
|
var causeExceptionCache = null;
|
|
2030
2031
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2031
2032
|
while (true) {
|
|
2032
|
-
var tmp0 = $this.
|
|
2033
|
+
var tmp0 = $this.zf();
|
|
2033
2034
|
$l$block: {
|
|
2034
2035
|
if (tmp0 instanceof Finishing) {
|
|
2035
2036
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
2036
2037
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
2037
|
-
if (tmp0.
|
|
2038
|
+
if (tmp0.sn())
|
|
2038
2039
|
return get_TOO_LATE_TO_CANCEL();
|
|
2039
|
-
var wasCancelling = tmp0.
|
|
2040
|
+
var wasCancelling = tmp0.mn();
|
|
2040
2041
|
if (!(cause == null) || !wasCancelling) {
|
|
2041
2042
|
var tmp0_elvis_lhs = causeExceptionCache;
|
|
2042
2043
|
var tmp;
|
|
@@ -2049,10 +2050,10 @@
|
|
|
2049
2050
|
tmp = tmp0_elvis_lhs;
|
|
2050
2051
|
}
|
|
2051
2052
|
var causeException = tmp;
|
|
2052
|
-
tmp0.
|
|
2053
|
+
tmp0.tn(causeException);
|
|
2053
2054
|
}
|
|
2054
2055
|
// Inline function 'kotlin.takeIf' call
|
|
2055
|
-
var this_1 = tmp0.
|
|
2056
|
+
var this_1 = tmp0.un();
|
|
2056
2057
|
var tmp_0;
|
|
2057
2058
|
if (!wasCancelling) {
|
|
2058
2059
|
tmp_0 = this_1;
|
|
@@ -2064,7 +2065,7 @@
|
|
|
2064
2065
|
null;
|
|
2065
2066
|
else {
|
|
2066
2067
|
// Inline function 'kotlin.let' call
|
|
2067
|
-
notifyCancelling($this, tmp0.
|
|
2068
|
+
notifyCancelling($this, tmp0.in_1, notifyRootCause);
|
|
2068
2069
|
}
|
|
2069
2070
|
return get_COMPLETING_ALREADY();
|
|
2070
2071
|
} else {
|
|
@@ -2080,7 +2081,7 @@
|
|
|
2080
2081
|
tmp_1 = tmp2_elvis_lhs;
|
|
2081
2082
|
}
|
|
2082
2083
|
var causeException_0 = tmp_1;
|
|
2083
|
-
if (tmp0.
|
|
2084
|
+
if (tmp0.gf()) {
|
|
2084
2085
|
if (tryMakeCancelling($this, tmp0, causeException_0))
|
|
2085
2086
|
return get_COMPLETING_ALREADY();
|
|
2086
2087
|
} else {
|
|
@@ -2102,7 +2103,7 @@
|
|
|
2102
2103
|
}
|
|
2103
2104
|
}
|
|
2104
2105
|
function getOrPromoteCancellingList($this, state) {
|
|
2105
|
-
var tmp0_elvis_lhs = state.
|
|
2106
|
+
var tmp0_elvis_lhs = state.ki();
|
|
2106
2107
|
var tmp;
|
|
2107
2108
|
if (tmp0_elvis_lhs == null) {
|
|
2108
2109
|
var tmp_0;
|
|
@@ -2136,7 +2137,7 @@
|
|
|
2136
2137
|
}
|
|
2137
2138
|
var list = tmp;
|
|
2138
2139
|
var cancelling = new Finishing(list, false, rootCause);
|
|
2139
|
-
if (!$this.
|
|
2140
|
+
if (!$this.ze_1.atomicfu$compareAndSet(state, cancelling))
|
|
2140
2141
|
return false;
|
|
2141
2142
|
notifyCancelling($this, list, rootCause);
|
|
2142
2143
|
return true;
|
|
@@ -2184,24 +2185,24 @@
|
|
|
2184
2185
|
var notifyRootCause;
|
|
2185
2186
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
2186
2187
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
2187
|
-
if (finishing.
|
|
2188
|
+
if (finishing.rn())
|
|
2188
2189
|
return get_COMPLETING_ALREADY();
|
|
2189
|
-
finishing.
|
|
2190
|
+
finishing.vn(true);
|
|
2190
2191
|
if (!(finishing === state)) {
|
|
2191
|
-
if (!$this.
|
|
2192
|
+
if (!$this.ze_1.atomicfu$compareAndSet(state, finishing))
|
|
2192
2193
|
return get_COMPLETING_RETRY();
|
|
2193
2194
|
}
|
|
2194
2195
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2195
|
-
var wasCancelling = finishing.
|
|
2196
|
+
var wasCancelling = finishing.mn();
|
|
2196
2197
|
var tmp0_safe_receiver = proposedUpdate instanceof CompletedExceptionally ? proposedUpdate : null;
|
|
2197
2198
|
if (tmp0_safe_receiver == null)
|
|
2198
2199
|
null;
|
|
2199
2200
|
else {
|
|
2200
2201
|
// Inline function 'kotlin.let' call
|
|
2201
|
-
finishing.
|
|
2202
|
+
finishing.tn(tmp0_safe_receiver.lf_1);
|
|
2202
2203
|
}
|
|
2203
2204
|
// Inline function 'kotlin.takeIf' call
|
|
2204
|
-
var this_0 = finishing.
|
|
2205
|
+
var this_0 = finishing.un();
|
|
2205
2206
|
var tmp_0;
|
|
2206
2207
|
if (!wasCancelling) {
|
|
2207
2208
|
tmp_0 = this_0;
|
|
@@ -2218,7 +2219,7 @@
|
|
|
2218
2219
|
var child = nextChild($this, list);
|
|
2219
2220
|
if (!(child == null) && tryWaitForChild($this, finishing, child, proposedUpdate))
|
|
2220
2221
|
return get_COMPLETING_WAITING_CHILDREN();
|
|
2221
|
-
list.
|
|
2222
|
+
list.on(2);
|
|
2222
2223
|
var anotherChild = nextChild($this, list);
|
|
2223
2224
|
if (!(anotherChild == null) && tryWaitForChild($this, finishing, anotherChild, proposedUpdate))
|
|
2224
2225
|
return get_COMPLETING_WAITING_CHILDREN();
|
|
@@ -2226,7 +2227,7 @@
|
|
|
2226
2227
|
}
|
|
2227
2228
|
function _get_exceptionOrNull__b3j7js($this, $receiver) {
|
|
2228
2229
|
var tmp0_safe_receiver = $receiver instanceof CompletedExceptionally ? $receiver : null;
|
|
2229
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2230
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lf_1;
|
|
2230
2231
|
}
|
|
2231
2232
|
function tryWaitForChild($this, state, child, proposedUpdate) {
|
|
2232
2233
|
var $this_0 = $this;
|
|
@@ -2235,7 +2236,7 @@
|
|
|
2235
2236
|
var proposedUpdate_0 = proposedUpdate;
|
|
2236
2237
|
$l$1: do {
|
|
2237
2238
|
$l$0: do {
|
|
2238
|
-
var handle = invokeOnCompletion(child_0.
|
|
2239
|
+
var handle = invokeOnCompletion(child_0.ao_1, false, new ChildCompletion($this_0, state_0, child_0, proposedUpdate_0));
|
|
2239
2240
|
if (!(handle === NonDisposableHandle_instance))
|
|
2240
2241
|
return true;
|
|
2241
2242
|
var tmp0_elvis_lhs = nextChild($this_0, child_0);
|
|
@@ -2264,29 +2265,29 @@
|
|
|
2264
2265
|
var waitChild = nextChild($this, lastChild);
|
|
2265
2266
|
if (!(waitChild == null) && tryWaitForChild($this, state, waitChild, proposedUpdate))
|
|
2266
2267
|
return Unit_instance;
|
|
2267
|
-
state.
|
|
2268
|
+
state.in_1.on(2);
|
|
2268
2269
|
var waitChildAgain = nextChild($this, lastChild);
|
|
2269
2270
|
if (!(waitChildAgain == null) && tryWaitForChild($this, state, waitChildAgain, proposedUpdate)) {
|
|
2270
2271
|
return Unit_instance;
|
|
2271
2272
|
}
|
|
2272
2273
|
var finalState = finalizeFinishingState($this, state, proposedUpdate);
|
|
2273
|
-
$this.
|
|
2274
|
+
$this.qf(finalState);
|
|
2274
2275
|
}
|
|
2275
2276
|
function nextChild($this, $receiver) {
|
|
2276
2277
|
var cur = $receiver;
|
|
2277
2278
|
$l$loop: while (true) {
|
|
2278
2279
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.isRemoved' call
|
|
2279
|
-
if (!cur.
|
|
2280
|
+
if (!cur.ni_1) {
|
|
2280
2281
|
break $l$loop;
|
|
2281
2282
|
}
|
|
2282
2283
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.prevNode' call
|
|
2283
|
-
cur = cur.
|
|
2284
|
+
cur = cur.mi_1;
|
|
2284
2285
|
}
|
|
2285
2286
|
$l$loop_0: while (true) {
|
|
2286
2287
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.nextNode' call
|
|
2287
|
-
cur = cur.
|
|
2288
|
+
cur = cur.li_1;
|
|
2288
2289
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListNode.isRemoved' call
|
|
2289
|
-
if (cur.
|
|
2290
|
+
if (cur.ni_1)
|
|
2290
2291
|
continue $l$loop_0;
|
|
2291
2292
|
if (cur instanceof ChildHandleNode)
|
|
2292
2293
|
return cur;
|
|
@@ -2297,10 +2298,10 @@
|
|
|
2297
2298
|
function stateString($this, state) {
|
|
2298
2299
|
var tmp;
|
|
2299
2300
|
if (state instanceof Finishing) {
|
|
2300
|
-
tmp = state.
|
|
2301
|
+
tmp = state.mn() ? 'Cancelling' : state.rn() ? 'Completing' : 'Active';
|
|
2301
2302
|
} else {
|
|
2302
2303
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
2303
|
-
tmp = state.
|
|
2304
|
+
tmp = state.gf() ? 'Active' : 'New';
|
|
2304
2305
|
} else {
|
|
2305
2306
|
if (state instanceof CompletedExceptionally) {
|
|
2306
2307
|
tmp = 'Cancelled';
|
|
@@ -2313,36 +2314,36 @@
|
|
|
2313
2314
|
}
|
|
2314
2315
|
function Finishing(list, isCompleting, rootCause) {
|
|
2315
2316
|
SynchronizedObject.call(this);
|
|
2316
|
-
this.
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2317
|
+
this.in_1 = list;
|
|
2318
|
+
this.jn_1 = atomic$boolean$1(isCompleting);
|
|
2319
|
+
this.kn_1 = atomic$ref$1(rootCause);
|
|
2320
|
+
this.ln_1 = atomic$ref$1(null);
|
|
2320
2321
|
}
|
|
2321
|
-
protoOf(Finishing).
|
|
2322
|
-
return this.
|
|
2322
|
+
protoOf(Finishing).ki = function () {
|
|
2323
|
+
return this.in_1;
|
|
2323
2324
|
};
|
|
2324
|
-
protoOf(Finishing).
|
|
2325
|
-
this.
|
|
2325
|
+
protoOf(Finishing).vn = function (value) {
|
|
2326
|
+
this.jn_1.kotlinx$atomicfu$value = value;
|
|
2326
2327
|
};
|
|
2327
|
-
protoOf(Finishing).
|
|
2328
|
-
return this.
|
|
2328
|
+
protoOf(Finishing).rn = function () {
|
|
2329
|
+
return this.jn_1.kotlinx$atomicfu$value;
|
|
2329
2330
|
};
|
|
2330
|
-
protoOf(Finishing).
|
|
2331
|
-
this.
|
|
2331
|
+
protoOf(Finishing).bo = function (value) {
|
|
2332
|
+
this.kn_1.kotlinx$atomicfu$value = value;
|
|
2332
2333
|
};
|
|
2333
|
-
protoOf(Finishing).
|
|
2334
|
-
return this.
|
|
2334
|
+
protoOf(Finishing).un = function () {
|
|
2335
|
+
return this.kn_1.kotlinx$atomicfu$value;
|
|
2335
2336
|
};
|
|
2336
|
-
protoOf(Finishing).
|
|
2337
|
+
protoOf(Finishing).sn = function () {
|
|
2337
2338
|
return _get_exceptionsHolder__nhszp(this) === get_SEALED();
|
|
2338
2339
|
};
|
|
2339
|
-
protoOf(Finishing).
|
|
2340
|
-
return !(this.
|
|
2340
|
+
protoOf(Finishing).mn = function () {
|
|
2341
|
+
return !(this.un() == null);
|
|
2341
2342
|
};
|
|
2342
|
-
protoOf(Finishing).
|
|
2343
|
-
return this.
|
|
2343
|
+
protoOf(Finishing).gf = function () {
|
|
2344
|
+
return this.un() == null;
|
|
2344
2345
|
};
|
|
2345
|
-
protoOf(Finishing).
|
|
2346
|
+
protoOf(Finishing).nn = function (proposedException) {
|
|
2346
2347
|
var eh = _get_exceptionsHolder__nhszp(this);
|
|
2347
2348
|
var tmp;
|
|
2348
2349
|
if (eh == null) {
|
|
@@ -2351,7 +2352,7 @@
|
|
|
2351
2352
|
if (eh instanceof Error) {
|
|
2352
2353
|
// Inline function 'kotlin.also' call
|
|
2353
2354
|
var this_0 = allocateList(this);
|
|
2354
|
-
this_0.
|
|
2355
|
+
this_0.h(eh);
|
|
2355
2356
|
tmp = this_0;
|
|
2356
2357
|
} else {
|
|
2357
2358
|
if (eh instanceof ArrayList) {
|
|
@@ -2364,23 +2365,23 @@
|
|
|
2364
2365
|
}
|
|
2365
2366
|
}
|
|
2366
2367
|
var list = tmp;
|
|
2367
|
-
var rootCause = this.
|
|
2368
|
+
var rootCause = this.un();
|
|
2368
2369
|
if (rootCause == null)
|
|
2369
2370
|
null;
|
|
2370
2371
|
else {
|
|
2371
2372
|
// Inline function 'kotlin.let' call
|
|
2372
|
-
list.
|
|
2373
|
+
list.q2(0, rootCause);
|
|
2373
2374
|
}
|
|
2374
2375
|
if (!(proposedException == null) && !equals(proposedException, rootCause)) {
|
|
2375
|
-
list.
|
|
2376
|
+
list.h(proposedException);
|
|
2376
2377
|
}
|
|
2377
2378
|
_set_exceptionsHolder__tqm22h(this, get_SEALED());
|
|
2378
2379
|
return list;
|
|
2379
2380
|
};
|
|
2380
|
-
protoOf(Finishing).
|
|
2381
|
-
var rootCause = this.
|
|
2381
|
+
protoOf(Finishing).tn = function (exception) {
|
|
2382
|
+
var rootCause = this.un();
|
|
2382
2383
|
if (rootCause == null) {
|
|
2383
|
-
this.
|
|
2384
|
+
this.bo(exception);
|
|
2384
2385
|
return Unit_instance;
|
|
2385
2386
|
}
|
|
2386
2387
|
if (exception === rootCause)
|
|
@@ -2394,12 +2395,12 @@
|
|
|
2394
2395
|
return Unit_instance;
|
|
2395
2396
|
// Inline function 'kotlin.apply' call
|
|
2396
2397
|
var this_0 = allocateList(this);
|
|
2397
|
-
this_0.
|
|
2398
|
-
this_0.
|
|
2398
|
+
this_0.h(eh);
|
|
2399
|
+
this_0.h(exception);
|
|
2399
2400
|
_set_exceptionsHolder__tqm22h(this, this_0);
|
|
2400
2401
|
} else {
|
|
2401
2402
|
if (eh instanceof ArrayList) {
|
|
2402
|
-
(eh instanceof ArrayList ? eh : THROW_CCE()).
|
|
2403
|
+
(eh instanceof ArrayList ? eh : THROW_CCE()).h(exception);
|
|
2403
2404
|
} else {
|
|
2404
2405
|
// Inline function 'kotlin.error' call
|
|
2405
2406
|
var message = 'State is ' + toString(eh);
|
|
@@ -2409,29 +2410,29 @@
|
|
|
2409
2410
|
}
|
|
2410
2411
|
};
|
|
2411
2412
|
protoOf(Finishing).toString = function () {
|
|
2412
|
-
return 'Finishing[cancelling=' + this.
|
|
2413
|
+
return 'Finishing[cancelling=' + this.mn() + ', completing=' + this.rn() + ', rootCause=' + toString_0(this.un()) + ', exceptions=' + toString_0(_get_exceptionsHolder__nhszp(this)) + ', list=' + this.in_1.toString() + ']';
|
|
2413
2414
|
};
|
|
2414
2415
|
function ChildCompletion(parent, state, child, proposedUpdate) {
|
|
2415
2416
|
JobNode.call(this);
|
|
2416
|
-
this.
|
|
2417
|
-
this.
|
|
2418
|
-
this.
|
|
2419
|
-
this.
|
|
2417
|
+
this.go_1 = parent;
|
|
2418
|
+
this.ho_1 = state;
|
|
2419
|
+
this.io_1 = child;
|
|
2420
|
+
this.jo_1 = proposedUpdate;
|
|
2420
2421
|
}
|
|
2421
|
-
protoOf(ChildCompletion).
|
|
2422
|
+
protoOf(ChildCompletion).zh = function () {
|
|
2422
2423
|
return false;
|
|
2423
2424
|
};
|
|
2424
|
-
protoOf(ChildCompletion).
|
|
2425
|
-
continueCompleting(this.
|
|
2425
|
+
protoOf(ChildCompletion).wh = function (cause) {
|
|
2426
|
+
continueCompleting(this.go_1, this.ho_1, this.io_1, this.jo_1);
|
|
2426
2427
|
};
|
|
2427
2428
|
function AwaitContinuation(delegate, job) {
|
|
2428
2429
|
CancellableContinuationImpl.call(this, delegate, 1);
|
|
2429
|
-
this.
|
|
2430
|
+
this.qo_1 = job;
|
|
2430
2431
|
}
|
|
2431
|
-
protoOf(AwaitContinuation).
|
|
2432
|
-
var state = this.
|
|
2432
|
+
protoOf(AwaitContinuation).dl = function (parent) {
|
|
2433
|
+
var state = this.qo_1.zf();
|
|
2433
2434
|
if (state instanceof Finishing) {
|
|
2434
|
-
var tmp0_safe_receiver = state.
|
|
2435
|
+
var tmp0_safe_receiver = state.un();
|
|
2435
2436
|
if (tmp0_safe_receiver == null)
|
|
2436
2437
|
null;
|
|
2437
2438
|
else {
|
|
@@ -2440,66 +2441,66 @@
|
|
|
2440
2441
|
}
|
|
2441
2442
|
}
|
|
2442
2443
|
if (state instanceof CompletedExceptionally)
|
|
2443
|
-
return state.
|
|
2444
|
-
return parent.
|
|
2444
|
+
return state.lf_1;
|
|
2445
|
+
return parent.dg();
|
|
2445
2446
|
};
|
|
2446
|
-
protoOf(AwaitContinuation).
|
|
2447
|
+
protoOf(AwaitContinuation).ql = function () {
|
|
2447
2448
|
return 'AwaitContinuation';
|
|
2448
2449
|
};
|
|
2449
2450
|
function awaitSuspend($this, $completion) {
|
|
2450
2451
|
var cont = new AwaitContinuation(intercepted($completion), $this);
|
|
2451
|
-
cont.
|
|
2452
|
+
cont.yi();
|
|
2452
2453
|
disposeOnCancellation(cont, invokeOnCompletion($this, VOID, new ResumeAwaitOnCompletion(cont)));
|
|
2453
|
-
return cont.
|
|
2454
|
+
return cont.zi();
|
|
2454
2455
|
}
|
|
2455
2456
|
function JobSupport(active) {
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2457
|
+
this.ze_1 = atomic$ref$1(active ? get_EMPTY_ACTIVE() : get_EMPTY_NEW());
|
|
2458
|
+
this.af_1 = atomic$ref$1(null);
|
|
2458
2459
|
}
|
|
2459
|
-
protoOf(JobSupport).
|
|
2460
|
+
protoOf(JobSupport).h1 = function () {
|
|
2460
2461
|
return Key_instance_2;
|
|
2461
2462
|
};
|
|
2462
|
-
protoOf(JobSupport).
|
|
2463
|
-
this.
|
|
2463
|
+
protoOf(JobSupport).xf = function (value) {
|
|
2464
|
+
this.af_1.kotlinx$atomicfu$value = value;
|
|
2464
2465
|
};
|
|
2465
|
-
protoOf(JobSupport).
|
|
2466
|
-
return this.
|
|
2466
|
+
protoOf(JobSupport).yf = function () {
|
|
2467
|
+
return this.af_1.kotlinx$atomicfu$value;
|
|
2467
2468
|
};
|
|
2468
|
-
protoOf(JobSupport).
|
|
2469
|
+
protoOf(JobSupport).bf = function (parent) {
|
|
2469
2470
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2470
2471
|
if (parent == null) {
|
|
2471
|
-
this.
|
|
2472
|
+
this.xf(NonDisposableHandle_instance);
|
|
2472
2473
|
return Unit_instance;
|
|
2473
2474
|
}
|
|
2474
|
-
parent.
|
|
2475
|
-
var handle = parent.
|
|
2476
|
-
this.
|
|
2477
|
-
if (this.
|
|
2478
|
-
handle.
|
|
2479
|
-
this.
|
|
2475
|
+
parent.bg();
|
|
2476
|
+
var handle = parent.qg(this);
|
|
2477
|
+
this.xf(handle);
|
|
2478
|
+
if (this.ag()) {
|
|
2479
|
+
handle.vh();
|
|
2480
|
+
this.xf(NonDisposableHandle_instance);
|
|
2480
2481
|
}
|
|
2481
2482
|
};
|
|
2482
|
-
protoOf(JobSupport).
|
|
2483
|
-
return this.
|
|
2483
|
+
protoOf(JobSupport).zf = function () {
|
|
2484
|
+
return this.ze_1.kotlinx$atomicfu$value;
|
|
2484
2485
|
};
|
|
2485
|
-
protoOf(JobSupport).
|
|
2486
|
-
var state = this.
|
|
2486
|
+
protoOf(JobSupport).gf = function () {
|
|
2487
|
+
var state = this.zf();
|
|
2487
2488
|
var tmp;
|
|
2488
2489
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
2489
|
-
tmp = state.
|
|
2490
|
+
tmp = state.gf();
|
|
2490
2491
|
} else {
|
|
2491
2492
|
tmp = false;
|
|
2492
2493
|
}
|
|
2493
2494
|
return tmp;
|
|
2494
2495
|
};
|
|
2495
|
-
protoOf(JobSupport).
|
|
2496
|
-
var tmp = this.
|
|
2496
|
+
protoOf(JobSupport).ag = function () {
|
|
2497
|
+
var tmp = this.zf();
|
|
2497
2498
|
return !(!(tmp == null) ? isInterface(tmp, Incomplete) : false);
|
|
2498
2499
|
};
|
|
2499
|
-
protoOf(JobSupport).
|
|
2500
|
+
protoOf(JobSupport).bg = function () {
|
|
2500
2501
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2501
2502
|
while (true) {
|
|
2502
|
-
var state = this.
|
|
2503
|
+
var state = this.zf();
|
|
2503
2504
|
var tmp0_subject = startInternal(this, state);
|
|
2504
2505
|
if (tmp0_subject === 0)
|
|
2505
2506
|
return false;
|
|
@@ -2507,14 +2508,14 @@
|
|
|
2507
2508
|
return true;
|
|
2508
2509
|
}
|
|
2509
2510
|
};
|
|
2510
|
-
protoOf(JobSupport).
|
|
2511
|
+
protoOf(JobSupport).cg = function () {
|
|
2511
2512
|
};
|
|
2512
|
-
protoOf(JobSupport).
|
|
2513
|
-
var state = this.
|
|
2513
|
+
protoOf(JobSupport).dg = function () {
|
|
2514
|
+
var state = this.zf();
|
|
2514
2515
|
var tmp;
|
|
2515
2516
|
if (state instanceof Finishing) {
|
|
2516
|
-
var tmp0_safe_receiver = state.
|
|
2517
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
2517
|
+
var tmp0_safe_receiver = state.un();
|
|
2518
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.eg(tmp0_safe_receiver, get_classSimpleName(this) + ' is cancelling');
|
|
2518
2519
|
var tmp_0;
|
|
2519
2520
|
if (tmp1_elvis_lhs == null) {
|
|
2520
2521
|
// Inline function 'kotlin.error' call
|
|
@@ -2531,7 +2532,7 @@
|
|
|
2531
2532
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
2532
2533
|
} else {
|
|
2533
2534
|
if (state instanceof CompletedExceptionally) {
|
|
2534
|
-
tmp = this.
|
|
2535
|
+
tmp = this.fg(state.lf_1);
|
|
2535
2536
|
} else {
|
|
2536
2537
|
tmp = new JobCancellationException(get_classSimpleName(this) + ' has completed normally', null, this);
|
|
2537
2538
|
}
|
|
@@ -2539,44 +2540,44 @@
|
|
|
2539
2540
|
}
|
|
2540
2541
|
return tmp;
|
|
2541
2542
|
};
|
|
2542
|
-
protoOf(JobSupport).
|
|
2543
|
+
protoOf(JobSupport).eg = function (_this__u8e3s4, message) {
|
|
2543
2544
|
var tmp0_elvis_lhs = _this__u8e3s4 instanceof CancellationException ? _this__u8e3s4 : null;
|
|
2544
2545
|
var tmp;
|
|
2545
2546
|
if (tmp0_elvis_lhs == null) {
|
|
2546
2547
|
// Inline function 'kotlinx.coroutines.JobSupport.defaultCancellationException' call
|
|
2547
|
-
tmp = new JobCancellationException(message == null ? this.
|
|
2548
|
+
tmp = new JobCancellationException(message == null ? this.jf() : message, _this__u8e3s4, this);
|
|
2548
2549
|
} else {
|
|
2549
2550
|
tmp = tmp0_elvis_lhs;
|
|
2550
2551
|
}
|
|
2551
2552
|
return tmp;
|
|
2552
2553
|
};
|
|
2553
|
-
protoOf(JobSupport).
|
|
2554
|
+
protoOf(JobSupport).fg = function (_this__u8e3s4, message, $super) {
|
|
2554
2555
|
message = message === VOID ? null : message;
|
|
2555
|
-
return $super === VOID ? this.
|
|
2556
|
+
return $super === VOID ? this.eg(_this__u8e3s4, message) : $super.eg.call(this, _this__u8e3s4, message);
|
|
2556
2557
|
};
|
|
2557
|
-
protoOf(JobSupport).
|
|
2558
|
-
return this.
|
|
2558
|
+
protoOf(JobSupport).gg = function (handler) {
|
|
2559
|
+
return this.ig(true, new InvokeOnCompletion(handler));
|
|
2559
2560
|
};
|
|
2560
|
-
protoOf(JobSupport).
|
|
2561
|
+
protoOf(JobSupport).hg = function (onCancelling, invokeImmediately, handler) {
|
|
2561
2562
|
var tmp;
|
|
2562
2563
|
if (onCancelling) {
|
|
2563
2564
|
tmp = new InvokeOnCancelling(handler);
|
|
2564
2565
|
} else {
|
|
2565
2566
|
tmp = new InvokeOnCompletion(handler);
|
|
2566
2567
|
}
|
|
2567
|
-
return this.
|
|
2568
|
+
return this.ig(invokeImmediately, tmp);
|
|
2568
2569
|
};
|
|
2569
|
-
protoOf(JobSupport).
|
|
2570
|
-
node.
|
|
2570
|
+
protoOf(JobSupport).ig = function (invokeImmediately, node) {
|
|
2571
|
+
node.ii_1 = this;
|
|
2571
2572
|
var tmp$ret$0;
|
|
2572
2573
|
$l$block_1: {
|
|
2573
2574
|
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList' call
|
|
2574
2575
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2575
2576
|
while (true) {
|
|
2576
|
-
var state = this.
|
|
2577
|
+
var state = this.zf();
|
|
2577
2578
|
if (state instanceof Empty) {
|
|
2578
|
-
if (state.
|
|
2579
|
-
if (this.
|
|
2579
|
+
if (state.qn_1) {
|
|
2580
|
+
if (this.ze_1.atomicfu$compareAndSet(state, node)) {
|
|
2580
2581
|
tmp$ret$0 = true;
|
|
2581
2582
|
break $l$block_1;
|
|
2582
2583
|
}
|
|
@@ -2585,26 +2586,26 @@
|
|
|
2585
2586
|
}
|
|
2586
2587
|
} else {
|
|
2587
2588
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
2588
|
-
var list = state.
|
|
2589
|
+
var list = state.ki();
|
|
2589
2590
|
if (list == null) {
|
|
2590
2591
|
promoteSingleToNodeList(this, state instanceof JobNode ? state : THROW_CCE());
|
|
2591
2592
|
} else {
|
|
2592
2593
|
var tmp;
|
|
2593
|
-
if (node.
|
|
2594
|
+
if (node.zh()) {
|
|
2594
2595
|
var tmp0_safe_receiver = state instanceof Finishing ? state : null;
|
|
2595
|
-
var rootCause = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2596
|
+
var rootCause = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.un();
|
|
2596
2597
|
var tmp_0;
|
|
2597
2598
|
if (rootCause == null) {
|
|
2598
|
-
tmp_0 = list.
|
|
2599
|
+
tmp_0 = list.oi(node, 5);
|
|
2599
2600
|
} else {
|
|
2600
2601
|
if (invokeImmediately) {
|
|
2601
|
-
node.
|
|
2602
|
+
node.wh(rootCause);
|
|
2602
2603
|
}
|
|
2603
2604
|
return NonDisposableHandle_instance;
|
|
2604
2605
|
}
|
|
2605
2606
|
tmp = tmp_0;
|
|
2606
2607
|
} else {
|
|
2607
|
-
tmp = list.
|
|
2608
|
+
tmp = list.oi(node, 1);
|
|
2608
2609
|
}
|
|
2609
2610
|
if (tmp) {
|
|
2610
2611
|
tmp$ret$0 = true;
|
|
@@ -2622,25 +2623,25 @@
|
|
|
2622
2623
|
if (added)
|
|
2623
2624
|
return node;
|
|
2624
2625
|
else if (invokeImmediately) {
|
|
2625
|
-
var tmp_1 = this.
|
|
2626
|
+
var tmp_1 = this.zf();
|
|
2626
2627
|
var tmp0_safe_receiver_0 = tmp_1 instanceof CompletedExceptionally ? tmp_1 : null;
|
|
2627
|
-
node.
|
|
2628
|
+
node.wh(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.lf_1);
|
|
2628
2629
|
}
|
|
2629
2630
|
return NonDisposableHandle_instance;
|
|
2630
2631
|
};
|
|
2631
|
-
protoOf(JobSupport).
|
|
2632
|
+
protoOf(JobSupport).jg = function (node) {
|
|
2632
2633
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2633
2634
|
while (true) {
|
|
2634
|
-
var state = this.
|
|
2635
|
+
var state = this.zf();
|
|
2635
2636
|
if (state instanceof JobNode) {
|
|
2636
2637
|
if (!(state === node))
|
|
2637
2638
|
return Unit_instance;
|
|
2638
|
-
if (this.
|
|
2639
|
+
if (this.ze_1.atomicfu$compareAndSet(state, get_EMPTY_ACTIVE()))
|
|
2639
2640
|
return Unit_instance;
|
|
2640
2641
|
} else {
|
|
2641
2642
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
2642
|
-
if (!(state.
|
|
2643
|
-
node.
|
|
2643
|
+
if (!(state.ki() == null)) {
|
|
2644
|
+
node.pi();
|
|
2644
2645
|
}
|
|
2645
2646
|
return Unit_instance;
|
|
2646
2647
|
} else {
|
|
@@ -2649,23 +2650,23 @@
|
|
|
2649
2650
|
}
|
|
2650
2651
|
}
|
|
2651
2652
|
};
|
|
2652
|
-
protoOf(JobSupport).
|
|
2653
|
+
protoOf(JobSupport).kg = function () {
|
|
2653
2654
|
return false;
|
|
2654
2655
|
};
|
|
2655
|
-
protoOf(JobSupport).
|
|
2656
|
+
protoOf(JobSupport).jf = function () {
|
|
2656
2657
|
return 'Job was cancelled';
|
|
2657
2658
|
};
|
|
2658
|
-
protoOf(JobSupport).
|
|
2659
|
-
this.
|
|
2659
|
+
protoOf(JobSupport).lg = function (parentJob) {
|
|
2660
|
+
this.ng(parentJob);
|
|
2660
2661
|
};
|
|
2661
|
-
protoOf(JobSupport).
|
|
2662
|
+
protoOf(JobSupport).mg = function (cause) {
|
|
2662
2663
|
if (cause instanceof CancellationException)
|
|
2663
2664
|
return true;
|
|
2664
|
-
return this.
|
|
2665
|
+
return this.ng(cause) && this.tg();
|
|
2665
2666
|
};
|
|
2666
|
-
protoOf(JobSupport).
|
|
2667
|
+
protoOf(JobSupport).ng = function (cause) {
|
|
2667
2668
|
var finalState = get_COMPLETING_ALREADY();
|
|
2668
|
-
if (this.
|
|
2669
|
+
if (this.kg()) {
|
|
2669
2670
|
finalState = cancelMakeCompleting(this, cause);
|
|
2670
2671
|
if (finalState === get_COMPLETING_WAITING_CHILDREN())
|
|
2671
2672
|
return true;
|
|
@@ -2681,19 +2682,19 @@
|
|
|
2681
2682
|
} else if (finalState === get_TOO_LATE_TO_CANCEL()) {
|
|
2682
2683
|
tmp = false;
|
|
2683
2684
|
} else {
|
|
2684
|
-
this.
|
|
2685
|
+
this.qf(finalState);
|
|
2685
2686
|
tmp = true;
|
|
2686
2687
|
}
|
|
2687
2688
|
return tmp;
|
|
2688
2689
|
};
|
|
2689
|
-
protoOf(JobSupport).
|
|
2690
|
-
var state = this.
|
|
2690
|
+
protoOf(JobSupport).og = function () {
|
|
2691
|
+
var state = this.zf();
|
|
2691
2692
|
var tmp;
|
|
2692
2693
|
if (state instanceof Finishing) {
|
|
2693
|
-
tmp = state.
|
|
2694
|
+
tmp = state.un();
|
|
2694
2695
|
} else {
|
|
2695
2696
|
if (state instanceof CompletedExceptionally) {
|
|
2696
|
-
tmp = state.
|
|
2697
|
+
tmp = state.lf_1;
|
|
2697
2698
|
} else {
|
|
2698
2699
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
2699
2700
|
// Inline function 'kotlin.error' call
|
|
@@ -2708,10 +2709,10 @@
|
|
|
2708
2709
|
var tmp1_elvis_lhs = rootCause instanceof CancellationException ? rootCause : null;
|
|
2709
2710
|
return tmp1_elvis_lhs == null ? new JobCancellationException('Parent job is ' + stateString(this, state), rootCause, this) : tmp1_elvis_lhs;
|
|
2710
2711
|
};
|
|
2711
|
-
protoOf(JobSupport).
|
|
2712
|
+
protoOf(JobSupport).pg = function (proposedUpdate) {
|
|
2712
2713
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2713
2714
|
while (true) {
|
|
2714
|
-
var tmp0 = this.
|
|
2715
|
+
var tmp0 = this.zf();
|
|
2715
2716
|
$l$block: {
|
|
2716
2717
|
var finalState = tryMakeCompleting(this, tmp0, proposedUpdate);
|
|
2717
2718
|
if (finalState === get_COMPLETING_ALREADY())
|
|
@@ -2721,16 +2722,16 @@
|
|
|
2721
2722
|
else if (finalState === get_COMPLETING_RETRY()) {
|
|
2722
2723
|
break $l$block;
|
|
2723
2724
|
} else {
|
|
2724
|
-
this.
|
|
2725
|
+
this.qf(finalState);
|
|
2725
2726
|
return true;
|
|
2726
2727
|
}
|
|
2727
2728
|
}
|
|
2728
2729
|
}
|
|
2729
2730
|
};
|
|
2730
|
-
protoOf(JobSupport).
|
|
2731
|
+
protoOf(JobSupport).of = function (proposedUpdate) {
|
|
2731
2732
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2732
2733
|
while (true) {
|
|
2733
|
-
var tmp0 = this.
|
|
2734
|
+
var tmp0 = this.zf();
|
|
2734
2735
|
$l$block: {
|
|
2735
2736
|
var finalState = tryMakeCompleting(this, tmp0, proposedUpdate);
|
|
2736
2737
|
if (finalState === get_COMPLETING_ALREADY())
|
|
@@ -2742,20 +2743,20 @@
|
|
|
2742
2743
|
}
|
|
2743
2744
|
}
|
|
2744
2745
|
};
|
|
2745
|
-
protoOf(JobSupport).
|
|
2746
|
+
protoOf(JobSupport).qg = function (child) {
|
|
2746
2747
|
// Inline function 'kotlin.also' call
|
|
2747
2748
|
var this_0 = new ChildHandleNode(child);
|
|
2748
|
-
this_0.
|
|
2749
|
+
this_0.ii_1 = this;
|
|
2749
2750
|
var node = this_0;
|
|
2750
2751
|
var tmp$ret$2;
|
|
2751
2752
|
$l$block_1: {
|
|
2752
2753
|
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList' call
|
|
2753
2754
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2754
2755
|
while (true) {
|
|
2755
|
-
var state = this.
|
|
2756
|
+
var state = this.zf();
|
|
2756
2757
|
if (state instanceof Empty) {
|
|
2757
|
-
if (state.
|
|
2758
|
-
if (this.
|
|
2758
|
+
if (state.qn_1) {
|
|
2759
|
+
if (this.ze_1.atomicfu$compareAndSet(state, node)) {
|
|
2759
2760
|
tmp$ret$2 = true;
|
|
2760
2761
|
break $l$block_1;
|
|
2761
2762
|
}
|
|
@@ -2764,27 +2765,27 @@
|
|
|
2764
2765
|
}
|
|
2765
2766
|
} else {
|
|
2766
2767
|
if (!(state == null) ? isInterface(state, Incomplete) : false) {
|
|
2767
|
-
var list = state.
|
|
2768
|
+
var list = state.ki();
|
|
2768
2769
|
if (list == null) {
|
|
2769
2770
|
promoteSingleToNodeList(this, state instanceof JobNode ? state : THROW_CCE());
|
|
2770
2771
|
} else {
|
|
2771
|
-
var addedBeforeCancellation = list.
|
|
2772
|
+
var addedBeforeCancellation = list.oi(node, 7);
|
|
2772
2773
|
var tmp;
|
|
2773
2774
|
if (addedBeforeCancellation) {
|
|
2774
2775
|
tmp = true;
|
|
2775
2776
|
} else {
|
|
2776
|
-
var addedBeforeCompletion = list.
|
|
2777
|
-
var latestState = this.
|
|
2777
|
+
var addedBeforeCompletion = list.oi(node, 3);
|
|
2778
|
+
var latestState = this.zf();
|
|
2778
2779
|
var tmp_0;
|
|
2779
2780
|
if (latestState instanceof Finishing) {
|
|
2780
|
-
tmp_0 = latestState.
|
|
2781
|
+
tmp_0 = latestState.un();
|
|
2781
2782
|
} else {
|
|
2782
2783
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2783
2784
|
var tmp0_safe_receiver = latestState instanceof CompletedExceptionally ? latestState : null;
|
|
2784
|
-
tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2785
|
+
tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lf_1;
|
|
2785
2786
|
}
|
|
2786
2787
|
var rootCause = tmp_0;
|
|
2787
|
-
node.
|
|
2788
|
+
node.wh(rootCause);
|
|
2788
2789
|
var tmp_1;
|
|
2789
2790
|
if (addedBeforeCompletion) {
|
|
2790
2791
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
@@ -2809,40 +2810,40 @@
|
|
|
2809
2810
|
var added = tmp$ret$2;
|
|
2810
2811
|
if (added)
|
|
2811
2812
|
return node;
|
|
2812
|
-
var tmp_2 = this.
|
|
2813
|
+
var tmp_2 = this.zf();
|
|
2813
2814
|
var tmp0_safe_receiver_0 = tmp_2 instanceof CompletedExceptionally ? tmp_2 : null;
|
|
2814
|
-
node.
|
|
2815
|
+
node.wh(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.lf_1);
|
|
2815
2816
|
return NonDisposableHandle_instance;
|
|
2816
2817
|
};
|
|
2817
|
-
protoOf(JobSupport).
|
|
2818
|
+
protoOf(JobSupport).rf = function (exception) {
|
|
2818
2819
|
throw exception;
|
|
2819
2820
|
};
|
|
2820
|
-
protoOf(JobSupport).
|
|
2821
|
+
protoOf(JobSupport).rg = function (cause) {
|
|
2821
2822
|
};
|
|
2822
|
-
protoOf(JobSupport).
|
|
2823
|
+
protoOf(JobSupport).sg = function () {
|
|
2823
2824
|
return false;
|
|
2824
2825
|
};
|
|
2825
|
-
protoOf(JobSupport).
|
|
2826
|
+
protoOf(JobSupport).tg = function () {
|
|
2826
2827
|
return true;
|
|
2827
2828
|
};
|
|
2828
|
-
protoOf(JobSupport).
|
|
2829
|
+
protoOf(JobSupport).ug = function (exception) {
|
|
2829
2830
|
return false;
|
|
2830
2831
|
};
|
|
2831
|
-
protoOf(JobSupport).
|
|
2832
|
+
protoOf(JobSupport).kf = function (state) {
|
|
2832
2833
|
};
|
|
2833
|
-
protoOf(JobSupport).
|
|
2834
|
+
protoOf(JobSupport).qf = function (state) {
|
|
2834
2835
|
};
|
|
2835
2836
|
protoOf(JobSupport).toString = function () {
|
|
2836
|
-
return this.
|
|
2837
|
+
return this.vg() + '@' + get_hexAddress(this);
|
|
2837
2838
|
};
|
|
2838
|
-
protoOf(JobSupport).
|
|
2839
|
-
return this.
|
|
2839
|
+
protoOf(JobSupport).vg = function () {
|
|
2840
|
+
return this.sf() + '{' + stateString(this, this.zf()) + '}';
|
|
2840
2841
|
};
|
|
2841
|
-
protoOf(JobSupport).
|
|
2842
|
+
protoOf(JobSupport).sf = function () {
|
|
2842
2843
|
return get_classSimpleName(this);
|
|
2843
2844
|
};
|
|
2844
|
-
protoOf(JobSupport).
|
|
2845
|
-
var state = this.
|
|
2845
|
+
protoOf(JobSupport).wg = function () {
|
|
2846
|
+
var state = this.zf();
|
|
2846
2847
|
// Inline function 'kotlin.check' call
|
|
2847
2848
|
if (!!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
2848
2849
|
var message = 'This job has not completed yet';
|
|
@@ -2850,24 +2851,24 @@
|
|
|
2850
2851
|
}
|
|
2851
2852
|
return _get_exceptionOrNull__b3j7js(this, state);
|
|
2852
2853
|
};
|
|
2853
|
-
protoOf(JobSupport).
|
|
2854
|
-
var state = this.
|
|
2854
|
+
protoOf(JobSupport).xg = function () {
|
|
2855
|
+
var state = this.zf();
|
|
2855
2856
|
// Inline function 'kotlin.check' call
|
|
2856
2857
|
if (!!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
2857
2858
|
var message = 'This job has not completed yet';
|
|
2858
2859
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2859
2860
|
}
|
|
2860
2861
|
if (state instanceof CompletedExceptionally)
|
|
2861
|
-
throw state.
|
|
2862
|
+
throw state.lf_1;
|
|
2862
2863
|
return unboxState(state);
|
|
2863
2864
|
};
|
|
2864
|
-
protoOf(JobSupport).
|
|
2865
|
+
protoOf(JobSupport).yg = function ($completion) {
|
|
2865
2866
|
$l$loop: while (true) {
|
|
2866
|
-
var state = this.
|
|
2867
|
+
var state = this.zf();
|
|
2867
2868
|
if (!(!(state == null) ? isInterface(state, Incomplete) : false)) {
|
|
2868
2869
|
if (state instanceof CompletedExceptionally) {
|
|
2869
2870
|
// Inline function 'kotlinx.coroutines.internal.recoverAndThrow' call
|
|
2870
|
-
throw state.
|
|
2871
|
+
throw state.lf_1;
|
|
2871
2872
|
}
|
|
2872
2873
|
return unboxState(state);
|
|
2873
2874
|
}
|
|
@@ -2877,54 +2878,54 @@
|
|
|
2877
2878
|
return awaitSuspend(this, $completion);
|
|
2878
2879
|
};
|
|
2879
2880
|
function Empty(isActive) {
|
|
2880
|
-
this.
|
|
2881
|
+
this.qn_1 = isActive;
|
|
2881
2882
|
}
|
|
2882
|
-
protoOf(Empty).
|
|
2883
|
-
return this.
|
|
2883
|
+
protoOf(Empty).gf = function () {
|
|
2884
|
+
return this.qn_1;
|
|
2884
2885
|
};
|
|
2885
|
-
protoOf(Empty).
|
|
2886
|
+
protoOf(Empty).ki = function () {
|
|
2886
2887
|
return null;
|
|
2887
2888
|
};
|
|
2888
2889
|
protoOf(Empty).toString = function () {
|
|
2889
|
-
return 'Empty{' + (this.
|
|
2890
|
+
return 'Empty{' + (this.qn_1 ? 'Active' : 'New') + '}';
|
|
2890
2891
|
};
|
|
2891
2892
|
function Incomplete() {
|
|
2892
2893
|
}
|
|
2893
2894
|
function NodeList() {
|
|
2894
2895
|
LockFreeLinkedListHead.call(this);
|
|
2895
2896
|
}
|
|
2896
|
-
protoOf(NodeList).
|
|
2897
|
+
protoOf(NodeList).gf = function () {
|
|
2897
2898
|
return true;
|
|
2898
2899
|
};
|
|
2899
|
-
protoOf(NodeList).
|
|
2900
|
+
protoOf(NodeList).ki = function () {
|
|
2900
2901
|
return this;
|
|
2901
2902
|
};
|
|
2902
|
-
protoOf(NodeList).
|
|
2903
|
+
protoOf(NodeList).uo = function (state) {
|
|
2903
2904
|
// Inline function 'kotlin.text.buildString' call
|
|
2904
2905
|
// Inline function 'kotlin.apply' call
|
|
2905
2906
|
var this_0 = StringBuilder_init_$Create$();
|
|
2906
|
-
this_0.
|
|
2907
|
-
this_0.
|
|
2908
|
-
this_0.
|
|
2907
|
+
this_0.v5('List{');
|
|
2908
|
+
this_0.v5(state);
|
|
2909
|
+
this_0.v5('}[');
|
|
2909
2910
|
var first = true;
|
|
2910
2911
|
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
|
|
2911
|
-
var cur = this.
|
|
2912
|
+
var cur = this.li_1;
|
|
2912
2913
|
while (!equals(cur, this)) {
|
|
2913
2914
|
var node = cur;
|
|
2914
2915
|
if (node instanceof JobNode) {
|
|
2915
2916
|
if (first) {
|
|
2916
2917
|
first = false;
|
|
2917
2918
|
} else
|
|
2918
|
-
this_0.
|
|
2919
|
-
this_0.
|
|
2919
|
+
this_0.v5(', ');
|
|
2920
|
+
this_0.u5(node);
|
|
2920
2921
|
}
|
|
2921
|
-
cur = cur.
|
|
2922
|
+
cur = cur.li_1;
|
|
2922
2923
|
}
|
|
2923
|
-
this_0.
|
|
2924
|
+
this_0.v5(']');
|
|
2924
2925
|
return this_0.toString();
|
|
2925
2926
|
};
|
|
2926
2927
|
protoOf(NodeList).toString = function () {
|
|
2927
|
-
return get_DEBUG() ? this.
|
|
2928
|
+
return get_DEBUG() ? this.uo('Active') : protoOf(LockFreeLinkedListHead).toString.call(this);
|
|
2928
2929
|
};
|
|
2929
2930
|
function boxIncomplete(_this__u8e3s4) {
|
|
2930
2931
|
_init_properties_JobSupport_kt__68f172();
|
|
@@ -2937,86 +2938,86 @@
|
|
|
2937
2938
|
return tmp;
|
|
2938
2939
|
}
|
|
2939
2940
|
function InactiveNodeList(list) {
|
|
2940
|
-
this.
|
|
2941
|
+
this.pn_1 = list;
|
|
2941
2942
|
}
|
|
2942
|
-
protoOf(InactiveNodeList).
|
|
2943
|
-
return this.
|
|
2943
|
+
protoOf(InactiveNodeList).ki = function () {
|
|
2944
|
+
return this.pn_1;
|
|
2944
2945
|
};
|
|
2945
|
-
protoOf(InactiveNodeList).
|
|
2946
|
+
protoOf(InactiveNodeList).gf = function () {
|
|
2946
2947
|
return false;
|
|
2947
2948
|
};
|
|
2948
2949
|
protoOf(InactiveNodeList).toString = function () {
|
|
2949
|
-
return get_DEBUG() ? this.
|
|
2950
|
+
return get_DEBUG() ? this.pn_1.uo('New') : anyToString(this);
|
|
2950
2951
|
};
|
|
2951
2952
|
function InvokeOnCompletion(handler) {
|
|
2952
2953
|
JobNode.call(this);
|
|
2953
|
-
this.
|
|
2954
|
+
this.zo_1 = handler;
|
|
2954
2955
|
}
|
|
2955
|
-
protoOf(InvokeOnCompletion).
|
|
2956
|
+
protoOf(InvokeOnCompletion).zh = function () {
|
|
2956
2957
|
return false;
|
|
2957
2958
|
};
|
|
2958
|
-
protoOf(InvokeOnCompletion).
|
|
2959
|
-
return this.
|
|
2959
|
+
protoOf(InvokeOnCompletion).wh = function (cause) {
|
|
2960
|
+
return this.zo_1(cause);
|
|
2960
2961
|
};
|
|
2961
2962
|
function InvokeOnCancelling(handler) {
|
|
2962
2963
|
JobNode.call(this);
|
|
2963
|
-
this.
|
|
2964
|
-
this.
|
|
2964
|
+
this.ep_1 = handler;
|
|
2965
|
+
this.fp_1 = atomic$boolean$1(false);
|
|
2965
2966
|
}
|
|
2966
|
-
protoOf(InvokeOnCancelling).
|
|
2967
|
+
protoOf(InvokeOnCancelling).zh = function () {
|
|
2967
2968
|
return true;
|
|
2968
2969
|
};
|
|
2969
|
-
protoOf(InvokeOnCancelling).
|
|
2970
|
-
if (this.
|
|
2971
|
-
this.
|
|
2970
|
+
protoOf(InvokeOnCancelling).wh = function (cause) {
|
|
2971
|
+
if (this.fp_1.atomicfu$compareAndSet(false, true))
|
|
2972
|
+
this.ep_1(cause);
|
|
2972
2973
|
};
|
|
2973
2974
|
function ChildHandleNode(childJob) {
|
|
2974
2975
|
JobNode.call(this);
|
|
2975
|
-
this.
|
|
2976
|
+
this.ao_1 = childJob;
|
|
2976
2977
|
}
|
|
2977
|
-
protoOf(ChildHandleNode).
|
|
2978
|
+
protoOf(ChildHandleNode).zh = function () {
|
|
2978
2979
|
return true;
|
|
2979
2980
|
};
|
|
2980
|
-
protoOf(ChildHandleNode).
|
|
2981
|
-
return this.
|
|
2981
|
+
protoOf(ChildHandleNode).wh = function (cause) {
|
|
2982
|
+
return this.ao_1.lg(this.ji());
|
|
2982
2983
|
};
|
|
2983
|
-
protoOf(ChildHandleNode).
|
|
2984
|
-
return this.
|
|
2984
|
+
protoOf(ChildHandleNode).mg = function (cause) {
|
|
2985
|
+
return this.ji().mg(cause);
|
|
2985
2986
|
};
|
|
2986
2987
|
function unboxState(_this__u8e3s4) {
|
|
2987
2988
|
_init_properties_JobSupport_kt__68f172();
|
|
2988
2989
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof IncompleteStateBox ? _this__u8e3s4 : null;
|
|
2989
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2990
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gp_1;
|
|
2990
2991
|
return tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
2991
2992
|
}
|
|
2992
2993
|
function ResumeAwaitOnCompletion(continuation) {
|
|
2993
2994
|
JobNode.call(this);
|
|
2994
|
-
this.
|
|
2995
|
+
this.lp_1 = continuation;
|
|
2995
2996
|
}
|
|
2996
|
-
protoOf(ResumeAwaitOnCompletion).
|
|
2997
|
+
protoOf(ResumeAwaitOnCompletion).zh = function () {
|
|
2997
2998
|
return false;
|
|
2998
2999
|
};
|
|
2999
|
-
protoOf(ResumeAwaitOnCompletion).
|
|
3000
|
-
var state = this.
|
|
3000
|
+
protoOf(ResumeAwaitOnCompletion).wh = function (cause) {
|
|
3001
|
+
var state = this.ji().zf();
|
|
3001
3002
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3002
3003
|
if (state instanceof CompletedExceptionally) {
|
|
3003
|
-
var tmp0 = this.
|
|
3004
|
+
var tmp0 = this.lp_1;
|
|
3004
3005
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
3005
3006
|
// Inline function 'kotlin.Companion.failure' call
|
|
3006
|
-
var exception = state.
|
|
3007
|
+
var exception = state.lf_1;
|
|
3007
3008
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
3008
|
-
tmp0.
|
|
3009
|
+
tmp0.s6(tmp$ret$2);
|
|
3009
3010
|
} else {
|
|
3010
|
-
var tmp0_0 = this.
|
|
3011
|
+
var tmp0_0 = this.lp_1;
|
|
3011
3012
|
// Inline function 'kotlin.coroutines.resume' call
|
|
3012
3013
|
// Inline function 'kotlin.Companion.success' call
|
|
3013
3014
|
var value = unboxState(state);
|
|
3014
3015
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(value);
|
|
3015
|
-
tmp0_0.
|
|
3016
|
+
tmp0_0.s6(tmp$ret$4);
|
|
3016
3017
|
}
|
|
3017
3018
|
};
|
|
3018
3019
|
function IncompleteStateBox(state) {
|
|
3019
|
-
this.
|
|
3020
|
+
this.gp_1 = state;
|
|
3020
3021
|
}
|
|
3021
3022
|
var properties_initialized_JobSupport_kt_5iq8a4;
|
|
3022
3023
|
function _init_properties_JobSupport_kt__68f172() {
|
|
@@ -3033,7 +3034,7 @@
|
|
|
3033
3034
|
}
|
|
3034
3035
|
function JobNode$invoke$ref(p0) {
|
|
3035
3036
|
return constructCallableReference(function (p0_0) {
|
|
3036
|
-
p0.
|
|
3037
|
+
p0.wh(p0_0);
|
|
3037
3038
|
return Unit_instance;
|
|
3038
3039
|
}, 1, 0, 0, 'invoke', [p0]);
|
|
3039
3040
|
}
|
|
@@ -3041,16 +3042,16 @@
|
|
|
3041
3042
|
CoroutineDispatcher.call(this);
|
|
3042
3043
|
}
|
|
3043
3044
|
protoOf(MainCoroutineDispatcher).toString = function () {
|
|
3044
|
-
var tmp0_elvis_lhs = this.
|
|
3045
|
+
var tmp0_elvis_lhs = this.op();
|
|
3045
3046
|
return tmp0_elvis_lhs == null ? get_classSimpleName(this) + '@' + get_hexAddress(this) : tmp0_elvis_lhs;
|
|
3046
3047
|
};
|
|
3047
|
-
protoOf(MainCoroutineDispatcher).
|
|
3048
|
-
var main = Dispatchers_getInstance().
|
|
3048
|
+
protoOf(MainCoroutineDispatcher).op = function () {
|
|
3049
|
+
var main = Dispatchers_getInstance().tp();
|
|
3049
3050
|
if (this === main)
|
|
3050
3051
|
return 'Dispatchers.Main';
|
|
3051
3052
|
var tmp;
|
|
3052
3053
|
try {
|
|
3053
|
-
tmp = main.
|
|
3054
|
+
tmp = main.np();
|
|
3054
3055
|
} catch ($p) {
|
|
3055
3056
|
var tmp_0;
|
|
3056
3057
|
if ($p instanceof UnsupportedOperationException) {
|
|
@@ -3072,13 +3073,13 @@
|
|
|
3072
3073
|
Unconfined_instance = this;
|
|
3073
3074
|
CoroutineDispatcher.call(this);
|
|
3074
3075
|
}
|
|
3075
|
-
protoOf(Unconfined).
|
|
3076
|
+
protoOf(Unconfined).nm = function (context) {
|
|
3076
3077
|
return false;
|
|
3077
3078
|
};
|
|
3078
|
-
protoOf(Unconfined).
|
|
3079
|
-
var yieldContext = context.
|
|
3079
|
+
protoOf(Unconfined).om = function (context, block) {
|
|
3080
|
+
var yieldContext = context.u6(Key_instance_3);
|
|
3080
3081
|
if (!(yieldContext == null)) {
|
|
3081
|
-
yieldContext.
|
|
3082
|
+
yieldContext.wp_1 = true;
|
|
3082
3083
|
return Unit_instance;
|
|
3083
3084
|
}
|
|
3084
3085
|
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.');
|
|
@@ -3107,20 +3108,20 @@
|
|
|
3107
3108
|
var CLOSED;
|
|
3108
3109
|
function Segment(id, prev, pointers) {
|
|
3109
3110
|
ConcurrentLinkedListNode.call(this, prev);
|
|
3110
|
-
this.
|
|
3111
|
-
this.
|
|
3111
|
+
this.jk_1 = id;
|
|
3112
|
+
this.kk_1 = atomic$int$1(pointers << 16);
|
|
3112
3113
|
}
|
|
3113
|
-
protoOf(Segment).
|
|
3114
|
-
return this.
|
|
3114
|
+
protoOf(Segment).yp = function () {
|
|
3115
|
+
return this.kk_1.kotlinx$atomicfu$value === this.xp() && !this.bq();
|
|
3115
3116
|
};
|
|
3116
|
-
protoOf(Segment).
|
|
3117
|
-
var tmp0 = this.
|
|
3117
|
+
protoOf(Segment).cq = function () {
|
|
3118
|
+
var tmp0 = this.kk_1;
|
|
3118
3119
|
var tmp$ret$0;
|
|
3119
3120
|
$l$block_0: {
|
|
3120
3121
|
// Inline function 'kotlinx.coroutines.internal.addConditionally' call
|
|
3121
3122
|
while (true) {
|
|
3122
3123
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
3123
|
-
if (!(!(cur === this.
|
|
3124
|
+
if (!(!(cur === this.xp()) || this.bq())) {
|
|
3124
3125
|
tmp$ret$0 = false;
|
|
3125
3126
|
break $l$block_0;
|
|
3126
3127
|
}
|
|
@@ -3132,12 +3133,12 @@
|
|
|
3132
3133
|
}
|
|
3133
3134
|
return tmp$ret$0;
|
|
3134
3135
|
};
|
|
3135
|
-
protoOf(Segment).
|
|
3136
|
-
return this.
|
|
3136
|
+
protoOf(Segment).dq = function () {
|
|
3137
|
+
return this.kk_1.atomicfu$addAndGet(-65536) === this.xp() && !this.bq();
|
|
3137
3138
|
};
|
|
3138
|
-
protoOf(Segment).
|
|
3139
|
-
if (this.
|
|
3140
|
-
this.
|
|
3139
|
+
protoOf(Segment).eq = function () {
|
|
3140
|
+
if (this.kk_1.atomicfu$incrementAndGet() === this.xp()) {
|
|
3141
|
+
this.e2();
|
|
3141
3142
|
}
|
|
3142
3143
|
};
|
|
3143
3144
|
function _SegmentOrClosed___init__impl__jnexvb(value) {
|
|
@@ -3162,19 +3163,19 @@
|
|
|
3162
3163
|
return tmp;
|
|
3163
3164
|
}
|
|
3164
3165
|
function _get_nextOrClosed__w0gmuv($this) {
|
|
3165
|
-
return $this.
|
|
3166
|
+
return $this.zp_1.kotlinx$atomicfu$value;
|
|
3166
3167
|
}
|
|
3167
3168
|
function _get_aliveSegmentLeft__mr4ndu($this) {
|
|
3168
|
-
var cur = $this.
|
|
3169
|
-
while (!(cur === null) && cur.
|
|
3170
|
-
cur = cur.
|
|
3169
|
+
var cur = $this.hq();
|
|
3170
|
+
while (!(cur === null) && cur.yp())
|
|
3171
|
+
cur = cur.aq_1.kotlinx$atomicfu$value;
|
|
3171
3172
|
return cur;
|
|
3172
3173
|
}
|
|
3173
3174
|
function _get_aliveSegmentRight__7ulr0b($this) {
|
|
3174
3175
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3175
|
-
var cur = ensureNotNull($this.
|
|
3176
|
-
while (cur.
|
|
3177
|
-
var tmp0_elvis_lhs = cur.
|
|
3176
|
+
var cur = ensureNotNull($this.fq());
|
|
3177
|
+
while (cur.yp()) {
|
|
3178
|
+
var tmp0_elvis_lhs = cur.fq();
|
|
3178
3179
|
var tmp;
|
|
3179
3180
|
if (tmp0_elvis_lhs == null) {
|
|
3180
3181
|
return cur;
|
|
@@ -3189,10 +3190,10 @@
|
|
|
3189
3190
|
return _get_nextOrClosed__w0gmuv($this);
|
|
3190
3191
|
}
|
|
3191
3192
|
function ConcurrentLinkedListNode(prev) {
|
|
3192
|
-
this.
|
|
3193
|
-
this.
|
|
3193
|
+
this.zp_1 = atomic$ref$1(null);
|
|
3194
|
+
this.aq_1 = atomic$ref$1(prev);
|
|
3194
3195
|
}
|
|
3195
|
-
protoOf(ConcurrentLinkedListNode).
|
|
3196
|
+
protoOf(ConcurrentLinkedListNode).fq = function () {
|
|
3196
3197
|
// Inline function 'kotlinx.coroutines.internal.ConcurrentLinkedListNode.nextOrIfClosed' call
|
|
3197
3198
|
// Inline function 'kotlin.let' call
|
|
3198
3199
|
var it = access$_get_nextOrClosed__ywzond(this);
|
|
@@ -3204,27 +3205,27 @@
|
|
|
3204
3205
|
}
|
|
3205
3206
|
return tmp;
|
|
3206
3207
|
};
|
|
3207
|
-
protoOf(ConcurrentLinkedListNode).
|
|
3208
|
-
return this.
|
|
3208
|
+
protoOf(ConcurrentLinkedListNode).gq = function (value) {
|
|
3209
|
+
return this.zp_1.atomicfu$compareAndSet(null, value);
|
|
3209
3210
|
};
|
|
3210
|
-
protoOf(ConcurrentLinkedListNode).
|
|
3211
|
-
return this.
|
|
3211
|
+
protoOf(ConcurrentLinkedListNode).bq = function () {
|
|
3212
|
+
return this.fq() == null;
|
|
3212
3213
|
};
|
|
3213
|
-
protoOf(ConcurrentLinkedListNode).
|
|
3214
|
-
return this.
|
|
3214
|
+
protoOf(ConcurrentLinkedListNode).hq = function () {
|
|
3215
|
+
return this.aq_1.kotlinx$atomicfu$value;
|
|
3215
3216
|
};
|
|
3216
|
-
protoOf(ConcurrentLinkedListNode).
|
|
3217
|
+
protoOf(ConcurrentLinkedListNode).iq = function () {
|
|
3217
3218
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
3218
|
-
this.
|
|
3219
|
+
this.aq_1.kotlinx$atomicfu$value = null;
|
|
3219
3220
|
};
|
|
3220
|
-
protoOf(ConcurrentLinkedListNode).
|
|
3221
|
+
protoOf(ConcurrentLinkedListNode).e2 = function () {
|
|
3221
3222
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3222
|
-
if (this.
|
|
3223
|
+
if (this.bq())
|
|
3223
3224
|
return Unit_instance;
|
|
3224
3225
|
$l$loop_0: while (true) {
|
|
3225
3226
|
var prev = _get_aliveSegmentLeft__mr4ndu(this);
|
|
3226
3227
|
var next = _get_aliveSegmentRight__7ulr0b(this);
|
|
3227
|
-
var tmp0 = next.
|
|
3228
|
+
var tmp0 = next.aq_1;
|
|
3228
3229
|
$l$block: {
|
|
3229
3230
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
3230
3231
|
while (true) {
|
|
@@ -3236,10 +3237,10 @@
|
|
|
3236
3237
|
}
|
|
3237
3238
|
}
|
|
3238
3239
|
if (!(prev === null))
|
|
3239
|
-
prev.
|
|
3240
|
-
if (next.
|
|
3240
|
+
prev.zp_1.kotlinx$atomicfu$value = next;
|
|
3241
|
+
if (next.yp() && !next.bq())
|
|
3241
3242
|
continue $l$loop_0;
|
|
3242
|
-
if (!(prev === null) && prev.
|
|
3243
|
+
if (!(prev === null) && prev.yp())
|
|
3243
3244
|
continue $l$loop_0;
|
|
3244
3245
|
return Unit_instance;
|
|
3245
3246
|
}
|
|
@@ -3247,7 +3248,7 @@
|
|
|
3247
3248
|
function findSegmentInternal(_this__u8e3s4, id, createNewSegment) {
|
|
3248
3249
|
_init_properties_ConcurrentLinkedList_kt__5gcgzy();
|
|
3249
3250
|
var cur = _this__u8e3s4;
|
|
3250
|
-
$l$loop: while (compare(cur.
|
|
3251
|
+
$l$loop: while (compare(cur.jk_1, id) < 0 || cur.yp()) {
|
|
3251
3252
|
// Inline function 'kotlinx.coroutines.internal.ConcurrentLinkedListNode.nextOrIfClosed' call
|
|
3252
3253
|
var this_0 = cur;
|
|
3253
3254
|
// Inline function 'kotlin.let' call
|
|
@@ -3264,11 +3265,11 @@
|
|
|
3264
3265
|
continue $l$loop;
|
|
3265
3266
|
}
|
|
3266
3267
|
// Inline function 'kotlin.Long.plus' call
|
|
3267
|
-
var this_1 = cur.
|
|
3268
|
+
var this_1 = cur.jk_1;
|
|
3268
3269
|
var newTail = createNewSegment(add(this_1, fromInt(1)), cur);
|
|
3269
|
-
if (cur.
|
|
3270
|
-
if (cur.
|
|
3271
|
-
cur.
|
|
3270
|
+
if (cur.gq(newTail)) {
|
|
3271
|
+
if (cur.yp()) {
|
|
3272
|
+
cur.e2();
|
|
3272
3273
|
}
|
|
3273
3274
|
cur = newTail;
|
|
3274
3275
|
}
|
|
@@ -3286,11 +3287,11 @@
|
|
|
3286
3287
|
}
|
|
3287
3288
|
}
|
|
3288
3289
|
function handleUncaughtCoroutineException(context, exception) {
|
|
3289
|
-
var _iterator__ex2g4s = get_platformExceptionHandlers().
|
|
3290
|
-
while (_iterator__ex2g4s.
|
|
3291
|
-
var handler = _iterator__ex2g4s.
|
|
3290
|
+
var _iterator__ex2g4s = get_platformExceptionHandlers().i();
|
|
3291
|
+
while (_iterator__ex2g4s.j()) {
|
|
3292
|
+
var handler = _iterator__ex2g4s.k();
|
|
3292
3293
|
try {
|
|
3293
|
-
handler.
|
|
3294
|
+
handler.rm(context, exception);
|
|
3294
3295
|
} catch ($p) {
|
|
3295
3296
|
if ($p instanceof ExceptionSuccessfullyProcessed) {
|
|
3296
3297
|
var _unused_var__etf5q3 = $p;
|
|
@@ -3329,48 +3330,48 @@
|
|
|
3329
3330
|
}
|
|
3330
3331
|
var REUSABLE_CLAIMED;
|
|
3331
3332
|
function _get_reusableCancellableContinuation__9qex09($this) {
|
|
3332
|
-
var tmp = $this.
|
|
3333
|
+
var tmp = $this.bk_1.kotlinx$atomicfu$value;
|
|
3333
3334
|
return tmp instanceof CancellableContinuationImpl ? tmp : null;
|
|
3334
3335
|
}
|
|
3335
3336
|
function DispatchedContinuation(dispatcher, continuation) {
|
|
3336
3337
|
DispatchedTask.call(this, -1);
|
|
3337
|
-
this.
|
|
3338
|
-
this.
|
|
3339
|
-
this.
|
|
3340
|
-
this.
|
|
3341
|
-
this.
|
|
3338
|
+
this.xj_1 = dispatcher;
|
|
3339
|
+
this.yj_1 = continuation;
|
|
3340
|
+
this.zj_1 = get_UNDEFINED();
|
|
3341
|
+
this.ak_1 = threadContextElements(this.n6());
|
|
3342
|
+
this.bk_1 = atomic$ref$1(null);
|
|
3342
3343
|
}
|
|
3343
|
-
protoOf(DispatchedContinuation).
|
|
3344
|
-
return !(this.
|
|
3344
|
+
protoOf(DispatchedContinuation).ek = function () {
|
|
3345
|
+
return !(this.bk_1.kotlinx$atomicfu$value == null);
|
|
3345
3346
|
};
|
|
3346
|
-
protoOf(DispatchedContinuation).
|
|
3347
|
+
protoOf(DispatchedContinuation).jq = function () {
|
|
3347
3348
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
3348
|
-
var this_0 = this.
|
|
3349
|
+
var this_0 = this.bk_1;
|
|
3349
3350
|
while (true) {
|
|
3350
3351
|
if (!(this_0.kotlinx$atomicfu$value === get_REUSABLE_CLAIMED()))
|
|
3351
3352
|
return Unit_instance;
|
|
3352
3353
|
}
|
|
3353
3354
|
};
|
|
3354
|
-
protoOf(DispatchedContinuation).
|
|
3355
|
-
this.
|
|
3355
|
+
protoOf(DispatchedContinuation).pm = function () {
|
|
3356
|
+
this.jq();
|
|
3356
3357
|
var tmp0_safe_receiver = _get_reusableCancellableContinuation__9qex09(this);
|
|
3357
3358
|
if (tmp0_safe_receiver == null)
|
|
3358
3359
|
null;
|
|
3359
3360
|
else {
|
|
3360
|
-
tmp0_safe_receiver.
|
|
3361
|
+
tmp0_safe_receiver.vk();
|
|
3361
3362
|
}
|
|
3362
3363
|
};
|
|
3363
|
-
protoOf(DispatchedContinuation).
|
|
3364
|
+
protoOf(DispatchedContinuation).ck = function () {
|
|
3364
3365
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
3365
|
-
var this_0 = this.
|
|
3366
|
+
var this_0 = this.bk_1;
|
|
3366
3367
|
while (true) {
|
|
3367
3368
|
var state = this_0.kotlinx$atomicfu$value;
|
|
3368
3369
|
if (state === null) {
|
|
3369
|
-
this.
|
|
3370
|
+
this.bk_1.kotlinx$atomicfu$value = get_REUSABLE_CLAIMED();
|
|
3370
3371
|
return null;
|
|
3371
3372
|
} else {
|
|
3372
3373
|
if (state instanceof CancellableContinuationImpl) {
|
|
3373
|
-
if (this.
|
|
3374
|
+
if (this.bk_1.atomicfu$compareAndSet(state, get_REUSABLE_CLAIMED())) {
|
|
3374
3375
|
return state instanceof CancellableContinuationImpl ? state : THROW_CCE();
|
|
3375
3376
|
}
|
|
3376
3377
|
} else {
|
|
@@ -3385,19 +3386,19 @@
|
|
|
3385
3386
|
}
|
|
3386
3387
|
}
|
|
3387
3388
|
};
|
|
3388
|
-
protoOf(DispatchedContinuation).
|
|
3389
|
+
protoOf(DispatchedContinuation).gl = function (continuation) {
|
|
3389
3390
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
3390
|
-
var this_0 = this.
|
|
3391
|
+
var this_0 = this.bk_1;
|
|
3391
3392
|
while (true) {
|
|
3392
3393
|
var state = this_0.kotlinx$atomicfu$value;
|
|
3393
3394
|
if (state === get_REUSABLE_CLAIMED()) {
|
|
3394
|
-
if (this.
|
|
3395
|
+
if (this.bk_1.atomicfu$compareAndSet(get_REUSABLE_CLAIMED(), continuation))
|
|
3395
3396
|
return null;
|
|
3396
3397
|
} else {
|
|
3397
3398
|
if (state instanceof Error) {
|
|
3398
3399
|
// Inline function 'kotlin.require' call
|
|
3399
3400
|
// Inline function 'kotlin.require' call
|
|
3400
|
-
if (!this.
|
|
3401
|
+
if (!this.bk_1.atomicfu$compareAndSet(state, null)) {
|
|
3401
3402
|
var message = 'Failed requirement.';
|
|
3402
3403
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3403
3404
|
}
|
|
@@ -3410,73 +3411,73 @@
|
|
|
3410
3411
|
}
|
|
3411
3412
|
}
|
|
3412
3413
|
};
|
|
3413
|
-
protoOf(DispatchedContinuation).
|
|
3414
|
+
protoOf(DispatchedContinuation).gk = function (cause) {
|
|
3414
3415
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
3415
|
-
var this_0 = this.
|
|
3416
|
+
var this_0 = this.bk_1;
|
|
3416
3417
|
while (true) {
|
|
3417
3418
|
var state = this_0.kotlinx$atomicfu$value;
|
|
3418
3419
|
if (equals(state, get_REUSABLE_CLAIMED())) {
|
|
3419
|
-
if (this.
|
|
3420
|
+
if (this.bk_1.atomicfu$compareAndSet(get_REUSABLE_CLAIMED(), cause))
|
|
3420
3421
|
return true;
|
|
3421
3422
|
} else {
|
|
3422
3423
|
if (state instanceof Error)
|
|
3423
3424
|
return true;
|
|
3424
3425
|
else {
|
|
3425
|
-
if (this.
|
|
3426
|
+
if (this.bk_1.atomicfu$compareAndSet(state, null))
|
|
3426
3427
|
return false;
|
|
3427
3428
|
}
|
|
3428
3429
|
}
|
|
3429
3430
|
}
|
|
3430
3431
|
};
|
|
3431
|
-
protoOf(DispatchedContinuation).
|
|
3432
|
-
var state = this.
|
|
3432
|
+
protoOf(DispatchedContinuation).xk = function () {
|
|
3433
|
+
var state = this.zj_1;
|
|
3433
3434
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3434
|
-
this.
|
|
3435
|
+
this.zj_1 = get_UNDEFINED();
|
|
3435
3436
|
return state;
|
|
3436
3437
|
};
|
|
3437
|
-
protoOf(DispatchedContinuation).
|
|
3438
|
+
protoOf(DispatchedContinuation).wk = function () {
|
|
3438
3439
|
return this;
|
|
3439
3440
|
};
|
|
3440
|
-
protoOf(DispatchedContinuation).
|
|
3441
|
+
protoOf(DispatchedContinuation).s6 = function (result) {
|
|
3441
3442
|
var state = toState_0(result);
|
|
3442
|
-
if (safeIsDispatchNeeded(this.
|
|
3443
|
-
this.
|
|
3444
|
-
this.
|
|
3445
|
-
safeDispatch(this.
|
|
3443
|
+
if (safeIsDispatchNeeded(this.xj_1, this.n6())) {
|
|
3444
|
+
this.zj_1 = state;
|
|
3445
|
+
this.fk_1 = 0;
|
|
3446
|
+
safeDispatch(this.xj_1, this.n6(), this);
|
|
3446
3447
|
} else {
|
|
3447
3448
|
$l$block: {
|
|
3448
3449
|
// Inline function 'kotlinx.coroutines.internal.executeUnconfined' call
|
|
3449
3450
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3450
|
-
var eventLoop = ThreadLocalEventLoop_getInstance().
|
|
3451
|
-
if (false && eventLoop.
|
|
3451
|
+
var eventLoop = ThreadLocalEventLoop_getInstance().en();
|
|
3452
|
+
if (false && eventLoop.zm()) {
|
|
3452
3453
|
break $l$block;
|
|
3453
3454
|
}
|
|
3454
3455
|
var tmp;
|
|
3455
|
-
if (eventLoop.
|
|
3456
|
-
this.
|
|
3457
|
-
this.
|
|
3458
|
-
eventLoop.
|
|
3456
|
+
if (eventLoop.ym()) {
|
|
3457
|
+
this.zj_1 = state;
|
|
3458
|
+
this.fk_1 = 0;
|
|
3459
|
+
eventLoop.xm(this);
|
|
3459
3460
|
tmp = true;
|
|
3460
3461
|
} else {
|
|
3461
3462
|
// Inline function 'kotlinx.coroutines.runUnconfinedEventLoop' call
|
|
3462
|
-
eventLoop.
|
|
3463
|
+
eventLoop.an(true);
|
|
3463
3464
|
try {
|
|
3464
|
-
this.
|
|
3465
|
+
this.n6();
|
|
3465
3466
|
// Inline function 'kotlinx.coroutines.withCoroutineContext' call
|
|
3466
|
-
this.
|
|
3467
|
-
this.
|
|
3468
|
-
$l$loop: while (eventLoop.
|
|
3467
|
+
this.ak_1;
|
|
3468
|
+
this.yj_1.s6(result);
|
|
3469
|
+
$l$loop: while (eventLoop.wm()) {
|
|
3469
3470
|
}
|
|
3470
3471
|
} catch ($p) {
|
|
3471
3472
|
if ($p instanceof Error) {
|
|
3472
3473
|
var e = $p;
|
|
3473
|
-
this.
|
|
3474
|
+
this.sl(e);
|
|
3474
3475
|
} else {
|
|
3475
3476
|
throw $p;
|
|
3476
3477
|
}
|
|
3477
3478
|
}
|
|
3478
3479
|
finally {
|
|
3479
|
-
eventLoop.
|
|
3480
|
+
eventLoop.bn(true);
|
|
3480
3481
|
}
|
|
3481
3482
|
tmp = false;
|
|
3482
3483
|
}
|
|
@@ -3484,15 +3485,15 @@
|
|
|
3484
3485
|
}
|
|
3485
3486
|
};
|
|
3486
3487
|
protoOf(DispatchedContinuation).toString = function () {
|
|
3487
|
-
return 'DispatchedContinuation[' + this.
|
|
3488
|
+
return 'DispatchedContinuation[' + this.xj_1.toString() + ', ' + toDebugString(this.yj_1) + ']';
|
|
3488
3489
|
};
|
|
3489
|
-
protoOf(DispatchedContinuation).
|
|
3490
|
-
return this.
|
|
3490
|
+
protoOf(DispatchedContinuation).n6 = function () {
|
|
3491
|
+
return this.yj_1.n6();
|
|
3491
3492
|
};
|
|
3492
3493
|
function safeDispatch(_this__u8e3s4, context, runnable) {
|
|
3493
3494
|
_init_properties_DispatchedContinuation_kt__tnmqc0();
|
|
3494
3495
|
try {
|
|
3495
|
-
_this__u8e3s4.
|
|
3496
|
+
_this__u8e3s4.om(context, runnable);
|
|
3496
3497
|
} catch ($p) {
|
|
3497
3498
|
if ($p instanceof Error) {
|
|
3498
3499
|
var e = $p;
|
|
@@ -3505,7 +3506,7 @@
|
|
|
3505
3506
|
function safeIsDispatchNeeded(_this__u8e3s4, context) {
|
|
3506
3507
|
_init_properties_DispatchedContinuation_kt__tnmqc0();
|
|
3507
3508
|
try {
|
|
3508
|
-
return _this__u8e3s4.
|
|
3509
|
+
return _this__u8e3s4.nm(context);
|
|
3509
3510
|
} catch ($p) {
|
|
3510
3511
|
if ($p instanceof Error) {
|
|
3511
3512
|
var e = $p;
|
|
@@ -3521,39 +3522,39 @@
|
|
|
3521
3522
|
if (_this__u8e3s4 instanceof DispatchedContinuation) {
|
|
3522
3523
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeCancellableWith' call
|
|
3523
3524
|
var state = toState_0(result);
|
|
3524
|
-
if (safeIsDispatchNeeded(_this__u8e3s4.
|
|
3525
|
-
_this__u8e3s4.
|
|
3526
|
-
_this__u8e3s4.
|
|
3527
|
-
safeDispatch(_this__u8e3s4.
|
|
3525
|
+
if (safeIsDispatchNeeded(_this__u8e3s4.xj_1, _this__u8e3s4.n6())) {
|
|
3526
|
+
_this__u8e3s4.zj_1 = state;
|
|
3527
|
+
_this__u8e3s4.fk_1 = 1;
|
|
3528
|
+
safeDispatch(_this__u8e3s4.xj_1, _this__u8e3s4.n6(), _this__u8e3s4);
|
|
3528
3529
|
} else {
|
|
3529
3530
|
$l$block: {
|
|
3530
3531
|
// Inline function 'kotlinx.coroutines.internal.executeUnconfined' call
|
|
3531
3532
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3532
|
-
var eventLoop = ThreadLocalEventLoop_getInstance().
|
|
3533
|
-
if (false && eventLoop.
|
|
3533
|
+
var eventLoop = ThreadLocalEventLoop_getInstance().en();
|
|
3534
|
+
if (false && eventLoop.zm()) {
|
|
3534
3535
|
break $l$block;
|
|
3535
3536
|
}
|
|
3536
3537
|
var tmp_0;
|
|
3537
|
-
if (eventLoop.
|
|
3538
|
-
_this__u8e3s4.
|
|
3539
|
-
_this__u8e3s4.
|
|
3540
|
-
eventLoop.
|
|
3538
|
+
if (eventLoop.ym()) {
|
|
3539
|
+
_this__u8e3s4.zj_1 = state;
|
|
3540
|
+
_this__u8e3s4.fk_1 = 1;
|
|
3541
|
+
eventLoop.xm(_this__u8e3s4);
|
|
3541
3542
|
tmp_0 = true;
|
|
3542
3543
|
} else {
|
|
3543
3544
|
// Inline function 'kotlinx.coroutines.runUnconfinedEventLoop' call
|
|
3544
|
-
eventLoop.
|
|
3545
|
+
eventLoop.an(true);
|
|
3545
3546
|
try {
|
|
3546
3547
|
var tmp$ret$5;
|
|
3547
3548
|
$l$block_0: {
|
|
3548
3549
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeCancelled' call
|
|
3549
|
-
var job = _this__u8e3s4.
|
|
3550
|
-
if (!(job == null) && !job.
|
|
3551
|
-
var cause = job.
|
|
3552
|
-
_this__u8e3s4.
|
|
3550
|
+
var job = _this__u8e3s4.n6().u6(Key_instance_2);
|
|
3551
|
+
if (!(job == null) && !job.gf()) {
|
|
3552
|
+
var cause = job.dg();
|
|
3553
|
+
_this__u8e3s4.yk(state, cause);
|
|
3553
3554
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
3554
3555
|
// Inline function 'kotlin.Companion.failure' call
|
|
3555
3556
|
var tmp$ret$7 = _Result___init__impl__xyqfz8(createFailure(cause));
|
|
3556
|
-
_this__u8e3s4.
|
|
3557
|
+
_this__u8e3s4.s6(tmp$ret$7);
|
|
3557
3558
|
tmp$ret$5 = true;
|
|
3558
3559
|
break $l$block_0;
|
|
3559
3560
|
}
|
|
@@ -3561,23 +3562,23 @@
|
|
|
3561
3562
|
}
|
|
3562
3563
|
if (!tmp$ret$5) {
|
|
3563
3564
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith' call
|
|
3564
|
-
_this__u8e3s4.
|
|
3565
|
+
_this__u8e3s4.yj_1;
|
|
3565
3566
|
// Inline function 'kotlinx.coroutines.withContinuationContext' call
|
|
3566
|
-
_this__u8e3s4.
|
|
3567
|
-
_this__u8e3s4.
|
|
3567
|
+
_this__u8e3s4.ak_1;
|
|
3568
|
+
_this__u8e3s4.yj_1.s6(result);
|
|
3568
3569
|
}
|
|
3569
|
-
$l$loop: while (eventLoop.
|
|
3570
|
+
$l$loop: while (eventLoop.wm()) {
|
|
3570
3571
|
}
|
|
3571
3572
|
} catch ($p) {
|
|
3572
3573
|
if ($p instanceof Error) {
|
|
3573
3574
|
var e = $p;
|
|
3574
|
-
_this__u8e3s4.
|
|
3575
|
+
_this__u8e3s4.sl(e);
|
|
3575
3576
|
} else {
|
|
3576
3577
|
throw $p;
|
|
3577
3578
|
}
|
|
3578
3579
|
}
|
|
3579
3580
|
finally {
|
|
3580
|
-
eventLoop.
|
|
3581
|
+
eventLoop.bn(true);
|
|
3581
3582
|
}
|
|
3582
3583
|
tmp_0 = false;
|
|
3583
3584
|
}
|
|
@@ -3585,7 +3586,7 @@
|
|
|
3585
3586
|
}
|
|
3586
3587
|
tmp = Unit_instance;
|
|
3587
3588
|
} else {
|
|
3588
|
-
_this__u8e3s4.
|
|
3589
|
+
_this__u8e3s4.s6(result);
|
|
3589
3590
|
tmp = Unit_instance;
|
|
3590
3591
|
}
|
|
3591
3592
|
return tmp;
|
|
@@ -3600,68 +3601,68 @@
|
|
|
3600
3601
|
}
|
|
3601
3602
|
function DispatchedTask(resumeMode) {
|
|
3602
3603
|
SchedulerTask.call(this);
|
|
3603
|
-
this.
|
|
3604
|
+
this.fk_1 = resumeMode;
|
|
3604
3605
|
}
|
|
3605
|
-
protoOf(DispatchedTask).
|
|
3606
|
+
protoOf(DispatchedTask).yk = function (takenState, cause) {
|
|
3606
3607
|
};
|
|
3607
|
-
protoOf(DispatchedTask).
|
|
3608
|
+
protoOf(DispatchedTask).fl = function (state) {
|
|
3608
3609
|
return state;
|
|
3609
3610
|
};
|
|
3610
|
-
protoOf(DispatchedTask).
|
|
3611
|
+
protoOf(DispatchedTask).pl = function (state) {
|
|
3611
3612
|
var tmp0_safe_receiver = state instanceof CompletedExceptionally ? state : null;
|
|
3612
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3613
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lf_1;
|
|
3613
3614
|
};
|
|
3614
|
-
protoOf(DispatchedTask).
|
|
3615
|
+
protoOf(DispatchedTask).rl = function () {
|
|
3615
3616
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3616
3617
|
try {
|
|
3617
|
-
var tmp = this.
|
|
3618
|
+
var tmp = this.wk();
|
|
3618
3619
|
var delegate = tmp instanceof DispatchedContinuation ? tmp : THROW_CCE();
|
|
3619
|
-
var continuation = delegate.
|
|
3620
|
+
var continuation = delegate.yj_1;
|
|
3620
3621
|
// Inline function 'kotlinx.coroutines.withContinuationContext' call
|
|
3621
|
-
delegate.
|
|
3622
|
-
var context = continuation.
|
|
3623
|
-
var state = this.
|
|
3624
|
-
var exception = this.
|
|
3625
|
-
var job = exception == null && get_isCancellableMode(this.
|
|
3626
|
-
if (!(job == null) && !job.
|
|
3627
|
-
var cause = job.
|
|
3628
|
-
this.
|
|
3622
|
+
delegate.ak_1;
|
|
3623
|
+
var context = continuation.n6();
|
|
3624
|
+
var state = this.xk();
|
|
3625
|
+
var exception = this.pl(state);
|
|
3626
|
+
var job = exception == null && get_isCancellableMode(this.fk_1) ? context.u6(Key_instance_2) : null;
|
|
3627
|
+
if (!(job == null) && !job.gf()) {
|
|
3628
|
+
var cause = job.dg();
|
|
3629
|
+
this.yk(state, cause);
|
|
3629
3630
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
3630
3631
|
// Inline function 'kotlin.Companion.failure' call
|
|
3631
3632
|
var exception_0 = recoverStackTrace(cause, continuation);
|
|
3632
3633
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_0));
|
|
3633
|
-
continuation.
|
|
3634
|
+
continuation.s6(tmp$ret$4);
|
|
3634
3635
|
} else {
|
|
3635
3636
|
if (!(exception == null)) {
|
|
3636
3637
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
3637
3638
|
// Inline function 'kotlin.Companion.failure' call
|
|
3638
3639
|
var tmp$ret$6 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
3639
|
-
continuation.
|
|
3640
|
+
continuation.s6(tmp$ret$6);
|
|
3640
3641
|
} else {
|
|
3641
3642
|
// Inline function 'kotlin.coroutines.resume' call
|
|
3642
3643
|
// Inline function 'kotlin.Companion.success' call
|
|
3643
|
-
var value = this.
|
|
3644
|
+
var value = this.fl(state);
|
|
3644
3645
|
var tmp$ret$8 = _Result___init__impl__xyqfz8(value);
|
|
3645
|
-
continuation.
|
|
3646
|
+
continuation.s6(tmp$ret$8);
|
|
3646
3647
|
}
|
|
3647
3648
|
}
|
|
3648
3649
|
} catch ($p) {
|
|
3649
3650
|
if ($p instanceof DispatchException) {
|
|
3650
3651
|
var e = $p;
|
|
3651
|
-
handleCoroutineException(this.
|
|
3652
|
+
handleCoroutineException(this.wk().n6(), e.qm_1);
|
|
3652
3653
|
} else {
|
|
3653
3654
|
if ($p instanceof Error) {
|
|
3654
3655
|
var e_0 = $p;
|
|
3655
|
-
this.
|
|
3656
|
+
this.sl(e_0);
|
|
3656
3657
|
} else {
|
|
3657
3658
|
throw $p;
|
|
3658
3659
|
}
|
|
3659
3660
|
}
|
|
3660
3661
|
}
|
|
3661
3662
|
};
|
|
3662
|
-
protoOf(DispatchedTask).
|
|
3663
|
+
protoOf(DispatchedTask).sl = function (exception) {
|
|
3663
3664
|
var reason = new CoroutinesInternalError('Fatal exception in coroutines machinery for ' + toString(this) + '. ' + "Please read KDoc to 'handleFatalException' method and report this incident to maintainers", exception);
|
|
3664
|
-
handleCoroutineException(this.
|
|
3665
|
+
handleCoroutineException(this.wk().n6(), reason);
|
|
3665
3666
|
};
|
|
3666
3667
|
function get_isReusableMode(_this__u8e3s4) {
|
|
3667
3668
|
return _this__u8e3s4 === 2;
|
|
@@ -3671,7 +3672,7 @@
|
|
|
3671
3672
|
}
|
|
3672
3673
|
function dispatch(_this__u8e3s4, mode) {
|
|
3673
3674
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3674
|
-
var delegate = _this__u8e3s4.
|
|
3675
|
+
var delegate = _this__u8e3s4.wk();
|
|
3675
3676
|
var undispatched = mode === 4;
|
|
3676
3677
|
var tmp;
|
|
3677
3678
|
var tmp_0;
|
|
@@ -3681,13 +3682,13 @@
|
|
|
3681
3682
|
tmp_0 = false;
|
|
3682
3683
|
}
|
|
3683
3684
|
if (tmp_0) {
|
|
3684
|
-
tmp = get_isCancellableMode(mode) === get_isCancellableMode(_this__u8e3s4.
|
|
3685
|
+
tmp = get_isCancellableMode(mode) === get_isCancellableMode(_this__u8e3s4.fk_1);
|
|
3685
3686
|
} else {
|
|
3686
3687
|
tmp = false;
|
|
3687
3688
|
}
|
|
3688
3689
|
if (tmp) {
|
|
3689
|
-
var dispatcher = delegate.
|
|
3690
|
-
var context = delegate.
|
|
3690
|
+
var dispatcher = delegate.xj_1;
|
|
3691
|
+
var context = delegate.n6();
|
|
3691
3692
|
if (safeIsDispatchNeeded(dispatcher, context)) {
|
|
3692
3693
|
safeDispatch(dispatcher, context, _this__u8e3s4);
|
|
3693
3694
|
} else {
|
|
@@ -3700,80 +3701,80 @@
|
|
|
3700
3701
|
function DispatchException(cause, dispatcher, context) {
|
|
3701
3702
|
Exception_init_$Init$('Coroutine dispatcher ' + dispatcher.toString() + ' threw an exception, context = ' + toString(context), cause, this);
|
|
3702
3703
|
captureStack(this, DispatchException);
|
|
3703
|
-
this.
|
|
3704
|
+
this.qm_1 = cause;
|
|
3704
3705
|
delete this.cause;
|
|
3705
3706
|
}
|
|
3706
3707
|
protoOf(DispatchException).f = function () {
|
|
3707
|
-
return this.
|
|
3708
|
+
return this.qm_1;
|
|
3708
3709
|
};
|
|
3709
3710
|
function resumeUnconfined(_this__u8e3s4) {
|
|
3710
|
-
var eventLoop = ThreadLocalEventLoop_getInstance().
|
|
3711
|
-
if (eventLoop.
|
|
3712
|
-
eventLoop.
|
|
3711
|
+
var eventLoop = ThreadLocalEventLoop_getInstance().en();
|
|
3712
|
+
if (eventLoop.ym()) {
|
|
3713
|
+
eventLoop.xm(_this__u8e3s4);
|
|
3713
3714
|
} else {
|
|
3714
3715
|
// Inline function 'kotlinx.coroutines.runUnconfinedEventLoop' call
|
|
3715
|
-
eventLoop.
|
|
3716
|
+
eventLoop.an(true);
|
|
3716
3717
|
try {
|
|
3717
|
-
resume(_this__u8e3s4, _this__u8e3s4.
|
|
3718
|
-
$l$loop: while (eventLoop.
|
|
3718
|
+
resume(_this__u8e3s4, _this__u8e3s4.wk(), true);
|
|
3719
|
+
$l$loop: while (eventLoop.wm()) {
|
|
3719
3720
|
}
|
|
3720
3721
|
} catch ($p) {
|
|
3721
3722
|
if ($p instanceof Error) {
|
|
3722
3723
|
var e = $p;
|
|
3723
|
-
_this__u8e3s4.
|
|
3724
|
+
_this__u8e3s4.sl(e);
|
|
3724
3725
|
} else {
|
|
3725
3726
|
throw $p;
|
|
3726
3727
|
}
|
|
3727
3728
|
}
|
|
3728
3729
|
finally {
|
|
3729
|
-
eventLoop.
|
|
3730
|
+
eventLoop.bn(true);
|
|
3730
3731
|
}
|
|
3731
3732
|
}
|
|
3732
3733
|
}
|
|
3733
3734
|
function resume(_this__u8e3s4, delegate, undispatched) {
|
|
3734
|
-
var state = _this__u8e3s4.
|
|
3735
|
-
var exception = _this__u8e3s4.
|
|
3735
|
+
var state = _this__u8e3s4.xk();
|
|
3736
|
+
var exception = _this__u8e3s4.pl(state);
|
|
3736
3737
|
var tmp;
|
|
3737
3738
|
if (!(exception == null)) {
|
|
3738
3739
|
// Inline function 'kotlin.Companion.failure' call
|
|
3739
3740
|
tmp = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
3740
3741
|
} else {
|
|
3741
3742
|
// Inline function 'kotlin.Companion.success' call
|
|
3742
|
-
var value = _this__u8e3s4.
|
|
3743
|
+
var value = _this__u8e3s4.fl(state);
|
|
3743
3744
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
3744
3745
|
}
|
|
3745
3746
|
var result = tmp;
|
|
3746
3747
|
if (undispatched) {
|
|
3747
3748
|
// Inline function 'kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith' call
|
|
3748
3749
|
var this_0 = delegate instanceof DispatchedContinuation ? delegate : THROW_CCE();
|
|
3749
|
-
this_0.
|
|
3750
|
+
this_0.yj_1;
|
|
3750
3751
|
// Inline function 'kotlinx.coroutines.withContinuationContext' call
|
|
3751
|
-
this_0.
|
|
3752
|
-
this_0.
|
|
3752
|
+
this_0.ak_1;
|
|
3753
|
+
this_0.yj_1.s6(result);
|
|
3753
3754
|
} else {
|
|
3754
|
-
delegate.
|
|
3755
|
+
delegate.s6(result);
|
|
3755
3756
|
}
|
|
3756
3757
|
}
|
|
3757
3758
|
function ScopeCoroutine(context, uCont) {
|
|
3758
3759
|
AbstractCoroutine.call(this, context, true, true);
|
|
3759
|
-
this.
|
|
3760
|
+
this.nq_1 = uCont;
|
|
3760
3761
|
}
|
|
3761
|
-
protoOf(ScopeCoroutine).
|
|
3762
|
+
protoOf(ScopeCoroutine).sg = function () {
|
|
3762
3763
|
return true;
|
|
3763
3764
|
};
|
|
3764
|
-
protoOf(ScopeCoroutine).
|
|
3765
|
-
resumeCancellableWithInternal(intercepted(this.
|
|
3765
|
+
protoOf(ScopeCoroutine).qf = function (state) {
|
|
3766
|
+
resumeCancellableWithInternal(intercepted(this.nq_1), recoverResult(state, this.nq_1));
|
|
3766
3767
|
};
|
|
3767
|
-
protoOf(ScopeCoroutine).
|
|
3768
|
+
protoOf(ScopeCoroutine).oq = function () {
|
|
3768
3769
|
};
|
|
3769
|
-
protoOf(ScopeCoroutine).
|
|
3770
|
-
this.
|
|
3770
|
+
protoOf(ScopeCoroutine).pf = function (state) {
|
|
3771
|
+
this.nq_1.s6(recoverResult(state, this.nq_1));
|
|
3771
3772
|
};
|
|
3772
3773
|
function Symbol(symbol) {
|
|
3773
|
-
this.
|
|
3774
|
+
this.pq_1 = symbol;
|
|
3774
3775
|
}
|
|
3775
3776
|
protoOf(Symbol).toString = function () {
|
|
3776
|
-
return '<' + this.
|
|
3777
|
+
return '<' + this.pq_1 + '>';
|
|
3777
3778
|
};
|
|
3778
3779
|
function systemProp(propertyName, defaultValue, minValue, maxValue) {
|
|
3779
3780
|
minValue = minValue === VOID ? 1 : minValue;
|
|
@@ -3845,14 +3846,14 @@
|
|
|
3845
3846
|
function dispatcherFailure(completion, e) {
|
|
3846
3847
|
var tmp;
|
|
3847
3848
|
if (e instanceof DispatchException) {
|
|
3848
|
-
tmp = e.
|
|
3849
|
+
tmp = e.qm_1;
|
|
3849
3850
|
} else {
|
|
3850
3851
|
tmp = e;
|
|
3851
3852
|
}
|
|
3852
3853
|
var reportException = tmp;
|
|
3853
3854
|
// Inline function 'kotlin.Companion.failure' call
|
|
3854
3855
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(reportException));
|
|
3855
|
-
completion.
|
|
3856
|
+
completion.s6(tmp$ret$0);
|
|
3856
3857
|
throw reportException;
|
|
3857
3858
|
}
|
|
3858
3859
|
function startUndispatchedOrReturn(_this__u8e3s4, receiver, block) {
|
|
@@ -3864,7 +3865,7 @@
|
|
|
3864
3865
|
var tmp;
|
|
3865
3866
|
try {
|
|
3866
3867
|
// Inline function 'kotlinx.coroutines.withCoroutineContext' call
|
|
3867
|
-
actualCompletion.
|
|
3868
|
+
actualCompletion.n6();
|
|
3868
3869
|
// Inline function 'kotlinx.coroutines.internal.probeCoroutineResumed' call
|
|
3869
3870
|
// Inline function 'kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn' call
|
|
3870
3871
|
tmp = startCoroutineUninterceptedOrReturnNonGeneratorVersion(_this__u8e3s4, receiver, actualCompletion);
|
|
@@ -3874,7 +3875,7 @@
|
|
|
3874
3875
|
var e = $p;
|
|
3875
3876
|
var tmp_1;
|
|
3876
3877
|
if (e instanceof DispatchException) {
|
|
3877
|
-
tmp_1 = e.
|
|
3878
|
+
tmp_1 = e.qm_1;
|
|
3878
3879
|
} else {
|
|
3879
3880
|
tmp_1 = e;
|
|
3880
3881
|
}
|
|
@@ -3882,7 +3883,7 @@
|
|
|
3882
3883
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
3883
3884
|
// Inline function 'kotlin.Companion.failure' call
|
|
3884
3885
|
var tmp$ret$6 = _Result___init__impl__xyqfz8(createFailure(reportException));
|
|
3885
|
-
actualCompletion.
|
|
3886
|
+
actualCompletion.s6(tmp$ret$6);
|
|
3886
3887
|
return Unit_instance;
|
|
3887
3888
|
} else {
|
|
3888
3889
|
throw $p;
|
|
@@ -3893,7 +3894,7 @@
|
|
|
3893
3894
|
// Inline function 'kotlin.coroutines.resume' call
|
|
3894
3895
|
// Inline function 'kotlin.Companion.success' call
|
|
3895
3896
|
var tmp$ret$8 = _Result___init__impl__xyqfz8(value);
|
|
3896
|
-
actualCompletion.
|
|
3897
|
+
actualCompletion.s6(tmp$ret$8);
|
|
3897
3898
|
}
|
|
3898
3899
|
}
|
|
3899
3900
|
function startUndispatched(_this__u8e3s4, alwaysRethrow, receiver, block) {
|
|
@@ -3919,18 +3920,18 @@
|
|
|
3919
3920
|
var result = tmp;
|
|
3920
3921
|
if (result === get_COROUTINE_SUSPENDED())
|
|
3921
3922
|
return get_COROUTINE_SUSPENDED();
|
|
3922
|
-
var state = _this__u8e3s4.
|
|
3923
|
+
var state = _this__u8e3s4.of(result);
|
|
3923
3924
|
if (state === get_COMPLETING_WAITING_CHILDREN())
|
|
3924
3925
|
return get_COROUTINE_SUSPENDED();
|
|
3925
|
-
_this__u8e3s4.
|
|
3926
|
+
_this__u8e3s4.oq();
|
|
3926
3927
|
var tmp_1;
|
|
3927
3928
|
if (state instanceof CompletedExceptionally) {
|
|
3928
3929
|
var tmp_2;
|
|
3929
|
-
if (alwaysRethrow || notOwnTimeout(_this__u8e3s4, state.
|
|
3930
|
-
throw recoverStackTrace(state.
|
|
3930
|
+
if (alwaysRethrow || notOwnTimeout(_this__u8e3s4, state.lf_1)) {
|
|
3931
|
+
throw recoverStackTrace(state.lf_1, _this__u8e3s4.nq_1);
|
|
3931
3932
|
} else {
|
|
3932
3933
|
if (result instanceof CompletedExceptionally) {
|
|
3933
|
-
throw recoverStackTrace(result.
|
|
3934
|
+
throw recoverStackTrace(result.lf_1, _this__u8e3s4.nq_1);
|
|
3934
3935
|
} else {
|
|
3935
3936
|
tmp_2 = result;
|
|
3936
3937
|
}
|
|
@@ -3942,15 +3943,15 @@
|
|
|
3942
3943
|
return tmp_1;
|
|
3943
3944
|
}
|
|
3944
3945
|
function dispatchExceptionAndMakeCompleting(_this__u8e3s4, e) {
|
|
3945
|
-
_this__u8e3s4.
|
|
3946
|
-
throw recoverStackTrace(e.
|
|
3946
|
+
_this__u8e3s4.pg(new CompletedExceptionally(e.qm_1));
|
|
3947
|
+
throw recoverStackTrace(e.qm_1, _this__u8e3s4.nq_1);
|
|
3947
3948
|
}
|
|
3948
3949
|
function notOwnTimeout(_this__u8e3s4, cause) {
|
|
3949
3950
|
var tmp;
|
|
3950
3951
|
if (!(cause instanceof TimeoutCancellationException)) {
|
|
3951
3952
|
tmp = true;
|
|
3952
3953
|
} else {
|
|
3953
|
-
tmp = !(cause.
|
|
3954
|
+
tmp = !(cause.qq_1 === _this__u8e3s4);
|
|
3954
3955
|
}
|
|
3955
3956
|
return tmp;
|
|
3956
3957
|
}
|
|
@@ -3970,22 +3971,22 @@
|
|
|
3970
3971
|
function MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this$0, this$1) {
|
|
3971
3972
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
3972
3973
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
3973
|
-
this$0.
|
|
3974
|
-
this$0.
|
|
3974
|
+
this$0.ar_1.kotlinx$atomicfu$value = this$1.dr_1;
|
|
3975
|
+
this$0.fr(this$1.dr_1);
|
|
3975
3976
|
return Unit_instance;
|
|
3976
3977
|
};
|
|
3977
3978
|
}
|
|
3978
3979
|
function MutexImpl$CancellableContinuationWithOwner$resume$lambda(this$0, this$1) {
|
|
3979
3980
|
return function (it) {
|
|
3980
|
-
this$0.
|
|
3981
|
+
this$0.fr(this$1.dr_1);
|
|
3981
3982
|
return Unit_instance;
|
|
3982
3983
|
};
|
|
3983
3984
|
}
|
|
3984
3985
|
function holdsLockImpl($this, owner) {
|
|
3985
3986
|
$l$loop: while (true) {
|
|
3986
|
-
if (!$this.
|
|
3987
|
+
if (!$this.gr())
|
|
3987
3988
|
return 0;
|
|
3988
|
-
var curOwner = $this.
|
|
3989
|
+
var curOwner = $this.ar_1.kotlinx$atomicfu$value;
|
|
3989
3990
|
if (curOwner === get_NO_OWNER())
|
|
3990
3991
|
continue $l$loop;
|
|
3991
3992
|
return curOwner === owner ? 1 : 2;
|
|
@@ -3999,19 +4000,19 @@
|
|
|
3999
4000
|
} catch ($p) {
|
|
4000
4001
|
if ($p instanceof Error) {
|
|
4001
4002
|
var e = $p;
|
|
4002
|
-
cancellable.
|
|
4003
|
+
cancellable.el();
|
|
4003
4004
|
throw e;
|
|
4004
4005
|
} else {
|
|
4005
4006
|
throw $p;
|
|
4006
4007
|
}
|
|
4007
4008
|
}
|
|
4008
|
-
return cancellable.
|
|
4009
|
+
return cancellable.zi();
|
|
4009
4010
|
}
|
|
4010
4011
|
function tryLockImpl($this, owner) {
|
|
4011
4012
|
$l$loop: while (true) {
|
|
4012
|
-
if ($this.
|
|
4013
|
+
if ($this.or()) {
|
|
4013
4014
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
4014
|
-
$this.
|
|
4015
|
+
$this.ar_1.kotlinx$atomicfu$value = owner;
|
|
4015
4016
|
return 0;
|
|
4016
4017
|
} else {
|
|
4017
4018
|
if (owner == null)
|
|
@@ -4028,54 +4029,54 @@
|
|
|
4028
4029
|
}
|
|
4029
4030
|
}
|
|
4030
4031
|
function CancellableContinuationWithOwner($outer, cont, owner) {
|
|
4031
|
-
this.
|
|
4032
|
-
this.
|
|
4033
|
-
this.
|
|
4032
|
+
this.er_1 = $outer;
|
|
4033
|
+
this.cr_1 = cont;
|
|
4034
|
+
this.dr_1 = owner;
|
|
4034
4035
|
}
|
|
4035
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4036
|
+
protoOf(CancellableContinuationWithOwner).pr = function (value, idempotent, onCancellation) {
|
|
4036
4037
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
4037
|
-
var token = this.
|
|
4038
|
+
var token = this.cr_1.sj(value, idempotent, MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this.er_1, this));
|
|
4038
4039
|
if (!(token == null)) {
|
|
4039
4040
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
4040
|
-
this.
|
|
4041
|
+
this.er_1.ar_1.kotlinx$atomicfu$value = this.dr_1;
|
|
4041
4042
|
}
|
|
4042
4043
|
return token;
|
|
4043
4044
|
};
|
|
4044
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4045
|
-
return this.
|
|
4045
|
+
protoOf(CancellableContinuationWithOwner).sj = function (value, idempotent, onCancellation) {
|
|
4046
|
+
return this.pr(value instanceof Unit ? value : THROW_CCE(), idempotent, onCancellation);
|
|
4046
4047
|
};
|
|
4047
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4048
|
+
protoOf(CancellableContinuationWithOwner).qr = function (value, onCancellation) {
|
|
4048
4049
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
4049
|
-
this.
|
|
4050
|
-
this.
|
|
4050
|
+
this.er_1.ar_1.kotlinx$atomicfu$value = this.dr_1;
|
|
4051
|
+
this.cr_1.il(Unit_instance, MutexImpl$CancellableContinuationWithOwner$resume$lambda(this.er_1, this));
|
|
4051
4052
|
};
|
|
4052
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4053
|
-
return this.
|
|
4053
|
+
protoOf(CancellableContinuationWithOwner).tj = function (value, onCancellation) {
|
|
4054
|
+
return this.qr(value instanceof Unit ? value : THROW_CCE(), onCancellation);
|
|
4054
4055
|
};
|
|
4055
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4056
|
-
return this.
|
|
4056
|
+
protoOf(CancellableContinuationWithOwner).ag = function () {
|
|
4057
|
+
return this.cr_1.ag();
|
|
4057
4058
|
};
|
|
4058
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4059
|
-
return this.
|
|
4059
|
+
protoOf(CancellableContinuationWithOwner).di = function (exception) {
|
|
4060
|
+
return this.cr_1.di(exception);
|
|
4060
4061
|
};
|
|
4061
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4062
|
-
this.
|
|
4062
|
+
protoOf(CancellableContinuationWithOwner).ei = function (token) {
|
|
4063
|
+
this.cr_1.ei(token);
|
|
4063
4064
|
};
|
|
4064
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4065
|
-
this.
|
|
4065
|
+
protoOf(CancellableContinuationWithOwner).kl = function (segment, index) {
|
|
4066
|
+
this.cr_1.kl(segment, index);
|
|
4066
4067
|
};
|
|
4067
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4068
|
-
this.
|
|
4068
|
+
protoOf(CancellableContinuationWithOwner).rr = function (result) {
|
|
4069
|
+
this.cr_1.s6(result);
|
|
4069
4070
|
};
|
|
4070
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4071
|
-
return this.
|
|
4071
|
+
protoOf(CancellableContinuationWithOwner).s6 = function (result) {
|
|
4072
|
+
return this.rr(result);
|
|
4072
4073
|
};
|
|
4073
|
-
protoOf(CancellableContinuationWithOwner).
|
|
4074
|
-
return this.
|
|
4074
|
+
protoOf(CancellableContinuationWithOwner).n6 = function () {
|
|
4075
|
+
return this.cr_1.n6();
|
|
4075
4076
|
};
|
|
4076
4077
|
function MutexImpl$onSelectCancellationUnlockConstructor$lambda$lambda(this$0, $owner) {
|
|
4077
4078
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
4078
|
-
this$0.
|
|
4079
|
+
this$0.fr($owner);
|
|
4079
4080
|
return Unit_instance;
|
|
4080
4081
|
};
|
|
4081
4082
|
}
|
|
@@ -4086,19 +4087,19 @@
|
|
|
4086
4087
|
}
|
|
4087
4088
|
function MutexImpl(locked) {
|
|
4088
4089
|
SemaphoreAndMutexImpl.call(this, 1, locked ? 1 : 0);
|
|
4089
|
-
this.
|
|
4090
|
+
this.ar_1 = atomic$ref$1(locked ? null : get_NO_OWNER());
|
|
4090
4091
|
var tmp = this;
|
|
4091
|
-
tmp.
|
|
4092
|
+
tmp.br_1 = MutexImpl$onSelectCancellationUnlockConstructor$lambda(this);
|
|
4092
4093
|
}
|
|
4093
|
-
protoOf(MutexImpl).
|
|
4094
|
-
return this.
|
|
4094
|
+
protoOf(MutexImpl).gr = function () {
|
|
4095
|
+
return this.sr() === 0;
|
|
4095
4096
|
};
|
|
4096
|
-
protoOf(MutexImpl).
|
|
4097
|
-
if (this.
|
|
4097
|
+
protoOf(MutexImpl).tr = function (owner, $completion) {
|
|
4098
|
+
if (this.ur(owner))
|
|
4098
4099
|
return Unit_instance;
|
|
4099
4100
|
return lockSuspend(this, owner, $completion);
|
|
4100
4101
|
};
|
|
4101
|
-
protoOf(MutexImpl).
|
|
4102
|
+
protoOf(MutexImpl).ur = function (owner) {
|
|
4102
4103
|
var tmp;
|
|
4103
4104
|
switch (tryLockImpl(this, owner)) {
|
|
4104
4105
|
case 0:
|
|
@@ -4120,14 +4121,14 @@
|
|
|
4120
4121
|
}
|
|
4121
4122
|
return tmp;
|
|
4122
4123
|
};
|
|
4123
|
-
protoOf(MutexImpl).
|
|
4124
|
+
protoOf(MutexImpl).fr = function (owner) {
|
|
4124
4125
|
$l$loop_0: while (true) {
|
|
4125
4126
|
// Inline function 'kotlin.check' call
|
|
4126
|
-
if (!this.
|
|
4127
|
+
if (!this.gr()) {
|
|
4127
4128
|
var message = 'This mutex is not locked';
|
|
4128
4129
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4129
4130
|
}
|
|
4130
|
-
var curOwner = this.
|
|
4131
|
+
var curOwner = this.ar_1.kotlinx$atomicfu$value;
|
|
4131
4132
|
if (curOwner === get_NO_OWNER())
|
|
4132
4133
|
continue $l$loop_0;
|
|
4133
4134
|
// Inline function 'kotlin.check' call
|
|
@@ -4135,14 +4136,14 @@
|
|
|
4135
4136
|
var message_0 = 'This mutex is locked by ' + toString_0(curOwner) + ', but ' + toString_0(owner) + ' is expected';
|
|
4136
4137
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
4137
4138
|
}
|
|
4138
|
-
if (!this.
|
|
4139
|
+
if (!this.ar_1.atomicfu$compareAndSet(curOwner, get_NO_OWNER()))
|
|
4139
4140
|
continue $l$loop_0;
|
|
4140
|
-
this.
|
|
4141
|
+
this.vr();
|
|
4141
4142
|
return Unit_instance;
|
|
4142
4143
|
}
|
|
4143
4144
|
};
|
|
4144
4145
|
protoOf(MutexImpl).toString = function () {
|
|
4145
|
-
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.
|
|
4146
|
+
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.gr() + ',owner=' + toString_0(this.ar_1.kotlinx$atomicfu$value) + ']';
|
|
4146
4147
|
};
|
|
4147
4148
|
var properties_initialized_Mutex_kt_yv4p3j;
|
|
4148
4149
|
function _init_properties_Mutex_kt__jod56b() {
|
|
@@ -4199,36 +4200,36 @@
|
|
|
4199
4200
|
} catch ($p) {
|
|
4200
4201
|
if ($p instanceof Error) {
|
|
4201
4202
|
var e = $p;
|
|
4202
|
-
cancellable.
|
|
4203
|
+
cancellable.el();
|
|
4203
4204
|
throw e;
|
|
4204
4205
|
} else {
|
|
4205
4206
|
throw $p;
|
|
4206
4207
|
}
|
|
4207
4208
|
}
|
|
4208
|
-
return cancellable.
|
|
4209
|
+
return cancellable.zi();
|
|
4209
4210
|
}
|
|
4210
4211
|
function decPermits($this) {
|
|
4211
4212
|
$l$loop: while (true) {
|
|
4212
|
-
var p = $this.
|
|
4213
|
-
if (p > $this.
|
|
4213
|
+
var p = $this.mr_1.atomicfu$getAndDecrement();
|
|
4214
|
+
if (p > $this.hr_1)
|
|
4214
4215
|
continue $l$loop;
|
|
4215
4216
|
return p;
|
|
4216
4217
|
}
|
|
4217
4218
|
}
|
|
4218
4219
|
function coerceAvailablePermitsAtMaximum($this) {
|
|
4219
4220
|
$l$loop_0: while (true) {
|
|
4220
|
-
var cur = $this.
|
|
4221
|
-
if (cur <= $this.
|
|
4221
|
+
var cur = $this.mr_1.kotlinx$atomicfu$value;
|
|
4222
|
+
if (cur <= $this.hr_1)
|
|
4222
4223
|
break $l$loop_0;
|
|
4223
|
-
if ($this.
|
|
4224
|
+
if ($this.mr_1.atomicfu$compareAndSet(cur, $this.hr_1))
|
|
4224
4225
|
break $l$loop_0;
|
|
4225
4226
|
}
|
|
4226
4227
|
}
|
|
4227
4228
|
function addAcquireToQueue($this, waiter) {
|
|
4228
|
-
var curTail = $this.
|
|
4229
|
-
var enqIdx = $this.
|
|
4229
|
+
var curTail = $this.kr_1.kotlinx$atomicfu$value;
|
|
4230
|
+
var enqIdx = $this.lr_1.atomicfu$getAndIncrement$long();
|
|
4230
4231
|
var createNewSegment = createSegment$ref();
|
|
4231
|
-
var tmp0 = $this.
|
|
4232
|
+
var tmp0 = $this.kr_1;
|
|
4232
4233
|
// Inline function 'kotlin.Long.div' call
|
|
4233
4234
|
var other = get_SEGMENT_SIZE();
|
|
4234
4235
|
var tmp2 = divide(enqIdx, fromInt(other));
|
|
@@ -4249,23 +4250,23 @@
|
|
|
4249
4250
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
4250
4251
|
while (true) {
|
|
4251
4252
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
4252
|
-
if (compare(cur.
|
|
4253
|
+
if (compare(cur.jk_1, tmp2_0.jk_1) >= 0) {
|
|
4253
4254
|
tmp$ret$2 = true;
|
|
4254
4255
|
break $l$block_1;
|
|
4255
4256
|
}
|
|
4256
|
-
if (!tmp2_0.
|
|
4257
|
+
if (!tmp2_0.cq()) {
|
|
4257
4258
|
tmp$ret$2 = false;
|
|
4258
4259
|
break $l$block_1;
|
|
4259
4260
|
}
|
|
4260
4261
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2_0)) {
|
|
4261
|
-
if (cur.
|
|
4262
|
-
cur.
|
|
4262
|
+
if (cur.dq()) {
|
|
4263
|
+
cur.e2();
|
|
4263
4264
|
}
|
|
4264
4265
|
tmp$ret$2 = true;
|
|
4265
4266
|
break $l$block_1;
|
|
4266
4267
|
}
|
|
4267
|
-
if (tmp2_0.
|
|
4268
|
-
tmp2_0.
|
|
4268
|
+
if (tmp2_0.dq()) {
|
|
4269
|
+
tmp2_0.e2();
|
|
4269
4270
|
}
|
|
4270
4271
|
}
|
|
4271
4272
|
tmp$ret$2 = tmp$ret$3;
|
|
@@ -4284,21 +4285,21 @@
|
|
|
4284
4285
|
var tmp$ret$5 = modulo(enqIdx, fromInt(other_0));
|
|
4285
4286
|
var i = convertToInt(tmp$ret$5);
|
|
4286
4287
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
4287
|
-
if (segment.
|
|
4288
|
-
waiter.
|
|
4288
|
+
if (segment.as_1.atomicfu$get(i).atomicfu$compareAndSet(null, waiter)) {
|
|
4289
|
+
waiter.kl(segment, i);
|
|
4289
4290
|
return true;
|
|
4290
4291
|
}
|
|
4291
4292
|
var tmp4 = get_PERMIT();
|
|
4292
4293
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
4293
4294
|
var value = get_TAKEN();
|
|
4294
|
-
if (segment.
|
|
4295
|
+
if (segment.as_1.atomicfu$get(i).atomicfu$compareAndSet(tmp4, value)) {
|
|
4295
4296
|
if (isInterface(waiter, CancellableContinuation)) {
|
|
4296
4297
|
if (!isInterface(waiter, CancellableContinuation))
|
|
4297
4298
|
THROW_CCE();
|
|
4298
|
-
waiter.
|
|
4299
|
+
waiter.tj(Unit_instance, $this.nr_1);
|
|
4299
4300
|
} else {
|
|
4300
4301
|
if (isInterface(waiter, SelectInstance)) {
|
|
4301
|
-
waiter.
|
|
4302
|
+
waiter.sq(Unit_instance);
|
|
4302
4303
|
} else {
|
|
4303
4304
|
// Inline function 'kotlin.error' call
|
|
4304
4305
|
var message = 'unexpected: ' + toString(waiter);
|
|
@@ -4311,13 +4312,13 @@
|
|
|
4311
4312
|
return false;
|
|
4312
4313
|
}
|
|
4313
4314
|
function tryResumeNextFromQueue($this) {
|
|
4314
|
-
var curHead = $this.
|
|
4315
|
-
var deqIdx = $this.
|
|
4315
|
+
var curHead = $this.ir_1.kotlinx$atomicfu$value;
|
|
4316
|
+
var deqIdx = $this.jr_1.atomicfu$getAndIncrement$long();
|
|
4316
4317
|
// Inline function 'kotlin.Long.div' call
|
|
4317
4318
|
var other = get_SEGMENT_SIZE();
|
|
4318
4319
|
var id = divide(deqIdx, fromInt(other));
|
|
4319
4320
|
var createNewSegment = createSegment$ref();
|
|
4320
|
-
var tmp0 = $this.
|
|
4321
|
+
var tmp0 = $this.ir_1;
|
|
4321
4322
|
var tmp$ret$1;
|
|
4322
4323
|
$l$block_2: {
|
|
4323
4324
|
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
@@ -4335,23 +4336,23 @@
|
|
|
4335
4336
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
4336
4337
|
while (true) {
|
|
4337
4338
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
4338
|
-
if (compare(cur.
|
|
4339
|
+
if (compare(cur.jk_1, tmp2.jk_1) >= 0) {
|
|
4339
4340
|
tmp$ret$2 = true;
|
|
4340
4341
|
break $l$block_1;
|
|
4341
4342
|
}
|
|
4342
|
-
if (!tmp2.
|
|
4343
|
+
if (!tmp2.cq()) {
|
|
4343
4344
|
tmp$ret$2 = false;
|
|
4344
4345
|
break $l$block_1;
|
|
4345
4346
|
}
|
|
4346
4347
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
4347
|
-
if (cur.
|
|
4348
|
-
cur.
|
|
4348
|
+
if (cur.dq()) {
|
|
4349
|
+
cur.e2();
|
|
4349
4350
|
}
|
|
4350
4351
|
tmp$ret$2 = true;
|
|
4351
4352
|
break $l$block_1;
|
|
4352
4353
|
}
|
|
4353
|
-
if (tmp2.
|
|
4354
|
-
tmp2.
|
|
4354
|
+
if (tmp2.dq()) {
|
|
4355
|
+
tmp2.e2();
|
|
4355
4356
|
}
|
|
4356
4357
|
}
|
|
4357
4358
|
tmp$ret$2 = tmp$ret$3;
|
|
@@ -4365,8 +4366,8 @@
|
|
|
4365
4366
|
}
|
|
4366
4367
|
}
|
|
4367
4368
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(tmp$ret$1);
|
|
4368
|
-
segment.
|
|
4369
|
-
if (compare(segment.
|
|
4369
|
+
segment.iq();
|
|
4370
|
+
if (compare(segment.jk_1, id) > 0)
|
|
4370
4371
|
return false;
|
|
4371
4372
|
// Inline function 'kotlin.Long.rem' call
|
|
4372
4373
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -4374,7 +4375,7 @@
|
|
|
4374
4375
|
var i = convertToInt(tmp$ret$5);
|
|
4375
4376
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.getAndSet' call
|
|
4376
4377
|
var value = get_PERMIT();
|
|
4377
|
-
var cellState = segment.
|
|
4378
|
+
var cellState = segment.as_1.atomicfu$get(i).atomicfu$getAndSet(value);
|
|
4378
4379
|
if (cellState === null) {
|
|
4379
4380
|
// Inline function 'kotlin.repeat' call
|
|
4380
4381
|
var times = get_MAX_SPIN_CYCLES();
|
|
@@ -4384,14 +4385,14 @@
|
|
|
4384
4385
|
var index = inductionVariable;
|
|
4385
4386
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4386
4387
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.get' call
|
|
4387
|
-
if (segment.
|
|
4388
|
+
if (segment.as_1.atomicfu$get(i).kotlinx$atomicfu$value === get_TAKEN())
|
|
4388
4389
|
return true;
|
|
4389
4390
|
}
|
|
4390
4391
|
while (inductionVariable < times);
|
|
4391
4392
|
var tmp4 = get_PERMIT();
|
|
4392
4393
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
4393
4394
|
var value_0 = get_BROKEN();
|
|
4394
|
-
return !segment.
|
|
4395
|
+
return !segment.as_1.atomicfu$get(i).atomicfu$compareAndSet(tmp4, value_0);
|
|
4395
4396
|
} else if (cellState === get_CANCELLED())
|
|
4396
4397
|
return false;
|
|
4397
4398
|
else
|
|
@@ -4402,10 +4403,10 @@
|
|
|
4402
4403
|
if (isInterface($receiver, CancellableContinuation)) {
|
|
4403
4404
|
if (!isInterface($receiver, CancellableContinuation))
|
|
4404
4405
|
THROW_CCE();
|
|
4405
|
-
var token = $receiver.
|
|
4406
|
+
var token = $receiver.sj(Unit_instance, null, $this.nr_1);
|
|
4406
4407
|
var tmp_0;
|
|
4407
4408
|
if (!(token == null)) {
|
|
4408
|
-
$receiver.
|
|
4409
|
+
$receiver.ei(token);
|
|
4409
4410
|
tmp_0 = true;
|
|
4410
4411
|
} else {
|
|
4411
4412
|
tmp_0 = false;
|
|
@@ -4413,7 +4414,7 @@
|
|
|
4413
4414
|
tmp = tmp_0;
|
|
4414
4415
|
} else {
|
|
4415
4416
|
if (isInterface($receiver, SelectInstance)) {
|
|
4416
|
-
tmp = $receiver.
|
|
4417
|
+
tmp = $receiver.rq($this, Unit_instance);
|
|
4417
4418
|
} else {
|
|
4418
4419
|
// Inline function 'kotlin.error' call
|
|
4419
4420
|
var message = 'unexpected: ' + toString($receiver);
|
|
@@ -4424,7 +4425,7 @@
|
|
|
4424
4425
|
}
|
|
4425
4426
|
function SemaphoreAndMutexImpl$onCancellationRelease$lambda(this$0) {
|
|
4426
4427
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
4427
|
-
this$0.
|
|
4428
|
+
this$0.vr();
|
|
4428
4429
|
return Unit_instance;
|
|
4429
4430
|
};
|
|
4430
4431
|
}
|
|
@@ -4434,45 +4435,45 @@
|
|
|
4434
4435
|
}, 2, 0, 1, 'createSegment');
|
|
4435
4436
|
}
|
|
4436
4437
|
function SemaphoreAndMutexImpl(permits, acquiredPermits) {
|
|
4437
|
-
this.
|
|
4438
|
-
this.
|
|
4439
|
-
this.
|
|
4438
|
+
this.hr_1 = permits;
|
|
4439
|
+
this.jr_1 = atomic$long$1(new Long(0, 0));
|
|
4440
|
+
this.lr_1 = atomic$long$1(new Long(0, 0));
|
|
4440
4441
|
// Inline function 'kotlin.require' call
|
|
4441
|
-
if (!(this.
|
|
4442
|
-
var message = 'Semaphore should have at least 1 permit, but had ' + this.
|
|
4442
|
+
if (!(this.hr_1 > 0)) {
|
|
4443
|
+
var message = 'Semaphore should have at least 1 permit, but had ' + this.hr_1;
|
|
4443
4444
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4444
4445
|
}
|
|
4445
4446
|
// Inline function 'kotlin.require' call
|
|
4446
|
-
if (!(0 <= acquiredPermits ? acquiredPermits <= this.
|
|
4447
|
-
var message_0 = 'The number of acquired permits should be in 0..' + this.
|
|
4447
|
+
if (!(0 <= acquiredPermits ? acquiredPermits <= this.hr_1 : false)) {
|
|
4448
|
+
var message_0 = 'The number of acquired permits should be in 0..' + this.hr_1;
|
|
4448
4449
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4449
4450
|
}
|
|
4450
4451
|
var s = new SemaphoreSegment(new Long(0, 0), null, 2);
|
|
4451
|
-
this.
|
|
4452
|
-
this.
|
|
4453
|
-
this.
|
|
4452
|
+
this.ir_1 = atomic$ref$1(s);
|
|
4453
|
+
this.kr_1 = atomic$ref$1(s);
|
|
4454
|
+
this.mr_1 = atomic$int$1(this.hr_1 - acquiredPermits | 0);
|
|
4454
4455
|
var tmp = this;
|
|
4455
|
-
tmp.
|
|
4456
|
+
tmp.nr_1 = SemaphoreAndMutexImpl$onCancellationRelease$lambda(this);
|
|
4456
4457
|
}
|
|
4457
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
4458
|
+
protoOf(SemaphoreAndMutexImpl).sr = function () {
|
|
4458
4459
|
// Inline function 'kotlin.math.max' call
|
|
4459
|
-
var a = this.
|
|
4460
|
+
var a = this.mr_1.kotlinx$atomicfu$value;
|
|
4460
4461
|
return Math.max(a, 0);
|
|
4461
4462
|
};
|
|
4462
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
4463
|
+
protoOf(SemaphoreAndMutexImpl).or = function () {
|
|
4463
4464
|
$l$loop: while (true) {
|
|
4464
|
-
var p = this.
|
|
4465
|
-
if (p > this.
|
|
4465
|
+
var p = this.mr_1.kotlinx$atomicfu$value;
|
|
4466
|
+
if (p > this.hr_1) {
|
|
4466
4467
|
coerceAvailablePermitsAtMaximum(this);
|
|
4467
4468
|
continue $l$loop;
|
|
4468
4469
|
}
|
|
4469
4470
|
if (p <= 0)
|
|
4470
4471
|
return false;
|
|
4471
|
-
if (this.
|
|
4472
|
+
if (this.mr_1.atomicfu$compareAndSet(p, p - 1 | 0))
|
|
4472
4473
|
return true;
|
|
4473
4474
|
}
|
|
4474
4475
|
};
|
|
4475
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
4476
|
+
protoOf(SemaphoreAndMutexImpl).bs = function ($completion) {
|
|
4476
4477
|
var p = decPermits(this);
|
|
4477
4478
|
if (p > 0)
|
|
4478
4479
|
return Unit_instance;
|
|
@@ -4485,7 +4486,7 @@
|
|
|
4485
4486
|
while (true) {
|
|
4486
4487
|
var p = decPermits(this);
|
|
4487
4488
|
if (p > 0) {
|
|
4488
|
-
waiter.
|
|
4489
|
+
waiter.tj(Unit_instance, this.nr_1);
|
|
4489
4490
|
tmp$ret$0 = Unit_instance;
|
|
4490
4491
|
break $l$block_0;
|
|
4491
4492
|
}
|
|
@@ -4498,13 +4499,13 @@
|
|
|
4498
4499
|
}
|
|
4499
4500
|
return tmp$ret$0;
|
|
4500
4501
|
};
|
|
4501
|
-
protoOf(SemaphoreAndMutexImpl).
|
|
4502
|
+
protoOf(SemaphoreAndMutexImpl).vr = function () {
|
|
4502
4503
|
while (true) {
|
|
4503
|
-
var p = this.
|
|
4504
|
-
if (p >= this.
|
|
4504
|
+
var p = this.mr_1.atomicfu$getAndIncrement();
|
|
4505
|
+
if (p >= this.hr_1) {
|
|
4505
4506
|
coerceAvailablePermitsAtMaximum(this);
|
|
4506
4507
|
// Inline function 'kotlin.error' call
|
|
4507
|
-
var message = 'The number of released permits cannot be greater than ' + this.
|
|
4508
|
+
var message = 'The number of released permits cannot be greater than ' + this.hr_1;
|
|
4508
4509
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4509
4510
|
}
|
|
4510
4511
|
if (p >= 0)
|
|
@@ -4518,19 +4519,19 @@
|
|
|
4518
4519
|
}
|
|
4519
4520
|
function SemaphoreSegment(id, prev, pointers) {
|
|
4520
4521
|
Segment.call(this, id, prev, pointers);
|
|
4521
|
-
this.
|
|
4522
|
+
this.as_1 = atomicfu$AtomicRefArray$ofNulls(get_SEGMENT_SIZE());
|
|
4522
4523
|
}
|
|
4523
|
-
protoOf(SemaphoreSegment).
|
|
4524
|
+
protoOf(SemaphoreSegment).xp = function () {
|
|
4524
4525
|
return get_SEGMENT_SIZE();
|
|
4525
4526
|
};
|
|
4526
|
-
protoOf(SemaphoreSegment).
|
|
4527
|
+
protoOf(SemaphoreSegment).lk = function (index, cause, context) {
|
|
4527
4528
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.set' call
|
|
4528
4529
|
var value = get_CANCELLED();
|
|
4529
|
-
this.
|
|
4530
|
-
this.
|
|
4530
|
+
this.as_1.atomicfu$get(index).kotlinx$atomicfu$value = value;
|
|
4531
|
+
this.eq();
|
|
4531
4532
|
};
|
|
4532
4533
|
protoOf(SemaphoreSegment).toString = function () {
|
|
4533
|
-
return 'SemaphoreSegment[id=' + this.
|
|
4534
|
+
return 'SemaphoreSegment[id=' + this.jk_1.toString() + ', hashCode=' + hashCode(this) + ']';
|
|
4534
4535
|
};
|
|
4535
4536
|
function createSegment(id, prev) {
|
|
4536
4537
|
_init_properties_Semaphore_kt__t514r6();
|
|
@@ -4588,7 +4589,7 @@
|
|
|
4588
4589
|
}
|
|
4589
4590
|
var DEBUG;
|
|
4590
4591
|
function get_classSimpleName(_this__u8e3s4) {
|
|
4591
|
-
var tmp0_elvis_lhs = getKClassFromExpression(_this__u8e3s4).
|
|
4592
|
+
var tmp0_elvis_lhs = getKClassFromExpression(_this__u8e3s4).r7();
|
|
4592
4593
|
return tmp0_elvis_lhs == null ? 'Unknown' : tmp0_elvis_lhs;
|
|
4593
4594
|
}
|
|
4594
4595
|
function get_hexAddress(_this__u8e3s4) {
|
|
@@ -4606,8 +4607,8 @@
|
|
|
4606
4607
|
NodeDispatcher_instance = this;
|
|
4607
4608
|
SetTimeoutBasedDispatcher.call(this);
|
|
4608
4609
|
}
|
|
4609
|
-
protoOf(NodeDispatcher).
|
|
4610
|
-
process.nextTick(this.
|
|
4610
|
+
protoOf(NodeDispatcher).es = function () {
|
|
4611
|
+
process.nextTick(this.ls_1.js_1);
|
|
4611
4612
|
};
|
|
4612
4613
|
var NodeDispatcher_instance;
|
|
4613
4614
|
function NodeDispatcher_getInstance() {
|
|
@@ -4617,31 +4618,31 @@
|
|
|
4617
4618
|
}
|
|
4618
4619
|
function ScheduledMessageQueue$processQueue$lambda(this$0) {
|
|
4619
4620
|
return function () {
|
|
4620
|
-
this$0.
|
|
4621
|
+
this$0.ps();
|
|
4621
4622
|
return Unit_instance;
|
|
4622
4623
|
};
|
|
4623
4624
|
}
|
|
4624
4625
|
function ScheduledMessageQueue(dispatcher) {
|
|
4625
4626
|
MessageQueue.call(this);
|
|
4626
|
-
this.
|
|
4627
|
+
this.is_1 = dispatcher;
|
|
4627
4628
|
var tmp = this;
|
|
4628
|
-
tmp.
|
|
4629
|
+
tmp.js_1 = ScheduledMessageQueue$processQueue$lambda(this);
|
|
4629
4630
|
}
|
|
4630
|
-
protoOf(ScheduledMessageQueue).
|
|
4631
|
-
this.
|
|
4631
|
+
protoOf(ScheduledMessageQueue).qs = function () {
|
|
4632
|
+
this.is_1.es();
|
|
4632
4633
|
};
|
|
4633
|
-
protoOf(ScheduledMessageQueue).
|
|
4634
|
-
setTimeout(this.
|
|
4634
|
+
protoOf(ScheduledMessageQueue).rs = function () {
|
|
4635
|
+
setTimeout(this.js_1, 0);
|
|
4635
4636
|
};
|
|
4636
|
-
protoOf(ScheduledMessageQueue).
|
|
4637
|
-
setTimeout(this.
|
|
4637
|
+
protoOf(ScheduledMessageQueue).ss = function (timeout) {
|
|
4638
|
+
setTimeout(this.js_1, timeout);
|
|
4638
4639
|
};
|
|
4639
4640
|
function WindowMessageQueue$lambda(this$0) {
|
|
4640
4641
|
return function (event) {
|
|
4641
4642
|
var tmp;
|
|
4642
|
-
if (event.source == this$0.
|
|
4643
|
+
if (event.source == this$0.et_1 && event.data == this$0.ft_1) {
|
|
4643
4644
|
event.stopPropagation();
|
|
4644
|
-
this$0.
|
|
4645
|
+
this$0.ps();
|
|
4645
4646
|
tmp = Unit_instance;
|
|
4646
4647
|
}
|
|
4647
4648
|
return Unit_instance;
|
|
@@ -4649,22 +4650,22 @@
|
|
|
4649
4650
|
}
|
|
4650
4651
|
function WindowMessageQueue$schedule$lambda(this$0) {
|
|
4651
4652
|
return function (it) {
|
|
4652
|
-
this$0.
|
|
4653
|
+
this$0.ps();
|
|
4653
4654
|
return Unit_instance;
|
|
4654
4655
|
};
|
|
4655
4656
|
}
|
|
4656
4657
|
function WindowMessageQueue(window_0) {
|
|
4657
4658
|
MessageQueue.call(this);
|
|
4658
|
-
this.
|
|
4659
|
-
this.
|
|
4660
|
-
this.
|
|
4659
|
+
this.et_1 = window_0;
|
|
4660
|
+
this.ft_1 = 'dispatchCoroutine';
|
|
4661
|
+
this.et_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
|
|
4661
4662
|
}
|
|
4662
|
-
protoOf(WindowMessageQueue).
|
|
4663
|
+
protoOf(WindowMessageQueue).qs = function () {
|
|
4663
4664
|
var tmp = Promise.resolve(Unit_instance);
|
|
4664
4665
|
tmp.then(WindowMessageQueue$schedule$lambda(this));
|
|
4665
4666
|
};
|
|
4666
|
-
protoOf(WindowMessageQueue).
|
|
4667
|
-
this.
|
|
4667
|
+
protoOf(WindowMessageQueue).rs = function () {
|
|
4668
|
+
this.et_1.postMessage(this.ft_1, '*');
|
|
4668
4669
|
};
|
|
4669
4670
|
function toThrowable(_this__u8e3s4) {
|
|
4670
4671
|
var tmp0_elvis_lhs = _this__u8e3s4 instanceof Error ? _this__u8e3s4 : null;
|
|
@@ -4689,8 +4690,8 @@
|
|
|
4689
4690
|
return tmp;
|
|
4690
4691
|
}
|
|
4691
4692
|
function newCoroutineContext(_this__u8e3s4, context) {
|
|
4692
|
-
var combined = _this__u8e3s4.
|
|
4693
|
-
return !(combined === Dispatchers_getInstance().
|
|
4693
|
+
var combined = _this__u8e3s4.ff().pb(context);
|
|
4694
|
+
return !(combined === Dispatchers_getInstance().pp_1) && combined.u6(Key_instance) == null ? combined.pb(Dispatchers_getInstance().pp_1) : combined;
|
|
4694
4695
|
}
|
|
4695
4696
|
function toDebugString(_this__u8e3s4) {
|
|
4696
4697
|
return toString(_this__u8e3s4);
|
|
@@ -4700,14 +4701,14 @@
|
|
|
4700
4701
|
}
|
|
4701
4702
|
function Dispatchers() {
|
|
4702
4703
|
Dispatchers_instance = this;
|
|
4703
|
-
this.
|
|
4704
|
-
this.
|
|
4705
|
-
this.
|
|
4706
|
-
this.
|
|
4704
|
+
this.pp_1 = createDefaultDispatcher();
|
|
4705
|
+
this.qp_1 = Unconfined_getInstance();
|
|
4706
|
+
this.rp_1 = new JsMainDispatcher(this.pp_1, false);
|
|
4707
|
+
this.sp_1 = null;
|
|
4707
4708
|
}
|
|
4708
|
-
protoOf(Dispatchers).
|
|
4709
|
-
var tmp0_elvis_lhs = this.
|
|
4710
|
-
return tmp0_elvis_lhs == null ? this.
|
|
4709
|
+
protoOf(Dispatchers).tp = function () {
|
|
4710
|
+
var tmp0_elvis_lhs = this.sp_1;
|
|
4711
|
+
return tmp0_elvis_lhs == null ? this.rp_1 : tmp0_elvis_lhs;
|
|
4711
4712
|
};
|
|
4712
4713
|
var Dispatchers_instance;
|
|
4713
4714
|
function Dispatchers_getInstance() {
|
|
@@ -4717,30 +4718,30 @@
|
|
|
4717
4718
|
}
|
|
4718
4719
|
function JsMainDispatcher(delegate, invokeImmediately) {
|
|
4719
4720
|
MainCoroutineDispatcher.call(this);
|
|
4720
|
-
this.
|
|
4721
|
-
this.
|
|
4722
|
-
this.
|
|
4721
|
+
this.ht_1 = delegate;
|
|
4722
|
+
this.it_1 = invokeImmediately;
|
|
4723
|
+
this.jt_1 = this.it_1 ? this : new JsMainDispatcher(this.ht_1, true);
|
|
4723
4724
|
}
|
|
4724
|
-
protoOf(JsMainDispatcher).
|
|
4725
|
-
return this.
|
|
4725
|
+
protoOf(JsMainDispatcher).np = function () {
|
|
4726
|
+
return this.jt_1;
|
|
4726
4727
|
};
|
|
4727
|
-
protoOf(JsMainDispatcher).
|
|
4728
|
-
return !this.
|
|
4728
|
+
protoOf(JsMainDispatcher).nm = function (context) {
|
|
4729
|
+
return !this.it_1;
|
|
4729
4730
|
};
|
|
4730
|
-
protoOf(JsMainDispatcher).
|
|
4731
|
-
return this.
|
|
4731
|
+
protoOf(JsMainDispatcher).om = function (context, block) {
|
|
4732
|
+
return this.ht_1.om(context, block);
|
|
4732
4733
|
};
|
|
4733
4734
|
protoOf(JsMainDispatcher).toString = function () {
|
|
4734
|
-
var tmp0_elvis_lhs = this.
|
|
4735
|
-
return tmp0_elvis_lhs == null ? this.
|
|
4735
|
+
var tmp0_elvis_lhs = this.op();
|
|
4736
|
+
return tmp0_elvis_lhs == null ? this.ht_1.toString() : tmp0_elvis_lhs;
|
|
4736
4737
|
};
|
|
4737
4738
|
function JobCancellationException(message, cause, job) {
|
|
4738
4739
|
CancellationException_init_$Init$(message, cause, this);
|
|
4739
4740
|
captureStack(this, JobCancellationException);
|
|
4740
|
-
this.
|
|
4741
|
+
this.kt_1 = job;
|
|
4741
4742
|
}
|
|
4742
4743
|
protoOf(JobCancellationException).toString = function () {
|
|
4743
|
-
return protoOf(CancellationException).toString.call(this) + '; job=' + toString(this.
|
|
4744
|
+
return protoOf(CancellationException).toString.call(this) + '; job=' + toString(this.kt_1);
|
|
4744
4745
|
};
|
|
4745
4746
|
protoOf(JobCancellationException).equals = function (other) {
|
|
4746
4747
|
var tmp;
|
|
@@ -4756,7 +4757,7 @@
|
|
|
4756
4757
|
tmp_2 = false;
|
|
4757
4758
|
}
|
|
4758
4759
|
if (tmp_2) {
|
|
4759
|
-
tmp_1 = equals(other.
|
|
4760
|
+
tmp_1 = equals(other.kt_1, this.kt_1);
|
|
4760
4761
|
} else {
|
|
4761
4762
|
tmp_1 = false;
|
|
4762
4763
|
}
|
|
@@ -4770,7 +4771,7 @@
|
|
|
4770
4771
|
return tmp;
|
|
4771
4772
|
};
|
|
4772
4773
|
protoOf(JobCancellationException).hashCode = function () {
|
|
4773
|
-
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.
|
|
4774
|
+
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.kt_1) | 0, 31);
|
|
4774
4775
|
var tmp0_safe_receiver = this.cause;
|
|
4775
4776
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
4776
4777
|
return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
@@ -4804,41 +4805,41 @@
|
|
|
4804
4805
|
}
|
|
4805
4806
|
}
|
|
4806
4807
|
function LockFreeLinkedListNode() {
|
|
4807
|
-
this.
|
|
4808
|
-
this.
|
|
4809
|
-
this.
|
|
4808
|
+
this.li_1 = this;
|
|
4809
|
+
this.mi_1 = this;
|
|
4810
|
+
this.ni_1 = false;
|
|
4810
4811
|
}
|
|
4811
|
-
protoOf(LockFreeLinkedListNode).
|
|
4812
|
-
var prev = this.
|
|
4812
|
+
protoOf(LockFreeLinkedListNode).oi = function (node, permissionsBitmask) {
|
|
4813
|
+
var prev = this.mi_1;
|
|
4813
4814
|
var tmp;
|
|
4814
4815
|
if (prev instanceof ListClosed) {
|
|
4815
|
-
tmp = ((prev.
|
|
4816
|
+
tmp = ((prev.ot_1 & permissionsBitmask) === 0 && prev.oi(node, permissionsBitmask));
|
|
4816
4817
|
} else {
|
|
4817
|
-
node.
|
|
4818
|
-
node.
|
|
4819
|
-
prev.
|
|
4820
|
-
this.
|
|
4818
|
+
node.li_1 = this;
|
|
4819
|
+
node.mi_1 = prev;
|
|
4820
|
+
prev.li_1 = node;
|
|
4821
|
+
this.mi_1 = node;
|
|
4821
4822
|
tmp = true;
|
|
4822
4823
|
}
|
|
4823
4824
|
return tmp;
|
|
4824
4825
|
};
|
|
4825
|
-
protoOf(LockFreeLinkedListNode).
|
|
4826
|
-
this.
|
|
4826
|
+
protoOf(LockFreeLinkedListNode).on = function (forbiddenElementsBit) {
|
|
4827
|
+
this.oi(new ListClosed(forbiddenElementsBit), forbiddenElementsBit);
|
|
4827
4828
|
};
|
|
4828
|
-
protoOf(LockFreeLinkedListNode).
|
|
4829
|
-
if (this.
|
|
4829
|
+
protoOf(LockFreeLinkedListNode).pi = function () {
|
|
4830
|
+
if (this.ni_1)
|
|
4830
4831
|
return false;
|
|
4831
|
-
var prev = this.
|
|
4832
|
-
var next = this.
|
|
4833
|
-
prev.
|
|
4834
|
-
next.
|
|
4835
|
-
this.
|
|
4832
|
+
var prev = this.mi_1;
|
|
4833
|
+
var next = this.li_1;
|
|
4834
|
+
prev.li_1 = next;
|
|
4835
|
+
next.mi_1 = prev;
|
|
4836
|
+
this.ni_1 = true;
|
|
4836
4837
|
return true;
|
|
4837
4838
|
};
|
|
4838
|
-
protoOf(LockFreeLinkedListNode).
|
|
4839
|
-
if (!(this.
|
|
4839
|
+
protoOf(LockFreeLinkedListNode).qi = function (node) {
|
|
4840
|
+
if (!(this.li_1 === this))
|
|
4840
4841
|
return false;
|
|
4841
|
-
this.
|
|
4842
|
+
this.oi(node, -2147483648);
|
|
4842
4843
|
return true;
|
|
4843
4844
|
};
|
|
4844
4845
|
function LockFreeLinkedListHead() {
|
|
@@ -4846,7 +4847,7 @@
|
|
|
4846
4847
|
}
|
|
4847
4848
|
function ListClosed(forbiddenElementsBitmask) {
|
|
4848
4849
|
LockFreeLinkedListNode.call(this);
|
|
4849
|
-
this.
|
|
4850
|
+
this.ot_1 = forbiddenElementsBitmask;
|
|
4850
4851
|
}
|
|
4851
4852
|
function recoverStackTrace(exception, continuation) {
|
|
4852
4853
|
return exception;
|
|
@@ -4863,13 +4864,13 @@
|
|
|
4863
4864
|
return 0;
|
|
4864
4865
|
}
|
|
4865
4866
|
function CommonThreadLocal() {
|
|
4866
|
-
this.
|
|
4867
|
+
this.fn_1 = null;
|
|
4867
4868
|
}
|
|
4868
|
-
protoOf(CommonThreadLocal).
|
|
4869
|
-
return this.
|
|
4869
|
+
protoOf(CommonThreadLocal).gn = function () {
|
|
4870
|
+
return this.fn_1;
|
|
4870
4871
|
};
|
|
4871
|
-
protoOf(CommonThreadLocal).
|
|
4872
|
-
this.
|
|
4872
|
+
protoOf(CommonThreadLocal).hn = function (value) {
|
|
4873
|
+
this.fn_1 = value;
|
|
4873
4874
|
};
|
|
4874
4875
|
function commonThreadLocal(name) {
|
|
4875
4876
|
return new CommonThreadLocal();
|
|
@@ -4880,7 +4881,7 @@
|
|
|
4880
4881
|
function UnconfinedEventLoop() {
|
|
4881
4882
|
EventLoop.call(this);
|
|
4882
4883
|
}
|
|
4883
|
-
protoOf(UnconfinedEventLoop).
|
|
4884
|
+
protoOf(UnconfinedEventLoop).om = function (context, block) {
|
|
4884
4885
|
unsupported();
|
|
4885
4886
|
};
|
|
4886
4887
|
function unsupported() {
|
|
@@ -4893,10 +4894,10 @@
|
|
|
4893
4894
|
}
|
|
4894
4895
|
function await_0(_this__u8e3s4, $completion) {
|
|
4895
4896
|
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
4896
|
-
cancellable.
|
|
4897
|
+
cancellable.yi();
|
|
4897
4898
|
var tmp = await$lambda(cancellable);
|
|
4898
4899
|
_this__u8e3s4.then(tmp, await$lambda_0(cancellable));
|
|
4899
|
-
return cancellable.
|
|
4900
|
+
return cancellable.zi();
|
|
4900
4901
|
}
|
|
4901
4902
|
function asPromise(_this__u8e3s4) {
|
|
4902
4903
|
var promise = new Promise(asPromise$lambda(_this__u8e3s4));
|
|
@@ -4916,7 +4917,7 @@
|
|
|
4916
4917
|
var this_0 = $cont;
|
|
4917
4918
|
// Inline function 'kotlin.Companion.success' call
|
|
4918
4919
|
var tmp$ret$1 = _Result___init__impl__xyqfz8(it);
|
|
4919
|
-
this_0.
|
|
4920
|
+
this_0.s6(tmp$ret$1);
|
|
4920
4921
|
return null;
|
|
4921
4922
|
};
|
|
4922
4923
|
}
|
|
@@ -4927,31 +4928,31 @@
|
|
|
4927
4928
|
// Inline function 'kotlin.Companion.failure' call
|
|
4928
4929
|
var exception = toThrowable(it);
|
|
4929
4930
|
var tmp$ret$1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
4930
|
-
tmp0.
|
|
4931
|
+
tmp0.s6(tmp$ret$1);
|
|
4931
4932
|
return null;
|
|
4932
4933
|
};
|
|
4933
4934
|
}
|
|
4934
4935
|
function asPromise$lambda$lambda($this_asPromise, $reject, $resolve) {
|
|
4935
4936
|
return function (it) {
|
|
4936
|
-
var e = $this_asPromise.
|
|
4937
|
+
var e = $this_asPromise.wg();
|
|
4937
4938
|
var tmp;
|
|
4938
4939
|
if (!(e == null)) {
|
|
4939
4940
|
tmp = $reject(toJsPromiseError(e));
|
|
4940
4941
|
} else {
|
|
4941
|
-
tmp = $resolve($this_asPromise.
|
|
4942
|
+
tmp = $resolve($this_asPromise.ci());
|
|
4942
4943
|
}
|
|
4943
4944
|
return Unit_instance;
|
|
4944
4945
|
};
|
|
4945
4946
|
}
|
|
4946
4947
|
function asPromise$lambda($this_asPromise) {
|
|
4947
4948
|
return function (resolve, reject) {
|
|
4948
|
-
$this_asPromise.
|
|
4949
|
+
$this_asPromise.gg(asPromise$lambda$lambda($this_asPromise, reject, resolve));
|
|
4949
4950
|
return Unit_instance;
|
|
4950
4951
|
};
|
|
4951
4952
|
}
|
|
4952
4953
|
function propagateExceptionFinalResort(exception) {
|
|
4953
4954
|
// Inline function 'kotlin.with' call
|
|
4954
|
-
throwAsyncJsError(exception.message, getKClassFromExpression(exception).
|
|
4955
|
+
throwAsyncJsError(exception.message, getKClassFromExpression(exception).r7(), stackTraceToString(exception));
|
|
4955
4956
|
return Unit_instance;
|
|
4956
4957
|
}
|
|
4957
4958
|
function throwAsyncJsError(message, className, stack) {
|
|
@@ -4973,8 +4974,8 @@
|
|
|
4973
4974
|
SetTimeoutDispatcher_instance = this;
|
|
4974
4975
|
SetTimeoutBasedDispatcher.call(this);
|
|
4975
4976
|
}
|
|
4976
|
-
protoOf(SetTimeoutDispatcher).
|
|
4977
|
-
this.
|
|
4977
|
+
protoOf(SetTimeoutDispatcher).es = function () {
|
|
4978
|
+
this.ls_1.ss(0);
|
|
4978
4979
|
};
|
|
4979
4980
|
var SetTimeoutDispatcher_instance;
|
|
4980
4981
|
function SetTimeoutDispatcher_getInstance() {
|
|
@@ -4984,27 +4985,27 @@
|
|
|
4984
4985
|
}
|
|
4985
4986
|
function SetTimeoutBasedDispatcher() {
|
|
4986
4987
|
CoroutineDispatcher.call(this);
|
|
4987
|
-
this.
|
|
4988
|
+
this.ls_1 = new ScheduledMessageQueue(this);
|
|
4988
4989
|
}
|
|
4989
|
-
protoOf(SetTimeoutBasedDispatcher).
|
|
4990
|
-
this.
|
|
4990
|
+
protoOf(SetTimeoutBasedDispatcher).om = function (context, block) {
|
|
4991
|
+
this.ls_1.ts(block);
|
|
4991
4992
|
};
|
|
4992
4993
|
function MessageQueue() {
|
|
4993
|
-
this.
|
|
4994
|
-
this.
|
|
4995
|
-
this.
|
|
4996
|
-
}
|
|
4997
|
-
protoOf(MessageQueue).
|
|
4998
|
-
this.
|
|
4999
|
-
if (!this.
|
|
5000
|
-
this.
|
|
5001
|
-
this.
|
|
4994
|
+
this.ms_1 = ArrayDeque_init_$Create$();
|
|
4995
|
+
this.ns_1 = 16;
|
|
4996
|
+
this.os_1 = false;
|
|
4997
|
+
}
|
|
4998
|
+
protoOf(MessageQueue).ts = function (element) {
|
|
4999
|
+
this.us(element);
|
|
5000
|
+
if (!this.os_1) {
|
|
5001
|
+
this.os_1 = true;
|
|
5002
|
+
this.qs();
|
|
5002
5003
|
}
|
|
5003
5004
|
};
|
|
5004
|
-
protoOf(MessageQueue).
|
|
5005
|
+
protoOf(MessageQueue).ps = function () {
|
|
5005
5006
|
try {
|
|
5006
5007
|
// Inline function 'kotlin.repeat' call
|
|
5007
|
-
var times = this.
|
|
5008
|
+
var times = this.ns_1;
|
|
5008
5009
|
var inductionVariable = 0;
|
|
5009
5010
|
if (inductionVariable < times)
|
|
5010
5011
|
do {
|
|
@@ -5018,90 +5019,96 @@
|
|
|
5018
5019
|
tmp = tmp0_elvis_lhs;
|
|
5019
5020
|
}
|
|
5020
5021
|
var element = tmp;
|
|
5021
|
-
element.
|
|
5022
|
+
element.rl();
|
|
5022
5023
|
}
|
|
5023
5024
|
while (inductionVariable < times);
|
|
5024
5025
|
}finally {
|
|
5025
|
-
if (this.
|
|
5026
|
-
this.
|
|
5026
|
+
if (this.n()) {
|
|
5027
|
+
this.os_1 = false;
|
|
5027
5028
|
} else {
|
|
5028
|
-
this.
|
|
5029
|
+
this.rs();
|
|
5029
5030
|
}
|
|
5030
5031
|
}
|
|
5031
5032
|
};
|
|
5032
|
-
protoOf(MessageQueue).
|
|
5033
|
-
return this.
|
|
5033
|
+
protoOf(MessageQueue).us = function (element) {
|
|
5034
|
+
return this.ms_1.h(element);
|
|
5034
5035
|
};
|
|
5035
|
-
protoOf(MessageQueue).
|
|
5036
|
-
return this.
|
|
5036
|
+
protoOf(MessageQueue).h = function (element) {
|
|
5037
|
+
return this.us((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
5037
5038
|
};
|
|
5038
|
-
protoOf(MessageQueue).
|
|
5039
|
-
this.
|
|
5039
|
+
protoOf(MessageQueue).vs = function (index, element) {
|
|
5040
|
+
this.ms_1.q2(index, element);
|
|
5040
5041
|
};
|
|
5041
|
-
protoOf(MessageQueue).
|
|
5042
|
-
return this.
|
|
5042
|
+
protoOf(MessageQueue).q2 = function (index, element) {
|
|
5043
|
+
return this.vs(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
5043
5044
|
};
|
|
5044
|
-
protoOf(MessageQueue).
|
|
5045
|
-
return this.
|
|
5045
|
+
protoOf(MessageQueue).ws = function (element) {
|
|
5046
|
+
return this.ms_1.c2(element);
|
|
5046
5047
|
};
|
|
5047
|
-
protoOf(MessageQueue).
|
|
5048
|
+
protoOf(MessageQueue).c2 = function (element) {
|
|
5048
5049
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
5049
5050
|
return false;
|
|
5050
|
-
return this.
|
|
5051
|
+
return this.ws((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
5052
|
+
};
|
|
5053
|
+
protoOf(MessageQueue).xs = function (elements) {
|
|
5054
|
+
return this.ms_1.f2(elements);
|
|
5055
|
+
};
|
|
5056
|
+
protoOf(MessageQueue).f2 = function (elements) {
|
|
5057
|
+
return this.xs(elements);
|
|
5051
5058
|
};
|
|
5052
|
-
protoOf(MessageQueue).
|
|
5053
|
-
return this.
|
|
5059
|
+
protoOf(MessageQueue).ys = function (index, elements) {
|
|
5060
|
+
return this.ms_1.r2(index, elements);
|
|
5054
5061
|
};
|
|
5055
|
-
protoOf(MessageQueue).
|
|
5056
|
-
return this.
|
|
5062
|
+
protoOf(MessageQueue).r2 = function (index, elements) {
|
|
5063
|
+
return this.ys(index, elements);
|
|
5057
5064
|
};
|
|
5058
|
-
protoOf(MessageQueue).
|
|
5059
|
-
this.
|
|
5065
|
+
protoOf(MessageQueue).s2 = function () {
|
|
5066
|
+
this.ms_1.s2();
|
|
5060
5067
|
};
|
|
5061
|
-
protoOf(MessageQueue).
|
|
5062
|
-
return this.
|
|
5068
|
+
protoOf(MessageQueue).zs = function (index, element) {
|
|
5069
|
+
return this.ms_1.a2(index, element);
|
|
5063
5070
|
};
|
|
5064
|
-
protoOf(MessageQueue).
|
|
5065
|
-
return this.
|
|
5071
|
+
protoOf(MessageQueue).a2 = function (index, element) {
|
|
5072
|
+
return this.zs(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
5066
5073
|
};
|
|
5067
|
-
protoOf(MessageQueue).
|
|
5068
|
-
return this.
|
|
5074
|
+
protoOf(MessageQueue).k2 = function (index) {
|
|
5075
|
+
return this.ms_1.k2(index);
|
|
5069
5076
|
};
|
|
5070
|
-
protoOf(MessageQueue).
|
|
5071
|
-
return this.
|
|
5077
|
+
protoOf(MessageQueue).n = function () {
|
|
5078
|
+
return this.ms_1.n();
|
|
5072
5079
|
};
|
|
5073
|
-
protoOf(MessageQueue).
|
|
5074
|
-
return this.
|
|
5080
|
+
protoOf(MessageQueue).i = function () {
|
|
5081
|
+
return this.ms_1.i();
|
|
5075
5082
|
};
|
|
5076
|
-
protoOf(MessageQueue).
|
|
5077
|
-
return this.
|
|
5083
|
+
protoOf(MessageQueue).m = function (index) {
|
|
5084
|
+
return this.ms_1.m(index);
|
|
5078
5085
|
};
|
|
5079
|
-
protoOf(MessageQueue).
|
|
5080
|
-
return this.
|
|
5086
|
+
protoOf(MessageQueue).at = function (element) {
|
|
5087
|
+
return this.ms_1.f1(element);
|
|
5081
5088
|
};
|
|
5082
|
-
protoOf(MessageQueue).
|
|
5089
|
+
protoOf(MessageQueue).f1 = function (element) {
|
|
5083
5090
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
5084
5091
|
return -1;
|
|
5085
|
-
return this.
|
|
5092
|
+
return this.at((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
5086
5093
|
};
|
|
5087
|
-
protoOf(MessageQueue).
|
|
5088
|
-
return this.
|
|
5094
|
+
protoOf(MessageQueue).l = function () {
|
|
5095
|
+
return this.ms_1.ba_1;
|
|
5089
5096
|
};
|
|
5090
5097
|
function WindowDispatcher(window_0) {
|
|
5091
5098
|
CoroutineDispatcher.call(this);
|
|
5092
|
-
this.
|
|
5093
|
-
this.
|
|
5099
|
+
this.wt_1 = window_0;
|
|
5100
|
+
this.xt_1 = new WindowMessageQueue(this.wt_1);
|
|
5094
5101
|
}
|
|
5095
|
-
protoOf(WindowDispatcher).
|
|
5096
|
-
return this.
|
|
5102
|
+
protoOf(WindowDispatcher).om = function (context, block) {
|
|
5103
|
+
return this.xt_1.ts(block);
|
|
5097
5104
|
};
|
|
5098
5105
|
//region block: post-declaration
|
|
5099
|
-
protoOf(JobSupport).
|
|
5100
|
-
protoOf(JobSupport).
|
|
5101
|
-
protoOf(JobSupport).
|
|
5102
|
-
protoOf(JobSupport).
|
|
5103
|
-
protoOf(CoroutineDispatcher).
|
|
5104
|
-
protoOf(CoroutineDispatcher).
|
|
5106
|
+
protoOf(JobSupport).pb = plus;
|
|
5107
|
+
protoOf(JobSupport).u6 = get_0;
|
|
5108
|
+
protoOf(JobSupport).ob = fold;
|
|
5109
|
+
protoOf(JobSupport).nb = minusKey_0;
|
|
5110
|
+
protoOf(CoroutineDispatcher).u6 = get;
|
|
5111
|
+
protoOf(CoroutineDispatcher).nb = minusKey;
|
|
5105
5112
|
defineProp(protoOf(DispatchException), 'cause', function () {
|
|
5106
5113
|
return this.f();
|
|
5107
5114
|
});
|