public class IRScriptBody extends IRScope
booleanVariableIndex, fixnumVariableIndex, floatVariableIndex, interpreterContext, temporaryVariableIndex| Constructor and Description |
|---|
IRScriptBody(IRManager manager,
String sourceName,
StaticScope staticScope) |
| Modifier and Type | Method and Description |
|---|---|
InterpreterContext |
allocateInterpreterContext(Instr[] instructionList)
Make version specific to scope which needs it (e.g.
|
List<IRClosure> |
getBeginBlocks() |
int |
getNearestModuleReferencingScopeDepth()
Returns the nearest scope which we can extract a live module from.
|
IRScopeType |
getScopeType() |
DynamicScope |
getToplevelScope() |
boolean |
isScriptScope()
Is this an eval script or a regular file script?
|
void |
recordBeginBlock(IRClosure beginBlockClosure)
Record a begin block.
|
void |
setTopLevelBindingScope(DynamicScope tlbScope) |
String |
toString() |
addChildScope, addClosure, addInstr, addInstrAtBeginning, allocateNextPrefixedName, bindingHasEscaped, buildCFG, buildJVMExceptionTable, buildLinearization, canReceiveNonlocalReturns, cfg, computeScopeFlags, createTemporaryVariable, definesLocalVariable, depends, equals, findExistingLocalVariable, getBooleanVariablesCount, getCFG, getClosures, getCurrentModuleVariable, getCurrentScopeVariable, getDataFlowSolution, getEndBlocks, getExecutedPasses, getFileName, getFixnumVariablesCount, getFlags, getFloatVariablesCount, getInstrs, getInterpreterContext, getLexicalParent, getLexicalScopes, getLineNumber, getLocalVariable, getLocalVariables, getLocalVariablesCount, getManager, getName, getNearestFlipVariableScope, getNearestMethod, getNearestTopLocalVariableScope, getNewFlipStateVariable, getNewInlineVariable, getNewLabel, getNewLabel, getNewLocalVariable, getNewTemporaryVariable, getNewTemporaryVariableFor, getNewUnboxedVariable, getNextClosureId, getPrefixCountSize, getScopeId, getSelf, getStaticScope, getTemporaryVariablesCount, getThreadPollInstrsCount, getTopLevelScope, getUsedVariablesCount, getVarIndices, getYieldClosureVariable, hasExplicitCallProtocol, hashCode, hasLoops, initEvalScopeVariableAllocator, initFlipStateVariable, initNestedClosures, initScope, inlineMethod, isBeginEndBlock, isFlipScope, isModuleBody, isNestedInClosure, isNonSingletonClassBody, isTopLocalVariableScope, linearization, lookupExistingLVar, prepareForCompilation, prepareForInterpretation, prepareInstructions, receivesKeywordArgs, removeClosure, resetLinearizationData, resetState, resetTemporaryVariables, resetVariableCounter, savePersistenceInfo, setCFG, setDataFlowSolution, setExplicitCallProtocolFlag, setHasLoopsFlag, setLabelIndices, setLocalVariables, setName, setPrefixedNameIndexTo, setTemporaryVariableCount, setUpUseDefLocalVarMaps, toStringInstrs, usesBackrefOrLastline, usesEval, usesLocalVariable, usesZSuperpublic IRScriptBody(IRManager manager, String sourceName, StaticScope staticScope)
public DynamicScope getToplevelScope()
public void setTopLevelBindingScope(DynamicScope tlbScope)
public InterpreterContext allocateInterpreterContext(Instr[] instructionList)
IRScopeallocateInterpreterContext in class IRScopepublic int getNearestModuleReferencingScopeDepth()
IRScopegetNearestModuleReferencingScopeDepth in class IRScopepublic IRScopeType getScopeType()
getScopeType in class IRScopepublic void recordBeginBlock(IRClosure beginBlockClosure)
IRScoperecordBeginBlock in class IRScopepublic List<IRClosure> getBeginBlocks()
getBeginBlocks in class IRScopepublic boolean isScriptScope()
IRScopeisScriptScope in class IRScopeCopyright © 2001-2015 JRuby. All Rights Reserved.