public class org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions
super_class: java.lang.Object
{
static final jdk.vm.ci.meta.MetaAccessProvider INJECTED;
descriptor: Ljdk/vm/ci/meta/MetaAccessProvider;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
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/replacements/amd64/AMD64StringSubstitutions;
static int charArrayBaseOffset(jdk.vm.ci.meta.MetaAccessProvider);
descriptor: (Ljdk/vm/ci/meta/MetaAccessProvider;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic jdk.vm.ci.meta.JavaKind.Char:Ljdk/vm/ci/meta/JavaKind;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.getArrayBaseOffset:(Ljdk/vm/ci/meta/JavaKind;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Fold$InjectedParameter()
MethodParameters:
Name Flags
metaAccess
static int charArrayIndexScale(jdk.vm.ci.meta.MetaAccessProvider);
descriptor: (Ljdk/vm/ci/meta/MetaAccessProvider;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic jdk.vm.ci.meta.JavaKind.Char:Ljdk/vm/ci/meta/JavaKind;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.getArrayIndexScale:(Ljdk/vm/ci/meta/JavaKind;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Fold$InjectedParameter()
MethodParameters:
Name Flags
metaAccess
public static int indexOf(char[], int, int, char[], int, int, int);
descriptor: ([CII[CIII)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=13, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: iload 6
istore 7
start local 7 1: ldc 0.25
iload 7
iload 2
if_icmplt 2
iconst_1
goto 3
StackMap locals: char[] int int char[] int int int int
StackMap stack: double
2: iconst_0
StackMap locals: char[] int int char[] int int int int
StackMap stack: double int
3: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 7
4: iload 5
ifne 5
iload 2
goto 6
StackMap locals:
StackMap stack:
5: iconst_m1
StackMap locals:
StackMap stack: int
6: ireturn
7: StackMap locals:
StackMap stack:
ldc 0.25
iload 7
ifge 8
iconst_1
goto 9
StackMap locals:
StackMap stack: double
8: iconst_0
StackMap locals: char[] int int char[] int int int int
StackMap stack: double int
9: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 11
10: iconst_0
istore 7
11: StackMap locals:
StackMap stack:
ldc 0.25
iload 5
ifne 12
iconst_1
goto 13
StackMap locals:
StackMap stack: double
12: iconst_0
StackMap locals: char[] int int char[] int int int int
StackMap stack: double int
13: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 15
14: iload 7
ireturn
15: StackMap locals:
StackMap stack:
iload 1
iload 7
iadd
istore 8
start local 8 16: ldc 0.25
iload 2
iload 7
isub
iload 5
if_icmpge 17
iconst_1
goto 18
StackMap locals: char[] int int char[] int int int int int
StackMap stack: double
17: iconst_0
StackMap locals: char[] int int char[] int int int int int
StackMap stack: double int
18: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 20
19: iconst_m1
ireturn
20: StackMap locals:
StackMap stack:
ldc 0.25
iload 5
iconst_1
if_icmpne 21
iconst_1
goto 22
StackMap locals:
StackMap stack: double
21: iconst_0
StackMap locals: char[] int int char[] int int int int int
StackMap stack: double int
22: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 24
23: aload 0
iload 2
iload 8
aload 3
iload 4
caload
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOf1Char:([CIIC)I
ireturn
24: StackMap locals:
StackMap stack:
iload 2
iload 5
iconst_2
isub
isub
istore 9
start local 9 25: goto 41
26: StackMap locals: int
StackMap stack:
aload 0
iload 9
iload 8
aload 3
iload 4
caload
aload 3
iload 4
iconst_1
iadd
caload
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOfTwoConsecutiveChars:([CIICC)I
istore 10
start local 10 27: ldc 0.25
iload 10
ifge 28
iconst_1
goto 29
StackMap locals: char[] int int char[] int int int int int int int
StackMap stack: double
28: iconst_0
StackMap locals: char[] int int char[] int int int int int int int
StackMap stack: double int
29: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 31
30: iconst_m1
ireturn
31: StackMap locals:
StackMap stack:
iload 10
istore 8
32: ldc 0.25
iload 5
iconst_2
if_icmpne 33
iconst_1
goto 34
StackMap locals:
StackMap stack: double
33: iconst_0
StackMap locals: char[] int int char[] int int int int int int int
StackMap stack: double int
34: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 36
35: iload 8
ireturn
36: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Word;
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayBaseOffset:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
iload 8
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayIndexScale:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
imul
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
astore 11
start local 11 37: aload 3
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Word;
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayBaseOffset:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
iload 4
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayIndexScale:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
imul
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
astore 12
start local 12 38: ldc 0.25
aload 11
aload 12
iload 5
getstatic jdk.vm.ci.meta.JavaKind.Char:Ljdk/vm/ci/meta/JavaKind;
invokestatic org.graalvm.compiler.replacements.nodes.ArrayRegionEqualsNode.regionEquals:(Ljdk/internal/vm/compiler/word/Pointer;Ljdk/internal/vm/compiler/word/Pointer;ILjdk/vm/ci/meta/JavaKind;)Z
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 40
39: iload 8
ireturn
end local 12 end local 11 40: StackMap locals:
StackMap stack:
iinc 8 1
end local 10 41: StackMap locals:
StackMap stack:
ldc 0.75
iload 8
iload 9
if_icmpge 42
iconst_1
goto 43
StackMap locals:
StackMap stack: double
42: iconst_0
StackMap locals: char[] int int char[] int int int int int int
StackMap stack: double int
43: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifne 26
44: iconst_m1
ireturn
end local 9 end local 8 end local 7 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 45 0 source [C
0 45 1 sourceOffset I
0 45 2 sourceCount I
0 45 3 target [C
0 45 4 targetOffset I
0 45 5 targetCount I
0 45 6 origFromIndex I
1 45 7 fromIndex I
16 45 8 totalOffset I
25 45 9 haystackLength I
27 41 10 indexOfResult I
37 40 11 cmpSourcePointer Ljdk/internal/vm/compiler/word/Pointer;
38 40 12 targetPointer Ljdk/internal/vm/compiler/word/Pointer;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.MethodSubstitution(isStatic = true, optional = true)
RuntimeVisibleParameterAnnotations:
0:
1:
2:
3:
org.graalvm.compiler.graph.Node$ConstantNodeParameter()
4:
5:
6:
MethodParameters:
Name Flags
source
sourceOffset
sourceCount
target
targetOffset
targetCount
origFromIndex
public static int indexOf(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
istore 3
start local 3 1: aload 0
invokevirtual java.lang.String.length:()I
istore 4
start local 4 2: ldc 0.25
iload 3
iload 4
if_icmplt 3
iconst_1
goto 4
StackMap locals: java.lang.String int int int int
StackMap stack: double
3: iconst_0
StackMap locals: java.lang.String int int int int
StackMap stack: double int
4: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 6
5: iconst_m1
ireturn
6: StackMap locals:
StackMap stack:
ldc 0.25
iload 3
ifge 7
iconst_1
goto 8
StackMap locals:
StackMap stack: double
7: iconst_0
StackMap locals: java.lang.String int int int int
StackMap stack: double int
8: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 10
9: iconst_0
istore 3
10: StackMap locals:
StackMap stack:
ldc 0.75
iload 1
ldc 65536
if_icmpge 11
iconst_1
goto 12
StackMap locals:
StackMap stack: double
11: iconst_0
StackMap locals: java.lang.String int int int int
StackMap stack: double int
12: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 15
13: aload 0
invokestatic org.graalvm.compiler.replacements.StringSubstitutions.getValue:(Ljava/lang/String;)[C
astore 5
start local 5 14: aload 5
iload 4
iload 3
iload 1
i2c
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOf1Char:([CIIC)I
ireturn
end local 5 15: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.indexOf:(Ljava/lang/String;II)I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 source Ljava/lang/String;
0 16 1 ch I
0 16 2 origFromIndex I
1 16 3 fromIndex I
2 16 4 sourceCount I
14 15 5 sourceArray [C
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.MethodSubstitution(isStatic = false, optional = true)
MethodParameters:
Name Flags
source
ch
origFromIndex
public static int compareTo(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.replacements.StringSubstitutions.getValue:(Ljava/lang/String;)[C
astore 2
start local 2 3: aload 1
invokestatic org.graalvm.compiler.replacements.StringSubstitutions.getValue:(Ljava/lang/String;)[C
astore 3
start local 3 4: aload 2
aload 3
aload 2
arraylength
iconst_1
ishl
aload 3
arraylength
iconst_1
ishl
getstatic jdk.vm.ci.meta.JavaKind.Char:Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Char:Ljdk/vm/ci/meta/JavaKind;
invokestatic org.graalvm.compiler.replacements.nodes.ArrayCompareToNode.compareTo:(Ljava/lang/Object;Ljava/lang/Object;IILjdk/vm/ci/meta/JavaKind;Ljdk/vm/ci/meta/JavaKind;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 receiver Ljava/lang/String;
0 5 1 anotherString Ljava/lang/String;
3 5 2 value [C
4 5 3 other [C
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.MethodSubstitution(isStatic = false)
RuntimeInvisibleAnnotations:
org.graalvm.compiler.core.common.SuppressFBWarnings(value = {"ES_COMPARING_PARAMETER_STRING_WITH_EQ"}, justification = "reference equality on the receiver is what we want")
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
org.graalvm.compiler.core.common.SuppressFBWarnings(value = {"ES_COMPARING_PARAMETER_STRING_WITH_EQ"}, justification = "reference equality on the receiver is what we want")
MethodParameters:
Name Flags
receiver
anotherString
}
SourceFile: "AMD64StringSubstitutions.java"
InnerClasses:
public abstract InjectedParameter = org.graalvm.compiler.api.replacements.Fold$InjectedParameter of org.graalvm.compiler.api.replacements.Fold
public abstract ConstantNodeParameter = org.graalvm.compiler.graph.Node$ConstantNodeParameter of org.graalvm.compiler.graph.Node
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.ClassSubstitution(value = Ljava/lang/String;)