public class InterpreterContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
dynamicScopeEliminated |
protected boolean |
hasExplicitCallProtocol |
protected Instr[] |
instructions |
java.util.function.Supplier<java.util.List<Instr>> |
instructionsCallback |
protected int[] |
rescueIPCs |
protected int |
temporaryVariableCount |
Constructor and Description |
---|
InterpreterContext(IRScope scope,
java.util.List<Instr> instructions,
int temporaryVariableCount,
java.util.EnumSet<IRFlags> flags) |
InterpreterContext(IRScope scope,
java.util.function.Supplier<java.util.List<Instr>> instructions,
int temporaryVariableCount,
java.util.EnumSet<IRFlags> flags) |
protected int temporaryVariableCount
protected Instr[] instructions
protected int[] rescueIPCs
protected boolean hasExplicitCallProtocol
protected boolean dynamicScopeEliminated
public final java.util.function.Supplier<java.util.List<Instr>> instructionsCallback
public InterpreterContext(IRScope scope, java.util.List<Instr> instructions, int temporaryVariableCount, java.util.EnumSet<IRFlags> flags)
protected void initialize()
public InterpreterEngine getEngine()
public Instr[] getInstructions()
public int[] getRescueIPCs()
public int getRequiredArgsCount()
public IRScope getScope()
public CFG getCFG()
public int getTemporaryVariableCount()
public java.lang.Object[] allocateTemporaryVariables()
public boolean[] allocateTemporaryBooleanVariables()
public long[] allocateTemporaryFixnumVariables()
public double[] allocateTemporaryFloatVariables()
public StaticScope getStaticScope()
public java.lang.String getFileName()
public RubySymbol getName()
public void computeScopeFlagsFromInstructions()
public DynamicScope newDynamicScope(ThreadContext context)
public boolean hasExplicitCallProtocol()
public void setExplicitCallProtocol(boolean callProtocol)
public boolean isDynamicScopeEliminated()
public void setDynamicScopeEliminated(boolean dynamicScopeEliminated)
public boolean pushNewDynScope()
public boolean reuseParentDynScope()
public void setReuseParentDynScope(boolean reuseParentDynScope)
public boolean popDynScope()
public boolean receivesKeywordArguments()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringInstrs()
public java.util.EnumSet<IRFlags> getFlags()
Copyright © 2001-2020 JRuby. All Rights Reserved.