public final class jdk.tools.jaotc.utils.NativeOrderOutputStream
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jaotc.utils.NativeOrderOutputStream
super_class: java.lang.Object
{
private final jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream os;
descriptor: Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] backingArray;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.ByteBuffer buffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<jdk.tools.jaotc.utils.NativeOrderOutputStream$Patchable> patches;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljdk/tools/jaotc/utils/NativeOrderOutputStream$Patchable;>;
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.tools.jaotc.utils.NativeOrderOutputStream.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream
dup
invokespecial jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.<init>:()V
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
2: aload 0
bipush 8
newarray 8
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.backingArray:[B
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.patches:Ljava/util/List;
4: aload 0
aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.backingArray:[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.buffer:Ljava/nio/ByteBuffer;
5: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.buffer:Ljava/nio/ByteBuffer;
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
public static int alignUp(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
invokestatic java.lang.Integer.bitCount:(I)I
iconst_1
if_icmpeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Must be a power of 2"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
iload 1
iconst_1
isub
iadd
iload 1
ineg
iand
istore 2
start local 2 3: iload 2
iload 0
if_icmplt 4
iload 2
iload 1
iconst_1
isub
iand
ifeq 5
4: StackMap locals: int
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Error aligning: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " -> "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 value I
0 6 1 alignment I
3 6 2 aligned I
MethodParameters:
Name Flags
value
alignment
public jdk.tools.jaotc.utils.NativeOrderOutputStream putLong(long);
descriptor: (J)Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.fillLong:(J)V
1: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.backingArray:[B
iconst_0
bipush 8
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.write:([BII)V
2: aload 0
dup
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
bipush 8
iadd
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 4 1 value J
MethodParameters:
Name Flags
value
public jdk.tools.jaotc.utils.NativeOrderOutputStream putInt(int);
descriptor: (I)Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.fillInt:(I)V
1: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.backingArray:[B
iconst_0
iconst_4
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.write:([BII)V
2: aload 0
dup
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
iconst_4
iadd
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 4 1 value I
MethodParameters:
Name Flags
value
public jdk.tools.jaotc.utils.NativeOrderOutputStream align(int);
descriptor: (I)Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.position:()I
iload 1
invokestatic jdk.tools.jaotc.utils.NativeOrderOutputStream.alignUp:(II)I
istore 2
start local 2 1: iload 2
aload 0
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.position:()I
isub
istore 3
start local 3 2: iload 3
ifle 6
3: iload 3
newarray 8
astore 4
start local 4 4: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
aload 4
iconst_0
aload 4
arraylength
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.write:([BII)V
5: aload 0
dup
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
iload 3
iadd
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
end local 4 6: StackMap locals: int int
StackMap stack:
getstatic jdk.tools.jaotc.utils.NativeOrderOutputStream.$assertionsDisabled:Z
ifne 7
iload 2
aload 0
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.position:()I
if_icmpeq 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 8 1 alignment I
1 8 2 aligned I
2 8 3 diff I
4 6 4 b [B
MethodParameters:
Name Flags
alignment
public int position();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
private void fillInt(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.buffer:Ljava/nio/ByteBuffer;
iconst_0
iload 1
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 2 1 value I
MethodParameters:
Name Flags
value
private void fillLong(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.buffer:Ljava/nio/ByteBuffer;
iconst_0
lload 1
invokevirtual java.nio.ByteBuffer.putLong:(IJ)Ljava/nio/ByteBuffer;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 2 1 value J
MethodParameters:
Name Flags
value
private jdk.tools.jaotc.utils.NativeOrderOutputStream putAt(byte[], int, int);
descriptor: ([BII)Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
aload 1
iload 2
iload 3
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.writeAt:([BII)V
1: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 2 1 data [B
0 2 2 length I
0 2 3 position I
MethodParameters:
Name Flags
data
length
position
public jdk.tools.jaotc.utils.NativeOrderOutputStream put(byte[]);
descriptor: ([B)Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
aload 1
iconst_0
aload 1
arraylength
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.write:([BII)V
1: aload 0
dup
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
aload 1
arraylength
iadd
putfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
0 3 1 data [B
MethodParameters:
Name Flags
data
public byte[] array();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.checkPatches:()V
1: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.toByteArray:()[B
astore 1
start local 1 2: getstatic jdk.tools.jaotc.utils.NativeOrderOutputStream.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.size:I
aload 1
arraylength
if_icmpeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: byte[]
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
2 4 1 bytes [B
private void checkPatches();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.patches:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: jdk.tools.jaotc.utils.NativeOrderOutputStream top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.tools.jaotc.utils.NativeOrderOutputStream$Patchable
astore 1
start local 1 2: aload 1
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$Patchable.patched:()Z
ifne 4
3: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Not all patches patched, missing at offset: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
2 4 1 patch Ljdk/tools/jaotc/utils/NativeOrderOutputStream$Patchable;
public jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableInt patchableInt();
descriptor: ()Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableInt;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.os:Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableByteOutputStream;
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream.size:()I
istore 1
start local 1 1: new jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableInt
dup
aload 0
iload 1
invokespecial jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableInt.<init>:(Ljdk/tools/jaotc/utils/NativeOrderOutputStream;I)V
astore 2
start local 2 2: aload 0
iconst_0
invokevirtual jdk.tools.jaotc.utils.NativeOrderOutputStream.putInt:(I)Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
pop
3: aload 0
getfield jdk.tools.jaotc.utils.NativeOrderOutputStream.patches:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jaotc/utils/NativeOrderOutputStream;
1 5 1 position I
2 5 2 patchableInt Ljdk/tools/jaotc/utils/NativeOrderOutputStream$PatchableInt;
}
SourceFile: "NativeOrderOutputStream.java"
NestMembers:
jdk.tools.jaotc.utils.NativeOrderOutputStream$Patchable jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableInt
InnerClasses:
public abstract Patchable = jdk.tools.jaotc.utils.NativeOrderOutputStream$Patchable of jdk.tools.jaotc.utils.NativeOrderOutputStream
private PatchableByteOutputStream = jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableByteOutputStream of jdk.tools.jaotc.utils.NativeOrderOutputStream
public PatchableInt = jdk.tools.jaotc.utils.NativeOrderOutputStream$PatchableInt of jdk.tools.jaotc.utils.NativeOrderOutputStream