public class InlineCloneInfo extends CloneInfo
labelRenameMap, scope, variableRenameMap
Constructor and Description |
---|
InlineCloneInfo(CallBase call,
CFG c,
Variable callReceiver,
IRScope scopeBeingInlined) |
InlineCloneInfo(CFG cfg,
IRScope scope,
IRScope scopeBeingInlined) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMapArgsStatically() |
InlineCloneInfo |
cloneForInliningClosure(IRScope scopeBeingInlined) |
Operand |
getArg(int index) |
Operand |
getArg(int argIndex,
boolean restOfArgArray) |
Operand |
getArgs() |
int |
getArgsCount() |
Operand |
getCallClosure() |
Variable |
getCallResultVariable() |
IRScope |
getHostScope() |
BasicBlock |
getOrCreateRenamedBB(BasicBlock bb) |
BasicBlock |
getRenamedBB(BasicBlock bb) |
protected Label |
getRenamedLabelSimple(Label l) |
Variable |
getRenamedSelfVariable(Variable self)
How do we rename %self?
|
protected Variable |
getRenamedVariableSimple(Variable v)
How are typical variables renamed if they were not yet found in the variable renaming map?
|
IRScope |
getScopeBeingInlined() |
Variable |
getYieldResult() |
java.util.List |
getYieldSites() |
boolean |
isClosure() |
void |
recordYieldSite(BasicBlock bb,
YieldInstr i) |
void |
setupYieldArgsAndYieldResult(YieldInstr yi,
BasicBlock yieldBB,
int blockArityValue) |
cloneForCloningClosure, getRenamedLabel, getRenamedVariable, getScope
public boolean isClosure()
public InlineCloneInfo cloneForInliningClosure(IRScope scopeBeingInlined)
public Operand getArg(int index)
public Operand getArg(int argIndex, boolean restOfArgArray)
public boolean canMapArgsStatically()
public Operand getArgs()
public BasicBlock getRenamedBB(BasicBlock bb)
public int getArgsCount()
public Operand getCallClosure()
public Variable getCallResultVariable()
public BasicBlock getOrCreateRenamedBB(BasicBlock bb)
public IRScope getHostScope()
protected Label getRenamedLabelSimple(Label l)
getRenamedLabelSimple
in class CloneInfo
public Variable getRenamedSelfVariable(Variable self)
CloneInfo
getRenamedSelfVariable
in class CloneInfo
self
- to be renamedprotected Variable getRenamedVariableSimple(Variable v)
CloneInfo
getRenamedVariableSimple
in class CloneInfo
v
- to be renamedpublic IRScope getScopeBeingInlined()
public Variable getYieldResult()
public java.util.List getYieldSites()
public void recordYieldSite(BasicBlock bb, YieldInstr i)
public void setupYieldArgsAndYieldResult(YieldInstr yi, BasicBlock yieldBB, int blockArityValue)
Copyright © 2001-2018 JRuby. All Rights Reserved.