public class IRScriptBody extends IRScope
booleanVariableIndex, fixnumVariableIndex, floatVariableIndex, fullInterpreterContext, interpreterContext, LOG, temporaryVariableIndex, threadPollInstrsCount
Constructor and Description |
---|
IRScriptBody(IRManager manager,
RubySymbol sourceName,
StaticScope staticScope) |
Modifier and Type | Method and Description |
---|---|
InterpreterContext |
allocateInterpreterContext(java.util.concurrent.Callable<java.util.List<Instr>> instructions)
Make version specific to scope which needs it (e.g.
|
InterpreterContext |
allocateInterpreterContext(java.util.List<Instr> instructions)
Make version specific to scope which needs it (e.g.
|
java.util.List<IRClosure> |
getBeginBlocks() |
java.lang.String |
getFileName() |
int |
getNearestModuleReferencingScopeDepth()
Returns the nearest scope which we can extract a live module from.
|
IRScopeType |
getScopeType() |
DynamicScope |
getScriptDynamicScope() |
boolean |
isScriptScope()
Is this an eval script or a regular file script?
|
void |
recordBeginBlock(IRClosure beginBlockClosure)
Record a begin block.
|
void |
setFileName(java.lang.String fileName) |
void |
setScriptDynamicScope(DynamicScope tlbScope) |
java.lang.String |
toString() |
addChildScope, addClosure, allocateNextPrefixedName, bindingHasEscaped, buildJVMExceptionTable, canReceiveNonlocalReturns, computeScopeFlags, computeScopeFlagsEarly, createTemporaryVariable, debugOutput, definesLocalVariable, depends, dumpToIGV, equals, findExistingLocalVariable, getBooleanVariablesCount, getCFG, getClosures, getCurrentModuleVariable, getCurrentScopeVariable, getEndBlocks, getExecutedPasses, getExecutionContext, getFixnumVariablesCount, getFlags, getFloatVariablesCount, getFullInterpreterContext, getFullyQualifiedName, getId, getInterpreterContext, getLexicalParent, getLexicalScopes, getLineNumber, getLiveVariablesProblem, getLocalVariable, getLocalVariables, getLocalVariablesCount, getManager, getName, getNearestFlipVariableScope, getNearestMethod, getNearestTopLocalVariableScope, getNewFlipStateVariable, getNewInlineVariable, getNewLabel, getNewLabel, getNewLocalVariable, getNewTemporaryVariable, getNewTemporaryVariableFor, getNewUnboxedVariable, getNextClosureId, getPrefixCountSize, getRootLexicalScope, getScopeId, getSelf, getStaticScope, getStoreLocalVarPlacementProblem, getTemporaryVariablesCount, getThreadPollInstrsCount, getUnboxableOpsAnalysisProblem, getUsedLocalVariables, getUsedVariablesCount, getVarIndices, getYieldClosureVariable, hasBeenBuilt, hasExplicitCallProtocol, hashCode, hasLoops, inlineMethod, isBeginEndBlock, isFlipScope, isModuleBody, isNestedInClosure, isNonSingletonClassBody, isTopLocalVariableScope, isUnsafeScope, lookupExistingLVar, maybeUsingRefinements, needsBinding, needsFrame, needsOnlyBackref, parentMaybeUsingRefinements, prepareForCompilation, prepareFullBuild, putLiveVariablesProblem, putStoreLocalVarPlacementProblem, putUnboxableOpsAnalysisProblem, receivesKeywordArgs, removeClosure, resetState, resetTemporaryVariables, resetVariableCounter, reuseParentScope, setExplicitCallProtocolFlag, setHasLoopsFlag, setInterpreterContext, setIsMaybeUsingRefinements, setLabelIndices, setLocalVariables, setName, setTemporaryVariableCount, setUpUseDefLocalVarMaps, toStringInstrs, usesEval, usesLocalVariable, usesZSuper
public IRScriptBody(IRManager manager, RubySymbol sourceName, StaticScope staticScope)
public DynamicScope getScriptDynamicScope()
public void setScriptDynamicScope(DynamicScope tlbScope)
public InterpreterContext allocateInterpreterContext(java.util.List<Instr> instructions)
IRScope
allocateInterpreterContext
in class IRScope
public InterpreterContext allocateInterpreterContext(java.util.concurrent.Callable<java.util.List<Instr>> instructions)
IRScope
allocateInterpreterContext
in class IRScope
public int getNearestModuleReferencingScopeDepth()
IRScope
getNearestModuleReferencingScopeDepth
in class IRScope
public IRScopeType getScopeType()
getScopeType
in class IRScope
public void recordBeginBlock(IRClosure beginBlockClosure)
IRScope
recordBeginBlock
in class IRScope
public java.util.List<IRClosure> getBeginBlocks()
getBeginBlocks
in class IRScope
public boolean isScriptScope()
IRScope
isScriptScope
in class IRScope
public void setFileName(java.lang.String fileName)
setFileName
in class IRScope
public java.lang.String getFileName()
getFileName
in class IRScope
Copyright © 2001-2018 JRuby. All Rights Reserved.