279 lines
7.2 KiB
Smali
279 lines
7.2 KiB
Smali
.class public abstract Lkotlin/coroutines/jvm/internal/a;
|
|
.super Ljava/lang/Object;
|
|
.source "ContinuationImpl.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
.implements Lkotlin/coroutines/Continuation;
|
|
.implements Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/io/Serializable;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Ljava/lang/Object;",
|
|
">;",
|
|
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final completion:Lkotlin/coroutines/Continuation;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lkotlin/coroutines/jvm/internal/a;->completion:Lkotlin/coroutines/Continuation;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"*>;)",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string p1, "completion"
|
|
|
|
invoke-static {p2, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "create(Any?;Continuation) has not been overridden"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public create(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"*>;)",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "completion"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "create(Continuation) has not been overridden"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getCallerFrame()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lkotlin/coroutines/jvm/internal/a;->completion:Lkotlin/coroutines/Continuation;
|
|
|
|
instance-of v1, v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
check-cast v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getCompletion()Lkotlin/coroutines/Continuation;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lkotlin/coroutines/jvm/internal/a;->completion:Lkotlin/coroutines/Continuation;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getStackTraceElement()Ljava/lang/StackTraceElement;
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lkotlin/coroutines/jvm/internal/e;->getStackTraceElement(Lkotlin/coroutines/jvm/internal/a;)Ljava/lang/StackTraceElement;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected abstract invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.end method
|
|
|
|
.method protected releaseIntercepted()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final resumeWith(Ljava/lang/Object;)V
|
|
.locals 3
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lkotlin/coroutines/jvm/internal/a;
|
|
|
|
:goto_0
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Lkotlin/coroutines/Continuation;
|
|
|
|
invoke-static {v1}, Lkotlin/coroutines/jvm/internal/f;->probeCoroutineResumed(Lkotlin/coroutines/Continuation;)V
|
|
|
|
iget-object v1, v0, Lkotlin/coroutines/jvm/internal/a;->completion:Lkotlin/coroutines/Continuation;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {v0, p1}, Lkotlin/coroutines/jvm/internal/a;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {}, Lkotlin/coroutines/a/b;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
if-ne p1, v2, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sget-object v2, Lkotlin/m;->bgl:Lkotlin/m$a;
|
|
|
|
invoke-static {p1}, Lkotlin/m;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
sget-object v2, Lkotlin/m;->bgl:Lkotlin/m$a;
|
|
|
|
invoke-static {p1}, Lkotlin/n;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lkotlin/m;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
invoke-virtual {v0}, Lkotlin/coroutines/jvm/internal/a;->releaseIntercepted()V
|
|
|
|
instance-of v0, v1, Lkotlin/coroutines/jvm/internal/a;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
move-object v0, v1
|
|
|
|
check-cast v0, Lkotlin/coroutines/jvm/internal/a;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-interface {v1, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Continuation at "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lkotlin/coroutines/jvm/internal/a;->getStackTraceElement()Ljava/lang/StackTraceElement;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
check-cast v1, Ljava/io/Serializable;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|