class com.google.protobuf.RopeByteString$Balancer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.protobuf.RopeByteString$Balancer
super_class: java.lang.Object
{
private final java.util.ArrayDeque<com.google.protobuf.ByteString> prefixesStack;
descriptor: Ljava/util/ArrayDeque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayDeque<Lcom/google/protobuf/ByteString;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/protobuf/RopeByteString$Balancer;
private com.google.protobuf.ByteString balance(com.google.protobuf.ByteString, com.google.protobuf.ByteString);
descriptor: (Lcom/google/protobuf/ByteString;Lcom/google/protobuf/ByteString;)Lcom/google/protobuf/ByteString;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.google.protobuf.RopeByteString$Balancer.doBalance:(Lcom/google/protobuf/ByteString;)V
1: aload 0
aload 2
invokevirtual com.google.protobuf.RopeByteString$Balancer.doBalance:(Lcom/google/protobuf/ByteString;)V
2: aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.pop:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
astore 3
start local 3 3: goto 6
4: StackMap locals: com.google.protobuf.ByteString
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.pop:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
astore 4
start local 4 5: new com.google.protobuf.RopeByteString
dup
aload 4
aload 3
invokespecial com.google.protobuf.RopeByteString.<init>:(Lcom/google/protobuf/ByteString;Lcom/google/protobuf/ByteString;)V
astore 3
end local 4 6: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.isEmpty:()Z
ifeq 4
7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/protobuf/RopeByteString$Balancer;
0 8 1 left Lcom/google/protobuf/ByteString;
0 8 2 right Lcom/google/protobuf/ByteString;
3 8 3 partialString Lcom/google/protobuf/ByteString;
5 6 4 newLeft Lcom/google/protobuf/ByteString;
MethodParameters:
Name Flags
left
right
private void doBalance(com.google.protobuf.ByteString);
descriptor: (Lcom/google/protobuf/ByteString;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.google.protobuf.ByteString.isBalanced:()Z
ifeq 3
1: aload 0
aload 1
invokevirtual com.google.protobuf.RopeByteString$Balancer.insert:(Lcom/google/protobuf/ByteString;)V
2: goto 11
StackMap locals:
StackMap stack:
3: aload 1
instanceof com.google.protobuf.RopeByteString
ifeq 8
4: aload 1
checkcast com.google.protobuf.RopeByteString
astore 2
start local 2 5: aload 0
aload 2
getfield com.google.protobuf.RopeByteString.left:Lcom/google/protobuf/ByteString;
invokevirtual com.google.protobuf.RopeByteString$Balancer.doBalance:(Lcom/google/protobuf/ByteString;)V
6: aload 0
aload 2
getfield com.google.protobuf.RopeByteString.right:Lcom/google/protobuf/ByteString;
invokevirtual com.google.protobuf.RopeByteString$Balancer.doBalance:(Lcom/google/protobuf/ByteString;)V
end local 2 7: goto 11
8: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
9: new java.lang.StringBuilder
dup
ldc "Has a new type of ByteString been created? Found "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/protobuf/RopeByteString$Balancer;
0 12 1 root Lcom/google/protobuf/ByteString;
5 7 2 rbs Lcom/google/protobuf/RopeByteString;
MethodParameters:
Name Flags
root
private void insert(com.google.protobuf.ByteString);
descriptor: (Lcom/google/protobuf/ByteString;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.google.protobuf.ByteString.size:()I
invokevirtual com.google.protobuf.RopeByteString$Balancer.getDepthBinForLength:(I)I
istore 2
start local 2 1: getstatic com.google.protobuf.RopeByteString.minLengthByDepth:[I
iload 2
iconst_1
iadd
iaload
istore 3
start local 3 2: aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.isEmpty:()Z
ifne 3
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.peek:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
invokevirtual com.google.protobuf.ByteString.size:()I
iload 3
if_icmplt 5
3: StackMap locals: int int
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
aload 1
invokevirtual java.util.ArrayDeque.push:(Ljava/lang/Object;)V
4: goto 20
5: StackMap locals:
StackMap stack:
getstatic com.google.protobuf.RopeByteString.minLengthByDepth:[I
iload 2
iaload
istore 4
start local 4 6: aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.pop:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
astore 5
start local 5 7: goto 10
8: StackMap locals: int com.google.protobuf.ByteString
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.pop:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
astore 6
start local 6 9: new com.google.protobuf.RopeByteString
dup
aload 6
aload 5
invokespecial com.google.protobuf.RopeByteString.<init>:(Lcom/google/protobuf/ByteString;Lcom/google/protobuf/ByteString;)V
astore 5
end local 6 10: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.isEmpty:()Z
ifne 11
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.peek:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
invokevirtual com.google.protobuf.ByteString.size:()I
iload 4
if_icmplt 8
11: StackMap locals:
StackMap stack:
new com.google.protobuf.RopeByteString
dup
aload 5
aload 1
invokespecial com.google.protobuf.RopeByteString.<init>:(Lcom/google/protobuf/ByteString;Lcom/google/protobuf/ByteString;)V
astore 5
12: goto 18
13: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual com.google.protobuf.ByteString.size:()I
invokevirtual com.google.protobuf.RopeByteString$Balancer.getDepthBinForLength:(I)I
istore 2
14: getstatic com.google.protobuf.RopeByteString.minLengthByDepth:[I
iload 2
iconst_1
iadd
iaload
istore 3
15: aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.peek:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
invokevirtual com.google.protobuf.ByteString.size:()I
iload 3
if_icmpge 19
16: aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.pop:()Ljava/lang/Object;
checkcast com.google.protobuf.ByteString
astore 6
start local 6 17: new com.google.protobuf.RopeByteString
dup
aload 6
aload 5
invokespecial com.google.protobuf.RopeByteString.<init>:(Lcom/google/protobuf/ByteString;Lcom/google/protobuf/ByteString;)V
astore 5
end local 6 18: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
invokevirtual java.util.ArrayDeque.isEmpty:()Z
ifeq 13
19: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.RopeByteString$Balancer.prefixesStack:Ljava/util/ArrayDeque;
aload 5
invokevirtual java.util.ArrayDeque.push:(Ljava/lang/Object;)V
end local 5 end local 4 20: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/google/protobuf/RopeByteString$Balancer;
0 21 1 byteString Lcom/google/protobuf/ByteString;
1 21 2 depthBin I
2 21 3 binEnd I
6 20 4 binStart I
7 20 5 newTree Lcom/google/protobuf/ByteString;
9 10 6 left Lcom/google/protobuf/ByteString;
17 18 6 left Lcom/google/protobuf/ByteString;
MethodParameters:
Name Flags
byteString
private int getDepthBinForLength(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic com.google.protobuf.RopeByteString.minLengthByDepth:[I
iload 1
invokestatic java.util.Arrays.binarySearch:([II)I
istore 2
start local 2 1: iload 2
ifge 4
2: iload 2
iconst_1
iadd
ineg
istore 3
start local 3 3: iload 3
iconst_1
isub
istore 2
end local 3 4: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/protobuf/RopeByteString$Balancer;
0 5 1 length I
1 5 2 depth I
3 4 3 insertionPoint I
MethodParameters:
Name Flags
length
}
SourceFile: "RopeByteString.java"
NestHost: com.google.protobuf.RopeByteString
InnerClasses:
private Balancer = com.google.protobuf.RopeByteString$Balancer of com.google.protobuf.RopeByteString