Searched refs:PromiseState (Results 1 – 12 of 12) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_promise_test.cpp | 147 EXPECT_EQ(rejectPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 178 EXPECT_EQ(promise1->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 194 EXPECT_EQ(promise2->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 224 EXPECT_EQ(rejectPromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0() 255 EXPECT_EQ(promise1->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 272 EXPECT_EQ(promise2->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 301 EXPECT_EQ(rejectPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 316 EXPECT_EQ(resolvePromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0() 341 EXPECT_EQ(racePromise->GetPromiseState(), PromiseState::PENDING); in HWTEST_F_L0() 372 EXPECT_EQ(rejectPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_promise_test.cpp | 82 EXPECT_EQ(newPromise->GetPromiseState(), PromiseState::PENDING); in HWTEST_F_L0() 102 EXPECT_EQ(newPromise->GetPromiseState(), PromiseState::PENDING); in HWTEST_F_L0() 110 EXPECT_EQ(newPromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0() 121 EXPECT_EQ(newPromise->GetPromiseState(), PromiseState::PENDING); in HWTEST_F_L0() 129 EXPECT_EQ(newPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_promise.h | 28 enum class PromiseState : uint8_t { PENDING = 0, FULFILLED, REJECTED }; enum 143 FIRST_BIT_FIELD(BitField, PromiseState, PromiseState, PROMISE_STATE_BITS) 144 NEXT_BIT_FIELD(BitField, PromiseIsHandled, bool, PROMISE_IS_HANDLED_BITS, PromiseState)
|
D | js_promise.cpp | 67 …ASSERT_PRINT(promise->GetPromiseState() == PromiseState::PENDING, "FulfillPromise: state must be p… in FulfillPromise() 77 promise->SetPromiseState(PromiseState::FULFILLED); in FulfillPromise() 144 …ASSERT_PRINT(promise->GetPromiseState() == PromiseState::PENDING, "RejectPromise: state must be pe… in RejectPromise() 154 promise->SetPromiseState(PromiseState::REJECTED); in RejectPromise()
|
D | ecma_vm.cpp | 649 if (status == PromiseState::PENDING) { in TriggerConcurrentCallback() 656 if (status != PromiseState::FULFILLED) { in TriggerConcurrentCallback()
|
D | object_factory.cpp | 1235 JSPromise::Cast(*obj)->SetPromiseState(PromiseState::PENDING); in InitializeJSObject()
|
/arkcompiler/ets_runtime/ecmascript/jobs/tests/ |
D | pending_job_test.cpp | 139 EXPECT_EQ(jsPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 175 EXPECT_EQ(jsPromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0() 209 EXPECT_EQ(jsPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0() 258 EXPECT_EQ(jsPromise->GetPromiseState(), PromiseState::PENDING); in HWTEST_F_L0() 304 EXPECT_EQ(jsPromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0()
|
D | micro_job_queue_test.cpp | 210 EXPECT_EQ(jsPromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0() 260 EXPECT_EQ(resolvePromise->GetPromiseState(), PromiseState::FULFILLED); in HWTEST_F_L0() 264 EXPECT_EQ(rejectPromise->GetPromiseState(), PromiseState::REJECTED); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_promise.cpp | 414 PromiseState state = promise->GetPromiseState(); in PerformPromiseThen() 415 if (state == PromiseState::PENDING) { in PerformPromiseThen() 424 } else if (state == PromiseState::FULFILLED) { in PerformPromiseThen() 431 } else if (state == PromiseState::REJECTED) { in PerformPromiseThen()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.cpp | 991 PromiseState state = JSPromise::Cast(promise.GetTaggedObject())->GetPromiseState(); in InnerModuleEvaluation() 992 ASSERT(state != PromiseState::PENDING); in InnerModuleEvaluation() 995 if (state == PromiseState::REJECTED) { in InnerModuleEvaluation()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi_expo.cpp | 3919 ecmascript::PromiseState state = promise->GetPromiseState(); in GetPromiseState() 3922 case ecmascript::PromiseState::PENDING: in GetPromiseState() 3925 case ecmascript::PromiseState::FULFILLED: in GetPromiseState() 3928 case ecmascript::PromiseState::REJECTED: in GetPromiseState()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 1315 promiseObject->SetPromiseState(PromiseState::PENDING); in RuntimeAsyncFunctionEnter()
|