public class org.graalvm.compiler.core.match.MatchStatement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.match.MatchStatement
super_class: java.lang.Object
{
private static final org.graalvm.compiler.debug.DebugCounter MatchStatementSuccess;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.core.match.MatchPattern pattern;
descriptor: Lorg/graalvm/compiler/core/match/MatchPattern;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.graalvm.compiler.core.match.MatchGenerator generatorMethod;
descriptor: Lorg/graalvm/compiler/core/match/MatchGenerator;
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] arguments;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
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/core/match/MatchStatement;
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.core.match.MatchStatement.$assertionsDisabled:Z
3: ldc "MatchStatementSuccess"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.core.match.MatchStatement.MatchStatementSuccess:Lorg/graalvm/compiler/debug/DebugCounter;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, org.graalvm.compiler.core.match.MatchPattern, org.graalvm.compiler.core.match.MatchGenerator, java.lang.String[]);
descriptor: (Ljava/lang/String;Lorg/graalvm/compiler/core/match/MatchPattern;Lorg/graalvm/compiler/core/match/MatchGenerator;[Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.core.match.MatchStatement.name:Ljava/lang/String;
2: aload 0
aload 2
putfield org.graalvm.compiler.core.match.MatchStatement.pattern:Lorg/graalvm/compiler/core/match/MatchPattern;
3: aload 0
aload 3
putfield org.graalvm.compiler.core.match.MatchStatement.generatorMethod:Lorg/graalvm/compiler/core/match/MatchGenerator;
4: aload 0
aload 4
putfield org.graalvm.compiler.core.match.MatchStatement.arguments:[Ljava/lang/String;
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/core/match/MatchStatement;
0 6 1 name Ljava/lang/String;
0 6 2 pattern Lorg/graalvm/compiler/core/match/MatchPattern;
0 6 3 generator Lorg/graalvm/compiler/core/match/MatchGenerator;
0 6 4 arguments [Ljava/lang/String;
MethodParameters:
Name Flags
name
pattern
generator
arguments
public boolean generate(org.graalvm.compiler.core.gen.NodeLIRBuilder, int, org.graalvm.compiler.graph.Node, java.util.List<org.graalvm.compiler.graph.Node>);
descriptor: (Lorg/graalvm/compiler/core/gen/NodeLIRBuilder;ILorg/graalvm/compiler/graph/Node;Ljava/util/List;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic org.graalvm.compiler.core.match.MatchStatement.$assertionsDisabled:Z
ifne 1
iload 2
aload 4
aload 3
invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
if_icmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.pattern:Lorg/graalvm/compiler/core/match/MatchPattern;
aload 3
aload 0
invokevirtual org.graalvm.compiler.core.match.MatchPattern.matchShape:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/core/match/MatchStatement;)Lorg/graalvm/compiler/core/match/MatchPattern$Result;
astore 5
start local 5 2: aload 5
getstatic org.graalvm.compiler.core.match.MatchPattern$Result.OK:Lorg/graalvm/compiler/core/match/MatchPattern$Result;
if_acmpeq 4
3: iconst_0
ireturn
4: StackMap locals: org.graalvm.compiler.core.match.MatchPattern$Result
StackMap stack:
new org.graalvm.compiler.core.match.MatchContext
dup
aload 1
aload 0
iload 2
aload 3
aload 4
invokespecial org.graalvm.compiler.core.match.MatchContext.<init>:(Lorg/graalvm/compiler/core/gen/NodeLIRBuilder;Lorg/graalvm/compiler/core/match/MatchStatement;ILorg/graalvm/compiler/graph/Node;Ljava/util/List;)V
astore 6
start local 6 5: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.pattern:Lorg/graalvm/compiler/core/match/MatchPattern;
aload 3
aload 6
invokevirtual org.graalvm.compiler.core.match.MatchPattern.matchUsage:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/core/match/MatchContext;)Lorg/graalvm/compiler/core/match/MatchPattern$Result;
astore 5
6: aload 5
getstatic org.graalvm.compiler.core.match.MatchPattern$Result.OK:Lorg/graalvm/compiler/core/match/MatchPattern$Result;
if_acmpne 17
7: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.generatorMethod:Lorg/graalvm/compiler/core/match/MatchGenerator;
aload 1
invokevirtual org.graalvm.compiler.core.gen.NodeLIRBuilder.getNodeMatchRules:()Lorg/graalvm/compiler/core/gen/NodeMatchRules;
aload 0
aload 6
invokevirtual org.graalvm.compiler.core.match.MatchStatement.buildArgList:(Lorg/graalvm/compiler/core/match/MatchContext;)[Ljava/lang/Object;
invokeinterface org.graalvm.compiler.core.match.MatchGenerator.match:(Lorg/graalvm/compiler/core/gen/NodeMatchRules;[Ljava/lang/Object;)Lorg/graalvm/compiler/core/match/ComplexMatchResult;
astore 7
start local 7 8: aload 7
ifnull 13
9: aload 6
aload 7
invokevirtual org.graalvm.compiler.core.match.MatchContext.setResult:(Lorg/graalvm/compiler/core/match/ComplexMatchResult;)V
10: getstatic org.graalvm.compiler.core.match.MatchStatement.MatchStatementSuccess:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
11: ldc "MatchStatement[%s]"
aload 0
invokevirtual org.graalvm.compiler.core.match.MatchStatement.getName:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/String;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
12: iconst_1
ireturn
13: StackMap locals: org.graalvm.compiler.core.match.MatchContext org.graalvm.compiler.core.match.ComplexMatchResult
StackMap stack:
getstatic org.graalvm.compiler.debug.GraalDebugConfig$Options.LogVerbose:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 19
14: ldc "while matching %s|%s %s %s returned null"
aload 6
invokevirtual org.graalvm.compiler.core.match.MatchContext.getRoot:()Lorg/graalvm/compiler/graph/Node;
getstatic org.graalvm.compiler.nodeinfo.Verbosity.Id:Lorg/graalvm/compiler/nodeinfo/Verbosity;
invokevirtual org.graalvm.compiler.graph.Node.toString:(Lorg/graalvm/compiler/nodeinfo/Verbosity;)Ljava/lang/String;
aload 6
invokevirtual org.graalvm.compiler.core.match.MatchContext.getRoot:()Lorg/graalvm/compiler/graph/Node;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aload 0
invokevirtual org.graalvm.compiler.core.match.MatchStatement.getName:()Ljava/lang/String;
aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.generatorMethod:Lorg/graalvm/compiler/core/match/MatchGenerator;
invokeinterface org.graalvm.compiler.core.match.MatchGenerator.getName:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
15: ldc "with nodes %s"
aload 0
aload 3
invokevirtual org.graalvm.compiler.core.match.MatchStatement.formatMatch:(Lorg/graalvm/compiler/graph/Node;)Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;)V
end local 7 16: goto 19
17: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.debug.GraalDebugConfig$Options.LogVerbose:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 19
aload 5
getfield org.graalvm.compiler.core.match.MatchPattern$Result.code:Lorg/graalvm/compiler/core/match/MatchPattern$MatchResultCode;
getstatic org.graalvm.compiler.core.match.MatchPattern$MatchResultCode.WRONG_CLASS:Lorg/graalvm/compiler/core/match/MatchPattern$MatchResultCode;
if_acmpeq 19
18: ldc "while matching %s|%s %s %s"
aload 6
invokevirtual org.graalvm.compiler.core.match.MatchContext.getRoot:()Lorg/graalvm/compiler/graph/Node;
getstatic org.graalvm.compiler.nodeinfo.Verbosity.Id:Lorg/graalvm/compiler/nodeinfo/Verbosity;
invokevirtual org.graalvm.compiler.graph.Node.toString:(Lorg/graalvm/compiler/nodeinfo/Verbosity;)Ljava/lang/String;
aload 6
invokevirtual org.graalvm.compiler.core.match.MatchContext.getRoot:()Lorg/graalvm/compiler/graph/Node;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aload 0
invokevirtual org.graalvm.compiler.core.match.MatchStatement.getName:()Ljava/lang/String;
aload 5
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
19: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 this Lorg/graalvm/compiler/core/match/MatchStatement;
0 20 1 builder Lorg/graalvm/compiler/core/gen/NodeLIRBuilder;
0 20 2 index I
0 20 3 node Lorg/graalvm/compiler/graph/Node;
0 20 4 nodes Ljava/util/List<Lorg/graalvm/compiler/graph/Node;>;
2 20 5 result Lorg/graalvm/compiler/core/match/MatchPattern$Result;
5 20 6 context Lorg/graalvm/compiler/core/match/MatchContext;
8 16 7 value Lorg/graalvm/compiler/core/match/ComplexMatchResult;
Signature: (Lorg/graalvm/compiler/core/gen/NodeLIRBuilder;ILorg/graalvm/compiler/graph/Node;Ljava/util/List<Lorg/graalvm/compiler/graph/Node;>;)Z
MethodParameters:
Name Flags
builder
index
node
nodes
private java.lang.Object[] buildArgList(org.graalvm.compiler.core.match.MatchContext);
descriptor: (Lorg/graalvm/compiler/core/match/MatchContext;)[Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.arguments:[Ljava/lang/String;
arraylength
anewarray java.lang.Object
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 10
3: StackMap locals: java.lang.Object[] int
StackMap stack:
ldc "root"
aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.arguments:[Ljava/lang/String;
iload 3
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 2
iload 3
aload 1
invokevirtual org.graalvm.compiler.core.match.MatchContext.getRoot:()Lorg/graalvm/compiler/graph/Node;
aastore
5: goto 9
6: StackMap locals:
StackMap stack:
aload 2
iload 3
aload 1
aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.arguments:[Ljava/lang/String;
iload 3
aaload
invokevirtual org.graalvm.compiler.core.match.MatchContext.namedNode:(Ljava/lang/String;)Lorg/graalvm/compiler/graph/Node;
aastore
7: aload 2
iload 3
aaload
ifnonnull 9
8: new org.graalvm.compiler.graph.GraalGraphError
dup
ldc "Can't find named node %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.arguments:[Ljava/lang/String;
iload 3
aaload
aastore
invokespecial org.graalvm.compiler.graph.GraalGraphError.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.arguments:[Ljava/lang/String;
arraylength
if_icmplt 3
end local 3 11: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/graalvm/compiler/core/match/MatchStatement;
0 12 1 context Lorg/graalvm/compiler/core/match/MatchContext;
1 12 2 result [Ljava/lang/Object;
2 11 3 i I
MethodParameters:
Name Flags
context
public java.lang.String formatMatch(org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/Node;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.pattern:Lorg/graalvm/compiler/core/match/MatchPattern;
aload 1
invokevirtual org.graalvm.compiler.core.match.MatchPattern.formatMatch:(Lorg/graalvm/compiler/graph/Node;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/match/MatchStatement;
0 1 1 root Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
root
public org.graalvm.compiler.core.match.MatchPattern getPattern();
descriptor: ()Lorg/graalvm/compiler/core/match/MatchPattern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.pattern:Lorg/graalvm/compiler/core/match/MatchPattern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/match/MatchStatement;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/match/MatchStatement;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.match.MatchStatement.pattern:Lorg/graalvm/compiler/core/match/MatchPattern;
invokevirtual org.graalvm.compiler.core.match.MatchPattern.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/match/MatchStatement;
}
SourceFile: "MatchStatement.java"
InnerClasses:
final MatchResultCode = org.graalvm.compiler.core.match.MatchPattern$MatchResultCode of org.graalvm.compiler.core.match.MatchPattern
Result = org.graalvm.compiler.core.match.MatchPattern$Result of org.graalvm.compiler.core.match.MatchPattern
public Options = org.graalvm.compiler.debug.GraalDebugConfig$Options of org.graalvm.compiler.debug.GraalDebugConfig