public class org.graalvm.compiler.replacements.test.StringSubstitutionsTest extends org.graalvm.compiler.replacements.test.MethodSubstitutionTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.test.StringSubstitutionsTest
super_class: org.graalvm.compiler.replacements.test.MethodSubstitutionTest
{
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/test/StringSubstitutionsTest;
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.test.StringSubstitutionsTest.$assertionsDisabled:Z
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 org.graalvm.compiler.replacements.test.MethodSubstitutionTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
public void testSubstitution(java.lang.String, java.lang.Class<?>, java.lang.Class<?>, java.lang.String, boolean, [], []);
descriptor: (Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;Z[Ljava/lang/Object;[Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=17, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 3
aload 4
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.getResolvedJavaMethod:(Ljava/lang/Class;Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 8
start local 8 1: aload 0
aload 1
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 9
start local 9 2: aload 0
aload 1
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.testGraph:(Ljava/lang/String;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 10
start local 10 3: aload 0
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.getReplacements:()Lorg/graalvm/compiler/nodes/spi/Replacements;
aload 8
iconst_m1
iconst_0
aconst_null
aload 10
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.allowAssumptions:()Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
aload 10
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokeinterface org.graalvm.compiler.nodes.spi.Replacements.getSubstitution:(Ljdk/vm/ci/meta/ResolvedJavaMethod;IZLorg/graalvm/compiler/graph/NodeSourcePosition;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 11
start local 11 4: aload 11
ifnonnull 6
iload 5
ifne 6
5: aload 10
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 2
aastore
invokestatic org.graalvm.compiler.replacements.test.StringSubstitutionsTest.assertInGraph:(Lorg/graalvm/compiler/nodes/StructuredGraph;[Ljava/lang/Class;)Lorg/graalvm/compiler/nodes/StructuredGraph;
pop
6: StackMap locals: org.graalvm.compiler.replacements.test.StringSubstitutionsTest java.lang.String java.lang.Class java.lang.Class java.lang.String int java.lang.Object[] java.lang.Object[] jdk.vm.ci.meta.ResolvedJavaMethod jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.StructuredGraph
StackMap stack:
aload 0
aload 9
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/code/InstalledCode;
astore 12
start local 12 7: getstatic org.graalvm.compiler.replacements.test.StringSubstitutionsTest.$assertionsDisabled:Z
ifne 8
iload 5
ifne 8
aload 12
ifnonnull 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals: jdk.vm.ci.code.InstalledCode
StackMap stack:
iconst_0
istore 13
start local 13 9: goto 16
10: StackMap locals: int
StackMap stack:
aload 6
iload 13
aaload
astore 14
start local 14 11: aload 7
iload 13
aaload
astore 15
start local 15 12: aload 0
aload 8
aload 14
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 15
aastore
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.invokeSafe:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 16
start local 16 13: aload 0
aload 16
aload 0
aload 9
aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 14
aastore
dup
iconst_1
aload 15
aastore
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.invokeSafe:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: aload 0
aload 16
aload 12
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 14
aastore
dup
iconst_1
aload 15
aastore
invokestatic org.graalvm.compiler.replacements.test.StringSubstitutionsTest.executeVarargsSafe:(Ljdk/vm/ci/code/InstalledCode;[Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual org.graalvm.compiler.replacements.test.StringSubstitutionsTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 16 end local 15 end local 14 15: iinc 13 1
StackMap locals:
StackMap stack:
16: iload 13
aload 6
arraylength
if_icmplt 10
end local 13 17: return
end local 12 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 18 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
0 18 1 testMethodName Ljava/lang/String;
0 18 2 intrinsicClass Ljava/lang/Class<*>;
0 18 3 holder Ljava/lang/Class<*>;
0 18 4 methodName Ljava/lang/String;
0 18 5 optional Z
0 18 6 args1 [Ljava/lang/Object;
0 18 7 args2 [Ljava/lang/Object;
1 18 8 realMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 18 9 testMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 18 10 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
4 18 11 replacement Lorg/graalvm/compiler/nodes/StructuredGraph;
7 18 12 code Ljdk/vm/ci/code/InstalledCode;
9 17 13 i I
11 15 14 arg1 Ljava/lang/Object;
12 15 15 arg2 Ljava/lang/Object;
13 15 16 expected Ljava/lang/Object;
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/String;Z[Ljava/lang/Object;[Ljava/lang/Object;)V
MethodParameters:
Name Flags
testMethodName
intrinsicClass
holder
methodName
optional
args1
args2
public void testEquals();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean stringEquals(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a Ljava/lang/String;
0 1 1 b Ljava/lang/String;
MethodParameters:
Name Flags
a
b
public void testIndexOfConstant();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public int indexOfConstant();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: ldc "foobar"
astore 1
start local 1 1: ldc "bar"
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
1 3 1 foobar Ljava/lang/String;
2 3 2 bar Ljava/lang/String;
public void testIndexOfConstantUTF16();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public int indexOfConstantUTF16case1();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "grga \u010Dvarak"
ldc "\u010Dvarak"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
public int indexOfConstantUTF16case2();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "grga \rvarak"
ldc "\u010Dvarak"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 1
start local 1 1: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
1 2 1 index I
public int indexOfConstantUTF16case3();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "grga \u0100varak"
ldc "\u010Dvarak"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 1
start local 1 1: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
1 2 1 index I
public void testCompareTo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public int compareTo();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "ofar"
ldc "rafo"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/StringSubstitutionsTest;
}
SourceFile: "StringSubstitutionsTest.java"
InnerClasses:
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph