Class InlineCloneInfo
java.lang.Object
org.jruby.ir.transformations.inlining.CloneInfo
org.jruby.ir.transformations.inlining.InlineCloneInfo
Context object when performing an inline.
-
Field Summary
Fields inherited from class org.jruby.ir.transformations.inlining.CloneInfo
labelRenameMap, scope, variableRenameMap
-
Constructor Summary
ConstructorsConstructorDescriptionInlineCloneInfo
(CallBase call, CFG c, Variable callReceiver, IRScope scopeBeingInlined) InlineCloneInfo
(CFG cfg, IRScope scope, IRScope scopeBeingInlined) -
Method Summary
Modifier and TypeMethodDescriptionboolean
cloneForInliningClosure
(IRScope scopeBeingInlined) getArg
(int index) getArg
(int argIndex, boolean restOfArgArray) getArgs()
int
protected Label
How do we rename %self?protected Variable
How are typical variables renamed if they were not yet found in the variable renaming map?boolean
void
recordYieldSite
(BasicBlock bb, YieldInstr i) void
setupYieldArgsAndYieldResult
(YieldInstr yi, BasicBlock yieldBB, int blockArityValue) Methods inherited from class org.jruby.ir.transformations.inlining.CloneInfo
cloneForCloningClosure, getRenamedLabel, getRenamedVariable, getScope
-
Constructor Details
-
InlineCloneInfo
-
InlineCloneInfo
-
-
Method Details
-
isClosure
public boolean isClosure() -
cloneForInliningClosure
-
getArg
-
getArg
-
canMapArgsStatically
public boolean canMapArgsStatically() -
getArgs
-
getRenamedBB
-
getArgsCount
public int getArgsCount() -
getCallClosure
-
getCallResultVariable
-
getOrCreateRenamedBB
-
getHostScope
-
getRenamedLabelSimple
- Specified by:
getRenamedLabelSimple
in classCloneInfo
-
getRenamedSelfVariable
Description copied from class:CloneInfo
How do we rename %self?- Specified by:
getRenamedSelfVariable
in classCloneInfo
- Parameters:
self
- to be renamed- Returns:
- the new self or itself
-
getRenamedVariableSimple
Description copied from class:CloneInfo
How are typical variables renamed if they were not yet found in the variable renaming map?- Specified by:
getRenamedVariableSimple
in classCloneInfo
- Parameters:
v
- to be renamed- Returns:
- the new variable
-
getScopeBeingInlined
-
getYieldResult
-
getYieldSites
-
recordYieldSite
-
setupYieldArgsAndYieldResult
-