org.jruby.compiler.ir.instructions
Class CALL_Instr

java.lang.Object
  extended by org.jruby.compiler.ir.instructions.IR_Instr
      extended by org.jruby.compiler.ir.instructions.MultiOperandInstr
          extended by org.jruby.compiler.ir.instructions.CALL_Instr
Direct Known Subclasses:
JRUBY_IMPL_CALL_Instr, RUBY_INTERNALS_CALL_Instr

public class CALL_Instr
extends MultiOperandInstr


Field Summary
 
Fields inherited from class org.jruby.compiler.ir.instructions.MultiOperandInstr
_args
 
Fields inherited from class org.jruby.compiler.ir.instructions.IR_Instr
_op, _result
 
Constructor Summary
CALL_Instr(Operation op, Variable result, Operand methAddr, Operand[] args, Operand closure)
           
CALL_Instr(Variable result, Operand methAddr, Operand[] args, Operand closure)
           
 
Method Summary
 boolean canModifyCode()
           
 Operand[] getCallArgs()
           
 Operand getClosureArg()
           
 Operand getMethodAddr()
           
 Operand getReceiver()
           
 IR_Method getTargetMethod()
           
 IR_Method getTargetMethodWithReceiver(Operand receiver)
           
 boolean isRubyInternalsCall()
           
 boolean isStaticCallTarget()
           
 void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.instructions.MultiOperandInstr
getOperands
 
Methods inherited from class org.jruby.compiler.ir.instructions.IR_Instr
getResult, getUsedVariables, hasSideEffects, isDead, markDead, simplifyAndGetResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CALL_Instr

public CALL_Instr(Variable result,
                  Operand methAddr,
                  Operand[] args,
                  Operand closure)

CALL_Instr

public CALL_Instr(Operation op,
                  Variable result,
                  Operand methAddr,
                  Operand[] args,
                  Operand closure)
Method Detail

isRubyInternalsCall

public boolean isRubyInternalsCall()

isStaticCallTarget

public boolean isStaticCallTarget()

canModifyCode

public boolean canModifyCode()

getCallArgs

public Operand[] getCallArgs()

getMethodAddr

public Operand getMethodAddr()

getClosureArg

public Operand getClosureArg()

getReceiver

public Operand getReceiver()

getTargetMethodWithReceiver

public IR_Method getTargetMethodWithReceiver(Operand receiver)

getTargetMethod

public IR_Method getTargetMethod()

toString

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

simplifyOperands

public void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
Overrides:
simplifyOperands in class MultiOperandInstr


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