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