2019-07-24 11:27:29 +00:00
|
|
|
.class public abstract Lkotlinx/coroutines/at$b;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "EventLoop.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/lang/Comparable;
|
|
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
.implements Lkotlinx/coroutines/ap;
|
|
|
|
.implements Lkotlinx/coroutines/internal/aa;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lkotlinx/coroutines/at;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x409
|
|
|
|
name = "b"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Ljava/lang/Comparable<",
|
|
|
|
"Lkotlinx/coroutines/at$b;",
|
|
|
|
">;",
|
|
|
|
"Ljava/lang/Runnable;",
|
|
|
|
"Lkotlinx/coroutines/ap;",
|
|
|
|
"Lkotlinx/coroutines/internal/aa;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-07-25 02:21:43 +00:00
|
|
|
.field private blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
.field private index:I
|
|
|
|
|
|
|
|
.field public final nanoTime:J
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(J)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
iput v0, p0, Lkotlinx/coroutines/at$b;->index:I
|
|
|
|
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/bv;->Fn()Lkotlinx/coroutines/bu;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/bu;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlinx/coroutines/au;->ay(J)J
|
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
add-long/2addr v0, p1
|
|
|
|
|
|
|
|
iput-wide v0, p0, Lkotlinx/coroutines/at$b;->nanoTime:J
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final EW()Lkotlinx/coroutines/internal/z;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lkotlinx/coroutines/internal/z<",
|
|
|
|
"*>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/at$b;->blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/internal/z;
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/z;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final declared-synchronized a(Lkotlinx/coroutines/internal/z;Lkotlinx/coroutines/at;)I
|
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlinx/coroutines/internal/z<",
|
|
|
|
"Lkotlinx/coroutines/at$b;",
|
|
|
|
">;",
|
|
|
|
"Lkotlinx/coroutines/at;",
|
|
|
|
")I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v0, "delayed"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "eventLoop"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/at$b;->blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/au;->EY()Lkotlinx/coroutines/internal/u;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_1
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/aa;
|
|
|
|
|
|
|
|
monitor-enter p1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
invoke-static {p2}, Lkotlinx/coroutines/at;->a(Lkotlinx/coroutines/at;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr p2, v1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
|
|
|
|
const-string p2, "node"
|
|
|
|
|
|
|
|
invoke-static {v0, p2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlinx/coroutines/internal/aa;->EW()Lkotlinx/coroutines/internal/z;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
move-object p2, p1
|
|
|
|
|
|
|
|
check-cast p2, Lkotlinx/coroutines/internal/z;
|
|
|
|
|
|
|
|
invoke-interface {v0, p2}, Lkotlinx/coroutines/internal/aa;->a(Lkotlinx/coroutines/internal/z;)V
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iget-object p2, p1, Lkotlinx/coroutines/internal/z;->bmP:[Lkotlinx/coroutines/internal/aa;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
|
|
|
|
const/4 p2, 0x4
|
|
|
|
|
|
|
|
new-array p2, p2, [Lkotlinx/coroutines/internal/aa;
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iput-object p2, p1, Lkotlinx/coroutines/internal/z;->bmP:[Lkotlinx/coroutines/internal/aa;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget v4, p1, Lkotlinx/coroutines/internal/z;->size:I
|
|
|
|
|
|
|
|
array-length v5, p2
|
|
|
|
|
|
|
|
if-lt v4, v5, :cond_3
|
|
|
|
|
|
|
|
iget v4, p1, Lkotlinx/coroutines/internal/z;->size:I
|
|
|
|
|
|
|
|
mul-int/lit8 v4, v4, 0x2
|
|
|
|
|
|
|
|
invoke-static {p2, v4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string v2, "java.util.Arrays.copyOf(this, newSize)"
|
|
|
|
|
|
|
|
invoke-static {p2, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
check-cast v2, [Lkotlinx/coroutines/internal/aa;
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iput-object v2, p1, Lkotlinx/coroutines/internal/z;->bmP:[Lkotlinx/coroutines/internal/aa;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p2, [Lkotlinx/coroutines/internal/aa;
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
iget v2, p1, Lkotlinx/coroutines/internal/z;->size:I
|
|
|
|
|
|
|
|
add-int/lit8 v4, v2, 0x1
|
|
|
|
|
|
|
|
iput v4, p1, Lkotlinx/coroutines/internal/z;->size:I
|
|
|
|
|
|
|
|
aput-object v0, p2, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, v2}, Lkotlinx/coroutines/internal/aa;->setIndex(I)V
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
invoke-virtual {p1, v2}, Lkotlinx/coroutines/internal/z;->dv(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p2, "Check failed."
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {v0, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
:try_start_3
|
|
|
|
monitor-exit p1
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
:try_start_4
|
|
|
|
monitor-exit p1
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lkotlinx/coroutines/internal/z;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlinx/coroutines/internal/z<",
|
|
|
|
"*>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/at$b;->blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/au;->EY()Lkotlinx/coroutines/internal/u;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/at$b;->blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string v0, "Failed requirement."
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic compareTo(Ljava/lang/Object;)I
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/at$b;
|
|
|
|
|
|
|
|
const-string v0, "other"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/at$b;->nanoTime:J
|
|
|
|
|
|
|
|
iget-wide v2, p1, Lkotlinx/coroutines/at$b;->nanoTime:J
|
|
|
|
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long p1, v0, v2
|
|
|
|
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
cmp-long p1, v0, v2
|
|
|
|
|
|
|
|
if-gez p1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final declared-synchronized dispose()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-07-25 02:21:43 +00:00
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/at$b;->blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/au;->EY()Lkotlinx/coroutines/internal/u;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_1
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/internal/z;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast v0, Lkotlinx/coroutines/internal/z;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/internal/aa;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lkotlinx/coroutines/internal/z;->a(Lkotlinx/coroutines/internal/aa;)Z
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/au;->EY()Lkotlinx/coroutines/internal/u;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-07-25 02:21:43 +00:00
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/at$b;->blt:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getIndex()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lkotlinx/coroutines/at$b;->index:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setIndex(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Lkotlinx/coroutines/at$b;->index:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "Delayed[nanos="
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lkotlinx/coroutines/at$b;->nanoTime:J
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x5d
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|