/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_promise_test.cpp | 65 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 …]
|
D | dump_test.cpp | 745 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/ |
D | js_promise.cpp | 33 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()
|
D | js_async_function.cpp | 47 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncFunctionAwait() 78 … JSPromise::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() 137 … JSPromise::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()
|
D | js_promise.h | 105 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,
|
D | js_async_generator_object.cpp | 171 JSHandle<JSPromise> handPromise(thread, promise); in AsyncGeneratorResumeNext() 194 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncGeneratorResumeNext() 254 … JSPromise::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()
|
D | ecma_context.h | 47 class JSPromise; variable 57 class JSPromise; variable 87 const JSHandle<JSPromise> promise, 166 void PromiseRejectionTracker(const JSHandle<JSPromise> &promise, in PromiseRejectionTracker()
|
D | js_async_from_sync_iterator.cpp | 89 builtins::BuiltinsPromise::PerformPromiseThen(thread, JSHandle<JSPromise>::Cast(promise), in AsyncFromSyncIteratorContinuation()
|
D | ecma_vm.h | 54 class JSPromise; variable
|
D | ecma_vm.cpp | 647 auto promise = JSPromise::Cast(result.GetTaggedObject()); in TriggerConcurrentCallback()
|
/arkcompiler/runtime_core/static_core/docs/coroutines/ |
D | jsmicro_job_queue.plantuml | 8 + map(Promise, JSPromise) 11 -Map<Promise, JSPromise> promise_map
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_promise_test.cpp | 146 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/ |
D | pending_job_test.cpp | 123 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()
|
D | micro_job_queue_test.cpp | 189 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/ |
D | builtins_promise.cpp | 63 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 …]
|
D | builtins_promise_job.cpp | 83 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()
|
D | builtins_promise_handler.cpp | 48 JSHandle<JSPromise> resolvePromise(thread, resolve->GetPromise()); in Resolve() 62 … JSPromise::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()
|
D | builtins_async_from_sync_iterator.cpp | 46 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Next() 82 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Throw() 154 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in Return()
|
D | builtins_async_iterator.cpp | 50 JSHandle<PromiseCapability> pcap = JSPromise::NewPromiseCapability(thread, promiseFunc); in Return()
|
D | builtins_promise.h | 75 static JSTaggedValue PerformPromiseThen(JSThread *thread, const JSHandle<JSPromise> &promise,
|
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/ |
D | tryldglobalbyname_global_object.ts | 630 function JSPromise() { function 729 JSPromise();
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.cpp | 946 … JSPromise::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() 1853 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in ExecuteAsyncModule()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 135 using ecmascript::JSPromise;
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 326 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/ |
D | object_xray.h | 303 JSPromise::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|