public class org.jruby.ir.instructions.GetFieldInstr extends org.jruby.ir.instructions.GetInstr 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.GetFieldInstr
super_class: org.jruby.ir.instructions.GetInstr
{
private transient org.jruby.runtime.ivars.VariableAccessor accessor;
descriptor: Lorg/jruby/runtime/ivars/VariableAccessor;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
public void <init>(org.jruby.ir.operands.Variable, org.jruby.ir.operands.Operand, org.jruby.RubySymbol);
descriptor: (Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getstatic org.jruby.ir.Operation.GET_FIELD:Lorg/jruby/ir/Operation;
aload 1
aload 2
aload 3
invokespecial org.jruby.ir.instructions.GetInstr.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;)V
1: aload 0
getstatic org.jruby.runtime.ivars.VariableAccessor.DUMMY_ACCESSOR:Lorg/jruby/runtime/ivars/VariableAccessor;
putfield org.jruby.ir.instructions.GetFieldInstr.accessor:Lorg/jruby/runtime/ivars/VariableAccessor;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/GetFieldInstr;
0 3 1 dest Lorg/jruby/ir/operands/Variable;
0 3 2 obj Lorg/jruby/ir/operands/Operand;
0 3 3 fieldName Lorg/jruby/RubySymbol;
MethodParameters:
Name Flags
dest
obj
fieldName
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.GetFieldInstr
dup
aload 1
aload 0
invokevirtual org.jruby.ir.instructions.GetFieldInstr.getResult:()Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
1: aload 0
invokevirtual org.jruby.ir.instructions.GetFieldInstr.getSource:()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;
aload 0
invokevirtual org.jruby.ir.instructions.GetFieldInstr.getName:()Lorg/jruby/RubySymbol;
2: invokespecial org.jruby.ir.instructions.GetFieldInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/GetFieldInstr;
0 3 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
public static org.jruby.ir.instructions.GetFieldInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/GetFieldInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.GetFieldInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeVariable:()Lorg/jruby/ir/operands/Variable;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeSymbol:()Lorg/jruby/RubySymbol;
invokespecial org.jruby.ir.instructions.GetFieldInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;)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 org.jruby.runtime.ivars.VariableAccessor getAccessor(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/ivars/VariableAccessor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
astore 2
start local 2 1: aload 0
getfield org.jruby.ir.instructions.GetFieldInstr.accessor:Lorg/jruby/runtime/ivars/VariableAccessor;
astore 3
start local 3 2: aload 3
invokevirtual org.jruby.runtime.ivars.VariableAccessor.getClassId:()I
aload 2
invokevirtual org.jruby.RubyClass.hashCode:()I
if_icmpeq 5
3: aload 2
aload 0
invokevirtual org.jruby.ir.instructions.GetFieldInstr.getId:()Ljava/lang/String;
invokevirtual org.jruby.RubyClass.getVariableAccessorForRead:(Ljava/lang/String;)Lorg/jruby/runtime/ivars/VariableAccessor;
astore 3
4: aload 0
aload 3
putfield org.jruby.ir.instructions.GetFieldInstr.accessor:Lorg/jruby/runtime/ivars/VariableAccessor;
5: StackMap locals: org.jruby.RubyClass org.jruby.runtime.ivars.VariableAccessor
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ir/instructions/GetFieldInstr;
0 6 1 o Lorg/jruby/runtime/builtin/IRubyObject;
1 6 2 cls Lorg/jruby/RubyClass;
2 6 3 localAccessor Lorg/jruby/runtime/ivars/VariableAccessor;
MethodParameters:
Name Flags
o
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=10, 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.GetFieldInstr.getSource:()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 6
start local 6 1: aload 0
aload 6
invokevirtual org.jruby.ir.instructions.GetFieldInstr.getAccessor:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/ivars/VariableAccessor;
astore 7
start local 7 2: aload 7
ifnonnull 3
aconst_null
goto 4
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.ivars.VariableAccessor
StackMap stack:
3: aload 7
aload 6
invokevirtual org.jruby.runtime.ivars.VariableAccessor.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
4: astore 8
start local 8 5: aload 8
ifnonnull 10
6: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 9
start local 9 7: aload 9
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 9
8: aload 9
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.IVAR_NOT_INITIALIZED:Lorg/jruby/common/IRubyWarnings$ID;
aload 9
ldc "instance variable "
aload 9
aload 0
invokevirtual org.jruby.ir.instructions.GetFieldInstr.getId:()Ljava/lang/String;
invokestatic org.jruby.util.RubyStringBuilder.ids:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
ldc " not initialized"
invokestatic org.jruby.util.RubyStringBuilder.str:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
9: StackMap locals: java.lang.Object org.jruby.Ruby
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
astore 8
end local 9 10: StackMap locals:
StackMap stack:
aload 8
areturn
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 11 0 this Lorg/jruby/ir/instructions/GetFieldInstr;
0 11 1 context Lorg/jruby/runtime/ThreadContext;
0 11 2 currScope Lorg/jruby/parser/StaticScope;
0 11 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 11 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 11 5 temp [Ljava/lang/Object;
1 11 6 object Lorg/jruby/runtime/builtin/IRubyObject;
2 11 7 a Lorg/jruby/runtime/ivars/VariableAccessor;
5 11 8 result Ljava/lang/Object;
7 10 9 runtime Lorg/jruby/Ruby;
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.GetFieldInstr:(Lorg/jruby/ir/instructions/GetFieldInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/GetFieldInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "GetFieldInstr.java"
InnerClasses:
public final ID = org.jruby.common.IRubyWarnings$ID of org.jruby.common.IRubyWarnings