public final class GlobalEnvironment extends DerivedEnvironment
Environment.AbstractFrameVarRef, Environment.FrameSlotVarRef, Environment.GlobalLexVarRef, Environment.GlobalVarRef, Environment.MappedArgumentVarRef, Environment.VarRef, Environment.WrappedVarRefcontext, factory| Constructor and Description |
|---|
GlobalEnvironment(Environment parent,
NodeFactory factory,
JSContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name,
boolean isConst) |
void |
addVarDeclaration(com.oracle.truffle.api.strings.TruffleString name) |
JSFrameSlot |
findBlockFrameSlot(Object name) |
boolean |
hasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name) |
boolean |
hasConstDeclaration(com.oracle.truffle.api.strings.TruffleString name) |
boolean |
hasLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name) |
boolean |
hasVarDeclaration(com.oracle.truffle.api.strings.TruffleString name) |
static boolean |
isGlobalObjectConstant(com.oracle.truffle.api.strings.TruffleString name)
Returns true for always-defined immutable value properties of the global object.
|
void |
setHasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name,
boolean declared) |
protected String |
toStringImpl(Map<String,Integer> state) |
declareInternalSlot, getBlockFrameDescriptor, getCurrentBlockScopeSlot, getScopeLeveladdFrameSlotFromSymbol, 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, toStringpublic GlobalEnvironment(Environment parent, NodeFactory factory, JSContext context)
public JSFrameSlot findBlockFrameSlot(Object name)
findBlockFrameSlot in class Environmentpublic void addLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name,
boolean isConst)
public boolean hasLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name)
public boolean hasConstDeclaration(com.oracle.truffle.api.strings.TruffleString name)
public void addVarDeclaration(com.oracle.truffle.api.strings.TruffleString name)
public boolean hasVarDeclaration(com.oracle.truffle.api.strings.TruffleString name)
public static boolean isGlobalObjectConstant(com.oracle.truffle.api.strings.TruffleString name)
public boolean hasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name)
public void setHasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name,
boolean declared)
protected String toStringImpl(Map<String,Integer> state)
toStringImpl in class Environment