public class com.sun.prism.impl.packrect.RectanglePacker
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.prism.impl.packrect.RectanglePacker
super_class: java.lang.Object
{
private com.sun.prism.Texture backingStore;
descriptor: Lcom/sun/prism/Texture;
flags: (0x0002) ACC_PRIVATE
private java.util.List<com.sun.prism.impl.packrect.Level> levels;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/sun/prism/impl/packrect/Level;>;
private static final int MIN_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int ROUND_UP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private int recentUsedLevelIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int length;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int sizeOffset;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int x;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int y;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean vertical;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(com.sun.prism.Texture, int, int, int, int, boolean);
descriptor: (Lcom/sun/prism/Texture;IIIIZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
sipush 150
invokespecial java.util.ArrayList.<init>:(I)V
putfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
2: aload 0
iconst_0
putfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
3: aload 0
aload 1
putfield com.sun.prism.impl.packrect.RectanglePacker.backingStore:Lcom/sun/prism/Texture;
4: iload 6
ifeq 8
5: aload 0
iload 5
putfield com.sun.prism.impl.packrect.RectanglePacker.length:I
6: aload 0
iload 4
putfield com.sun.prism.impl.packrect.RectanglePacker.size:I
7: goto 10
8: StackMap locals: com.sun.prism.impl.packrect.RectanglePacker com.sun.prism.Texture int int int int int
StackMap stack:
aload 0
iload 4
putfield com.sun.prism.impl.packrect.RectanglePacker.length:I
9: aload 0
iload 5
putfield com.sun.prism.impl.packrect.RectanglePacker.size:I
10: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield com.sun.prism.impl.packrect.RectanglePacker.x:I
11: aload 0
iload 3
putfield com.sun.prism.impl.packrect.RectanglePacker.y:I
12: aload 0
iload 6
putfield com.sun.prism.impl.packrect.RectanglePacker.vertical:Z
13: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/prism/impl/packrect/RectanglePacker;
0 14 1 backingStore Lcom/sun/prism/Texture;
0 14 2 x I
0 14 3 y I
0 14 4 width I
0 14 5 height I
0 14 6 vertical Z
MethodParameters:
Name Flags
backingStore
x
y
width
height
vertical
public void <init>(com.sun.prism.Texture, int, int);
descriptor: (Lcom/sun/prism/Texture;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iconst_0
iconst_0
iload 2
iload 3
iconst_0
invokespecial com.sun.prism.impl.packrect.RectanglePacker.<init>:(Lcom/sun/prism/Texture;IIIIZ)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/prism/impl/packrect/RectanglePacker;
0 2 1 backingStore Lcom/sun/prism/Texture;
0 2 2 width I
0 2 3 height I
MethodParameters:
Name Flags
backingStore
width
height
public final com.sun.prism.Texture getBackingStore();
descriptor: ()Lcom/sun/prism/Texture;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.backingStore:Lcom/sun/prism/Texture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/impl/packrect/RectanglePacker;
public final boolean add(com.sun.javafx.geom.Rectangle);
descriptor: (Lcom/sun/javafx/geom/Rectangle;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=7, locals=10, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.vertical:Z
ifeq 1
aload 1
getfield com.sun.javafx.geom.Rectangle.height:I
goto 2
StackMap locals:
StackMap stack:
1: aload 1
getfield com.sun.javafx.geom.Rectangle.width:I
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.vertical:Z
ifeq 4
aload 1
getfield com.sun.javafx.geom.Rectangle.width:I
goto 5
StackMap locals: int
StackMap stack:
4: aload 1
getfield com.sun.javafx.geom.Rectangle.height:I
StackMap locals:
StackMap stack: int
5: istore 3
start local 3 6: iload 2
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.length:I
if_icmple 7
iconst_0
ireturn
7: StackMap locals: int
StackMap stack:
iload 3
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.size:I
if_icmple 8
iconst_0
ireturn
8: StackMap locals:
StackMap stack:
bipush 8
iload 3
if_icmple 9
bipush 8
goto 10
StackMap locals:
StackMap stack:
9: iload 3
StackMap locals:
StackMap stack: int
10: istore 4
start local 4 11: iload 4
iconst_4
iadd
iconst_1
isub
iload 4
iconst_1
isub
iconst_4
irem
isub
istore 4
12: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 16
13: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.prism.impl.packrect.Level
getfield com.sun.prism.impl.packrect.Level.size:I
iload 4
if_icmpeq 16
14: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
iload 4
invokestatic com.sun.prism.impl.packrect.RectanglePacker.binarySearch:(Ljava/util/List;I)I
istore 5
start local 5 15: goto 17
end local 5 16: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
istore 5
start local 5 17: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.sizeOffset:I
iload 4
iadd
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.size:I
if_icmpgt 18
iconst_1
goto 19
StackMap locals:
StackMap stack:
18: iconst_0
StackMap locals:
StackMap stack: int
19: istore 6
start local 6 20: iload 5
istore 7
start local 7 21: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 8
start local 8 22: goto 30
23: StackMap locals: int int int
StackMap stack:
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.prism.impl.packrect.Level
astore 9
start local 9 24: aload 9
getfield com.sun.prism.impl.packrect.Level.size:I
iload 4
bipush 8
iadd
if_icmple 26
iload 6
ifeq 26
25: goto 31
26: StackMap locals: com.sun.prism.impl.packrect.Level
StackMap stack:
aload 9
aload 1
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.x:I
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.y:I
iload 2
iload 3
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.vertical:Z
invokevirtual com.sun.prism.impl.packrect.Level.add:(Lcom/sun/javafx/geom/Rectangle;IIIIZ)Z
ifeq 29
27: aload 0
iload 7
putfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
28: iconst_1
ireturn
end local 9 29: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
30: iload 7
iload 8
if_icmplt 23
end local 8 end local 7 31: StackMap locals:
StackMap stack:
iload 6
ifne 33
32: iconst_0
ireturn
33: StackMap locals:
StackMap stack:
new com.sun.prism.impl.packrect.Level
dup
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.length:I
iload 4
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.sizeOffset:I
invokespecial com.sun.prism.impl.packrect.Level.<init>:(III)V
astore 7
start local 7 34: aload 0
dup
getfield com.sun.prism.impl.packrect.RectanglePacker.sizeOffset:I
iload 4
iadd
putfield com.sun.prism.impl.packrect.RectanglePacker.sizeOffset:I
35: iload 5
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 39
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.prism.impl.packrect.Level
getfield com.sun.prism.impl.packrect.Level.size:I
iload 4
if_icmpgt 39
36: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
iload 5
iconst_1
iadd
aload 7
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
37: aload 0
iload 5
iconst_1
iadd
putfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
38: goto 41
39: StackMap locals: com.sun.prism.impl.packrect.Level
StackMap stack:
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
iload 5
aload 7
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
40: aload 0
iload 5
putfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
41: StackMap locals:
StackMap stack:
aload 7
aload 1
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.x:I
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.y:I
iload 2
iload 3
aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.vertical:Z
invokevirtual com.sun.prism.impl.packrect.Level.add:(Lcom/sun/javafx/geom/Rectangle;IIIIZ)Z
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lcom/sun/prism/impl/packrect/RectanglePacker;
0 42 1 rect Lcom/sun/javafx/geom/Rectangle;
3 42 2 requestedLength I
6 42 3 requestedSize I
11 42 4 newSize I
15 16 5 newIndex I
17 42 5 newIndex I
20 42 6 newLevelFlag Z
21 31 7 i I
22 31 8 max I
24 29 9 level Lcom/sun/prism/impl/packrect/Level;
34 42 7 newLevel Lcom/sun/prism/impl/packrect/Level;
MethodParameters:
Name Flags
rect
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
invokeinterface java.util.List.clear:()V
1: aload 0
iconst_0
putfield com.sun.prism.impl.packrect.RectanglePacker.sizeOffset:I
2: aload 0
iconst_0
putfield com.sun.prism.impl.packrect.RectanglePacker.recentUsedLevelIndex:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/prism/impl/packrect/RectanglePacker;
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.backingStore:Lcom/sun/prism/Texture;
ifnull 2
1: aload 0
getfield com.sun.prism.impl.packrect.RectanglePacker.backingStore:Lcom/sun/prism/Texture;
invokeinterface com.sun.prism.Texture.dispose:()V
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.prism.impl.packrect.RectanglePacker.backingStore:Lcom/sun/prism/Texture;
3: aload 0
aconst_null
putfield com.sun.prism.impl.packrect.RectanglePacker.levels:Ljava/util/List;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/prism/impl/packrect/RectanglePacker;
private static int binarySearch(java.util.List<com.sun.prism.impl.packrect.Level>, );
descriptor: (Ljava/util/List;I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
iadd
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 0
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: iconst_0
istore 6
start local 6 5: iload 4
ifge 13
6: iconst_0
ireturn
7: StackMap locals: java.util.List int int int int int int
StackMap stack:
iload 3
iload 4
iadd
iconst_2
idiv
istore 5
8: aload 0
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.prism.impl.packrect.Level
getfield com.sun.prism.impl.packrect.Level.size:I
istore 6
9: iload 2
iload 6
if_icmpge 12
10: iload 5
iconst_1
isub
istore 4
11: goto 13
12: StackMap locals:
StackMap stack:
iload 5
iconst_1
iadd
istore 3
13: StackMap locals:
StackMap stack:
iload 3
iload 4
if_icmple 7
14: iload 6
iload 1
if_icmpge 16
15: iload 5
iconst_1
iadd
ireturn
16: StackMap locals:
StackMap stack:
iload 6
iload 1
if_icmple 20
17: iload 5
ifle 18
iload 5
iconst_1
isub
goto 19
StackMap locals:
StackMap stack:
18: iconst_0
StackMap locals:
StackMap stack: int
19: ireturn
20: StackMap locals:
StackMap stack:
iload 5
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 levels Ljava/util/List<Lcom/sun/prism/impl/packrect/Level;>;
0 21 1 k I
1 21 2 key I
2 21 3 from I
3 21 4 to I
4 21 5 mid I
5 21 6 midSize I
Signature: (Ljava/util/List<Lcom/sun/prism/impl/packrect/Level;>;I)I
MethodParameters:
Name Flags
levels
k
}
SourceFile: "RectanglePacker.java"