123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- .class final Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;
- .super Ljava/lang/Object;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lcom/google/gson/internal/LinkedHashTreeMap;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x18
- name = "AvlBuilder"
- .end annotation
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "<K:",
- "Ljava/lang/Object;",
- "V:",
- "Ljava/lang/Object;",
- ">",
- "Ljava/lang/Object;"
- }
- .end annotation
- # instance fields
- .field private leavesSkipped:I
- .field private leavesToSkip:I
- .field private size:I
- .field private stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
- "TK;TV;>;"
- }
- .end annotation
- .end field
- # direct methods
- .method constructor <init>()V
- .locals 0
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- return-void
- .end method
- # virtual methods
- .method add(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V
- .locals 5
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
- "TK;TV;>;)V"
- }
- .end annotation
- const/4 v0, 0x0
- iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- const/4 v0, 0x1
- iput v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I
- iget v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesToSkip:I
- if-lez v1, :cond_0
- iget v2, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- and-int/lit8 v3, v2, 0x1
- if-nez v3, :cond_0
- add-int/2addr v2, v0
- iput v2, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- sub-int/2addr v1, v0
- iput v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesToSkip:I
- iget v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- add-int/2addr v1, v0
- iput v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- :cond_0
- iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- add-int/2addr p1, v0
- iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesToSkip:I
- if-lez p1, :cond_1
- iget v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- and-int/lit8 v2, v1, 0x1
- if-nez v2, :cond_1
- add-int/2addr v1, v0
- iput v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- sub-int/2addr p1, v0
- iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesToSkip:I
- iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- add-int/2addr p1, v0
- iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- :cond_1
- const/4 p1, 0x4
- :goto_0
- iget v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- add-int/lit8 v2, p1, -0x1
- and-int/2addr v1, v2
- if-ne v1, v2, :cond_5
- iget v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- if-nez v1, :cond_2
- iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget-object v2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget-object v3, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget-object v4, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v4, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v2, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v3, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v1, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget v4, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I
- add-int/2addr v4, v0
- iput v4, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I
- iput-object v2, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- goto :goto_2
- :cond_2
- const/4 v2, 0x0
- if-ne v1, v0, :cond_3
- iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget-object v3, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v3, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iput-object v1, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget v4, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I
- add-int/2addr v4, v0
- iput v4, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I
- iput-object v3, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- :goto_1
- iput v2, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- goto :goto_2
- :cond_3
- const/4 v3, 0x2
- if-ne v1, v3, :cond_4
- goto :goto_1
- :cond_4
- :goto_2
- mul-int/lit8 p1, p1, 0x2
- goto :goto_0
- :cond_5
- return-void
- .end method
- .method reset(I)V
- .locals 1
- invoke-static {p1}, Ljava/lang/Integer;->highestOneBit(I)I
- move-result v0
- mul-int/lit8 v0, v0, 0x2
- add-int/lit8 v0, v0, -0x1
- sub-int/2addr v0, p1
- iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesToSkip:I
- const/4 p1, 0x0
- iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->size:I
- iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->leavesSkipped:I
- const/4 p1, 0x0
- iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- return-void
- .end method
- .method root()Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- .locals 2
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "()",
- "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
- "TK;TV;>;"
- }
- .end annotation
- iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->stack:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- iget-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
- if-nez v1, :cond_0
- return-object v0
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
- throw v0
- .end method
|