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