org.jruby.compiler.ir.instructions
Class PutConstInstr

java.lang.Object
  extended by org.jruby.compiler.ir.instructions.Instr
      extended by org.jruby.compiler.ir.instructions.PutInstr
          extended by org.jruby.compiler.ir.instructions.PutConstInstr

public class PutConstInstr
extends PutInstr


Field Summary
 
Fields inherited from class org.jruby.compiler.ir.instructions.PutInstr
TARGET, VALUE
 
Fields inherited from class org.jruby.compiler.ir.instructions.Instr
operation, result
 
Constructor Summary
PutConstInstr(IRScope scope, java.lang.String constName, Operand val)
           
PutConstInstr(Operand scopeOrObj, java.lang.String constName, Operand val)
           
 
Method Summary
 Instr cloneForInlining(InlinerInfo ii)
          Clone the instruction for inlining -- this will rename all variables (including local variables and self!) and replace RECV_ARG and RETURN instructions to regular copy instructions,
 Label interpret(InterpreterContext interp, IRubyObject self)
           
 
Methods inherited from class org.jruby.compiler.ir.instructions.PutInstr
getName, getOperands, getTarget, getValue, simplifyOperands, toString
 
Methods inherited from class org.jruby.compiler.ir.instructions.Instr
canRaiseException, getOperation, 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

PutConstInstr

public PutConstInstr(IRScope scope,
                     java.lang.String constName,
                     Operand val)

PutConstInstr

public PutConstInstr(Operand scopeOrObj,
                     java.lang.String constName,
                     Operand val)
Method Detail

cloneForInlining

public Instr cloneForInlining(InlinerInfo ii)
Description copied from class: Instr
Clone the instruction for inlining -- this will rename all variables (including local variables and self!) and replace RECV_ARG and RETURN instructions to regular copy instructions,

Specified by:
cloneForInlining in class Instr

interpret

public Label interpret(InterpreterContext interp,
                       IRubyObject self)
Overrides:
interpret in class Instr


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