public class org.jruby.ir.dataflow.analyses.LiveVariablesProblem extends org.jruby.ir.dataflow.DataFlowProblem<org.jruby.ir.dataflow.analyses.LiveVariablesProblem, org.jruby.ir.dataflow.analyses.LiveVariableNode>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.dataflow.analyses.LiveVariablesProblem
super_class: org.jruby.ir.dataflow.DataFlowProblem
{
public static final java.lang.String NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "Live Variables Analysis"
private java.util.HashMap<org.jruby.ir.operands.Variable, java.lang.Integer> dfVarMap;
descriptor: Ljava/util/HashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashMap<Lorg/jruby/ir/operands/Variable;Ljava/lang/Integer;>;
private java.util.HashMap<java.lang.Integer, org.jruby.ir.operands.Variable> varDfVarMap;
descriptor: Ljava/util/HashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashMap<Ljava/lang/Integer;Lorg/jruby/ir/operands/Variable;>;
private java.util.HashSet<org.jruby.ir.operands.LocalVariable> localVars;
descriptor: Ljava/util/HashSet;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashSet<Lorg/jruby/ir/operands/LocalVariable;>;
private java.util.Collection<org.jruby.ir.operands.LocalVariable> varsLiveOnScopeExit;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Lorg/jruby/ir/operands/LocalVariable;>;
public void <init>(org.jruby.ir.IRScope);
descriptor: (Lorg/jruby/ir/IRScope;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic org.jruby.ir.dataflow.DataFlowProblem$DF_Direction.BACKWARD:Lorg/jruby/ir/dataflow/DataFlowProblem$DF_Direction;
invokespecial org.jruby.ir.dataflow.DataFlowProblem.<init>:(Lorg/jruby/ir/dataflow/DataFlowProblem$DF_Direction;)V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.dfVarMap:Ljava/util/HashMap;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.varDfVarMap:Ljava/util/HashMap;
3: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.localVars:Ljava/util/HashSet;
4: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.varsLiveOnScopeExit:Ljava/util/Collection;
5: aload 0
aload 1
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.setup:(Lorg/jruby/ir/IRScope;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 7 1 scope Lorg/jruby/ir/IRScope;
MethodParameters:
Name Flags
scope
public java.lang.Integer getDFVar(org.jruby.ir.operands.Variable);
descriptor: (Lorg/jruby/ir/operands/Variable;)Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.dfVarMap:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 1 1 v Lorg/jruby/ir/operands/Variable;
MethodParameters:
Name Flags
v
public boolean dfVarExists(org.jruby.ir.operands.Variable);
descriptor: (Lorg/jruby/ir/operands/Variable;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.getDFVar:(Lorg/jruby/ir/operands/Variable;)Ljava/lang/Integer;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 2 1 v Lorg/jruby/ir/operands/Variable;
MethodParameters:
Name Flags
v
public org.jruby.ir.operands.Variable getVariable(int);
descriptor: (I)Lorg/jruby/ir/operands/Variable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.varDfVarMap:Ljava/util/HashMap;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.ir.operands.Variable
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 1 1 id I
MethodParameters:
Name Flags
id
public org.jruby.ir.dataflow.analyses.LiveVariableNode buildFlowGraphNode(org.jruby.ir.representations.BasicBlock);
descriptor: (Lorg/jruby/ir/representations/BasicBlock;)Lorg/jruby/ir/dataflow/analyses/LiveVariableNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ir.dataflow.analyses.LiveVariableNode
dup
aload 0
aload 1
invokespecial org.jruby.ir.dataflow.analyses.LiveVariableNode.<init>:(Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;Lorg/jruby/ir/representations/BasicBlock;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 1 1 bb Lorg/jruby/ir/representations/BasicBlock;
MethodParameters:
Name Flags
bb
public void addDFVar(org.jruby.ir.operands.Variable);
descriptor: (Lorg/jruby/ir/operands/Variable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.addDataFlowVar:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
start local 2 1: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.dfVarMap:Ljava/util/HashMap;
aload 1
aload 2
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.varDfVarMap:Ljava/util/HashMap;
aload 2
aload 1
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 1
instanceof org.jruby.ir.operands.LocalVariable
ifeq 5
aload 1
invokevirtual org.jruby.ir.operands.Variable.isSelf:()Z
ifne 5
4: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.localVars:Ljava/util/HashSet;
aload 1
checkcast org.jruby.ir.operands.LocalVariable
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals: java.lang.Integer
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 6 1 v Lorg/jruby/ir/operands/Variable;
1 6 2 dfv Ljava/lang/Integer;
MethodParameters:
Name Flags
v
public java.util.Collection<org.jruby.ir.operands.LocalVariable> getLocalVarsLiveOnScopeEntry();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
aload 0
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.getScope:()Lorg/jruby/ir/IRScope;
invokevirtual org.jruby.ir.IRScope.getCFG:()Lorg/jruby/ir/representations/CFG;
invokevirtual org.jruby.ir.representations.CFG.getEntryBB:()Lorg/jruby/ir/representations/BasicBlock;
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.getFlowGraphNode:(Lorg/jruby/ir/representations/BasicBlock;)Lorg/jruby/ir/dataflow/FlowGraphNode;
checkcast org.jruby.ir.dataflow.analyses.LiveVariableNode
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariableNode.getLiveOutBitSet:()Ljava/util/BitSet;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 9
4: StackMap locals: java.util.List java.util.BitSet int
StackMap stack:
aload 2
iload 3
invokevirtual java.util.BitSet.get:(I)Z
ifne 5
goto 8
5: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.getVariable:(I)Lorg/jruby/ir/operands/Variable;
astore 4
start local 4 6: aload 4
instanceof org.jruby.ir.operands.LocalVariable
ifeq 8
7: aload 1
aload 4
checkcast org.jruby.ir.operands.LocalVariable
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 2
invokevirtual java.util.BitSet.size:()I
if_icmplt 4
end local 3 10: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
1 11 1 liveVars Ljava/util/List<Lorg/jruby/ir/operands/LocalVariable;>;
2 11 2 liveIn Ljava/util/BitSet;
3 10 3 i I
6 8 4 v Lorg/jruby/ir/operands/Variable;
Signature: ()Ljava/util/Collection<Lorg/jruby/ir/operands/LocalVariable;>;
public java.lang.String getDataFlowVarsForOutput();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.dfVarMap:Ljava/util/HashMap;
invokevirtual java.util.HashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.jruby.ir.dataflow.analyses.LiveVariablesProblem java.lang.StringBuilder top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 1
ldc "DF Var "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
1 6 1 buf Ljava/lang/StringBuilder;
3 4 2 entry Ljava/util/Map$Entry<Lorg/jruby/ir/operands/Variable;Ljava/lang/Integer;>;
public void markDeadInstructions();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.flowGraphNodes:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: org.jruby.ir.dataflow.analyses.LiveVariablesProblem top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jruby.ir.dataflow.analyses.LiveVariableNode
astore 1
start local 1 2: aload 1
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariableNode.markDeadInstructions:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
2 3 1 n Lorg/jruby/ir/dataflow/analyses/LiveVariableNode;
public void setVarsLiveOnScopeExit(java.util.Collection<org.jruby.ir.operands.LocalVariable>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.varsLiveOnScopeExit:Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
0 2 1 vars Ljava/util/Collection<Lorg/jruby/ir/operands/LocalVariable;>;
Signature: (Ljava/util/Collection<Lorg/jruby/ir/operands/LocalVariable;>;)V
MethodParameters:
Name Flags
vars
public java.util.Collection<org.jruby.ir.operands.LocalVariable> getVarsLiveOnScopeExit();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.varsLiveOnScopeExit:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
Signature: ()Ljava/util/Collection<Lorg/jruby/ir/operands/LocalVariable;>;
public java.util.Set<org.jruby.ir.operands.Variable> getAllVars();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.dfVarMap:Ljava/util/HashMap;
invokevirtual java.util.HashMap.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
Signature: ()Ljava/util/Set<Lorg/jruby/ir/operands/Variable;>;
public java.util.Set<org.jruby.ir.operands.LocalVariable> getNonSelfLocalVars();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.dataflow.analyses.LiveVariablesProblem.localVars:Ljava/util/HashSet;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
Signature: ()Ljava/util/Set<Lorg/jruby/ir/operands/LocalVariable;>;
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: ldc "Live Variables Analysis"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;
public org.jruby.ir.dataflow.FlowGraphNode buildFlowGraphNode(org.jruby.ir.representations.BasicBlock);
descriptor: (Lorg/jruby/ir/representations/BasicBlock;)Lorg/jruby/ir/dataflow/FlowGraphNode;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.jruby.ir.dataflow.analyses.LiveVariablesProblem.buildFlowGraphNode:(Lorg/jruby/ir/representations/BasicBlock;)Lorg/jruby/ir/dataflow/analyses/LiveVariableNode;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/jruby/ir/dataflow/DataFlowProblem<Lorg/jruby/ir/dataflow/analyses/LiveVariablesProblem;Lorg/jruby/ir/dataflow/analyses/LiveVariableNode;>;
SourceFile: "LiveVariablesProblem.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public final DF_Direction = org.jruby.ir.dataflow.DataFlowProblem$DF_Direction of org.jruby.ir.dataflow.DataFlowProblem