public class CaseInstr extends OneOperandInstr
Constructor and Description |
---|
CaseInstr(Variable result,
Operand arg,
Label endLabel) |
Modifier and Type | Method and Description |
---|---|
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) |
void |
setElse(Label elseLabel) |
void |
setLabels(java.util.List<Label> labels) |
void |
setVariables(java.util.List<Operand> variables) |
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() |
getArg, getOperands
canRaiseException, getOperation, getResult, getUsedVariables, hasSideEffects, isDead, markDead, simplifyAndGetResult
public void setLabels(java.util.List<Label> labels)
public void setVariables(java.util.List<Operand> variables)
public void setElse(Label elseLabel)
public java.lang.String toString()
toString
in class OneOperandInstr
public void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
Instr
simplifyOperands
in class OneOperandInstr
public Instr cloneForInlining(InlinerInfo ii)
Instr
cloneForInlining
in class Instr
public Label interpret(InterpreterContext interp, IRubyObject self)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.