public class WrappedIRClosure extends Operand
EMPTY_ARRAY| Constructor and Description |
|---|
WrappedIRClosure(Variable self,
IRClosure closure) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUsedVariables(List<Variable> l)
Append the list of variables used in this operand to the input list -- force every operand
to implement this because a missing implementation can cause bad failures.
|
boolean |
canCopyPropagate()
Can we replace every use of a variable 'v' that contains the value of this operand
with the operand itself? This takes importance when there are at least two uses
of 'v' within this scope.
|
Operand |
cloneForInlining(CloneInfo info) |
static WrappedIRClosure |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
IRClosure |
getClosure() |
Variable |
getSelf() |
Operand |
getSimplifiedOperand(Map<Operand,Operand> valueMap,
boolean force) |
Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
getOperandType, getValue, hasKnownValuepublic void addUsedVariables(List<Variable> l)
OperandaddUsedVariables in class Operandpublic Variable getSelf()
public IRClosure getClosure()
public boolean canCopyPropagate()
OperandcanCopyPropagate in class Operandpublic Operand getSimplifiedOperand(Map<Operand,Operand> valueMap, boolean force)
getSimplifiedOperand in class Operandpublic Operand cloneForInlining(CloneInfo info)
cloneForInlining in class Operandpublic Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)
public void encode(IRWriterEncoder e)
public static WrappedIRClosure decode(IRReaderDecoder d)
Copyright © 2001-2015 JRuby. All Rights Reserved.