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, getOperandscanRaiseException, getOperation, getResult, getUsedVariables, hasSideEffects, isDead, markDead, simplifyAndGetResultpublic 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 OneOperandInstrpublic void simplifyOperands(java.util.Map<Operand,Operand> valueMap)
InstrsimplifyOperands in class OneOperandInstrpublic Instr cloneForInlining(InlinerInfo ii)
InstrcloneForInlining in class Instrpublic Label interpret(InterpreterContext interp, IRubyObject self)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.