org.jruby.compiler.ir.instructions
Class PutInstr

java.lang.Object
  extended by org.jruby.compiler.ir.instructions.Instr
      extended by org.jruby.compiler.ir.instructions.PutInstr
Direct Known Subclasses:
PutClassVariableInstr, PutConstInstr, PutFieldInstr, PutGlobalVarInstr

public abstract class PutInstr
extends Instr


Field Summary
 int TARGET
           
 int VALUE
           
 
Fields inherited from class org.jruby.compiler.ir.instructions.Instr
operation, result
 
Constructor Summary
PutInstr(Operation op, Operand target, java.lang.String ref, Operand value)
           
 
Method Summary
 java.lang.String getName()
           
 Operand[] getOperands()
           
 Operand getTarget()
           
 Operand getValue()
           
 void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
          This method takes as input a map of operands to their values, and outputs If the value map provides a value for any of the instruction's operands this method is expected to replace the original operands with the simplified values.
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.instructions.Instr
canRaiseException, 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
 

Field Detail

VALUE

public final int VALUE
See Also:
Constant Field Values

TARGET

public final int TARGET
See Also:
Constant Field Values
Constructor Detail

PutInstr

public PutInstr(Operation op,
                Operand target,
                java.lang.String ref,
                Operand value)
Method Detail

getOperands

public Operand[] getOperands()
Specified by:
getOperands in class Instr

getName

public java.lang.String getName()

getTarget

public Operand getTarget()

getValue

public Operand getValue()

toString

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

simplifyOperands

public void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
Description copied from class: Instr
This method takes as input a map of operands to their values, and outputs If the value map provides a value for any of the instruction's operands this method is expected to replace the original operands with the simplified values. It is not required that it do so -- code correctness is not compromised by failure to simplify

Specified by:
simplifyOperands in class Instr


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