201 lines
5 KiB
Smali
201 lines
5 KiB
Smali
.class public final Lkotlin/coroutines/jvm/internal/e;
|
|
.super Ljava/lang/Object;
|
|
.source "DebugMetadata.kt"
|
|
|
|
|
|
# direct methods
|
|
.method private static final a(Lkotlin/coroutines/jvm/internal/a;)I
|
|
.locals 2
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "label"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "field"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p0, Ljava/lang/Integer;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_0
|
|
check-cast p0, Ljava/lang/Integer;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
sub-int/2addr p0, v1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
const/4 p0, -0x1
|
|
|
|
:goto_1
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final getStackTraceElement(Lkotlin/coroutines/jvm/internal/a;)Ljava/lang/StackTraceElement;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$getStackTraceElementImpl"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Lkotlin/coroutines/jvm/internal/d;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lkotlin/coroutines/jvm/internal/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Lkotlin/coroutines/jvm/internal/d;->v()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-gt v1, v2, :cond_3
|
|
|
|
invoke-static {p0}, Lkotlin/coroutines/jvm/internal/e;->a(Lkotlin/coroutines/jvm/internal/a;)I
|
|
|
|
move-result v1
|
|
|
|
if-gez v1, :cond_1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-interface {v0}, Lkotlin/coroutines/jvm/internal/d;->l()[I
|
|
|
|
move-result-object v2
|
|
|
|
aget v1, v2, v1
|
|
|
|
:goto_0
|
|
sget-object v2, Lkotlin/coroutines/jvm/internal/g;->bhe:Lkotlin/coroutines/jvm/internal/g;
|
|
|
|
invoke-virtual {v2, p0}, Lkotlin/coroutines/jvm/internal/g;->getModuleName(Lkotlin/coroutines/jvm/internal/a;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
invoke-interface {v0}, Lkotlin/coroutines/jvm/internal/d;->c()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p0, 0x2f
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-interface {v0}, Lkotlin/coroutines/jvm/internal/d;->c()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_1
|
|
new-instance v2, Ljava/lang/StackTraceElement;
|
|
|
|
invoke-interface {v0}, Lkotlin/coroutines/jvm/internal/d;->m()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v0}, Lkotlin/coroutines/jvm/internal/d;->f()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, p0, v3, v0, v1}, Ljava/lang/StackTraceElement;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
|
|
|
|
return-object v2
|
|
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "Debug metadata version mismatch. Expected: 1"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, ", got "
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, ". Please update the Kotlin standard library."
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|