Home
last modified time | relevance | path

Searched refs:JSPromise (Results 1 – 25 of 31) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_promise_test.cpp65 JSHandle<JSPromise> jsPromise = in HWTEST_F_L0()
66 …JSHandle<JSPromise>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(promiseFunc), pro… in HWTEST_F_L0()
67 …JSHandle<ResolvingFunctionsRecord> reactions = JSPromise::CreateResolvingFunctions(thread, jsPromi… in HWTEST_F_L0()
80 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promise); in HWTEST_F_L0()
81 JSHandle<JSPromise> newPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
89 JSHandle<JSPromise> resolvedPromise(thread, resolve->GetPromise()); in HWTEST_F_L0()
90 JSHandle<JSPromise> rejectedPromise(thread, reject->GetPromise()); in HWTEST_F_L0()
100 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promise); in HWTEST_F_L0()
101 JSHandle<JSPromise> newPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
119 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promise); in HWTEST_F_L0()
[all …]
Ddump_test.cpp745 CHECK_DUMP_FIELDS(JSObject::SIZE, JSPromise::SIZE, 4U); in HWTEST_F_L0()
746 NEW_OBJECT_AND_DUMP(JSPromise, JS_PROMISE); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_promise.cpp33 JSHandle<ResolvingFunctionsRecord> JSPromise::CreateResolvingFunctions(JSThread *thread, in CreateResolvingFunctions()
34 … const JSHandle<JSPromise> &promise) in CreateResolvingFunctions()
62 JSTaggedValue JSPromise::FulfillPromise(JSThread *thread, const JSHandle<JSPromise> &promise, in FulfillPromise()
82 JSHandle<PromiseCapability> JSPromise::NewPromiseCapability(JSThread *thread, const JSHandle<JSTagg… in NewPromiseCapability()
107 JSHandle<JSPromise> promise(thread, result); in NewPromiseCapability()
125 bool JSPromise::IsPromise(const JSHandle<JSTaggedValue> &value) in IsPromise()
139 JSTaggedValue JSPromise::RejectPromise(JSThread *thread, const JSHandle<JSPromise> &promise, in RejectPromise()
163 JSTaggedValue JSPromise::TriggerPromiseReactions(JSThread *thread, const JSHandle<TaggedQueue> &rea… in TriggerPromiseReactions()
185 JSHandle<JSTaggedValue> JSPromise::IfThrowGetThrowValue(JSThread *thread) in IfThrowGetThrowValue()
Djs_async_function.cpp47JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncFunctionAwait()
78JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncFunctionAwait()
80 JSHandle<JSPromise>(thread, tcap->GetPromise())->SetPromiseIsHandled(true); in AsyncFunctionAwait()
83 JSHandle<JSPromise> promise(thread, pcap->GetPromise()); in AsyncFunctionAwait()
137JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncFunctionAwait()
139 JSHandle<JSPromise>(thread, tcap->GetPromise())->SetPromiseIsHandled(true); in AsyncFunctionAwait()
143 BuiltinsPromise::PerformPromiseThen(thread, JSHandle<JSPromise>::Cast(promise), in AsyncFunctionAwait()
Djs_promise.h105 class JSPromise final : public JSObject {
107 CAST_CHECK(JSPromise, IsJSPromise);
111 … const JSHandle<JSPromise> &promise);
114 static JSTaggedValue FulfillPromise(JSThread *thread, const JSHandle<JSPromise> &promise,
124 static JSTaggedValue RejectPromise(JSThread *thread, const JSHandle<JSPromise> &promise,
Djs_async_generator_object.cpp171 JSHandle<JSPromise> handPromise(thread, promise); in AsyncGeneratorResumeNext()
194JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncGeneratorResumeNext()
254JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncGeneratorEnqueue()
322 … JSHandle<PromiseCapability> promiseCapability = JSPromise::NewPromiseCapability(thread, promise); in PromiseResolve()
334 JSHandle<JSPromise> promiseObj(thread, promiseCapability->GetPromise()); in PromiseResolve()
Decma_context.h47 class JSPromise; variable
57 class JSPromise; variable
87 const JSHandle<JSPromise> promise,
166 void PromiseRejectionTracker(const JSHandle<JSPromise> &promise, in PromiseRejectionTracker()
Djs_async_from_sync_iterator.cpp89 builtins::BuiltinsPromise::PerformPromiseThen(thread, JSHandle<JSPromise>::Cast(promise), in AsyncFromSyncIteratorContinuation()
Decma_vm.h54 class JSPromise; variable
Decma_vm.cpp647 auto promise = JSPromise::Cast(result.GetTaggedObject()); in TriggerConcurrentCallback()
/arkcompiler/runtime_core/static_core/docs/coroutines/
Djsmicro_job_queue.plantuml8 + map(Promise, JSPromise)
11 -Map<Promise, JSPromise> promise_map
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_promise_test.cpp146 JSHandle<JSPromise> rejectPromise(thread, result); in HWTEST_F_L0()
177 JSHandle<JSPromise> promise1(thread, result); in HWTEST_F_L0()
192 JSHandle<JSPromise> promise2(thread, result1); in HWTEST_F_L0()
223 JSHandle<JSPromise> rejectPromise(thread, result); in HWTEST_F_L0()
254 JSHandle<JSPromise> promise1(thread, result); in HWTEST_F_L0()
270 JSHandle<JSPromise> promise2(thread, result1); in HWTEST_F_L0()
300 JSHandle<JSPromise> rejectPromise(thread, result1); in HWTEST_F_L0()
315 JSHandle<JSPromise> resolvePromise(thread, result2); in HWTEST_F_L0()
340 JSHandle<JSPromise> racePromise(thread, result4); in HWTEST_F_L0()
371 JSHandle<JSPromise> rejectPromise(thread, result1); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dpending_job_test.cpp123 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
138 JSHandle<JSPromise> jsPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
159 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
174 JSHandle<JSPromise> jsPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
195 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
208 JSHandle<JSPromise> jsPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
241 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
257 JSHandle<JSPromise> jsPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
289 JSHandle<JSPromise> jsPromise = in HWTEST_F_L0()
290 …JSHandle<JSPromise>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(promiseFunc), pro… in HWTEST_F_L0()
Dmicro_job_queue_test.cpp189 JSHandle<PromiseCapability> capbility = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
209 JSHandle<JSPromise> jsPromise(thread, capbility->GetPromise()); in HWTEST_F_L0()
232 JSHandle<PromiseCapability> capbility1 = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
244 JSHandle<PromiseCapability> capbility2 = JSPromise::NewPromiseCapability(thread, promiseFunc); in HWTEST_F_L0()
259 JSHandle<JSPromise> resolvePromise(thread, capbility1->GetPromise()); in HWTEST_F_L0()
263 JSHandle<JSPromise> rejectPromise(thread, capbility2->GetPromise()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise.cpp63 JSHandle<JSPromise> instancePromise = in PromiseConstructor()
64 …JSHandle<JSPromise>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), new… in PromiseConstructor()
71 …JSHandle<ResolvingFunctionsRecord> resolvingFunction = JSPromise::CreateResolvingFunctions(thread,… in PromiseConstructor()
87 completionValue = JSPromise::IfThrowGetThrowValue(thread); in PromiseConstructor()
130 JSHandle<PromiseCapability> capa = JSPromise::NewPromiseCapability(thread, ctor); in All()
137 itor = JSPromise::IfThrowGetThrowValue(thread); in All()
197 …JSHandle<PromiseCapability> promiseCapability = JSPromise::NewPromiseCapability(thread, thisValue); in Race()
205 iterator = JSPromise::IfThrowGetThrowValue(thread); in Race()
268 …JSHandle<PromiseCapability> promiseCapability = JSPromise::NewPromiseCapability(thread, thisValue); in Resolve()
304 …JSHandle<PromiseCapability> promiseCapability = JSPromise::NewPromiseCapability(thread, thisValue); in Reject()
[all …]
Dbuiltins_promise_job.cpp83 JSHandle<JSTaggedValue> throwValue = JSPromise::IfThrowGetThrowValue(thread); in PromiseReactionJob()
105 JSPromise::CreateResolvingFunctions(thread, JSHandle<JSPromise>::Cast(promise)); in PromiseResolveThenableJob()
121 thenResult = JSPromise::IfThrowGetThrowValue(thread); in PromiseResolveThenableJob()
253 JSHandle<JSTaggedValue> thenResult = JSPromise::IfThrowGetThrowValue(thread); in CatchException()
Dbuiltins_promise_handler.cpp48 JSHandle<JSPromise> resolvePromise(thread, resolve->GetPromise()); in Resolve()
62JSPromise::RejectPromise(thread, resolvePromise, JSHandle<JSTaggedValue>::Cast(resolutionError)); in Resolve()
68 JSPromise::FulfillPromise(thread, resolvePromise, resolution); in Resolve()
81 return JSPromise::RejectPromise(thread, resolvePromise, thenValue); in Resolve()
87 JSPromise::FulfillPromise(thread, resolvePromise, resolution); in Resolve()
120 JSHandle<JSPromise> rejectPromise(thread, reject->GetPromise()); in Reject()
129 JSHandle<JSTaggedValue> result(thread, JSPromise::RejectPromise(thread, rejectPromise, reason)); in Reject()
363 …JSHandle<PromiseCapability> promiseCapability = JSPromise::NewPromiseCapability(thread, constructo… in PromiseResolve()
Dbuiltins_async_from_sync_iterator.cpp46JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Next()
82JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Throw()
154JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Return()
Dbuiltins_async_iterator.cpp50 JSHandle<PromiseCapability> pcap = JSPromise::NewPromiseCapability(thread, promiseFunc); in Return()
Dbuiltins_promise.h75 static JSTaggedValue PerformPromiseThen(JSThread *thread, const JSHandle<JSPromise> &promise,
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dtryldglobalbyname_global_object.ts630 function JSPromise() { function
729 JSPromise();
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp946JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Evaluate()
991 PromiseState state = JSPromise::Cast(promise.GetTaggedObject())->GetPromiseState(); in InnerModuleEvaluation()
997 … JSTaggedValue promiseResult = JSPromise::Cast(promise.GetTaggedObject())->GetPromiseResult(); in InnerModuleEvaluation()
1842 JSHandle<JSPromise> promise(thread, result.Value()); in ExecuteAsyncModule()
1853JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in ExecuteAsyncModule()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp135 using ecmascript::JSPromise;
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h326 JSHandle<JSPromise> promise(thread, completion->GetPromise()); in RuntimeAsyncFunctionAwaitUncaught()
330 JSHandle<JSPromise> promise(thread, asyncFuncObjHandle->GetPromise()); in RuntimeAsyncFunctionAwaitUncaught()
340 JSHandle<JSPromise> promise(thread, asyncFuncObjHandle->GetPromise()); in RuntimeAsyncFunctionResolveOrReject()
343 …JSHandle<ResolvingFunctionsRecord> reactions = JSPromise::CreateResolvingFunctions(thread, promise… in RuntimeAsyncFunctionResolveOrReject()
1314 JSHandle<JSPromise> promiseObject(factory->NewJSObjectByConstructor(promiseFunc)); in RuntimeAsyncFunctionEnter()
1597 …JSHandle<PromiseCapability> promiseCapability = JSPromise::NewPromiseCapability(thread, promiseFun… in RuntimeDynamicImport()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h303 JSPromise::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()

12