Class DerivedEnvironment
java.lang.Object
com.oracle.truffle.js.parser.env.Environment
com.oracle.truffle.js.parser.env.DerivedEnvironment
- Direct Known Subclasses:
GlobalEnvironment, PrivateEnvironment, StrictEnvironment, WithEnvironment
Base class for environments that extend the current function or block environment.
-
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
ConstructorsModifierConstructorDescriptionprotectedDerivedEnvironment(Environment parent, NodeFactory factory, JSContext context) protectedDerivedEnvironment(Environment parent, NodeFactory factory, JSContext context, boolean strictMode) -
Method Summary
Modifier and TypeMethodDescriptionfinal JSFrameSlotdeclareInternalSlot(Object name) final JSFrameDescriptorfinal JSFrameSlotfinal intMethods inherited from class Environment
addFrameSlotFromSymbol, addFrameSlotsFromSymbols, addFrameSlotsFromSymbols, createLocal, createTempVar, declareLocalVar, findActiveModule, findArgumentsVar, findAsyncContextVar, findAsyncResultVar, findBlockFrameSlot, findBlockScopedVar, findDynamicScopeVar, findFunctionFrameSlot, findInternalSlot, findInternalSlot, findInternalSlot, findLocalVar, findNewTargetVar, findSuperVar, findTempVar, findThisVar, findVar, findVar, findVar, findYieldValueVar, function, getBlockScopeSlot, getFunctionFrameDescriptor, getParent, getParentAt, getScope, getVariableEnvironment, hasLocalVar, hasScopeFrame, isDynamicallyScoped, isDynamicScopeContext, isStrictMode, joinElements, reserveArgumentsSlot, reserveDynamicScopeSlot, reserveNewTargetSlot, reserveSuperSlot, reserveThisSlot, toString, toStringImpl
-
Constructor Details
-
DerivedEnvironment
-
DerivedEnvironment
protected DerivedEnvironment(Environment parent, NodeFactory factory, JSContext context, boolean strictMode)
-
-
Method Details
-
getBlockFrameDescriptor
- Overrides:
getBlockFrameDescriptorin classEnvironment
-
getScopeLevel
public final int getScopeLevel()- Overrides:
getScopeLevelin classEnvironment
-
getCurrentBlockScopeSlot
- Overrides:
getCurrentBlockScopeSlotin classEnvironment
-
declareInternalSlot
- Overrides:
declareInternalSlotin classEnvironment
-