public class org.jruby.ir.instructions.PutGlobalVarInstr extends org.jruby.ir.instructions.TwoOperandInstr implements org.jruby.ir.instructions.FixedArityInstr
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.instructions.PutGlobalVarInstr
super_class: org.jruby.ir.instructions.TwoOperandInstr
{
public void <init>(org.jruby.RubySymbol, org.jruby.ir.operands.Operand);
descriptor: (Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.jruby.ir.operands.GlobalVariable
dup
aload 1
invokespecial org.jruby.ir.operands.GlobalVariable.<init>:(Lorg/jruby/RubySymbol;)V
aload 2
invokespecial org.jruby.ir.instructions.PutGlobalVarInstr.<init>:(Lorg/jruby/ir/operands/GlobalVariable;Lorg/jruby/ir/operands/Operand;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 2 1 varName Lorg/jruby/RubySymbol;
0 2 2 value Lorg/jruby/ir/operands/Operand;
MethodParameters:
Name Flags
varName
value
public void <init>(org.jruby.ir.operands.GlobalVariable, org.jruby.ir.operands.Operand);
descriptor: (Lorg/jruby/ir/operands/GlobalVariable;Lorg/jruby/ir/operands/Operand;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic org.jruby.ir.Operation.PUT_GLOBAL_VAR:Lorg/jruby/ir/Operation;
aload 1
aload 2
invokespecial org.jruby.ir.instructions.TwoOperandInstr.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 2 1 gvar Lorg/jruby/ir/operands/GlobalVariable;
0 2 2 value Lorg/jruby/ir/operands/Operand;
MethodParameters:
Name Flags
gvar
value
public boolean computeScopeFlags(org.jruby.ir.IRScope);
descriptor: (Lorg/jruby/ir/IRScope;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getTarget:()Lorg/jruby/ir/operands/GlobalVariable;
invokevirtual org.jruby.ir.operands.GlobalVariable.getId:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "$_"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
aload 2
ldc "$LAST_READ_LINE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokevirtual org.jruby.ir.IRScope.getFlags:()Ljava/util/EnumSet;
getstatic org.jruby.ir.IRFlags.REQUIRES_LASTLINE:Lorg/jruby/ir/IRFlags;
invokevirtual java.util.EnumSet.add:(Ljava/lang/Object;)Z
pop
3: goto 9
StackMap locals:
StackMap stack:
4: aload 2
ldc "$~"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
aload 2
ldc "$`"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
aload 2
ldc "$'"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
5: aload 2
ldc "$+"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
aload 2
ldc "$LAST_MATCH_INFO"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: aload 2
ldc "$PREMATCH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
aload 2
ldc "$POSTMATCH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
aload 2
ldc "$LAST_PAREN_MATCH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.ir.IRScope.getFlags:()Ljava/util/EnumSet;
getstatic org.jruby.ir.IRFlags.REQUIRES_BACKREF:Lorg/jruby/ir/IRFlags;
invokevirtual java.util.EnumSet.add:(Ljava/lang/Object;)Z
pop
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 10 1 scope Lorg/jruby/ir/IRScope;
1 10 2 name Ljava/lang/String;
MethodParameters:
Name Flags
scope
public org.jruby.ir.operands.GlobalVariable getTarget();
descriptor: ()Lorg/jruby/ir/operands/GlobalVariable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getOperand1:()Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.GlobalVariable
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
public org.jruby.ir.operands.Operand getValue();
descriptor: ()Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getOperand2:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
public org.jruby.ir.instructions.Instr clone(org.jruby.ir.transformations.inlining.CloneInfo);
descriptor: (Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/instructions/Instr;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ir.instructions.PutGlobalVarInstr
dup
aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getTarget:()Lorg/jruby/ir/operands/GlobalVariable;
invokevirtual org.jruby.ir.operands.GlobalVariable.getName:()Lorg/jruby/RubySymbol;
aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getValue:()Lorg/jruby/ir/operands/Operand;
aload 1
invokevirtual org.jruby.ir.operands.Operand.cloneForInlining:(Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/operands/Operand;
invokespecial org.jruby.ir.instructions.PutGlobalVarInstr.<init>:(Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 1 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
public void encode(org.jruby.ir.persistence.IRWriterEncoder);
descriptor: (Lorg/jruby/ir/persistence/IRWriterEncoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.ir.instructions.TwoOperandInstr.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getTarget:()Lorg/jruby/ir/operands/GlobalVariable;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getValue:()Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 4 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.PutGlobalVarInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/PutGlobalVarInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.PutGlobalVarInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.GlobalVariable
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
invokespecial org.jruby.ir.instructions.PutGlobalVarInstr.<init>:(Lorg/jruby/ir/operands/GlobalVariable;Lorg/jruby/ir/operands/Operand;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 d Lorg/jruby/ir/persistence/IRReaderDecoder;
MethodParameters:
Name Flags
d
public java.lang.Object interpret(org.jruby.runtime.ThreadContext, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, org.jruby.runtime.builtin.IRubyObject, java.lang.Object[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;Lorg/jruby/runtime/builtin/IRubyObject;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getTarget:()Lorg/jruby/ir/operands/GlobalVariable;
astore 6
start local 6 1: aload 0
invokevirtual org.jruby.ir.instructions.PutGlobalVarInstr.getValue:()Lorg/jruby/ir/operands/Operand;
aload 1
aload 4
aload 2
aload 3
aload 5
invokevirtual org.jruby.ir.operands.Operand.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 7
start local 7 2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getGlobalVariables:()Lorg/jruby/internal/runtime/GlobalVariables;
aload 6
invokevirtual org.jruby.ir.operands.GlobalVariable.getId:()Ljava/lang/String;
aload 7
invokevirtual org.jruby.internal.runtime.GlobalVariables.set:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
3: aconst_null
areturn
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 4 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 currScope Lorg/jruby/parser/StaticScope;
0 4 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 4 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 4 5 temp [Ljava/lang/Object;
1 4 6 target Lorg/jruby/ir/operands/GlobalVariable;
2 4 7 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
currScope
currDynScope
self
temp
public void visit(org.jruby.ir.IRVisitor);
descriptor: (Lorg/jruby/ir/IRVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.ir.IRVisitor.PutGlobalVarInstr:(Lorg/jruby/ir/instructions/PutGlobalVarInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/PutGlobalVarInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "PutGlobalVarInstr.java"