public class org.graalvm.compiler.core.test.EnumSwitchTest 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.EnumSwitchTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static volatile int[] $SWITCH_TABLE$org$graalvm$compiler$core$test$EnumSwitchTest$E;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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/EnumSwitchTest;
public int test1Snippet(org.graalvm.compiler.core.test.EnumSwitchTest$E);
descriptor: (Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.graalvm.compiler.core.test.EnumSwitchTest.$SWITCH_TABLE$org$graalvm$compiler$core$test$EnumSwitchTest$E:()[I
aload 1
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iaload
tableswitch { // 1 - 21
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
10: 10
11: 11
12: 12
13: 13
14: 14
15: 15
16: 16
17: 17
18: 18
19: 19
20: 20
21: 21
default: 22
}
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_2
ireturn
4: StackMap locals:
StackMap stack:
iconst_3
ireturn
5: StackMap locals:
StackMap stack:
iconst_4
ireturn
6: StackMap locals:
StackMap stack:
iconst_5
ireturn
7: StackMap locals:
StackMap stack:
bipush 6
ireturn
8: StackMap locals:
StackMap stack:
bipush 7
ireturn
9: StackMap locals:
StackMap stack:
bipush 8
ireturn
10: StackMap locals:
StackMap stack:
bipush 9
ireturn
11: StackMap locals:
StackMap stack:
bipush 10
ireturn
12: StackMap locals:
StackMap stack:
bipush 11
ireturn
13: StackMap locals:
StackMap stack:
bipush 12
ireturn
14: StackMap locals:
StackMap stack:
bipush 13
ireturn
15: StackMap locals:
StackMap stack:
bipush 14
ireturn
16: StackMap locals:
StackMap stack:
bipush 15
ireturn
17: StackMap locals:
StackMap stack:
bipush 16
ireturn
18: StackMap locals:
StackMap stack:
bipush 17
ireturn
19: StackMap locals:
StackMap stack:
bipush 18
ireturn
20: StackMap locals:
StackMap stack:
bipush 19
ireturn
21: StackMap locals:
StackMap stack:
bipush 20
ireturn
22: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/graalvm/compiler/core/test/EnumSwitchTest;
0 23 1 e Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
MethodParameters:
Name Flags
e
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/EnumSwitchTest;
RuntimeInvisibleAnnotations:
Test()
public int test2Snippet(org.graalvm.compiler.core.test.EnumSwitchTest$E);
descriptor: (Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.graalvm.compiler.core.test.EnumSwitchTest.$SWITCH_TABLE$org$graalvm$compiler$core$test$EnumSwitchTest$E:()[I
aload 1
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iaload
lookupswitch { // 6
6: 1
9: 2
10: 2
11: 2
20: 1
21: 1
default: 3
}
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_2
ireturn
3: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/EnumSwitchTest;
0 4 1 e Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
MethodParameters:
Name Flags
e
public void test2();
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/EnumSwitchTest;
RuntimeInvisibleAnnotations:
Test()
protected org.graalvm.compiler.phases.tiers.Suites createSuites(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/phases/tiers/Suites;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.createSuites:(Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/phases/tiers/Suites;
astore 2
start local 2 1: aload 2
invokevirtual org.graalvm.compiler.phases.tiers.Suites.getHighTier:()Lorg/graalvm/compiler/phases/PhaseSuite;
new org.graalvm.compiler.core.test.EnumSwitchTest$1
dup
aload 0
invokespecial org.graalvm.compiler.core.test.EnumSwitchTest$1.<init>:(Lorg/graalvm/compiler/core/test/EnumSwitchTest;)V
invokevirtual org.graalvm.compiler.phases.PhaseSuite.prependPhase:(Lorg/graalvm/compiler/phases/BasePhase;)V
2: aload 2
invokevirtual org.graalvm.compiler.phases.tiers.Suites.getHighTier:()Lorg/graalvm/compiler/phases/PhaseSuite;
ldc Lorg/graalvm/compiler/phases/common/RemoveValueProxyPhase;
invokevirtual org.graalvm.compiler.phases.PhaseSuite.findPhase:(Ljava/lang/Class;)Ljava/util/ListIterator;
new org.graalvm.compiler.core.test.EnumSwitchTest$2
dup
aload 0
invokespecial org.graalvm.compiler.core.test.EnumSwitchTest$2.<init>:(Lorg/graalvm/compiler/core/test/EnumSwitchTest;)V
invokeinterface java.util.ListIterator.add:(Ljava/lang/Object;)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/EnumSwitchTest;
0 4 1 options Lorg/graalvm/compiler/options/OptionValues;
1 4 2 ret Lorg/graalvm/compiler/phases/tiers/Suites;
MethodParameters:
Name Flags
options
static int[] $SWITCH_TABLE$org$graalvm$compiler$core$test$EnumSwitchTest$E();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.graalvm.compiler.core.test.EnumSwitchTest.$SWITCH_TABLE$org$graalvm$compiler$core$test$EnumSwitchTest$E:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.graalvm.compiler.core.test.EnumSwitchTest$E.values:()[Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E0:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E1:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E10:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 11
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E11:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 12
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E12:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 13
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E13:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 14
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E14:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 15
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E15:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 16
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E16:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 17
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E17:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 18
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E18:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 19
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E19:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 20
iastore
36: goto 38
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
37: pop
StackMap locals:
StackMap stack:
38: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E2:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iconst_3
iastore
39: goto 41
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
40: pop
StackMap locals:
StackMap stack:
41: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E20:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 21
iastore
42: goto 44
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
43: pop
StackMap locals:
StackMap stack:
44: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E3:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iconst_4
iastore
45: goto 47
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
46: pop
StackMap locals:
StackMap stack:
47: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E4:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
iconst_5
iastore
48: goto 50
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
49: pop
StackMap locals:
StackMap stack:
50: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E5:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 6
iastore
51: goto 53
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
52: pop
StackMap locals:
StackMap stack:
53: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E6:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 7
iastore
54: goto 56
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
55: pop
StackMap locals:
StackMap stack:
56: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E7:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 8
iastore
57: goto 59
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
58: pop
StackMap locals:
StackMap stack:
59: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E8:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 9
iastore
60: goto 62
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
61: pop
StackMap locals:
StackMap stack:
62: aload 0
getstatic org.graalvm.compiler.core.test.EnumSwitchTest$E.E9:Lorg/graalvm/compiler/core/test/EnumSwitchTest$E;
invokevirtual org.graalvm.compiler.core.test.EnumSwitchTest$E.ordinal:()I
bipush 10
iastore
63: goto 65
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
64: pop
StackMap locals:
StackMap stack:
65: aload 0
dup
putstatic org.graalvm.compiler.core.test.EnumSwitchTest.$SWITCH_TABLE$org$graalvm$compiler$core$test$EnumSwitchTest$E:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
35 36 37 Class java.lang.NoSuchFieldError
38 39 40 Class java.lang.NoSuchFieldError
41 42 43 Class java.lang.NoSuchFieldError
44 45 46 Class java.lang.NoSuchFieldError
47 48 49 Class java.lang.NoSuchFieldError
50 51 52 Class java.lang.NoSuchFieldError
53 54 55 Class java.lang.NoSuchFieldError
56 57 58 Class java.lang.NoSuchFieldError
59 60 61 Class java.lang.NoSuchFieldError
62 63 64 Class java.lang.NoSuchFieldError
}
SourceFile: "EnumSwitchTest.java"
NestMembers:
org.graalvm.compiler.core.test.EnumSwitchTest$1 org.graalvm.compiler.core.test.EnumSwitchTest$2 org.graalvm.compiler.core.test.EnumSwitchTest$E
InnerClasses:
org.graalvm.compiler.core.test.EnumSwitchTest$1
org.graalvm.compiler.core.test.EnumSwitchTest$2
final E = org.graalvm.compiler.core.test.EnumSwitchTest$E of org.graalvm.compiler.core.test.EnumSwitchTest