Top Description Fields Constructors Methods
org.jruby.ir.instructions

public abstract Class ResultBaseInstr

extends Instr
implements ResultInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.ResultInstr
Known Direct Subclasses
org.jruby.ir.instructions.TwoOperandResultBaseInstr, org.jruby.ir.instructions.NoOperandResultBaseInstr, org.jruby.ir.instructions.NOperandResultBaseInstr, org.jruby.ir.instructions.OneOperandResultBaseInstr
Imports
org.jruby.ir.Operation, org.jruby.ir.operands.Variable, org.jruby.ir.persistence.IRWriterEncoder

For most instrs that have a result this is their base class. Some instrs, most notably callinstr is more complicated because we would rather use inheritance to share call-related logic.

Field Summary

Modifier and TypeField and Description
protected transient Variable
Inherited from org.jruby.ir.instructions.Instr:
EMPTY_OPERANDS

Constructor Summary

AccessConstructor and Description
public
ResultBaseInstr(Operation operation, Variable result)

Method Summary

Modifier and TypeMethod and Description
public void
public Variable
public void
Inherited from org.jruby.ir.instructions.Instr:
canBeDeletedFromScopecanRaiseExceptionclonecloneOperandscomputeScopeFlagsdumpableFieldsgetOperandsgetOperationgetUsedVariableshasSideEffectsinterpretinterpretAndGetNewIPCisDeadisDeletablemarkDeadrenameVarssetOperandsimplifyInstrsimplifyOperandssimplifyOperandstoStringtoStringNonOperandArgstransfersControlvisit

Field Detail

resultback to summary
protected transient Variable result

Constructor Detail

ResultBaseInstrback to summary
public ResultBaseInstr(Operation operation, Variable result)

Method Detail

encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.Instr.encode.

Annotations
@Override
getResultback to summary
public Variable getResult()

Implements org.jruby.ir.instructions.ResultInstr.getResult.

updateResultback to summary
public void updateResult(Variable result)

Implements org.jruby.ir.instructions.ResultInstr.updateResult.