public class org.graalvm.compiler.options.OptionsParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.options.OptionsParser
super_class: java.lang.Object
{
private static final int PROPERTY_LINE_WIDTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 80
private static final int PROPERTY_HELP_INDENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final float FUZZY_MATCH_THRESHOLD;
descriptor: F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0.7
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 Lorg/graalvm/compiler/options/OptionsParser;
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 org.graalvm.compiler.options.OptionsParser.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/graalvm/compiler/options/OptionsParser;
public static void parseOptions(java.util.Map<java.lang.String, java.lang.String>, org.graalvm.compiler.options.OptionsParser$OptionConsumer, java.util.ServiceLoader<org.graalvm.compiler.options.OptionDescriptors>);
descriptor: (Ljava/util/Map;Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;Ljava/util/ServiceLoader;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 5
aload 0
invokeinterface java.util.Map.isEmpty:()Z
ifne 5
1: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: java.util.Map org.graalvm.compiler.options.OptionsParser$OptionConsumer java.util.ServiceLoader top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 3: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.String
aload 1
aload 2
invokestatic org.graalvm.compiler.options.OptionsParser.parseOption:(Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;Ljava/util/ServiceLoader;)V
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: StackMap locals: java.util.Map org.graalvm.compiler.options.OptionsParser$OptionConsumer java.util.ServiceLoader
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 optionSettings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 6 1 setter Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;
0 6 2 loader Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;
3 4 3 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;)V
MethodParameters:
Name Flags
optionSettings
setter
loader
public static void parseOptionSettingTo(java.lang.String, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/Map;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: iload 2
iconst_m1
if_icmpne 3
2: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Option setting has does not match the pattern <name>=<value>: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 1
aload 0
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 optionSetting Ljava/lang/String;
0 5 1 dst Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 5 2 eqIndex I
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
optionSetting
dst
private static org.graalvm.compiler.options.OptionDescriptor lookup(java.util.ServiceLoader<org.graalvm.compiler.options.OptionDescriptors>, java.lang.String);
descriptor: (Ljava/util/ServiceLoader;Ljava/lang/String;)Lorg/graalvm/compiler/options/OptionDescriptor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.util.ServiceLoader java.lang.String top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptors
astore 2
start local 2 2: aload 2
aload 1
invokeinterface org.graalvm.compiler.options.OptionDescriptors.get:(Ljava/lang/String;)Lorg/graalvm/compiler/options/OptionDescriptor;
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 4
areturn
end local 4 end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 loader Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;
0 7 1 name Ljava/lang/String;
2 5 2 optionDescriptors Lorg/graalvm/compiler/options/OptionDescriptors;
3 5 4 desc Lorg/graalvm/compiler/options/OptionDescriptor;
Signature: (Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;Ljava/lang/String;)Lorg/graalvm/compiler/options/OptionDescriptor;
MethodParameters:
Name Flags
loader
name
private static void parseOption(java.lang.String, java.lang.String, org.graalvm.compiler.options.OptionsParser$OptionConsumer, java.util.ServiceLoader<org.graalvm.compiler.options.OptionDescriptors>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;Ljava/util/ServiceLoader;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 0
invokestatic org.graalvm.compiler.options.OptionsParser.lookup:(Ljava/util/ServiceLoader;Ljava/lang/String;)Lorg/graalvm/compiler/options/OptionDescriptor;
astore 4
start local 4 1: aload 4
ifnonnull 12
2: aload 3
aload 0
invokestatic org.graalvm.compiler.options.OptionsParser.fuzzyMatch:(Ljava/util/ServiceLoader;Ljava/lang/String;)Ljava/util/List;
astore 5
start local 5 3: new java.util.Formatter
dup
invokespecial java.util.Formatter.<init>:()V
astore 6
start local 6 4: aload 6
ldc "Could not find option %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
5: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 11
6: aload 6
ldc "%nDid you mean one of the following?"
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
7: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 10
StackMap locals: java.lang.String java.lang.String org.graalvm.compiler.options.OptionsParser$OptionConsumer java.util.ServiceLoader org.graalvm.compiler.options.OptionDescriptor java.util.List java.util.Formatter top java.util.Iterator
StackMap stack:
8: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptor
astore 7
start local 7 9: aload 6
ldc "%n %s=<value>"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getName:()Ljava/lang/String;
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
end local 7 10: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: StackMap locals: java.lang.String java.lang.String org.graalvm.compiler.options.OptionsParser$OptionConsumer java.util.ServiceLoader org.graalvm.compiler.options.OptionDescriptor java.util.List java.util.Formatter
StackMap stack:
new java.lang.IllegalArgumentException
dup
aload 6
invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 5 12: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getType:()Ljava/lang/Class;
astore 5
start local 5 13: aload 5
ldc Ljava/lang/Boolean;
if_acmpne 21
14: ldc "true"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
15: getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
astore 6
start local 6 16: goto 41
end local 6 StackMap locals: java.lang.Class
StackMap stack:
17: ldc "false"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 20
18: getstatic java.lang.Boolean.FALSE:Ljava/lang/Boolean;
astore 6
start local 6 19: goto 41
end local 6 20: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Boolean option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' must have value \"true\" or \"false\", not \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 5
ldc Ljava/lang/String;
if_acmpeq 22
ldc Ljava/lang/Enum;
aload 5
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 24
22: StackMap locals:
StackMap stack:
aload 1
astore 6
start local 6 23: goto 41
end local 6 24: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 26
25: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Non empty value required for option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
aload 5
ldc Ljava/lang/Float;
if_acmpne 29
27: aload 1
invokestatic java.lang.Float.parseFloat:(Ljava/lang/String;)F
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
astore 6
start local 6 28: goto 41
end local 6 StackMap locals:
StackMap stack:
29: aload 5
ldc Ljava/lang/Double;
if_acmpne 32
30: aload 1
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
astore 6
start local 6 31: goto 41
end local 6 StackMap locals:
StackMap stack:
32: aload 5
ldc Ljava/lang/Integer;
if_acmpne 35
33: aload 1
invokestatic org.graalvm.compiler.options.OptionsParser.parseLong:(Ljava/lang/String;)J
l2i
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 6
start local 6 34: goto 41
end local 6 StackMap locals:
StackMap stack:
35: aload 5
ldc Ljava/lang/Long;
if_acmpne 38
36: aload 1
invokestatic org.graalvm.compiler.options.OptionsParser.parseLong:(Ljava/lang/String;)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 6
start local 6 37: goto 41
end local 6 38: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Wrong value for option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
40: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Value for option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' has invalid number format: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 6 41: StackMap locals: java.lang.Object
StackMap stack:
aload 2
ifnonnull 44
42: aload 4
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getOptionValue:()Lorg/graalvm/compiler/options/OptionValue;
aload 6
invokevirtual org.graalvm.compiler.options.OptionValue.setValue:(Ljava/lang/Object;)V
43: goto 45
44: StackMap locals:
StackMap stack:
aload 2
aload 4
aload 6
invokeinterface org.graalvm.compiler.options.OptionsParser$OptionConsumer.set:(Lorg/graalvm/compiler/options/OptionDescriptor;Ljava/lang/Object;)V
45: StackMap locals:
StackMap stack:
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 46 0 name Ljava/lang/String;
0 46 1 valueString Ljava/lang/String;
0 46 2 setter Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;
0 46 3 loader Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;
1 46 4 desc Lorg/graalvm/compiler/options/OptionDescriptor;
3 12 5 matches Ljava/util/List<Lorg/graalvm/compiler/options/OptionDescriptor;>;
4 12 6 msg Ljava/util/Formatter;
9 10 7 match Lorg/graalvm/compiler/options/OptionDescriptor;
13 46 5 optionType Ljava/lang/Class<*>;
16 17 6 value Ljava/lang/Object;
19 20 6 value Ljava/lang/Object;
23 24 6 value Ljava/lang/Object;
28 29 6 value Ljava/lang/Object;
31 32 6 value Ljava/lang/Object;
34 35 6 value Ljava/lang/Object;
37 38 6 value Ljava/lang/Object;
41 46 6 value Ljava/lang/Object;
Exception table:
from to target type
26 39 39 Class java.lang.NumberFormatException
Signature: (Ljava/lang/String;Ljava/lang/String;Lorg/graalvm/compiler/options/OptionsParser$OptionConsumer;Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;)V
MethodParameters:
Name Flags
name
valueString
setter
loader
private static long parseLong(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 1
start local 1 1: lconst_1
lstore 2
start local 2 2: aload 1
ldc "k"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
3: ldc 1024
lstore 2
4: goto 13
StackMap locals: java.lang.String long
StackMap stack:
5: aload 1
ldc "m"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 8
6: ldc 1048576
lstore 2
7: goto 13
StackMap locals:
StackMap stack:
8: aload 1
ldc "g"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 11
9: ldc 1073741824
lstore 2
10: goto 13
StackMap locals:
StackMap stack:
11: aload 1
ldc "t"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 13
12: ldc 1099511627776
lstore 2
13: StackMap locals:
StackMap stack:
lload 2
lconst_1
lcmp
ifeq 15
14: aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
15: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lload 2
lmul
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 v Ljava/lang/String;
1 16 1 valueString Ljava/lang/String;
2 16 2 scale J
MethodParameters:
Name Flags
v
private static java.util.List<java.lang.String> wrap(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=11, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 1: aload 0
invokevirtual java.lang.String.length:()I
iload 1
if_icmple 28
2: aload 0
ldc "\\s+"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
4: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 5: aload 3
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 25
StackMap locals: java.lang.String int java.util.List java.lang.String[] java.lang.StringBuilder top int int java.lang.String[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 4
invokevirtual java.lang.StringBuilder.length:()I
aload 5
invokevirtual java.lang.String.length:()I
iadd
iload 1
if_icmple 10
8: aload 2
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: aload 4
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
10: StackMap locals: java.lang.String int java.util.List java.lang.String[] java.lang.StringBuilder java.lang.String int int java.lang.String[]
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.length:()I
ifeq 12
11: aload 4
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: StackMap locals:
StackMap stack:
aload 5
ldc "%n"
bipush -2
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 9
start local 9 13: aload 9
arraylength
iconst_1
if_icmpne 16
14: aload 4
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: goto 24
16: StackMap locals: java.lang.String[]
StackMap stack:
iconst_0
istore 10
start local 10 17: goto 23
18: StackMap locals: int
StackMap stack:
aload 4
aload 9
iload 10
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: iload 10
aload 9
arraylength
iconst_1
isub
if_icmpge 22
20: aload 2
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
21: aload 4
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
22: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
23: iload 10
aload 9
arraylength
if_icmplt 18
end local 10 end local 9 end local 5 24: StackMap locals: java.lang.String int java.util.List java.lang.String[] java.lang.StringBuilder top int int java.lang.String[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
25: iload 6
iload 7
if_icmplt 6
26: aload 4
invokevirtual java.lang.StringBuilder.length:()I
ifeq 28
27: aload 2
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 3 28: StackMap locals: java.lang.String int java.util.List
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 text Ljava/lang/String;
0 29 1 width I
1 29 2 lines Ljava/util/List<Ljava/lang/String;>;
3 28 3 chunks [Ljava/lang/String;
5 28 4 line Ljava/lang/StringBuilder;
7 24 5 chunk Ljava/lang/String;
13 24 9 embeddedLines [Ljava/lang/String;
17 24 10 i I
Signature: (Ljava/lang/String;I)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
text
width
public static void printFlags(java.util.ServiceLoader<org.graalvm.compiler.options.OptionDescriptors>, java.io.PrintStream, java.util.Set<java.lang.String>, java.lang.String);
descriptor: (Ljava/util/ServiceLoader;Ljava/io/PrintStream;Ljava/util/Set;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=18, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 4
start local 4 1: aload 0
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 6
goto 9
StackMap locals: java.util.ServiceLoader java.io.PrintStream java.util.Set java.lang.String java.util.SortedMap top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptors
astore 5
start local 5 3: aload 5
invokeinterface org.graalvm.compiler.options.OptionDescriptors.iterator:()Ljava/util/Iterator;
astore 8
goto 8
StackMap locals: java.util.ServiceLoader java.io.PrintStream java.util.Set java.lang.String java.util.SortedMap org.graalvm.compiler.options.OptionDescriptors java.util.Iterator top java.util.Iterator
StackMap stack:
4: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptor
astore 7
start local 7 5: aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getName:()Ljava/lang/String;
astore 9
start local 9 6: aload 4
aload 9
aload 7
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptor
astore 10
start local 10 7: getstatic org.graalvm.compiler.options.OptionsParser.$assertionsDisabled:Z
ifne 8
aload 10
ifnull 8
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Option named \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" has multiple definitions: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 10
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getLocation:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " and "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getLocation:()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.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 10 end local 9 end local 7 8: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 5 9: StackMap locals: java.util.ServiceLoader java.io.PrintStream java.util.Set java.lang.String java.util.SortedMap top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: aload 4
invokeinterface java.util.SortedMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 44
StackMap locals:
StackMap stack:
11: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 12: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptor
astore 7
start local 7 13: aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getOptionValue:()Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
astore 8
start local 8 14: aload 8
instanceof java.lang.String
ifeq 16
15: new java.lang.StringBuilder
dup
bipush 34
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
16: StackMap locals: java.util.ServiceLoader java.io.PrintStream java.util.Set java.lang.String java.util.SortedMap java.util.Map$Entry java.util.Iterator org.graalvm.compiler.options.OptionDescriptor java.lang.Object
StackMap stack:
aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getHelp:()Ljava/lang/String;
astore 9
start local 9 17: aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getOptionValue:()Lorg/graalvm/compiler/options/OptionValue;
instanceof org.graalvm.compiler.options.EnumOptionValue
ifeq 23
18: aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getOptionValue:()Lorg/graalvm/compiler/options/OptionValue;
checkcast org.graalvm.compiler.options.EnumOptionValue
astore 10
start local 10 19: aload 10
invokevirtual org.graalvm.compiler.options.EnumOptionValue.getOptionValues:()Ljava/util/EnumSet;
invokevirtual java.util.EnumSet.toString:()Ljava/lang/String;
astore 11
start local 11 20: aload 9
invokevirtual java.lang.String.length:()I
ifle 22
aload 9
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 22
21: new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
22: StackMap locals: java.lang.String org.graalvm.compiler.options.EnumOptionValue java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " Valid values are: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 11
iconst_1
aload 11
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
end local 11 end local 10 23: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 10
start local 10 24: aload 2
aload 10
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 25
ldc ":="
goto 26
StackMap locals: java.lang.String
StackMap stack:
25: ldc "="
StackMap locals:
StackMap stack: java.lang.String
26: astore 11
start local 11 27: aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getOptionValue:()Lorg/graalvm/compiler/options/OptionValue;
instanceof org.graalvm.compiler.options.EnumOptionValue
ifeq 28
ldc "String"
goto 29
StackMap locals: java.lang.String
StackMap stack:
28: aload 7
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
29: astore 12
start local 12 30: ldc "%s %s %s "
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 10
aastore
dup
iconst_1
aload 11
aastore
dup
iconst_2
aload 8
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 13
start local 13 31: bipush 80
aload 12
invokevirtual java.lang.String.length:()I
isub
istore 14
start local 14 32: iload 14
aload 13
invokevirtual java.lang.String.length:()I
isub
istore 15
start local 15 33: iload 15
ifle 36
34: aload 1
new java.lang.StringBuilder
dup
ldc "%s%-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 15
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "s[%s]%n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 13
aastore
dup
iconst_1
ldc ""
aastore
dup
iconst_2
aload 12
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
35: goto 37
36: StackMap locals: java.util.ServiceLoader java.io.PrintStream java.util.Set java.lang.String java.util.SortedMap java.util.Map$Entry java.util.Iterator org.graalvm.compiler.options.OptionDescriptor java.lang.Object java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String int int
StackMap stack:
aload 1
ldc "%s[%s]%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 13
aastore
dup
iconst_1
aload 12
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
37: StackMap locals:
StackMap stack:
aload 9
invokevirtual java.lang.String.length:()I
ifeq 44
38: aload 9
bipush 70
invokestatic org.graalvm.compiler.options.OptionsParser.wrap:(Ljava/lang/String;I)Ljava/util/List;
astore 16
start local 16 39: iconst_0
istore 17
start local 17 40: goto 43
41: StackMap locals: java.util.List int
StackMap stack:
aload 1
ldc "%10s%s%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc ""
aastore
dup
iconst_1
aload 16
iload 17
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
42: iinc 17 1
StackMap locals:
StackMap stack:
43: iload 17
aload 16
invokeinterface java.util.List.size:()I
if_icmplt 41
end local 17 end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 5 44: StackMap locals: java.util.ServiceLoader java.io.PrintStream java.util.Set java.lang.String java.util.SortedMap top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
45: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 loader Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;
0 46 1 out Ljava/io/PrintStream;
0 46 2 explicitlyAssigned Ljava/util/Set<Ljava/lang/String;>;
0 46 3 namePrefix Ljava/lang/String;
1 46 4 sortedOptions Ljava/util/SortedMap<Ljava/lang/String;Lorg/graalvm/compiler/options/OptionDescriptor;>;
3 9 5 opts Lorg/graalvm/compiler/options/OptionDescriptors;
5 8 7 desc Lorg/graalvm/compiler/options/OptionDescriptor;
6 8 9 name Ljava/lang/String;
7 8 10 existing Lorg/graalvm/compiler/options/OptionDescriptor;
12 44 5 e Ljava/util/Map$Entry<Ljava/lang/String;Lorg/graalvm/compiler/options/OptionDescriptor;>;
13 44 7 desc Lorg/graalvm/compiler/options/OptionDescriptor;
14 44 8 value Ljava/lang/Object;
17 44 9 help Ljava/lang/String;
19 23 10 eoption Lorg/graalvm/compiler/options/EnumOptionValue<*>;
20 23 11 evalues Ljava/lang/String;
24 44 10 name Ljava/lang/String;
27 44 11 assign Ljava/lang/String;
30 44 12 typeName Ljava/lang/String;
31 44 13 linePrefix Ljava/lang/String;
32 44 14 typeStartPos I
33 44 15 linePad I
39 44 16 helpLines Ljava/util/List<Ljava/lang/String;>;
40 44 17 i I
Signature: (Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;Ljava/io/PrintStream;Ljava/util/Set<Ljava/lang/String;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
loader
out
explicitlyAssigned
namePrefix
static float stringSimiliarity(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)F
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 11
3: StackMap locals: int int
StackMap stack:
iconst_0
istore 4
start local 4 4: goto 9
5: StackMap locals: int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
if_icmpne 8
aload 0
iload 3
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
if_icmpne 8
6: iinc 2 1
7: goto 10
8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmplt 5
end local 4 10: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmplt 3
end local 3 12: fconst_2
iload 2
i2f
fmul
aload 0
invokevirtual java.lang.String.length:()I
aload 1
invokevirtual java.lang.String.length:()I
iadd
i2f
fdiv
freturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 str1 Ljava/lang/String;
0 13 1 str2 Ljava/lang/String;
1 13 2 hit I
2 12 3 i I
4 10 4 j I
MethodParameters:
Name Flags
str1
str2
private static java.util.List<org.graalvm.compiler.options.OptionDescriptor> fuzzyMatch(java.util.ServiceLoader<org.graalvm.compiler.options.OptionDescriptors>, java.lang.String);
descriptor: (Ljava/util/ServiceLoader;Ljava/lang/String;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 0
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: java.util.ServiceLoader java.lang.String java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptors
astore 3
start local 3 3: aload 3
invokeinterface org.graalvm.compiler.options.OptionDescriptors.iterator:()Ljava/util/Iterator;
astore 6
goto 8
StackMap locals: java.util.ServiceLoader java.lang.String java.util.List org.graalvm.compiler.options.OptionDescriptors java.util.Iterator top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.options.OptionDescriptor
astore 5
start local 5 5: aload 5
invokevirtual org.graalvm.compiler.options.OptionDescriptor.getName:()Ljava/lang/String;
aload 1
invokestatic org.graalvm.compiler.options.OptionsParser.stringSimiliarity:(Ljava/lang/String;Ljava/lang/String;)F
fstore 7
start local 7 6: fload 7
ldc 0.7
fcmpl
iflt 8
7: aload 2
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 8: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 3 9: StackMap locals: java.util.ServiceLoader java.lang.String java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 loader Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;
0 11 1 optionName Ljava/lang/String;
1 11 2 matches Ljava/util/List<Lorg/graalvm/compiler/options/OptionDescriptor;>;
3 9 3 options Lorg/graalvm/compiler/options/OptionDescriptors;
5 8 5 option Lorg/graalvm/compiler/options/OptionDescriptor;
6 8 7 score F
Signature: (Ljava/util/ServiceLoader<Lorg/graalvm/compiler/options/OptionDescriptors;>;Ljava/lang/String;)Ljava/util/List<Lorg/graalvm/compiler/options/OptionDescriptor;>;
MethodParameters:
Name Flags
loader
optionName
}
SourceFile: "OptionsParser.java"
NestMembers:
org.graalvm.compiler.options.OptionsParser$OptionConsumer
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract OptionConsumer = org.graalvm.compiler.options.OptionsParser$OptionConsumer of org.graalvm.compiler.options.OptionsParser