public final class BlockEnvironment extends Environment
Environment.AbstractFrameVarRef, Environment.FrameSlotVarRef, Environment.GlobalLexVarRef, Environment.GlobalVarRef, Environment.MappedArgumentVarRef, Environment.VarRef, Environment.WrappedVarRefcontext, factory| Constructor and Description |
|---|
BlockEnvironment(Environment parent,
NodeFactory factory,
JSContext context) |
BlockEnvironment(Environment parent,
NodeFactory factory,
JSContext context,
Scope blockScope) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFrameSlotFromSymbol(Symbol symbol) |
boolean |
capturesFunctionFrame() |
JSFrameSlot |
declareInternalSlot(Object name) |
JSFrameSlot |
findBlockFrameSlot(Object name) |
JSFrameSlot |
findFunctionFrameSlot(Object name) |
JSFrameDescriptor |
getBlockFrameDescriptor() |
JSFrameSlot |
getCurrentBlockScopeSlot() |
int |
getEnd() |
JSFrameSlot |
getParentSlot() |
Scope |
getScope() |
int |
getScopeLevel() |
int |
getStart() |
boolean |
hasScopeFrame() |
boolean |
isFunctionBlock() |
boolean |
isGeneratorFunctionBlock() |
static boolean |
isScopeCaptured(Scope blockScope) |
protected String |
toStringImpl(Map<String,Integer> state) |
addFrameSlotsFromSymbols, addFrameSlotsFromSymbols, createLocal, createTempVar, declareLocalVar, findActiveModule, findArgumentsVar, findAsyncContextVar, findAsyncResultVar, findBlockScopedVar, findDynamicScopeVar, findInternalSlot, findInternalSlot, findInternalSlot, findLocalVar, findNewTargetVar, findSuperVar, findTempVar, findThisVar, findVar, findVar, findVar, findYieldValueVar, function, getBlockScopeSlot, getFunctionFrameDescriptor, getParent, getParentAt, getVariableEnvironment, hasLocalVar, isDynamicallyScoped, isDynamicScopeContext, isStrictMode, joinElements, reserveArgumentsSlot, reserveDynamicScopeSlot, reserveNewTargetSlot, reserveSuperSlot, reserveThisSlot, toStringpublic BlockEnvironment(Environment parent, NodeFactory factory, JSContext context, Scope blockScope)
public BlockEnvironment(Environment parent, NodeFactory factory, JSContext context)
public static boolean isScopeCaptured(Scope blockScope)
public JSFrameSlot findBlockFrameSlot(Object name)
findBlockFrameSlot in class Environmentpublic JSFrameSlot findFunctionFrameSlot(Object name)
findFunctionFrameSlot in class Environmentpublic JSFrameDescriptor getBlockFrameDescriptor()
getBlockFrameDescriptor in class Environmentpublic JSFrameSlot getParentSlot()
public int getScopeLevel()
getScopeLevel in class Environmentpublic boolean hasScopeFrame()
hasScopeFrame in class Environmentpublic JSFrameSlot getCurrentBlockScopeSlot()
getCurrentBlockScopeSlot in class Environmentpublic boolean isFunctionBlock()
public JSFrameSlot declareInternalSlot(Object name)
declareInternalSlot in class Environmentpublic void addFrameSlotFromSymbol(Symbol symbol)
addFrameSlotFromSymbol in class Environmentpublic int getStart()
public int getEnd()
public Scope getScope()
getScope in class Environmentpublic boolean isGeneratorFunctionBlock()
public boolean capturesFunctionFrame()
protected String toStringImpl(Map<String,Integer> state)
toStringImpl in class Environment