Top Fields Constructors Methods
org.jruby.ir.instructions

public Class AsStringInstr

extends ZeroOperandArgNoBlockCallInstr
Class Inheritance
Imports
org.jruby.compiler.NotCompilableException, org.jruby.ir.IRScope, .IRVisitor, .Operation, org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr, org.jruby.ir.operands.Operand, .MutableString, .Variable, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.runtime.IRRuntimeHelpers, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.CallSite, .CallType, .DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList

Field Summary

Modifier and TypeField and Description
public static final ByteList

Constructor Summary

AccessConstructor and Description
public
AsStringInstr(IRScope scope, Variable result, Operand source, boolean isPotentiallyRefined)

private
AsStringInstr(IRScope scope, Variable result, Operand source, boolean isPotentiallyRefined, CallSite callSite, long callSiteId)

Method Summary

Modifier and TypeMethod and Description
public Instr
clone(CloneInfo
This object manages renaming of variables and labels, handles args and return values.
ii
)

Overrides org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope).

public static AsStringInstr
public void
public Object
private static Operand
nonNull(Operand source)

public void

Field Detail

TO_Sback to summary
public static final ByteList TO_S

Constructor Detail

AsStringInstrback to summary
public AsStringInstr(IRScope scope, Variable result, Operand source, boolean isPotentiallyRefined)
AsStringInstrback to summary
private AsStringInstr(IRScope scope, Variable result, Operand source, boolean isPotentiallyRefined, CallSite callSite, long callSiteId)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Overrides org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr.clone.

Doc from org.jruby.ir.instructions.Instr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode.

Parameters
ii:CloneInfo

This object manages renaming of variables and labels, handles args and return values.

Returns:Instr

a new instruction that can be used in the target scope.

Annotations
@Override
decodeback to summary
public static AsStringInstr decode(IRReaderDecoder d)

Hides org.jruby.ir.instructions.CallInstr.decode.

encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.CallInstr.encode.

Annotations
@Override
interpretback to summary
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)

Overrides org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr.interpret.

Annotations
@Override
nonNullback to summary
private static Operand nonNull(Operand source)
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.instructions.CallInstr.visit.

Annotations
@Override