org.jruby.compiler.ir.instructions
Class BranchInstr

java.lang.Object
  extended by org.jruby.compiler.ir.instructions.Instr
      extended by org.jruby.compiler.ir.instructions.TwoOperandInstr
          extended by org.jruby.compiler.ir.instructions.BranchInstr
Direct Known Subclasses:
BEQInstr, BNEInstr

public abstract class BranchInstr
extends TwoOperandInstr


Field Summary
 
Fields inherited from class org.jruby.compiler.ir.instructions.Instr
operation, result
 
Constructor Summary
BranchInstr(Operation op, Operand v1, Operand v2, Label jmpTarget)
           
 
Method Summary
 boolean canRaiseException()
           
 Label getJumpTarget()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.instructions.TwoOperandInstr
getOperand1, getOperand2, getOperands, simplifyOperands
 
Methods inherited from class org.jruby.compiler.ir.instructions.Instr
cloneForInlining, getOperation, getResult, getUsedVariables, hasSideEffects, interpret, isDead, markDead, simplifyAndGetResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BranchInstr

public BranchInstr(Operation op,
                   Operand v1,
                   Operand v2,
                   Label jmpTarget)
Method Detail

getJumpTarget

public Label getJumpTarget()

canRaiseException

public boolean canRaiseException()
Overrides:
canRaiseException in class Instr

toString

public java.lang.String toString()
Overrides:
toString in class TwoOperandInstr


Copyright © 2002-2009 JRuby Team. All Rights Reserved.