public class IRScriptBody extends IRScope
booleanVariableIndex, compilable, fixnumVariableIndex, floatVariableIndex, fullInterpreterContext, interpreterContext, LOG, optimizedInterpreterContext, 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 |
getFile() |
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, captureParentRefinements, computeScopeFlags, computeScopeFlagsEarly, createTemporaryVariable, debugOutput, definesLocalVariable, depends, dumpToIGV, equals, findExistingLocalVariable, getBooleanVariablesCount, getCFG, getClosures, getCurrentModuleVariable, getCurrentScopeVariable, getEndBlocks, getExecutedPasses, getExecutionContext, getFileName, getFixnumVariablesCount, getFlags, getFloatVariablesCount, getFullInterpreterContext, getFullyQualifiedName, getId, getInterpreterContext, getLexicalParent, getLexicalScopes, getLine, getLineNumber, getLiveVariablesProblem, getLocalVariable, getLocalVariables, getLocalVariablesCount, getManager, getName, getNearestFlipVariableScope, getNearestMethod, getNearestTopLocalVariableScope, getNewFlipStateVariable, getNewInlineVariable, getNewLabel, getNewLabel, getNewLocalVariable, getNewTemporaryVariable, getNewTemporaryVariableFor, getNewUnboxedVariable, getNextClosureId, getOptimizedInterpreterContext, getPrefixCountSize, getRootLexicalScope, getScopeId, getSelf, getStaticScope, getStoreLocalVarPlacementProblem, getTemporaryVariablesCount, getThreadPollInstrsCount, getUnboxableOpsAnalysisProblem, getUsedLocalVariables, getUsedVariablesCount, getVarIndices, getYieldClosureVariable, hasBeenBuilt, hasExplicitCallProtocol, hashCode, hasLoops, inlineMethod, inlineMethodCompiled, inlineMethodJIT, inliningAllowed, isBeginEndBlock, isFlipScope, isModuleBody, isNestedInClosure, isNonSingletonClassBody, isScopeContainedBy, isTopLocalVariableScope, isUnsafeScope, isWithinEND, 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, toStringCompileForm, toStringInstrs, usesEval, usesLocalVariable, usesZSuperpublic IRScriptBody(IRManager manager, RubySymbol sourceName, StaticScope staticScope)
public DynamicScope getScriptDynamicScope()
public void setScriptDynamicScope(DynamicScope tlbScope)
public InterpreterContext allocateInterpreterContext(java.util.List<Instr> instructions)
IRScopeallocateInterpreterContext in class IRScopepublic InterpreterContext allocateInterpreterContext(java.util.concurrent.Callable<java.util.List<Instr>> instructions)
IRScopeallocateInterpreterContext in class IRScopepublic int getNearestModuleReferencingScopeDepth()
IRScopegetNearestModuleReferencingScopeDepth in class IRScopepublic IRScopeType getScopeType()
getScopeType in class IRScopepublic void recordBeginBlock(IRClosure beginBlockClosure)
IRScoperecordBeginBlock in class IRScopepublic java.util.List<IRClosure> getBeginBlocks()
getBeginBlocks in class IRScopepublic boolean isScriptScope()
IRScopeisScriptScope in class IRScopepublic void setFileName(java.lang.String fileName)
setFileName in class IRScopepublic java.lang.String getFile()
getFile in interface ParseResultgetFile in class IRScopeCopyright © 2001-2019 JRuby. All Rights Reserved.