org.jruby.compiler.ir.instructions
Class IR_Instr

java.lang.Object
  extended by org.jruby.compiler.ir.instructions.IR_Instr
Direct Known Subclasses:
ASSERT_METHOD_VERSION_Instr, GET_Instr, MultiOperandInstr, NoOperandInstr, OneOperandInstr, PUT_Instr, TwoOperandInstr

public abstract class IR_Instr
extends java.lang.Object


Field Summary
 Operation _op
           
 Variable _result
           
 
Constructor Summary
IR_Instr(Operation op)
           
IR_Instr(Operation op, Variable res)
           
 
Method Summary
abstract  Operand[] getOperands()
           
 Variable getResult()
           
 java.util.List<Variable> getUsedVariables()
           
 boolean hasSideEffects()
           
 boolean isDead()
           
 void markDead()
           
 Operand simplifyAndGetResult(java.util.Map<Operand,Operand> valueMap)
           
abstract  void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_op

public final Operation _op

_result

public final Variable _result
Constructor Detail

IR_Instr

public IR_Instr(Operation op)

IR_Instr

public IR_Instr(Operation op,
                Variable res)
Method Detail

toString

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

getResult

public Variable getResult()

hasSideEffects

public boolean hasSideEffects()

markDead

public void markDead()

isDead

public boolean isDead()

getOperands

public abstract Operand[] getOperands()

getUsedVariables

public java.util.List<Variable> getUsedVariables()

simplifyOperands

public abstract void simplifyOperands(java.util.Map<Operand,Operand> valueMap)

simplifyAndGetResult

public Operand simplifyAndGetResult(java.util.Map<Operand,Operand> valueMap)


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