org.jruby.compiler.ir.instructions
Class NoOperandInstr

java.lang.Object
  extended by org.jruby.compiler.ir.instructions.Instr
      extended by org.jruby.compiler.ir.instructions.NoOperandInstr
Direct Known Subclasses:
AttributeInstr, DECLARE_LOCAL_TYPE_Instr, FilenameInstr, GuardInstr, JumpInstr, LABEL_Instr, LineNumberInstr, ReceiveArgumentInstruction, ReceiveClosureArgInstr, ReceiveClosureInstr, ReceiveOptionalArgumentInstr, ReceiveSelfInstruction, RECV_EXCEPTION_Instr, ThreadPollInstr

public abstract class NoOperandInstr
extends Instr

This is of the form: v = OP(arg, attribute_array); Ex: v = NOT(v1)


Field Summary
 
Fields inherited from class org.jruby.compiler.ir.instructions.Instr
operation, result
 
Constructor Summary
NoOperandInstr(Operation op)
           
NoOperandInstr(Operation op, Variable dest)
           
 
Method Summary
 Operand[] getOperands()
           
 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.
 
Methods inherited from class org.jruby.compiler.ir.instructions.Instr
canRaiseException, cloneForInlining, getOperation, getResult, getUsedVariables, hasSideEffects, interpret, isDead, markDead, simplifyAndGetResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoOperandInstr

public NoOperandInstr(Operation op,
                      Variable dest)

NoOperandInstr

public NoOperandInstr(Operation op)
Method Detail

getOperands

public Operand[] getOperands()
Specified by:
getOperands 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.