Class PerformPromiseThenNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.promise.PerformPromiseThenNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PerformPromiseThenNodefinal JSDynamicObjectexecute(JSPromiseObject promise, Object onFulfilled, Object onRejected) abstract JSDynamicObjectexecute(JSPromiseObject promise, Object onFulfilled, Object onRejected, PromiseCapabilityRecord resultCapability) protected JSDynamicObjectpromiseThen(JSPromiseObject promise, Object onFulfilled, Object onRejected, PromiseCapabilityRecord resultCapability, com.oracle.truffle.api.profiles.InlinedConditionProfile pendingProf, com.oracle.truffle.api.profiles.InlinedConditionProfile fulfilledProf, com.oracle.truffle.api.profiles.InlinedConditionProfile unhandledProf, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
PerformPromiseThenNode
-
-
Method Details
-
create
-
execute
public final JSDynamicObject execute(JSPromiseObject promise, Object onFulfilled, Object onRejected) -
execute
public abstract JSDynamicObject execute(JSPromiseObject promise, Object onFulfilled, Object onRejected, PromiseCapabilityRecord resultCapability) -
promiseThen
protected JSDynamicObject promiseThen(JSPromiseObject promise, Object onFulfilled, Object onRejected, PromiseCapabilityRecord resultCapability, com.oracle.truffle.api.profiles.InlinedConditionProfile pendingProf, com.oracle.truffle.api.profiles.InlinedConditionProfile fulfilledProf, com.oracle.truffle.api.profiles.InlinedConditionProfile unhandledProf, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile)
-