Class BlockEnvironment
java.lang.Object
com.oracle.truffle.js.parser.env.Environment
com.oracle.truffle.js.parser.env.BlockEnvironment
-
Nested Class Summary
Nested classes/interfaces inherited from class Environment
Environment.AbstractFrameVarRef, Environment.FrameSlotVarRef, Environment.GlobalLexVarRef, Environment.GlobalVarRef, Environment.MappedArgumentVarRef, Environment.VarRef, Environment.WrappedVarRef -
Field Summary
Fields inherited from class Environment
context, factory -
Constructor Summary
ConstructorsConstructorDescriptionBlockEnvironment(Environment parent, NodeFactory factory, JSContext context) BlockEnvironment(Environment parent, NodeFactory factory, JSContext context, Scope blockScope) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFrameSlotFromSymbol(Symbol symbol) booleandeclareInternalSlot(Object name) findBlockFrameSlot(Object name) findFunctionFrameSlot(Object name) intgetEnd()getScope()intintgetStart()booleanbooleanbooleanstatic booleanisScopeCaptured(Scope blockScope) protected StringtoStringImpl(Map<String, Integer> state) Methods inherited from class Environment
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, toString
-
Constructor Details
-
BlockEnvironment
public BlockEnvironment(Environment parent, NodeFactory factory, JSContext context, Scope blockScope) -
BlockEnvironment
-
-
Method Details
-
isScopeCaptured
-
findBlockFrameSlot
- Overrides:
findBlockFrameSlotin classEnvironment
-
findFunctionFrameSlot
- Overrides:
findFunctionFrameSlotin classEnvironment
-
getBlockFrameDescriptor
- Overrides:
getBlockFrameDescriptorin classEnvironment
-
getParentSlot
-
getScopeLevel
public int getScopeLevel()- Overrides:
getScopeLevelin classEnvironment
-
hasScopeFrame
public boolean hasScopeFrame()- Overrides:
hasScopeFramein classEnvironment
-
getCurrentBlockScopeSlot
- Overrides:
getCurrentBlockScopeSlotin classEnvironment
-
isFunctionBlock
public boolean isFunctionBlock() -
declareInternalSlot
- Overrides:
declareInternalSlotin classEnvironment
-
addFrameSlotFromSymbol
- Overrides:
addFrameSlotFromSymbolin classEnvironment
-
getStart
public int getStart() -
getEnd
public int getEnd() -
getScope
- Overrides:
getScopein classEnvironment
-
isGeneratorFunctionBlock
public boolean isGeneratorFunctionBlock() -
capturesFunctionFrame
public boolean capturesFunctionFrame() -
toStringImpl
- Overrides:
toStringImplin classEnvironment
-