public class InterpreterContext extends Object
Modifier and Type | Field and Description |
---|---|
protected Instr[] |
instructions |
Callable<List<Instr>> |
instructionsCallback |
protected int |
temporaryVariablecount |
Constructor and Description |
---|
InterpreterContext(IRScope scope,
Callable<List<Instr>> instructions) |
InterpreterContext(IRScope scope,
List<Instr> instructions) |
Modifier and Type | Method and Description |
---|---|
boolean[] |
allocateTemporaryBooleanVariables() |
long[] |
allocateTemporaryFixnumVariables() |
double[] |
allocateTemporaryFloatVariables() |
Object[] |
allocateTemporaryVariables() |
boolean |
buildComplete()
Is the build complete? For startup builds, which this class represents, we finish build in the constructor
so it is always complete.
|
void |
computeScopeFlagsFromInstructions() |
CFG |
getCFG() |
InterpreterEngine |
getEngine() |
String |
getFileName() |
Instr[] |
getInstructions() |
String |
getName() |
int |
getRequiredArgsCount() |
IRScope |
getScope() |
StaticScope |
getStaticScope() |
boolean |
hasExplicitCallProtocol() |
DynamicScope |
newDynamicScope(ThreadContext context)
Get a new dynamic scope.
|
boolean |
popDynScope() |
boolean |
pushNewDynScope() |
boolean |
receivesKeywordArguments() |
boolean |
reuseParentDynScope() |
void |
setEngine(InterpreterEngine engine) |
String |
toString() |
String |
toStringInstrs() |
protected int temporaryVariablecount
protected Instr[] instructions
public InterpreterEngine getEngine()
public int getRequiredArgsCount()
public IRScope getScope()
public boolean buildComplete()
public CFG getCFG()
public Object[] allocateTemporaryVariables()
public boolean[] allocateTemporaryBooleanVariables()
public long[] allocateTemporaryFixnumVariables()
public double[] allocateTemporaryFloatVariables()
public StaticScope getStaticScope()
public String getFileName()
public String getName()
public Instr[] getInstructions()
public void computeScopeFlagsFromInstructions()
public DynamicScope newDynamicScope(ThreadContext context)
public boolean hasExplicitCallProtocol()
public boolean pushNewDynScope()
public boolean reuseParentDynScope()
public boolean popDynScope()
public boolean receivesKeywordArguments()
public String toStringInstrs()
public void setEngine(InterpreterEngine engine)
Copyright © 2001-2016 JRuby. All Rights Reserved.