public class IRClosure extends IRScope
| Modifier and Type | Field and Description |
|---|---|
int |
closureId |
Label |
endLabel |
Label |
startLabel |
argDesc, booleanVariableIndex, fixnumVariableIndex, floatVariableIndex, fullInterpreterContext, interpreterContext, LOG, temporaryVariableIndex, threadPollInstrsCount| Modifier | Constructor and Description |
|---|---|
protected |
IRClosure(IRClosure c,
IRScope lexicalParent,
int closureId,
String fullName)
Used by cloning code
|
|
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature) |
|
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature,
String prefix) |
|
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature,
String prefix,
boolean isBeginEndBlock) |
protected |
IRClosure(IRManager manager,
IRScope lexicalParent,
String fileName,
int lineNumber,
StaticScope staticScope,
String prefix) |
addChildScope, addClosure, allocateNextPrefixedName, bindingHasEscaped, buildJVMExceptionTable, canReceiveNonlocalReturns, computeScopeFlags, computeScopeFlagsEarly, debugOutput, definesLocalVariable, depends, equals, getArgumentDescriptors, getBeginBlocks, getBooleanVariablesCount, getCFG, getClosures, getCurrentModuleVariable, getCurrentScopeVariable, getEndBlocks, getExecutedPasses, getFileName, getFixnumVariablesCount, getFlags, getFloatVariablesCount, getFullInterpreterContext, getInterpreterContext, getLexicalParent, getLexicalScopes, getLineNumber, getLiveVariablesProblem, getLocalVariables, getLocalVariablesCount, getManager, getName, getNearestFlipVariableScope, getNearestMethod, getNearestModuleReferencingScopeDepth, getNearestTopLocalVariableScope, getNewInlineVariable, getNewLabel, getNewTemporaryVariableFor, getNewUnboxedVariable, getPrefixCountSize, getScopeId, getSelf, getStaticScope, getStoreLocalVarPlacementProblem, getTemporaryVariablesCount, getThreadPollInstrsCount, getTopLevelScope, getUnboxableOpsAnalysisProblem, getUsedVariablesCount, getVarIndices, getYieldClosureVariable, hasBeenBuilt, hasExplicitCallProtocol, hashCode, hasLoops, inlineMethod, isModuleBody, isNestedInClosure, isNonSingletonClassBody, isScriptScope, isUnsafeScope, lookupExistingLVar, maybeUsingRefinements, parentMaybeUsingRefinements, prepareForInitialCompilation, prepareFullBuild, prepareFullBuildCommon, putLiveVariablesProblem, putStoreLocalVarPlacementProblem, putUnboxableOpsAnalysisProblem, receivesKeywordArgs, recordBeginBlock, removeClosure, resetState, resetTemporaryVariables, resetVariableCounter, setArgumentDescriptors, setExplicitCallProtocolFlag, setHasLoopsFlag, setInterpreterContext, setIsMaybeUsingRefinements, setLabelIndices, setLocalVariables, setTemporaryVariableCount, setUpUseDefLocalVarMaps, toString, toStringInstrs, usesBackrefOrLastline, usesEval, usesLocalVariable, usesZSuperpublic final Label startLabel
public final Label endLabel
public final int closureId
protected IRClosure(IRManager manager, IRScope lexicalParent, String fileName, int lineNumber, StaticScope staticScope, String prefix)
protected IRClosure(IRClosure c, IRScope lexicalParent, int closureId, String fullName)
public IRClosure(IRManager manager, IRScope lexicalParent, int lineNumber, StaticScope staticScope, Signature signature)
public IRClosure(IRManager manager, IRScope lexicalParent, int lineNumber, StaticScope staticScope, Signature signature, String prefix)
public IRClosure(IRManager manager, IRScope lexicalParent, int lineNumber, StaticScope staticScope, Signature signature, String prefix, boolean isBeginEndBlock)
public InterpreterContext allocateInterpreterContext(List<Instr> instructions)
IRScopeallocateInterpreterContext in class IRScopepublic void setBeginEndBlock()
public boolean isBeginEndBlock()
isBeginEndBlock in class IRScopepublic int getNextClosureId()
getNextClosureId in class IRScopepublic LocalVariable getNewFlipStateVariable()
getNewFlipStateVariable in class IRScopepublic TemporaryLocalVariable createTemporaryVariable()
createTemporaryVariable in class IRScopepublic TemporaryLocalVariable getNewTemporaryVariable(TemporaryVariableType type)
getNewTemporaryVariable in class IRScopepublic Label getNewLabel()
getNewLabel in class IRScopepublic IRScopeType getScopeType()
getScopeType in class IRScopepublic boolean isTopLocalVariableScope()
isTopLocalVariableScope in class IRScopepublic boolean isFlipScope()
isFlipScope in class IRScopepublic String toStringBody()
public BlockBody getBlockBody()
protected LocalVariable findExistingLocalVariable(String name, int scopeDepth)
findExistingLocalVariable in class IRScopepublic LocalVariable getNewLocalVariable(String name, int depth)
getNewLocalVariable in class IRScopepublic LocalVariable getLocalVariable(String name, int depth)
IRScopegetLocalVariable in class IRScopepublic Signature getSignature()
public void setHandle(org.objectweb.asm.Handle handle)
public org.objectweb.asm.Handle getHandle()
Copyright © 2001-2015 JRuby. All Rights Reserved.