public class org.jruby.ir.instructions.AsStringInstr extends org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.instructions.AsStringInstr
super_class: org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr
{
public static final org.jruby.util.ByteList TO_S;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new org.jruby.util.ByteList
dup
iconst_4
newarray 8
dup
iconst_0
bipush 116
bastore
dup
iconst_1
bipush 111
bastore
dup
iconst_2
bipush 95
bastore
dup
iconst_3
bipush 115
bastore
invokespecial org.jruby.util.ByteList.<init>:([B)V
putstatic org.jruby.ir.instructions.AsStringInstr.TO_S:Lorg/jruby/util/ByteList;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.ir.IRScope, org.jruby.ir.operands.Variable, org.jruby.ir.operands.Operand, boolean);
descriptor: (Lorg/jruby/ir/IRScope;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
1: aload 1
2: getstatic org.jruby.ir.Operation.AS_STRING:Lorg/jruby/ir/Operation;
3: getstatic org.jruby.runtime.CallType.FUNCTIONAL:Lorg/jruby/runtime/CallType;
4: aload 2
5: aload 1
invokevirtual org.jruby.ir.IRScope.getManager:()Lorg/jruby/ir/IRManager;
invokevirtual org.jruby.ir.IRManager.getRuntime:()Lorg/jruby/Ruby;
getstatic org.jruby.ir.instructions.AsStringInstr.TO_S:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.Ruby.newSymbol:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubySymbol;
6: aload 3
invokestatic org.jruby.ir.instructions.AsStringInstr.nonNull:(Lorg/jruby/ir/operands/Operand;)Lorg/jruby/ir/operands/Operand;
7: getstatic org.jruby.ir.operands.Operand.EMPTY_ARRAY:[Lorg/jruby/ir/operands/Operand;
8: iload 4
invokespecial org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr.<init>:(Lorg/jruby/ir/IRScope;Lorg/jruby/ir/Operation;Lorg/jruby/runtime/CallType;Lorg/jruby/ir/operands/Variable;Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;[Lorg/jruby/ir/operands/Operand;Z)V
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ir/instructions/AsStringInstr;
0 10 1 scope Lorg/jruby/ir/IRScope;
0 10 2 result Lorg/jruby/ir/operands/Variable;
0 10 3 source Lorg/jruby/ir/operands/Operand;
0 10 4 isPotentiallyRefined Z
MethodParameters:
Name Flags
scope
result
source
isPotentiallyRefined
private void <init>(org.jruby.ir.IRScope, org.jruby.ir.operands.Variable, org.jruby.ir.operands.Operand, boolean, org.jruby.runtime.CallSite, long);
descriptor: (Lorg/jruby/ir/IRScope;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;ZLorg/jruby/runtime/CallSite;J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=12, locals=8, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
1: aload 1
2: getstatic org.jruby.ir.Operation.AS_STRING:Lorg/jruby/ir/Operation;
3: getstatic org.jruby.runtime.CallType.FUNCTIONAL:Lorg/jruby/runtime/CallType;
4: aload 2
5: aload 1
invokevirtual org.jruby.ir.IRScope.getManager:()Lorg/jruby/ir/IRManager;
invokevirtual org.jruby.ir.IRManager.getRuntime:()Lorg/jruby/Ruby;
getstatic org.jruby.ir.instructions.AsStringInstr.TO_S:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.Ruby.newSymbol:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubySymbol;
6: aload 3
invokestatic org.jruby.ir.instructions.AsStringInstr.nonNull:(Lorg/jruby/ir/operands/Operand;)Lorg/jruby/ir/operands/Operand;
7: getstatic org.jruby.ir.operands.Operand.EMPTY_ARRAY:[Lorg/jruby/ir/operands/Operand;
8: iload 4
9: aload 5
10: lload 6
invokespecial org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr.<init>:(Lorg/jruby/ir/IRScope;Lorg/jruby/ir/Operation;Lorg/jruby/runtime/CallType;Lorg/jruby/ir/operands/Variable;Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;[Lorg/jruby/ir/operands/Operand;ZLorg/jruby/runtime/CallSite;J)V
11: return
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 12 0 this Lorg/jruby/ir/instructions/AsStringInstr;
0 12 1 scope Lorg/jruby/ir/IRScope;
0 12 2 result Lorg/jruby/ir/operands/Variable;
0 12 3 source Lorg/jruby/ir/operands/Operand;
0 12 4 isPotentiallyRefined Z
0 12 5 callSite Lorg/jruby/runtime/CallSite;
0 12 6 callSiteId J
MethodParameters:
Name Flags
scope
result
source
isPotentiallyRefined
callSite
callSiteId
private static org.jruby.ir.operands.Operand nonNull(org.jruby.ir.operands.Operand);
descriptor: (Lorg/jruby/ir/operands/Operand;)Lorg/jruby/ir/operands/Operand;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 1
getstatic org.jruby.ir.operands.StringLiteral.EMPTY_STRING:Lorg/jruby/ir/operands/StringLiteral;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
StackMap locals:
StackMap stack: org.jruby.ir.operands.Operand
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 source Lorg/jruby/ir/operands/Operand;
MethodParameters:
Name Flags
source
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=9, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ir.instructions.AsStringInstr
dup
aload 1
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getScope:()Lorg/jruby/ir/IRScope;
aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.getResult:()Lorg/jruby/ir/operands/Variable;
aload 1
invokevirtual org.jruby.ir.operands.Variable.cloneForInlining:(Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.Variable
1: aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.getReceiver:()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.AsStringInstr.isPotentiallyRefined:()Z
aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.getCallSite:()Lorg/jruby/runtime/CallSite;
aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.getCallSiteId:()J
2: invokespecial org.jruby.ir.instructions.AsStringInstr.<init>:(Lorg/jruby/ir/IRScope;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;ZLorg/jruby/runtime/CallSite;J)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/AsStringInstr;
0 3 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 1
getstatic org.jruby.ir.Operation.AS_STRING:Lorg/jruby/ir/Operation;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/Operation;)V
1: aload 1
aload 0
getfield org.jruby.ir.instructions.AsStringInstr.result:Lorg/jruby/ir/operands/Variable;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.getReceiver:()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.AsStringInstr.isPotentiallyRefined:()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/AsStringInstr;
0 5 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.AsStringInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/AsStringInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.AsStringInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.getCurrentScope:()Lorg/jruby/ir/IRScope;
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.decodeBoolean:()Z
invokespecial org.jruby.ir.instructions.AsStringInstr.<init>:(Lorg/jruby/ir/IRScope;Lorg/jruby/ir/operands/Variable;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=6, locals=7, 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.AsStringInstr.getReceiver:()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;
astore 6
start local 6 1: aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.isPotentiallyRefined:()Z
ifeq 3
2: aload 1
aload 4
aload 6
checkcast org.jruby.runtime.builtin.IRubyObject
aload 0
invokevirtual org.jruby.ir.instructions.AsStringInstr.getCallSite:()Lorg/jruby/runtime/CallSite;
invokestatic org.jruby.ir.runtime.IRRuntimeHelpers.asString:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/CallSite;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 6
checkcast org.jruby.runtime.builtin.IRubyObject
invokeinterface org.jruby.runtime.builtin.IRubyObject.asString:()Lorg/jruby/RubyString;
areturn
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/AsStringInstr;
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 receiver Ljava/lang/Object;
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.AsStringInstr:(Lorg/jruby/ir/instructions/AsStringInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/AsStringInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "AsStringInstr.java"