class com.sun.prism.es2.BufferFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.prism.es2.BufferFactory
super_class: java.lang.Object
{
static final int SIZEOF_BYTE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
static final int SIZEOF_SHORT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 2
static final int SIZEOF_CHAR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 2
static final int SIZEOF_INT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
static final int SIZEOF_FLOAT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
static final int SIZEOF_LONG;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
static final int SIZEOF_DOUBLE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final boolean isLittleEndian;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=0
0: iconst_4
invokestatic com.sun.prism.es2.BufferFactory.newDirectByteBuffer:(I)Ljava/nio/ByteBuffer;
astore 0
start local 0 1: aload 0
invokevirtual java.nio.ByteBuffer.asIntBuffer:()Ljava/nio/IntBuffer;
astore 1
start local 1 2: aload 0
invokevirtual java.nio.ByteBuffer.asShortBuffer:()Ljava/nio/ShortBuffer;
astore 2
start local 2 3: aload 1
iconst_0
ldc 168496141
invokevirtual java.nio.IntBuffer.put:(II)Ljava/nio/IntBuffer;
pop
4: sipush 3085
aload 2
iconst_0
invokevirtual java.nio.ShortBuffer.get:(I)S
if_icmpne 5
iconst_1
goto 6
StackMap locals: java.nio.ByteBuffer java.nio.IntBuffer java.nio.ShortBuffer
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: putstatic com.sun.prism.es2.BufferFactory.isLittleEndian:Z
end local 2 end local 1 end local 0 7: return
LocalVariableTable:
Start End Slot Name Signature
1 7 0 tst_b Ljava/nio/ByteBuffer;
2 7 1 tst_i Ljava/nio/IntBuffer;
3 7 2 tst_s Ljava/nio/ShortBuffer;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/es2/BufferFactory;
static boolean isLittleEndian();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.sun.prism.es2.BufferFactory.isLittleEndian:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
static java.nio.ByteBuffer newDirectByteBuffer(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
invokestatic com.sun.prism.es2.BufferFactory.nativeOrder:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
MethodParameters:
Name Flags
size
static java.nio.ByteBuffer nativeOrder(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buf
static boolean isDirect(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.ByteBuffer
ifeq 4
3: aload 0
checkcast java.nio.ByteBuffer
invokevirtual java.nio.ByteBuffer.isDirect:()Z
ireturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.FloatBuffer
ifeq 6
5: aload 0
checkcast java.nio.FloatBuffer
invokevirtual java.nio.FloatBuffer.isDirect:()Z
ireturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.DoubleBuffer
ifeq 8
7: aload 0
checkcast java.nio.DoubleBuffer
invokevirtual java.nio.DoubleBuffer.isDirect:()Z
ireturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.CharBuffer
ifeq 10
9: aload 0
checkcast java.nio.CharBuffer
invokevirtual java.nio.CharBuffer.isDirect:()Z
ireturn
10: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.ShortBuffer
ifeq 12
11: aload 0
checkcast java.nio.ShortBuffer
invokevirtual java.nio.ShortBuffer.isDirect:()Z
ireturn
12: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.IntBuffer
ifeq 14
13: aload 0
checkcast java.nio.IntBuffer
invokevirtual java.nio.IntBuffer.isDirect:()Z
ireturn
14: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.LongBuffer
ifeq 16
15: aload 0
checkcast java.nio.LongBuffer
invokevirtual java.nio.LongBuffer.isDirect:()Z
ireturn
16: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected buffer type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 buf Ljava/lang/Object;
MethodParameters:
Name Flags
buf
static int getDirectBufferByteOffset(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.Buffer
ifeq 18
3: aload 0
checkcast java.nio.Buffer
invokevirtual java.nio.Buffer.position:()I
istore 1
start local 1 4: aload 0
instanceof java.nio.ByteBuffer
ifeq 6
5: iload 1
ireturn
6: StackMap locals: int
StackMap stack:
aload 0
instanceof java.nio.FloatBuffer
ifeq 8
7: iload 1
iconst_4
imul
ireturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.IntBuffer
ifeq 10
9: iload 1
iconst_4
imul
ireturn
10: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.ShortBuffer
ifeq 12
11: iload 1
iconst_2
imul
ireturn
12: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.DoubleBuffer
ifeq 14
13: iload 1
bipush 8
imul
ireturn
14: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.LongBuffer
ifeq 16
15: iload 1
bipush 8
imul
ireturn
16: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.CharBuffer
ifeq 18
17: iload 1
iconst_2
imul
ireturn
end local 1 18: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Disallowed array backing store type in buffer "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 buf Ljava/lang/Object;
4 18 1 pos I
MethodParameters:
Name Flags
buf
static java.lang.Object getArray(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.ByteBuffer
ifeq 4
3: aload 0
checkcast java.nio.ByteBuffer
invokevirtual java.nio.ByteBuffer.array:()[B
areturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.FloatBuffer
ifeq 6
5: aload 0
checkcast java.nio.FloatBuffer
invokevirtual java.nio.FloatBuffer.array:()[F
areturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.IntBuffer
ifeq 8
7: aload 0
checkcast java.nio.IntBuffer
invokevirtual java.nio.IntBuffer.array:()[I
areturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.ShortBuffer
ifeq 10
9: aload 0
checkcast java.nio.ShortBuffer
invokevirtual java.nio.ShortBuffer.array:()[S
areturn
10: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.DoubleBuffer
ifeq 12
11: aload 0
checkcast java.nio.DoubleBuffer
invokevirtual java.nio.DoubleBuffer.array:()[D
areturn
12: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.LongBuffer
ifeq 14
13: aload 0
checkcast java.nio.LongBuffer
invokevirtual java.nio.LongBuffer.array:()[J
areturn
14: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.CharBuffer
ifeq 16
15: aload 0
checkcast java.nio.CharBuffer
invokevirtual java.nio.CharBuffer.array:()[C
areturn
16: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Disallowed array backing store type in buffer "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
17: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 buf Ljava/lang/Object;
MethodParameters:
Name Flags
buf
static int getIndirectBufferByteOffset(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.Buffer
ifeq 18
3: aload 0
checkcast java.nio.Buffer
invokevirtual java.nio.Buffer.position:()I
istore 1
start local 1 4: aload 0
instanceof java.nio.ByteBuffer
ifeq 6
5: aload 0
checkcast java.nio.ByteBuffer
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
iload 1
iadd
ireturn
6: StackMap locals: int
StackMap stack:
aload 0
instanceof java.nio.FloatBuffer
ifeq 8
7: iconst_4
aload 0
checkcast java.nio.FloatBuffer
invokevirtual java.nio.FloatBuffer.arrayOffset:()I
iload 1
iadd
imul
ireturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.IntBuffer
ifeq 10
9: iconst_4
aload 0
checkcast java.nio.IntBuffer
invokevirtual java.nio.IntBuffer.arrayOffset:()I
iload 1
iadd
imul
ireturn
10: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.ShortBuffer
ifeq 12
11: iconst_2
aload 0
checkcast java.nio.ShortBuffer
invokevirtual java.nio.ShortBuffer.arrayOffset:()I
iload 1
iadd
imul
ireturn
12: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.DoubleBuffer
ifeq 14
13: bipush 8
aload 0
checkcast java.nio.DoubleBuffer
invokevirtual java.nio.DoubleBuffer.arrayOffset:()I
iload 1
iadd
imul
ireturn
14: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.LongBuffer
ifeq 16
15: bipush 8
aload 0
checkcast java.nio.LongBuffer
invokevirtual java.nio.LongBuffer.arrayOffset:()I
iload 1
iadd
imul
ireturn
16: StackMap locals:
StackMap stack:
aload 0
instanceof java.nio.CharBuffer
ifeq 18
17: iconst_2
aload 0
checkcast java.nio.CharBuffer
invokevirtual java.nio.CharBuffer.arrayOffset:()I
iload 1
iadd
imul
ireturn
end local 1 18: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Unknown buffer type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 buf Ljava/lang/Object;
4 18 1 pos I
MethodParameters:
Name Flags
buf
}
SourceFile: "BufferFactory.java"