public class org.graalvm.compiler.core.test.ReverseBytesIntoArrayRegressionTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.test.ReverseBytesIntoArrayRegressionTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
protected static final short SERIAL_COOKIE;
descriptor: S
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 12347
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/ReverseBytesIntoArrayRegressionTest;
private static java.lang.String toHexBytes(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=6, args_size=1
start local 0 0: new java.util.Formatter
dup
invokespecial java.util.Formatter.<init>:()V
astore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: byte[] java.util.Formatter top int int byte[]
StackMap stack:
2: aload 5
iload 3
baload
istore 2
start local 2 3: aload 1
ldc "0x%x "
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
sipush 255
iand
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: aload 1
invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 arr [B
1 7 1 buf Ljava/util/Formatter;
3 4 2 b I
MethodParameters:
Name Flags
arr
protected void assertDeepEquals(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof byte[]
ifeq 2
aload 2
instanceof byte[]
ifeq 2
1: aload 0
aload 1
checkcast byte[]
invokestatic org.graalvm.compiler.core.test.ReverseBytesIntoArrayRegressionTest.toHexBytes:([B)Ljava/lang/String;
aload 2
checkcast byte[]
invokestatic org.graalvm.compiler.core.test.ReverseBytesIntoArrayRegressionTest.toHexBytes:([B)Ljava/lang/String;
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/ReverseBytesIntoArrayRegressionTest;
0 4 1 expected Ljava/lang/Object;
0 4 2 actual Ljava/lang/Object;
MethodParameters:
Name Flags
expected
actual
public void test1();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/ReverseBytesIntoArrayRegressionTest;
RuntimeInvisibleAnnotations:
Test()
public static byte[] serialize(int);
descriptor: (I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: sipush 12347
iload 0
iconst_1
isub
bipush 16
ishl
ior
invokestatic java.lang.Integer.reverseBytes:(I)I
istore 1
start local 1 1: iconst_4
newarray 8
astore 2
start local 2 2: aload 2
iconst_0
iload 1
bipush 24
iushr
sipush 255
iand
i2b
bastore
3: aload 2
iconst_1
iload 1
bipush 16
iushr
sipush 255
iand
i2b
bastore
4: aload 2
iconst_2
iload 1
bipush 8
iushr
sipush 255
iand
i2b
bastore
5: aload 2
iconst_3
iload 1
iconst_0
iushr
sipush 255
iand
i2b
bastore
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 size I
1 7 1 v I
2 7 2 ba [B
MethodParameters:
Name Flags
size
}
SourceFile: "ReverseBytesIntoArrayRegressionTest.java"