Class DerivedEnvironment
java.lang.Object
com.oracle.truffle.js.parser.env.Environment
com.oracle.truffle.js.parser.env.DerivedEnvironment
- Direct Known Subclasses:
GlobalEnvironment,PrivateEnvironment,WithEnvironment
Base class for environments that extend the current function or block environment.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.js.parser.env.Environment
Environment.AbstractFrameVarRef, Environment.FrameSlotVarRef, Environment.GlobalLexVarRef, Environment.GlobalVarRef, Environment.MappedArgumentVarRef, Environment.VarRef, Environment.WrappedVarRef -
Field Summary
Fields inherited from class com.oracle.truffle.js.parser.env.Environment
context, factory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDerivedEnvironment(Environment parent, NodeFactory factory, JSContext context) -
Method Summary
Modifier and TypeMethodDescriptionfinal JSFrameSlotdeclareInternalSlot(Object name) final JSFrameDescriptorfinal JSFrameSlotfinal intMethods inherited from class com.oracle.truffle.js.parser.env.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
-
-
Method Details
-
getBlockFrameDescriptor
- Overrides:
getBlockFrameDescriptorin classEnvironment
-
getScopeLevel
public final int getScopeLevel()- Overrides:
getScopeLevelin classEnvironment
-
getCurrentBlockScopeSlot
- Overrides:
getCurrentBlockScopeSlotin classEnvironment
-
declareInternalSlot
- Overrides:
declareInternalSlotin classEnvironment
-