Home
last modified time | relevance | path

Searched refs:reactions (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_promise.cpp49 JSHandle<ResolvingFunctionsRecord> reactions = factory->NewResolvingFunctionsRecord(); in CreateResolvingFunctions() local
50 reactions->SetResolveFunction(thread, resolve.GetTaggedValue()); in CreateResolvingFunctions()
51 reactions->SetRejectFunction(thread, reject.GetTaggedValue()); in CreateResolvingFunctions()
52 return reactions; in CreateResolvingFunctions()
61 // 2. Let reactions be the value of promise's [[PromiseFulfillReactions]] internal slot. in FulfillPromise()
62 JSHandle<TaggedQueue> reactions(thread, promise->GetPromiseFulfillReactions()); in FulfillPromise()
71 // 7. Return TriggerPromiseReactions(reactions, reason). in FulfillPromise()
72 return TriggerPromiseReactions(thread, reactions, value); in FulfillPromise()
138 // 2. Let reactions be the value of promise's [[PromiseRejectReactions]] internal slot. in RejectPromise()
139 JSHandle<TaggedQueue> reactions(threa in RejectPromise()
156 TriggerPromiseReactions(JSThread *thread, const JSHandle<TaggedQueue> &reactions, const JSHandle<JSTaggedValue> &argument) TriggerPromiseReactions() argument
[all...]
H A Djs_promise.h127 // 25.4.1.8 TriggerPromiseReactions (reactions, argument)
128 static JSTaggedValue TriggerPromiseReactions(JSThread *thread, const JSHandle<TaggedQueue> &reactions,
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_promise_test.cpp43 JSHandle<ResolvingFunctionsRecord> reactions = JSPromise::CreateResolvingFunctions(thread, jsPromise); in HWTEST_F_L0() local
44 JSHandle<JSTaggedValue> resolve(thread, reactions->GetResolveFunction()); in HWTEST_F_L0()
45 JSHandle<JSTaggedValue> reject(thread, reactions->GetRejectFunction()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h400 JSHandle<ResolvingFunctionsRecord> reactions = JSPromise::CreateResolvingFunctions(thread, promise); in RuntimeAsyncFunctionResolveOrReject() local
405 activeFunc = JSHandle<JSTaggedValue>(thread, reactions->GetResolveFunction()); in RuntimeAsyncFunctionResolveOrReject()
407 activeFunc = JSHandle<JSTaggedValue>(thread, reactions->GetRejectFunction()); in RuntimeAsyncFunctionResolveOrReject()

Completed in 10 milliseconds