public class IRModuleBody extends IRScope
compilable, fullInterpreterContext, interpreterContext, LOG, optimizedInterpreterContext
Constructor and Description |
---|
IRModuleBody(IRManager manager,
IRScope lexicalParent,
ByteList name,
int lineNumber,
StaticScope staticScope,
boolean executesOnce) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupAfterExecution()
We are done with execution of this scope and we can cleanup some amount of things
in this scope which will no longer be used.
|
boolean |
executesOnce() |
int |
getNearestModuleReferencingScopeDepth()
Returns the nearest scope which we can extract a live module from.
|
IRScopeType |
getScopeType() |
boolean |
isModuleBody()
Does this scope represent a module body?
|
accessesParentsLocalVariables, addChildScope, addClosure, allocateInitialFlags, allocateInterpreterContext, allocateInterpreterContext, buildJVMExceptionTable, canCaptureCallersBinding, canReceiveBreaks, canReceiveNonlocalReturns, captureParentRefinements, debugOutput, depends, dumpToIGV, equals, findExistingLocalVariable, getByteName, getClosures, getExecutedPasses, getExecutionContext, getFile, getFileName, getFullInterpreterContext, getFullyQualifiedName, getId, getInterpreterContext, getLexicalParent, getLexicalScopes, getLine, getLineNumber, getLocalVariable, getLocalVariables, getManager, getName, getNearestMethod, getNearestTopLocalVariableScope, getNewLabel, getNewLabel, getNewLocalVariable, getNextClosureId, getNextLabelIndex, getOptimizedInterpreterContext, getRootLexicalScope, getScopeId, getSelf, getStaticScope, hasBeenBuilt, hasBreakInstructions, hashCode, hasLoops, hasNonLocalReturns, inlineMethod, inlineMethodCompiled, inlineMethodJIT, inliningAllowed, isNestedInClosure, isNonSingletonClassBody, isScopeContainedBy, isScriptScope, isTopLocalVariableScope, isWithinEND, lookupExistingLVar, maybeUsingRefinements, needsCodeCoverage, parentMaybeUsingRefinements, persistScopeFlags, persistScopeHeader, prepareForCompilation, prepareFullBuild, receivesClosureArg, receivesKeywordArgs, removeClosure, setAccessesParentsLocalVariables, setByteName, setCanCaptureCallersBinding, setCanReceiveBreaks, setCanReceiveNonlocalReturns, setFileName, setHasBreakInstructions, setHasLoops, setHasNonLocalReturns, setIsMaybeUsingRefinements, setNeedsCodeCoverage, setNextLabelIndex, setReceivesClosureArg, setReceivesKeywordArgs, setUsesEval, setUsesZSuper, toString, toStringCompileForm, toStringInstrs, usesEval, usesZSuper
public IRModuleBody(IRManager manager, IRScope lexicalParent, ByteList name, int lineNumber, StaticScope staticScope, boolean executesOnce)
public int getNearestModuleReferencingScopeDepth()
IRScope
getNearestModuleReferencingScopeDepth
in class IRScope
public IRScopeType getScopeType()
getScopeType
in class IRScope
public boolean isModuleBody()
IRScope
isModuleBody
in class IRScope
public void cleanupAfterExecution()
IRScope
cleanupAfterExecution
in class IRScope
public boolean executesOnce()
executesOnce
in class IRScope
Copyright © 2001-2020 JRuby. All Rights Reserved.