public class org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets implements org.graalvm.compiler.replacements.Snippets
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets
super_class: java.lang.Object
{
private static final sun.misc.Unsafe UNSAFE;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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: .line 54
invokestatic org.graalvm.compiler.serviceprovider.GraalUnsafeAccess.getUnsafe:()Lsun/misc/Unsafe;
putstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
1: .line 205
aconst_null
putstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.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 // org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets this
0: .line 53
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/ConstantStringIndexOfSnippets;
static int md2(char[]);
descriptor: ([C)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 // char[] target
0: .line 116
aload 0 /* target */
arraylength
istore 1 /* c */
start local 1 // int c
1: .line 117
iload 1 /* c */
ifne 3
2: .line 118
iconst_0
ireturn
3: .line 120
StackMap locals: int
StackMap stack:
aload 0 /* target */
iload 1 /* c */
iconst_1
isub
caload
istore 2 /* lastChar */
start local 2 // char lastChar
4: .line 121
iload 1 /* c */
istore 3 /* md2 */
start local 3 // int md2
5: .line 122
iconst_0
istore 4 /* i */
start local 4 // int i
6: goto 10
7: .line 123
StackMap locals: int int int
StackMap stack:
aload 0 /* target */
iload 4 /* i */
caload
iload 2 /* lastChar */
if_icmpne 9
8: .line 124
iload 1 /* c */
iconst_1
isub
iload 4 /* i */
isub
istore 3 /* md2 */
9: .line 122
StackMap locals:
StackMap stack:
iinc 4 /* i */ 1
StackMap locals:
StackMap stack:
10: iload 4 /* i */
iload 1 /* c */
iconst_1
isub
if_icmplt 7
end local 4 // int i
11: .line 127
iload 3 /* md2 */
ireturn
end local 3 // int md2
end local 2 // char lastChar
end local 1 // int c
end local 0 // char[] target
LocalVariableTable:
Start End Slot Name Signature
0 12 0 target [C
1 12 1 c I
4 12 2 lastChar C
5 12 3 md2 I
6 11 4 i I
MethodParameters:
Name Flags
target
static long computeCache(char[]);
descriptor: ([C)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 // char[] s
0: .line 131
aload 0 /* s */
arraylength
istore 1 /* c */
start local 1 // int c
1: .line 132
iconst_0
istore 2 /* cache */
start local 2 // int cache
2: .line 134
iconst_0
istore 3 /* i */
start local 3 // int i
3: goto 6
4: .line 135
StackMap locals: int int int
StackMap stack:
iload 2 /* cache */
iconst_1
aload 0 /* s */
iload 3 /* i */
caload
bipush 63
iand
ishl
ior
istore 2 /* cache */
5: .line 134
iinc 3 /* i */ 1
StackMap locals:
StackMap stack:
6: iload 3 /* i */
iload 1 /* c */
iconst_1
isub
if_icmplt 4
7: .line 137
iload 2 /* cache */
i2l
lreturn
end local 3 // int i
end local 2 // int cache
end local 1 // int c
end local 0 // char[] s
LocalVariableTable:
Start End Slot Name Signature
0 8 0 s [C
1 8 1 c I
2 8 2 cache I
3 8 3 i I
MethodParameters:
Name Flags
s
static int md2(byte[]);
descriptor: ([B)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 // byte[] target
0: .line 141
aload 0 /* target */
arraylength
istore 1 /* c */
start local 1 // int c
1: .line 142
iload 1 /* c */
ifne 3
2: .line 143
iconst_0
ireturn
3: .line 145
StackMap locals: int
StackMap stack:
aload 0 /* target */
iload 1 /* c */
iconst_1
isub
baload
istore 2 /* lastByte */
start local 2 // byte lastByte
4: .line 146
iload 1 /* c */
istore 3 /* md2 */
start local 3 // int md2
5: .line 147
iconst_0
istore 4 /* i */
start local 4 // int i
6: goto 10
7: .line 148
StackMap locals: int int int
StackMap stack:
aload 0 /* target */
iload 4 /* i */
baload
iload 2 /* lastByte */
if_icmpne 9
8: .line 149
iload 1 /* c */
iconst_1
isub
iload 4 /* i */
isub
istore 3 /* md2 */
9: .line 147
StackMap locals:
StackMap stack:
iinc 4 /* i */ 1
StackMap locals:
StackMap stack:
10: iload 4 /* i */
iload 1 /* c */
iconst_1
isub
if_icmplt 7
end local 4 // int i
11: .line 152
iload 3 /* md2 */
ireturn
end local 3 // int md2
end local 2 // byte lastByte
end local 1 // int c
end local 0 // byte[] target
LocalVariableTable:
Start End Slot Name Signature
0 12 0 target [B
1 12 1 c I
4 12 2 lastByte B
5 12 3 md2 I
6 11 4 i I
MethodParameters:
Name Flags
target
static long computeCache(byte[]);
descriptor: ([B)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 // byte[] s
0: .line 156
aload 0 /* s */
arraylength
istore 1 /* c */
start local 1 // int c
1: .line 157
iconst_0
istore 2 /* cache */
start local 2 // int cache
2: .line 159
iconst_0
istore 3 /* i */
start local 3 // int i
3: goto 6
4: .line 160
StackMap locals: int int int
StackMap stack:
iload 2 /* cache */
iconst_1
aload 0 /* s */
iload 3 /* i */
baload
bipush 63
iand
ishl
ior
istore 2 /* cache */
5: .line 159
iinc 3 /* i */ 1
StackMap locals:
StackMap stack:
6: iload 3 /* i */
iload 1 /* c */
iconst_1
isub
if_icmplt 4
7: .line 162
iload 2 /* cache */
i2l
lreturn
end local 3 // int i
end local 2 // int cache
end local 1 // int c
end local 0 // byte[] s
LocalVariableTable:
Start End Slot Name Signature
0 8 0 s [B
1 8 1 c I
2 8 2 cache I
3 8 3 i I
MethodParameters:
Name Flags
s
static int md2Utf16(jdk.vm.ci.meta.MetaAccessProvider, byte[]);
descriptor: (Ljdk/vm/ci/meta/MetaAccessProvider;[B)I
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=9, args_size=2
start local 0 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
start local 1 // byte[] target
0: .line 166
aload 1 /* target */
arraylength
iconst_2
idiv
istore 2 /* c */
start local 2 // int c
1: .line 167
iload 2 /* c */
ifne 3
2: .line 168
iconst_0
ireturn
3: .line 170
StackMap locals: int
StackMap stack:
aload 0 /* metaAccess */
getstatic jdk.vm.ci.meta.JavaKind.Byte:Ljdk/vm/ci/meta/JavaKind;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.getArrayBaseOffset:(Ljdk/vm/ci/meta/JavaKind;)I
i2l
lstore 3 /* base */
start local 3 // long base
4: .line 171
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 1 /* target */
lload 3 /* base */
iload 2 /* c */
iconst_1
isub
iconst_2
imul
i2l
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 5 /* lastChar */
start local 5 // char lastChar
5: .line 172
iload 2 /* c */
istore 6 /* md2 */
start local 6 // int md2
6: .line 173
iconst_0
istore 7 /* i */
start local 7 // int i
7: goto 12
8: .line 174
StackMap locals: jdk.vm.ci.meta.MetaAccessProvider byte[] int long int int int
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 1 /* target */
lload 3 /* base */
iload 7 /* i */
iconst_2
imul
i2l
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 8 /* currChar */
start local 8 // char currChar
9: .line 175
iload 8 /* currChar */
iload 5 /* lastChar */
if_icmpne 11
10: .line 176
iload 2 /* c */
iconst_1
isub
iload 7 /* i */
isub
istore 6 /* md2 */
end local 8 // char currChar
11: .line 173
StackMap locals:
StackMap stack:
iinc 7 /* i */ 1
StackMap locals:
StackMap stack:
12: iload 7 /* i */
iload 2 /* c */
iconst_1
isub
if_icmplt 8
end local 7 // int i
13: .line 179
iload 6 /* md2 */
ireturn
end local 6 // int md2
end local 5 // char lastChar
end local 3 // long base
end local 2 // int c
end local 1 // byte[] target
end local 0 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
LocalVariableTable:
Start End Slot Name Signature
0 14 0 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
0 14 1 target [B
1 14 2 c I
4 14 3 base J
5 14 5 lastChar C
6 14 6 md2 I
7 13 7 i I
9 11 8 currChar C
MethodParameters:
Name Flags
metaAccess
target
static long computeCacheUtf16(jdk.vm.ci.meta.MetaAccessProvider, byte[]);
descriptor: (Ljdk/vm/ci/meta/MetaAccessProvider;[B)J
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
start local 1 // byte[] s
0: .line 183
aload 1 /* s */
arraylength
iconst_2
idiv
istore 2 /* c */
start local 2 // int c
1: .line 184
iconst_0
istore 3 /* cache */
start local 3 // int cache
2: .line 186
aload 0 /* metaAccess */
getstatic jdk.vm.ci.meta.JavaKind.Byte:Ljdk/vm/ci/meta/JavaKind;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.getArrayBaseOffset:(Ljdk/vm/ci/meta/JavaKind;)I
i2l
lstore 5 /* base */
start local 5 // long base
3: .line 187
iconst_0
istore 4 /* i */
start local 4 // int i
4: goto 8
5: .line 188
StackMap locals: jdk.vm.ci.meta.MetaAccessProvider byte[] int int int long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 1 /* s */
lload 5 /* base */
iload 4 /* i */
iconst_2
imul
i2l
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 7 /* currChar */
start local 7 // char currChar
6: .line 189
iload 3 /* cache */
iconst_1
iload 7 /* currChar */
bipush 63
iand
ishl
ior
istore 3 /* cache */
end local 7 // char currChar
7: .line 187
iinc 4 /* i */ 1
StackMap locals:
StackMap stack:
8: iload 4 /* i */
iload 2 /* c */
iconst_1
isub
if_icmplt 5
9: .line 191
iload 3 /* cache */
i2l
lreturn
end local 5 // long base
end local 4 // int i
end local 3 // int cache
end local 2 // int c
end local 1 // byte[] s
end local 0 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
LocalVariableTable:
Start End Slot Name Signature
0 10 0 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
0 10 1 s [B
1 10 2 c I
2 10 3 cache I
4 10 4 i I
3 10 5 base J
6 7 7 currChar C
MethodParameters:
Name Flags
metaAccess
s
static int byteArrayBaseOffset(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 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
0: .line 196
aload 0 /* metaAccess */
getstatic jdk.vm.ci.meta.JavaKind.Byte:Ljdk/vm/ci/meta/JavaKind;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.getArrayBaseOffset:(Ljdk/vm/ci/meta/JavaKind;)I
ireturn
end local 0 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
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 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 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
0: .line 201
aload 0 /* metaAccess */
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 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
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 indexOfConstant(char[], int, int, char[], int, int, int, int, long);
descriptor: ([CII[CIIIIJ)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=22, args_size=9
start local 0 // char[] source
start local 1 // int sourceOffset
start local 2 // int sourceCount
start local 3 // char[] target
start local 4 // int targetOffset
start local 5 // int targetCount
start local 6 // int origFromIndex
start local 7 // int md2
start local 8 // long cache
0: .line 211
iload 6 /* origFromIndex */
istore 10 /* fromIndex */
start local 10 // int fromIndex
1: .line 212
iload 10 /* fromIndex */
iload 2 /* sourceCount */
if_icmplt 5
2: .line 213
iload 5 /* targetCount */
ifne 3
iload 2 /* sourceCount */
goto 4
StackMap locals: int
StackMap stack:
3: iconst_m1
StackMap locals:
StackMap stack: int
4: ireturn
5: .line 215
StackMap locals:
StackMap stack:
iload 10 /* fromIndex */
ifge 7
6: .line 216
iconst_0
istore 10 /* fromIndex */
7: .line 218
StackMap locals:
StackMap stack:
iload 5 /* targetCount */
ifne 9
8: .line 219
iload 10 /* fromIndex */
ireturn
9: .line 222
StackMap locals:
StackMap stack:
iload 5 /* targetCount */
iconst_1
isub
istore 11 /* targetCountLess1 */
start local 11 // int targetCountLess1
10: .line 223
iload 2 /* sourceCount */
iload 11 /* targetCountLess1 */
isub
istore 12 /* sourceEnd */
start local 12 // int sourceEnd
11: .line 225
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.charArrayBaseOffset:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
i2l
lstore 13 /* base */
start local 13 // long base
12: .line 226
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 3 /* target */
lload 13 /* base */
iload 11 /* targetCountLess1 */
iconst_2
imul
i2l
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 15 /* lastChar */
start local 15 // int lastChar
13: .line 228
iload 1 /* sourceOffset */
iload 10 /* fromIndex */
iadd
i2l
lstore 16 /* i */
start local 16 // long i
14: goto 35
15: .line 229
StackMap locals: char[] int int char[] int int int int long int int int long int long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 0 /* source */
lload 13 /* base */
lload 16 /* i */
iload 11 /* targetCountLess1 */
i2l
ladd
ldc 2
lmul
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 18 /* src */
start local 18 // int src
16: .line 230
iload 18 /* src */
iload 15 /* lastChar */
if_icmpne 32
17: .line 239
iload 5 /* targetCount */
bipush 8
if_icmpgt 19
18: .line 240
invokestatic org.graalvm.compiler.replacements.nodes.ExplodeLoopNode.explodeLoop:()V
19: .line 242
StackMap locals: int
StackMap stack:
lconst_0
lstore 19 /* j */
start local 19 // long j
20: goto 30
21: .line 243
StackMap locals: long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 0 /* source */
lload 13 /* base */
lload 16 /* i */
lload 19 /* j */
ladd
ldc 2
lmul
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 21 /* sourceChar */
start local 21 // char sourceChar
22: .line 244
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 3 /* target */
lload 13 /* base */
iload 4 /* targetOffset */
i2l
lload 19 /* j */
ladd
ldc 2
lmul
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
iload 21 /* sourceChar */
if_icmpeq 29
23: .line 245
lload 8 /* cache */
iconst_1
iload 21 /* sourceChar */
ishl
i2l
land
lconst_0
lcmp
ifne 27
24: .line 246
iload 7 /* md2 */
i2l
lload 19 /* j */
lconst_1
ladd
lcmp
ifge 27
25: .line 247
lload 16 /* i */
lload 19 /* j */
lconst_1
ladd
ladd
lstore 16 /* i */
26: .line 248
goto 35
27: .line 251
StackMap locals: int
StackMap stack:
lload 16 /* i */
iload 7 /* md2 */
i2l
ladd
lstore 16 /* i */
28: .line 252
goto 35
end local 21 // char sourceChar
29: .line 242
StackMap locals:
StackMap stack:
lload 19 /* j */
lconst_1
ladd
lstore 19 /* j */
StackMap locals:
StackMap stack:
30: lload 19 /* j */
iload 11 /* targetCountLess1 */
i2l
lcmp
iflt 21
end local 19 // long j
31: .line 255
lload 16 /* i */
iload 1 /* sourceOffset */
i2l
lsub
l2i
ireturn
32: .line 257
StackMap locals:
StackMap stack:
lload 8 /* cache */
iconst_1
iload 18 /* src */
ishl
i2l
land
lconst_0
lcmp
ifne 34
33: .line 258
lload 16 /* i */
iload 11 /* targetCountLess1 */
i2l
ladd
lstore 16 /* i */
34: .line 260
StackMap locals:
StackMap stack:
lload 16 /* i */
lconst_1
ladd
lstore 16 /* i */
end local 18 // int src
35: .line 228
StackMap locals:
StackMap stack:
lload 16 /* i */
iload 12 /* sourceEnd */
i2l
lcmp
iflt 15
end local 16 // long i
36: .line 262
iconst_m1
ireturn
end local 15 // int lastChar
end local 13 // long base
end local 12 // int sourceEnd
end local 11 // int targetCountLess1
end local 10 // int fromIndex
end local 8 // long cache
end local 7 // int md2
end local 6 // int origFromIndex
end local 5 // int targetCount
end local 4 // int targetOffset
end local 3 // char[] target
end local 2 // int sourceCount
end local 1 // int sourceOffset
end local 0 // char[] source
LocalVariableTable:
Start End Slot Name Signature
0 37 0 source [C
0 37 1 sourceOffset I
0 37 2 sourceCount I
0 37 3 target [C
0 37 4 targetOffset I
0 37 5 targetCount I
0 37 6 origFromIndex I
0 37 7 md2 I
0 37 8 cache J
1 37 10 fromIndex I
10 37 11 targetCountLess1 I
11 37 12 sourceEnd I
12 37 13 base J
13 37 15 lastChar I
14 36 16 i J
16 35 18 src I
20 31 19 j J
22 29 21 sourceChar C
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
3:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
4:
5:
6:
7:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
8:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
MethodParameters:
Name Flags
source
sourceOffset
sourceCount
target
targetOffset
targetCount
origFromIndex
md2
cache
public static int utf16IndexOfConstant(byte[], int, byte[], int, int, int, long);
descriptor: ([BI[BIIIJ)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=20, args_size=7
start local 0 // byte[] source
start local 1 // int sourceCount
start local 2 // byte[] target
start local 3 // int targetCount
start local 4 // int origFromIndex
start local 5 // int md2
start local 6 // long cache
0: .line 269
iload 4 /* origFromIndex */
istore 8 /* fromIndex */
start local 8 // int fromIndex
1: .line 270
iload 8 /* fromIndex */
iload 1 /* sourceCount */
if_icmplt 5
2: .line 271
iload 3 /* targetCount */
ifne 3
iload 1 /* sourceCount */
goto 4
StackMap locals: int
StackMap stack:
3: iconst_m1
StackMap locals:
StackMap stack: int
4: ireturn
5: .line 273
StackMap locals:
StackMap stack:
iload 8 /* fromIndex */
ifge 7
6: .line 274
iconst_0
istore 8 /* fromIndex */
7: .line 276
StackMap locals:
StackMap stack:
iload 3 /* targetCount */
ifne 9
8: .line 277
iload 8 /* fromIndex */
ireturn
9: .line 280
StackMap locals:
StackMap stack:
iload 3 /* targetCount */
iconst_1
isub
istore 9 /* targetCountLess1 */
start local 9 // int targetCountLess1
10: .line 281
iload 1 /* sourceCount */
iload 9 /* targetCountLess1 */
isub
istore 10 /* sourceEnd */
start local 10 // int sourceEnd
11: .line 283
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.byteArrayBaseOffset:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
i2l
lstore 11 /* base */
start local 11 // long base
12: .line 284
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 2 /* target */
lload 11 /* base */
iload 9 /* targetCountLess1 */
iconst_2
imul
i2l
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 13 /* lastChar */
start local 13 // int lastChar
13: .line 286
iload 8 /* fromIndex */
i2l
lstore 14 /* i */
start local 14 // long i
14: goto 35
15: .line 287
StackMap locals: byte[] int byte[] int int int long int int int long int long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 0 /* source */
lload 11 /* base */
lload 14 /* i */
iload 9 /* targetCountLess1 */
i2l
ladd
ldc 2
lmul
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 16 /* src */
start local 16 // int src
16: .line 288
iload 16 /* src */
iload 13 /* lastChar */
if_icmpne 32
17: .line 297
iload 3 /* targetCount */
bipush 8
if_icmpgt 19
18: .line 298
invokestatic org.graalvm.compiler.replacements.nodes.ExplodeLoopNode.explodeLoop:()V
19: .line 300
StackMap locals: int
StackMap stack:
lconst_0
lstore 17 /* j */
start local 17 // long j
20: goto 30
21: .line 301
StackMap locals: long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 0 /* source */
lload 11 /* base */
lload 14 /* i */
lload 17 /* j */
ladd
ldc 2
lmul
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
istore 19 /* sourceChar */
start local 19 // char sourceChar
22: .line 302
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 2 /* target */
lload 11 /* base */
lload 17 /* j */
ldc 2
lmul
ladd
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
iload 19 /* sourceChar */
if_icmpeq 29
23: .line 303
lload 6 /* cache */
iconst_1
iload 19 /* sourceChar */
ishl
i2l
land
lconst_0
lcmp
ifne 27
24: .line 304
iload 5 /* md2 */
i2l
lload 17 /* j */
lconst_1
ladd
lcmp
ifge 27
25: .line 305
lload 14 /* i */
lload 17 /* j */
lconst_1
ladd
ladd
lstore 14 /* i */
26: .line 306
goto 35
27: .line 309
StackMap locals: int
StackMap stack:
lload 14 /* i */
iload 5 /* md2 */
i2l
ladd
lstore 14 /* i */
28: .line 310
goto 35
end local 19 // char sourceChar
29: .line 300
StackMap locals:
StackMap stack:
lload 17 /* j */
lconst_1
ladd
lstore 17 /* j */
StackMap locals:
StackMap stack:
30: lload 17 /* j */
iload 9 /* targetCountLess1 */
i2l
lcmp
iflt 21
end local 17 // long j
31: .line 313
lload 14 /* i */
l2i
ireturn
32: .line 315
StackMap locals:
StackMap stack:
lload 6 /* cache */
iconst_1
iload 16 /* src */
ishl
i2l
land
lconst_0
lcmp
ifne 34
33: .line 316
lload 14 /* i */
iload 9 /* targetCountLess1 */
i2l
ladd
lstore 14 /* i */
34: .line 318
StackMap locals:
StackMap stack:
lload 14 /* i */
lconst_1
ladd
lstore 14 /* i */
end local 16 // int src
35: .line 286
StackMap locals:
StackMap stack:
lload 14 /* i */
iload 10 /* sourceEnd */
i2l
lcmp
iflt 15
end local 14 // long i
36: .line 320
iconst_m1
ireturn
end local 13 // int lastChar
end local 11 // long base
end local 10 // int sourceEnd
end local 9 // int targetCountLess1
end local 8 // int fromIndex
end local 6 // long cache
end local 5 // int md2
end local 4 // int origFromIndex
end local 3 // int targetCount
end local 2 // byte[] target
end local 1 // int sourceCount
end local 0 // byte[] source
LocalVariableTable:
Start End Slot Name Signature
0 37 0 source [B
0 37 1 sourceCount I
0 37 2 target [B
0 37 3 targetCount I
0 37 4 origFromIndex I
0 37 5 md2 I
0 37 6 cache J
1 37 8 fromIndex I
10 37 9 targetCountLess1 I
11 37 10 sourceEnd I
12 37 11 base J
13 37 13 lastChar I
14 36 14 i J
16 35 16 src I
20 31 17 j J
22 29 19 sourceChar C
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
3:
4:
5:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
6:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
MethodParameters:
Name Flags
source
sourceCount
target
targetCount
origFromIndex
md2
cache
public static int latin1IndexOfConstant(byte[], int, byte[], int, int, int, long);
descriptor: ([BI[BIIIJ)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=20, args_size=7
start local 0 // byte[] source
start local 1 // int sourceCount
start local 2 // byte[] target
start local 3 // int targetCount
start local 4 // int origFromIndex
start local 5 // int md2
start local 6 // long cache
0: .line 327
iload 4 /* origFromIndex */
istore 8 /* fromIndex */
start local 8 // int fromIndex
1: .line 328
iload 8 /* fromIndex */
iload 1 /* sourceCount */
if_icmplt 5
2: .line 329
iload 3 /* targetCount */
ifne 3
iload 1 /* sourceCount */
goto 4
StackMap locals: int
StackMap stack:
3: iconst_m1
StackMap locals:
StackMap stack: int
4: ireturn
5: .line 331
StackMap locals:
StackMap stack:
iload 8 /* fromIndex */
ifge 7
6: .line 332
iconst_0
istore 8 /* fromIndex */
7: .line 334
StackMap locals:
StackMap stack:
iload 3 /* targetCount */
ifne 9
8: .line 335
iload 8 /* fromIndex */
ireturn
9: .line 338
StackMap locals:
StackMap stack:
iload 3 /* targetCount */
iconst_1
isub
istore 9 /* targetCountLess1 */
start local 9 // int targetCountLess1
10: .line 339
iload 1 /* sourceCount */
iload 9 /* targetCountLess1 */
isub
istore 10 /* sourceEnd */
start local 10 // int sourceEnd
11: .line 341
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.INJECTED:Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.byteArrayBaseOffset:(Ljdk/vm/ci/meta/MetaAccessProvider;)I
i2l
lstore 11 /* base */
start local 11 // long base
12: .line 342
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 2 /* target */
lload 11 /* base */
iload 9 /* targetCountLess1 */
i2l
ladd
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 13 /* lastByte */
start local 13 // int lastByte
13: .line 344
iload 8 /* fromIndex */
i2l
lstore 14 /* i */
start local 14 // long i
14: goto 35
15: .line 345
StackMap locals: byte[] int byte[] int int int long int int int long int long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 0 /* source */
lload 11 /* base */
lload 14 /* i */
ladd
iload 9 /* targetCountLess1 */
i2l
ladd
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 16 /* src */
start local 16 // int src
16: .line 346
iload 16 /* src */
iload 13 /* lastByte */
if_icmpne 32
17: .line 355
iload 3 /* targetCount */
bipush 8
if_icmpgt 19
18: .line 356
invokestatic org.graalvm.compiler.replacements.nodes.ExplodeLoopNode.explodeLoop:()V
19: .line 358
StackMap locals: int
StackMap stack:
lconst_0
lstore 17 /* j */
start local 17 // long j
20: goto 30
21: .line 359
StackMap locals: long
StackMap stack:
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 0 /* source */
lload 11 /* base */
lload 14 /* i */
ladd
lload 17 /* j */
ladd
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 19 /* sourceByte */
start local 19 // byte sourceByte
22: .line 360
getstatic org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets.UNSAFE:Lsun/misc/Unsafe;
aload 2 /* target */
lload 11 /* base */
lload 17 /* j */
ladd
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
iload 19 /* sourceByte */
if_icmpeq 29
23: .line 361
lload 6 /* cache */
iconst_1
iload 19 /* sourceByte */
ishl
i2l
land
lconst_0
lcmp
ifne 27
24: .line 362
iload 5 /* md2 */
i2l
lload 17 /* j */
lconst_1
ladd
lcmp
ifge 27
25: .line 363
lload 14 /* i */
lload 17 /* j */
lconst_1
ladd
ladd
lstore 14 /* i */
26: .line 364
goto 35
27: .line 367
StackMap locals: int
StackMap stack:
lload 14 /* i */
iload 5 /* md2 */
i2l
ladd
lstore 14 /* i */
28: .line 368
goto 35
end local 19 // byte sourceByte
29: .line 358
StackMap locals:
StackMap stack:
lload 17 /* j */
lconst_1
ladd
lstore 17 /* j */
StackMap locals:
StackMap stack:
30: lload 17 /* j */
iload 9 /* targetCountLess1 */
i2l
lcmp
iflt 21
end local 17 // long j
31: .line 371
lload 14 /* i */
l2i
ireturn
32: .line 373
StackMap locals:
StackMap stack:
lload 6 /* cache */
iconst_1
iload 16 /* src */
ishl
i2l
land
lconst_0
lcmp
ifne 34
33: .line 374
lload 14 /* i */
iload 9 /* targetCountLess1 */
i2l
ladd
lstore 14 /* i */
34: .line 376
StackMap locals:
StackMap stack:
lload 14 /* i */
lconst_1
ladd
lstore 14 /* i */
end local 16 // int src
35: .line 344
StackMap locals:
StackMap stack:
lload 14 /* i */
iload 10 /* sourceEnd */
i2l
lcmp
iflt 15
end local 14 // long i
36: .line 378
iconst_m1
ireturn
end local 13 // int lastByte
end local 11 // long base
end local 10 // int sourceEnd
end local 9 // int targetCountLess1
end local 8 // int fromIndex
end local 6 // long cache
end local 5 // int md2
end local 4 // int origFromIndex
end local 3 // int targetCount
end local 2 // byte[] target
end local 1 // int sourceCount
end local 0 // byte[] source
LocalVariableTable:
Start End Slot Name Signature
0 37 0 source [B
0 37 1 sourceCount I
0 37 2 target [B
0 37 3 targetCount I
0 37 4 origFromIndex I
0 37 5 md2 I
0 37 6 cache J
1 37 8 fromIndex I
10 37 9 targetCountLess1 I
11 37 10 sourceEnd I
12 37 11 base J
13 37 13 lastByte I
14 36 14 i J
16 35 16 src I
20 31 17 j J
22 29 19 sourceByte B
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
3:
4:
5:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
6:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
MethodParameters:
Name Flags
source
sourceCount
target
targetCount
origFromIndex
md2
cache
}
SourceFile: "ConstantStringIndexOfSnippets.java"
NestMembers:
org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets$Templates
InnerClasses:
public abstract InjectedParameter = org.graalvm.compiler.api.replacements.Fold$InjectedParameter of org.graalvm.compiler.api.replacements.Fold
public abstract ConstantParameter = org.graalvm.compiler.api.replacements.Snippet$ConstantParameter of org.graalvm.compiler.api.replacements.Snippet
public Templates = org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets$Templates of org.graalvm.compiler.replacements.ConstantStringIndexOfSnippets