public abstract class DeclareGlobalVariableNode extends DeclareGlobalNode
errorProfile, varName
Modifier | Constructor and Description |
---|---|
protected |
DeclareGlobalVariableNode(String varName,
boolean configurable) |
Modifier and Type | Method and Description |
---|---|
protected DeclareGlobalNode |
copyUninitialized() |
static DeclareGlobalVariableNode |
create(String varName,
boolean configurable) |
protected void |
doCached(com.oracle.truffle.api.object.DynamicObject globalObject,
JSContext context,
PropertySetNode cache) |
protected void |
doUncached(com.oracle.truffle.api.object.DynamicObject globalObject,
JSContext context) |
protected abstract void |
executeVoid(com.oracle.truffle.api.object.DynamicObject globalObject,
JSContext context) |
void |
executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame,
JSContext context,
JSRealm realm) |
protected PropertySetNode |
makeDefineOwnPropertyCache(JSContext context) |
void |
verify(JSContext context,
JSRealm realm) |
isGlobalFunctionDeclaration, isLexicallyDeclared
copy, onReplace
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecialize, toString
protected DeclareGlobalVariableNode(String varName, boolean configurable)
public static DeclareGlobalVariableNode create(String varName, boolean configurable)
public void verify(JSContext context, JSRealm realm)
verify
in class DeclareGlobalNode
public final void executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame, JSContext context, JSRealm realm)
executeVoid
in class DeclareGlobalNode
protected abstract void executeVoid(com.oracle.truffle.api.object.DynamicObject globalObject, JSContext context)
protected void doCached(com.oracle.truffle.api.object.DynamicObject globalObject, JSContext context, PropertySetNode cache)
protected void doUncached(com.oracle.truffle.api.object.DynamicObject globalObject, JSContext context)
protected final PropertySetNode makeDefineOwnPropertyCache(JSContext context)
protected DeclareGlobalNode copyUninitialized()
copyUninitialized
in class DeclareGlobalNode