Top Fields Constructors Methods
org.jruby.ir.instructions

public Class BuildCompoundArrayInstr

extends TwoOperandResultBaseInstr
Class Inheritance
Imports
org.jruby.ir.IRVisitor, .Operation, org.jruby.ir.operands.Operand, .Variable, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, .Helpers, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
public
BuildCompoundArrayInstr(Variable result, Operand a1, Operand a2, boolean isArgsPush, boolean usesKeywordRest)

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
)

Implements abstract 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).

public static BuildCompoundArrayInstr
public void
public Operand
public Operand
public Object
public boolean
public String[]
public boolean
public void
Inherited from org.jruby.ir.instructions.TwoOperandResultBaseInstr:
getOperand1getOperand2getOperandssetOperandsetOperand1setOperand2

Field Detail

isArgsPushback to summary
private final boolean isArgsPush
usesKeywordRestback to summary
private final boolean usesKeywordRest

Constructor Detail

BuildCompoundArrayInstrback to summary
public BuildCompoundArrayInstr(Variable result, Operand a1, Operand a2, boolean isArgsPush, boolean usesKeywordRest)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Implements abstract org.jruby.ir.instructions.Instr.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 BuildCompoundArrayInstr decode(IRReaderDecoder d)
encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.ResultBaseInstr.encode.

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

Overrides org.jruby.ir.instructions.Instr.interpret.

Annotations
@Override
isArgsPushback to summary
public boolean isArgsPush()
toStringNonOperandArgsback to summary
public String[] toStringNonOperandArgs()

Overrides org.jruby.ir.instructions.Instr.toStringNonOperandArgs.

Annotations
@Override
usesKeywordRestback to summary
public boolean usesKeywordRest()
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.instructions.Instr.visit.

Annotations
@Override