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 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/replacements/amd64/AMD64StringSubstitutions;
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.replacements.amd64.AMD64StringSubstitutions.$assertionsDisabled:Z
3: 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=6, locals=14, 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: iload 7
iload 2
if_icmplt 5
2: iload 5
ifne 3
iload 2
goto 4
StackMap locals: int
StackMap stack:
3: iconst_m1
StackMap locals:
StackMap stack: int
4: ireturn
5: StackMap locals:
StackMap stack:
iload 7
ifge 7
6: iconst_0
istore 7
7: StackMap locals:
StackMap stack:
iload 5
ifne 9
8: iload 7
ireturn
9: StackMap locals:
StackMap stack:
iload 1
iload 7
iadd
istore 8
start local 8 10: iload 2
iload 7
isub
iload 5
if_icmpge 12
11: iconst_m1
ireturn
12: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.$assertionsDisabled:Z
ifne 14
iload 2
iload 7
isub
ifle 13
iload 5
ifgt 14
StackMap locals:
StackMap stack:
13: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
iload 5
iconst_1
if_icmpne 20
15: 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 9
start local 9 16: aload 9
iload 2
iload 7
isub
aload 3
iload 4
caload
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOf1Char:(Ljdk/internal/vm/compiler/word/Pointer;IC)I
istore 10
start local 10 17: iload 10
iflt 19
18: iload 10
iload 8
iadd
ireturn
19: StackMap locals: jdk.internal.vm.compiler.word.Pointer int
StackMap stack:
iload 10
ireturn
end local 10 end local 9 20: StackMap locals:
StackMap stack:
iload 5
iconst_2
if_icmpne 26
21: 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 9
start local 9 22: aload 9
iload 2
iload 7
isub
aload 3
iload 4
caload
aload 3
iload 4
iconst_1
iadd
caload
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOfTwoConsecutiveChars:(Ljdk/internal/vm/compiler/word/Pointer;ICC)I
istore 10
start local 10 23: iload 10
iflt 25
24: iload 10
iload 8
iadd
ireturn
25: StackMap locals: jdk.internal.vm.compiler.word.Pointer int
StackMap stack:
iload 10
ireturn
end local 10 end local 9 26: StackMap locals:
StackMap stack:
iload 2
iload 7
iload 5
iconst_2
isub
iadd
isub
istore 9
start local 9 27: goto 39
28: StackMap locals: int
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 10
start local 10 29: aload 10
iload 9
aload 3
iload 4
caload
aload 3
iload 4
iconst_1
iadd
caload
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOfTwoConsecutiveChars:(Ljdk/internal/vm/compiler/word/Pointer;ICC)I
istore 11
start local 11 30: iload 11
ifge 32
31: iconst_m1
ireturn
32: StackMap locals: jdk.internal.vm.compiler.word.Pointer int
StackMap stack:
iload 8
iload 11
iadd
istore 8
33: iload 9
iload 11
iconst_1
iadd
isub
istore 9
34: 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 12
start local 12 35: 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 13
start local 13 36: aload 12
aload 13
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
ifeq 38
37: iload 8
ireturn
38: StackMap locals: jdk.internal.vm.compiler.word.Pointer jdk.internal.vm.compiler.word.Pointer
StackMap stack:
iinc 8 1
end local 13 end local 12 end local 11 end local 10 39: StackMap locals: char[] int int char[] int int int int int int
StackMap stack:
iload 9
ifgt 28
40: 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 41 0 source [C
0 41 1 sourceOffset I
0 41 2 sourceCount I
0 41 3 target [C
0 41 4 targetOffset I
0 41 5 targetCount I
0 41 6 origFromIndex I
1 41 7 fromIndex I
10 41 8 totalOffset I
16 20 9 sourcePointer Ljdk/internal/vm/compiler/word/Pointer;
17 20 10 indexOfResult I
22 26 9 sourcePointer Ljdk/internal/vm/compiler/word/Pointer;
23 26 10 indexOfResult I
27 41 9 haystackLength I
29 39 10 sourcePointer Ljdk/internal/vm/compiler/word/Pointer;
30 39 11 indexOfResult I
35 39 12 cmpSourcePointer Ljdk/internal/vm/compiler/word/Pointer;
36 39 13 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=3, locals=8, 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: iload 3
iload 4
if_icmplt 4
3: iconst_m1
ireturn
4: StackMap locals: int int
StackMap stack:
iload 3
ifge 6
5: iconst_0
istore 3
6: StackMap locals:
StackMap stack:
iload 1
ldc 65536
if_icmpge 13
7: aload 0
invokestatic org.graalvm.compiler.replacements.StringSubstitutions.getValue:(Ljava/lang/String;)[C
astore 5
start local 5 8: aload 5
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 3
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 6
start local 6 9: aload 6
iload 4
iload 3
isub
iload 1
i2c
invokestatic org.graalvm.compiler.replacements.amd64.AMD64ArrayIndexOf.indexOf1Char:(Ljdk/internal/vm/compiler/word/Pointer;IC)I
istore 7
start local 7 10: iload 7
iconst_m1
if_icmpeq 12
11: iload 7
iload 3
iadd
ireturn
12: StackMap locals: char[] jdk.internal.vm.compiler.word.Pointer int
StackMap stack:
iload 7
ireturn
end local 7 end local 6 end local 5 13: 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 14 0 source Ljava/lang/String;
0 14 1 ch I
0 14 2 origFromIndex I
1 14 3 fromIndex I
2 14 4 sourceCount I
8 13 5 sourceArray [C
9 13 6 sourcePointer Ljdk/internal/vm/compiler/word/Pointer;
10 13 7 result I
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;)