public class MethodHandle extends Operand
| Modifier and Type | Field and Description |
|---|---|
protected Operand |
methodName |
protected Operand |
receiver |
EMPTY_ARRAY| Constructor and Description |
|---|
MethodHandle(Operand methodName,
Operand receiver) |
| 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(InlinerInfo ii) |
Operand |
getMethodNameOperand() |
IRubyObject |
getReceiverObj() |
DynamicMethod |
getResolvedMethod() |
String |
getResolvedMethodName() |
Operand |
getSimplifiedOperand(Map<Operand,Operand> valueMap,
boolean force) |
Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
fetchCompileTimeArrayElement, getValue, hasKnownValueprotected final Operand methodName
protected final Operand receiver
public Operand getMethodNameOperand()
public DynamicMethod getResolvedMethod()
public String getResolvedMethodName()
public IRubyObject getReceiverObj()
public void addUsedVariables(List<Variable> l)
OperandaddUsedVariables in class Operandpublic boolean canCopyPropagate()
OperandcanCopyPropagate in class Operandpublic Operand getSimplifiedOperand(Map<Operand,Operand> valueMap, boolean force)
getSimplifiedOperand in class Operandpublic Operand cloneForInlining(InlinerInfo ii)
cloneForInlining in class Operandpublic Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp)
Copyright © 2001-2014 JRuby. All Rights Reserved.