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 org.graalvm.compiler.core.common.spi.ArrayOffsetProvider INJECTED;
descriptor: Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
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:Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
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(org.graalvm.compiler.core.common.spi.ArrayOffsetProvider);
descriptor: (Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;)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 org.graalvm.compiler.core.common.spi.ArrayOffsetProvider.arrayBaseOffset:(Ljdk/vm/ci/meta/JavaKind;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arrayOffsetProvider Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Fold$InjectedParameter()
MethodParameters:
Name Flags
arrayOffsetProvider
static int charArrayIndexScale(org.graalvm.compiler.core.common.spi.ArrayOffsetProvider);
descriptor: (Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;)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 org.graalvm.compiler.core.common.spi.ArrayOffsetProvider.arrayScalingFactor:(Ljdk/vm/ci/meta/JavaKind;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arrayOffsetProvider Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Fold$InjectedParameter()
MethodParameters:
Name Flags
arrayOffsetProvider
public static int indexOf(char[], int, int, char[], int, int, int);
descriptor: ([CII[CIII)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=12, 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:
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:Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayBaseOffset:(Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;)I
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
iload 8
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayIndexScale:(Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;)I
imul
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
astore 9
start local 9 15: 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:Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayBaseOffset:(Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;)I
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
iload 4
getstatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.INJECTED:Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringSubstitutions.charArrayIndexScale:(Lorg/graalvm/compiler/core/common/spi/ArrayOffsetProvider;)I
imul
invokevirtual org.graalvm.compiler.word.Word.add:(I)Lorg/graalvm/compiler/word/Word;
astore 10
start local 10 16: aload 9
iload 2
iload 7
isub
aload 10
iload 5
invokestatic org.graalvm.compiler.replacements.amd64.AMD64StringIndexOfNode.optimizedStringIndexPointer:(Ljdk/internal/vm/compiler/word/Pointer;ILjdk/internal/vm/compiler/word/Pointer;I)I
istore 11
start local 11 17: iload 11
iflt 19
18: iload 11
iload 8
iadd
ireturn
19: StackMap locals: jdk.internal.vm.compiler.word.Pointer jdk.internal.vm.compiler.word.Pointer int
StackMap stack:
iload 11
ireturn
end local 11 end local 10 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 20 0 source [C
0 20 1 sourceOffset I
0 20 2 sourceCount I
0 20 3 target [C
0 20 4 targetOffset I
0 20 5 targetCount I
0 20 6 origFromIndex I
1 20 7 fromIndex I
10 20 8 totalOffset I
15 20 9 sourcePointer Ljdk/internal/vm/compiler/word/Pointer;
16 20 10 targetPointer Ljdk/internal/vm/compiler/word/Pointer;
17 20 11 result I
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 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;)