public class org.graalvm.compiler.replacements.test.StringCompareToTest extends org.graalvm.compiler.replacements.test.StringSubstitutionTestBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.test.StringCompareToTest
super_class: org.graalvm.compiler.replacements.test.StringSubstitutionTestBase
{
private static final int EXPECT_NODE_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final java.lang.String DISABLE_COMPACTSTRINGS_FLAG;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "-XX:-CompactStrings"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.replacements.test.StringSubstitutionTestBase.<init>:()V
1: aload 0
2: aload 0
ldc Ljava/lang/String;
ldc "compareTo"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual org.graalvm.compiler.replacements.test.StringCompareToTest.getResolvedJavaMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
3: aload 0
ldc "stringCompareTo"
invokevirtual org.graalvm.compiler.replacements.test.StringCompareToTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
4: ldc Lorg/graalvm/compiler/replacements/nodes/ArrayCompareToNode;
5: invokevirtual org.graalvm.compiler.replacements.test.StringCompareToTest.initSubstitution:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Class;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/replacements/test/StringCompareToTest;
private int countNode(jdk.vm.ci.meta.ResolvedJavaMethod, java.lang.Class<?>, org.graalvm.compiler.options.OptionValues);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Class;Lorg/graalvm/compiler/options/OptionValues;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 3
invokevirtual org.graalvm.compiler.replacements.test.StringCompareToTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 4
start local 4 1: aload 0
aload 4
invokevirtual org.graalvm.compiler.replacements.test.StringCompareToTest.applyFrontEnd:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
2: iconst_0
istore 5
start local 5 3: aload 4
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 7
goto 7
StackMap locals: org.graalvm.compiler.replacements.test.StringCompareToTest jdk.vm.ci.meta.ResolvedJavaMethod java.lang.Class org.graalvm.compiler.options.OptionValues org.graalvm.compiler.nodes.StructuredGraph int top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 6
start local 6 5: aload 2
aload 6
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 7
6: iinc 5 1
end local 6 7: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: iload 5
ireturn
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 9 0 this Lorg/graalvm/compiler/replacements/test/StringCompareToTest;
0 9 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 9 2 expectedNode Ljava/lang/Class<*>;
0 9 3 options Lorg/graalvm/compiler/options/OptionValues;
1 9 4 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
3 9 5 c I
5 7 6 node Lorg/graalvm/compiler/graph/Node;
Signature: (Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Class<*>;Lorg/graalvm/compiler/options/OptionValues;)I
MethodParameters:
Name Flags
method
expectedNode
options
protected void initSubstitution(jdk.vm.ci.meta.ResolvedJavaMethod, jdk.vm.ci.meta.ResolvedJavaMethod, java.lang.Class<?>);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tAssume cannot be resolved\n\tAssume cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\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/StringCompareToTest;
Signature: (Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
theRealMethod
theTestMethod
expectedNode
public static int stringCompareTo(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
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.compareTo:(Ljava/lang/String;)I
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 testEqualString();
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/StringCompareToTest;
RuntimeInvisibleAnnotations:
Test()
public void testDifferentString();
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/StringCompareToTest;
RuntimeInvisibleAnnotations:
Test()
public void testAllStrings();
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/StringCompareToTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "StringCompareToTest.java"