Class GlobalEnvironment
java.lang.Object
com.oracle.truffle.js.parser.env.Environment
com.oracle.truffle.js.parser.env.DerivedEnvironment
com.oracle.truffle.js.parser.env.GlobalEnvironment
-
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
ConstructorsConstructorDescriptionGlobalEnvironment(Environment parent, NodeFactory factory, JSContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name, boolean isConst) voidaddVarDeclaration(com.oracle.truffle.api.strings.TruffleString name) findBlockFrameSlot(Object name) booleanhasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name) booleanhasConstDeclaration(com.oracle.truffle.api.strings.TruffleString name) booleanhasLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name) booleanhasVarDeclaration(com.oracle.truffle.api.strings.TruffleString name) static booleanisGlobalObjectConstant(com.oracle.truffle.api.strings.TruffleString name) Returns true for always-defined immutable value properties of the global object.voidsetHasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name, boolean declared) protected StringtoStringImpl(Map<String, Integer> state) Methods inherited from class DerivedEnvironment
declareInternalSlot, getBlockFrameDescriptor, getCurrentBlockScopeSlot, getScopeLevelMethods inherited from class Environment
addFrameSlotFromSymbol, addFrameSlotsFromSymbols, addFrameSlotsFromSymbols, createLocal, createTempVar, declareLocalVar, findActiveModule, findArgumentsVar, findAsyncContextVar, findAsyncResultVar, 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
-
Constructor Details
-
GlobalEnvironment
-
-
Method Details
-
findBlockFrameSlot
- Overrides:
findBlockFrameSlotin classEnvironment
-
addLexicalDeclaration
public void addLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name, boolean isConst) -
hasLexicalDeclaration
public boolean hasLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name) -
hasConstDeclaration
public boolean hasConstDeclaration(com.oracle.truffle.api.strings.TruffleString name) -
addVarDeclaration
public void addVarDeclaration(com.oracle.truffle.api.strings.TruffleString name) -
hasVarDeclaration
public boolean hasVarDeclaration(com.oracle.truffle.api.strings.TruffleString name) -
isGlobalObjectConstant
public static boolean isGlobalObjectConstant(com.oracle.truffle.api.strings.TruffleString name) Returns true for always-defined immutable value properties of the global object. -
hasBeenDeclared
public boolean hasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name) -
setHasBeenDeclared
public void setHasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name, boolean declared) -
toStringImpl
- Overrides:
toStringImplin classEnvironment
-