public abstract class DeclareGlobalFunctionNode extends DeclareGlobalNode
| Modifier and Type | Field and Description |
|---|---|
protected JavaScriptNode |
valueNode |
errorProfile, varName| Modifier | Constructor and Description |
|---|---|
protected |
DeclareGlobalFunctionNode(com.oracle.truffle.api.strings.TruffleString varName,
boolean configurable,
JavaScriptNode valueNode) |
| Modifier and Type | Method and Description |
|---|---|
protected DeclareGlobalNode |
copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
static DeclareGlobalFunctionNode |
create(com.oracle.truffle.api.strings.TruffleString varName,
boolean configurable,
JavaScriptNode valueNode) |
protected void |
doCached(JSDynamicObject globalObject,
Object value,
PropertyDescriptor desc,
JSContext context,
PropertySetNode cache) |
protected void |
doUncached(JSDynamicObject globalObject,
Object value,
PropertyDescriptor desc,
JSContext context) |
protected abstract void |
executeVoid(JSDynamicObject globalObject,
Object value,
PropertyDescriptor desc,
JSContext context) |
void |
executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame,
JSContext context,
JSRealm realm) |
boolean |
isGlobalFunctionDeclaration() |
protected PropertySetNode |
makeDefineOwnPropertyCache(JSContext context) |
void |
verify(JSContext context,
JSRealm realm) |
isLexicallyDeclaredcopy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringprotected JavaScriptNode valueNode
protected DeclareGlobalFunctionNode(com.oracle.truffle.api.strings.TruffleString varName,
boolean configurable,
JavaScriptNode valueNode)
public static DeclareGlobalFunctionNode create(com.oracle.truffle.api.strings.TruffleString varName, boolean configurable, JavaScriptNode valueNode)
public void verify(JSContext context, JSRealm realm)
verify in class DeclareGlobalNodepublic final void executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame,
JSContext context,
JSRealm realm)
executeVoid in class DeclareGlobalNodeprotected abstract void executeVoid(JSDynamicObject globalObject, Object value, PropertyDescriptor desc, JSContext context)
protected void doCached(JSDynamicObject globalObject, Object value, PropertyDescriptor desc, JSContext context, PropertySetNode cache)
protected void doUncached(JSDynamicObject globalObject, Object value, PropertyDescriptor desc, JSContext context)
protected final PropertySetNode makeDefineOwnPropertyCache(JSContext context)
public boolean isGlobalFunctionDeclaration()
isGlobalFunctionDeclaration in class DeclareGlobalNodeprotected DeclareGlobalNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
copyUninitialized in class DeclareGlobalNode