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

public Class BIntInstr

extends TwoOperandBranchInstr
implements FixedArityInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.FixedArityInstr
Imports
org.jruby.ir.IRVisitor, .Operation, org.jruby.ir.operands.Label, .Operand, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final BIntInstr.Op

Constructor Summary

AccessConstructor and Description
public
BIntInstr(Label jumpTarget, BIntInstr.Op op, Operand v1, Operand v2)

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 BIntInstr
public void
public BIntInstr.Op
public int
public String[]
public void
Inherited from org.jruby.ir.instructions.TwoOperandBranchInstr:
getArg1getArg2getJumpTargetgetOperandssetJumpTargetsetOperand

Field Detail

opback to summary
private final BIntInstr.Op op

Constructor Detail

BIntInstrback to summary
public BIntInstr(Label jumpTarget, BIntInstr.Op op, Operand v1, Operand v2)

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 BIntInstr decode(IRReaderDecoder d)
encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.TwoOperandBranchInstr.encode.

Annotations
@Override
getOpback to summary
public BIntInstr.Op getOp()
interpretAndGetNewIPCback to summary
public int interpretAndGetNewIPC(ThreadContext context, DynamicScope currDynScope, StaticScope currScope, IRubyObject self, Object[] temp, int ipc)

Overrides org.jruby.ir.instructions.Instr.interpretAndGetNewIPC.

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

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

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

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

Annotations
@Override
org.jruby.ir.instructions back to summary

public final Enum BIntInstr.Op

extends Enum<BIntInstr.Op>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final BIntInstr.Op
public static final BIntInstr.Op
public static final BIntInstr.Op
private final String
public static final BIntInstr.Op
public static final BIntInstr.Op
public static final BIntInstr.Op

Constructor Summary

AccessConstructor and Description
private
Op(String label)

Method Summary

Modifier and TypeMethod and Description
public static BIntInstr.Op
fromOrdinal(int value)

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static BIntInstr.Op
public static BIntInstr.Op[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

EQback to summary
public static final BIntInstr.Op EQ
GTback to summary
public static final BIntInstr.Op GT
GTEback to summary
public static final BIntInstr.Op GTE
labelback to summary
private final String label
LTback to summary
public static final BIntInstr.Op LT
LTEback to summary
public static final BIntInstr.Op LTE
NEQback to summary
public static final BIntInstr.Op NEQ

Constructor Detail

Opback to summary
private Op(String label)

Method Detail

fromOrdinalback to summary
public static BIntInstr.Op fromOrdinal(int value)
toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

valueOfback to summary
public static BIntInstr.Op valueOf(String name)
valuesback to summary
public static BIntInstr.Op[] values()