public class org.jruby.ir.instructions.YieldInstr extends org.jruby.ir.instructions.TwoOperandResultBaseInstr implements org.jruby.ir.instructions.FixedArityInstr, org.jruby.ir.instructions.Site
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.instructions.YieldInstr
super_class: org.jruby.ir.instructions.TwoOperandResultBaseInstr
{
public final boolean unwrapArray;
descriptor: Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private long callSiteId;
descriptor: J
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/jruby/ir/instructions/YieldInstr;
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.jruby.ir.instructions.YieldInstr.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.ir.operands.Variable, org.jruby.ir.operands.Operand, org.jruby.ir.operands.Operand, boolean);
descriptor: (Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getstatic org.jruby.ir.Operation.YIELD:Lorg/jruby/ir/Operation;
aload 1
aload 2
aload 3
ifnonnull 1
getstatic org.jruby.ir.operands.UndefinedValue.UNDEFINED:Lorg/jruby/ir/operands/UndefinedValue;
goto 2
StackMap locals: uninitialized-this org.jruby.ir.operands.Variable org.jruby.ir.operands.Operand org.jruby.ir.operands.Operand int
StackMap stack: uninitialized-this org.jruby.ir.Operation org.jruby.ir.operands.Variable org.jruby.ir.operands.Operand
1: aload 3
StackMap locals: uninitialized-this org.jruby.ir.operands.Variable org.jruby.ir.operands.Operand org.jruby.ir.operands.Operand int
StackMap stack: uninitialized-this org.jruby.ir.Operation org.jruby.ir.operands.Variable org.jruby.ir.operands.Operand org.jruby.ir.operands.Operand
2: invokespecial org.jruby.ir.instructions.TwoOperandResultBaseInstr.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;)V
3: getstatic org.jruby.ir.instructions.YieldInstr.$assertionsDisabled:Z
ifne 4
aload 1
ifnonnull 4
new java.lang.AssertionError
dup
ldc "YieldInstr result is null"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: org.jruby.ir.instructions.YieldInstr org.jruby.ir.operands.Variable org.jruby.ir.operands.Operand org.jruby.ir.operands.Operand int
StackMap stack:
aload 0
iload 4
putfield org.jruby.ir.instructions.YieldInstr.unwrapArray:Z
5: aload 0
getstatic org.jruby.ir.instructions.CallBase.callSiteCounter:J
dup2
lconst_1
ladd
putstatic org.jruby.ir.instructions.CallBase.callSiteCounter:J
putfield org.jruby.ir.instructions.YieldInstr.callSiteId:J
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ir/instructions/YieldInstr;
0 7 1 result Lorg/jruby/ir/operands/Variable;
0 7 2 block Lorg/jruby/ir/operands/Operand;
0 7 3 arg Lorg/jruby/ir/operands/Operand;
0 7 4 unwrapArray Z
MethodParameters:
Name Flags
result
block
arg
unwrapArray
public org.jruby.ir.operands.Operand getBlockArg();
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.YieldInstr.getOperand1:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/YieldInstr;
public org.jruby.ir.operands.Operand getYieldArg();
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.YieldInstr.getOperand2:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/YieldInstr;
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=6, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ir.instructions.YieldInstr
dup
aload 1
aload 0
getfield org.jruby.ir.instructions.YieldInstr.result:Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.getBlockArg:()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;
1: aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.getYieldArg:()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
getfield org.jruby.ir.instructions.YieldInstr.unwrapArray:Z
2: invokespecial org.jruby.ir.instructions.YieldInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/YieldInstr;
0 3 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
public java.lang.String[] toStringNonOperandArgs();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: iconst_1
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
ldc "unwrap: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.YieldInstr.unwrapArray:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/YieldInstr;
public boolean isUnwrapArray();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.YieldInstr.unwrapArray:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/YieldInstr;
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.TwoOperandResultBaseInstr.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.getBlockArg:()Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.getYieldArg:()Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
3: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.isUnwrapArray:()Z
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Z)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ir/instructions/YieldInstr;
0 5 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.YieldInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/YieldInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.YieldInstr
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.decodeOperand:()Lorg/jruby/ir/operands/Operand;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeBoolean:()Z
invokespecial org.jruby.ir.instructions.YieldInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;Z)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=8, locals=9, 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.YieldInstr.getBlockArg:()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.Block
astore 6
start local 6 1: aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.getYieldArg:()Lorg/jruby/ir/operands/Operand;
getstatic org.jruby.ir.operands.UndefinedValue.UNDEFINED:Lorg/jruby/ir/operands/UndefinedValue;
if_acmpne 3
2: aload 1
aload 6
invokestatic org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: org.jruby.runtime.Block
StackMap stack:
aload 0
invokevirtual org.jruby.ir.instructions.YieldInstr.getYieldArg:()Lorg/jruby/ir/operands/Operand;
astore 7
start local 7 4: aload 0
getfield org.jruby.ir.instructions.YieldInstr.unwrapArray:Z
ifeq 6
aload 7
instanceof org.jruby.ir.operands.Array
ifeq 6
aload 7
checkcast org.jruby.ir.operands.Array
invokevirtual org.jruby.ir.operands.Array.size:()I
iconst_1
if_icmple 6
5: aload 6
aload 1
aload 7
checkcast org.jruby.ir.operands.Array
aload 1
aload 4
aload 2
aload 3
aload 5
invokevirtual org.jruby.ir.operands.Array.retrieveArrayElts:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)[Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.runtime.Block.yieldValues:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
6: StackMap locals: org.jruby.ir.operands.Operand
StackMap stack:
aload 7
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 8
start local 8 7: aload 1
aload 6
aload 8
aload 0
getfield org.jruby.ir.instructions.YieldInstr.unwrapArray:Z
invokestatic org.jruby.ir.runtime.IRRuntimeHelpers.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jruby/runtime/builtin/IRubyObject;
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 8 0 this Lorg/jruby/ir/instructions/YieldInstr;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 currScope Lorg/jruby/parser/StaticScope;
0 8 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 8 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 8 5 temp [Ljava/lang/Object;
1 8 6 blk Lorg/jruby/runtime/Block;
4 8 7 yieldOp Lorg/jruby/ir/operands/Operand;
7 8 8 yieldVal Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeInvisibleAnnotations:
org.jruby.ir.Interp()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
org.jruby.ir.Interp()
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.YieldInstr:(Lorg/jruby/ir/instructions/YieldInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/YieldInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
public long getCallSiteId();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.YieldInstr.callSiteId:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/YieldInstr;
public void setCallSiteId(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield org.jruby.ir.instructions.YieldInstr.callSiteId:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/YieldInstr;
0 2 1 callSiteId J
MethodParameters:
Name Flags
callSiteId
}
SourceFile: "YieldInstr.java"