mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
239 lines
5.5 KiB
Smali
239 lines
5.5 KiB
Smali
.class public Lcom/alibaba/fastjson/util/IdentityHashMap;
|
|
.super Ljava/lang/Object;
|
|
.source "IdentityHashMap.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"[",
|
|
"Lcom/alibaba/fastjson/util/IdentityHashMap$Entry<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final indexMask:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
|
|
.line 30
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
add-int/lit8 v0, p1, -0x1
|
|
|
|
iput v0, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->indexMask:I
|
|
|
|
.line 32
|
|
new-array p1, p1, [Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
iput-object p1, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public findClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
.line 66
|
|
array-length v2, v1
|
|
|
|
if-ge v0, v2, :cond_3
|
|
|
|
.line 67
|
|
aget-object v1, v1, v0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
move-object v2, v1
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 74
|
|
iget-object v3, v1, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->key:Ljava/lang/reflect/Type;
|
|
|
|
.line 75
|
|
instance-of v4, v3, Ljava/lang/Class;
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 76
|
|
check-cast v3, Ljava/lang/Class;
|
|
|
|
.line 77
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
.line 78
|
|
invoke-virtual {v4, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
return-object v3
|
|
|
|
.line 73
|
|
:cond_1
|
|
iget-object v2, v2, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->next:Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final get(Ljava/lang/reflect/Type;)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/reflect/Type;",
|
|
")TV;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 36
|
|
invoke-static {p1}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->indexMask:I
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
iget-object p0, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
.line 39
|
|
aget-object p0, p0, v0
|
|
|
|
:goto_0
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 40
|
|
iget-object v0, p0, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->key:Ljava/lang/reflect/Type;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 41
|
|
iget-object p0, p0, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->value:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
|
|
.line 39
|
|
:cond_0
|
|
iget-object p0, p0, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->next:Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public put(Ljava/lang/reflect/Type;Ljava/lang/Object;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/reflect/Type;",
|
|
"TV;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 49
|
|
invoke-static {p1}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->indexMask:I
|
|
|
|
and-int/2addr v1, v0
|
|
|
|
iget-object v2, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
.line 52
|
|
aget-object v2, v2, v1
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 53
|
|
iget-object v3, v2, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->key:Ljava/lang/reflect/Type;
|
|
|
|
if-ne p1, v3, :cond_0
|
|
|
|
.line 54
|
|
iput-object p2, v2, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->value:Ljava/lang/Object;
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
.line 52
|
|
:cond_0
|
|
iget-object v2, v2, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;->next:Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
goto :goto_0
|
|
|
|
.line 59
|
|
:cond_1
|
|
new-instance v2, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
iget-object v3, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
aget-object v3, v3, v1
|
|
|
|
invoke-direct {v2, p1, p2, v0, v3}, Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;-><init>(Ljava/lang/reflect/Type;Ljava/lang/Object;ILcom/alibaba/fastjson/util/IdentityHashMap$Entry;)V
|
|
|
|
iget-object p0, p0, Lcom/alibaba/fastjson/util/IdentityHashMap;->buckets:[Lcom/alibaba/fastjson/util/IdentityHashMap$Entry;
|
|
|
|
.line 60
|
|
aput-object v2, p0, v1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|