Home
last modified time | relevance | path

Searched refs:PromiseState (Results 1 – 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_promise_test.cpp147 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/
Djs_promise_test.cpp82 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/
Djs_promise.h28 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)
Djs_promise.cpp67 …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()
Decma_vm.cpp649 if (status == PromiseState::PENDING) { in TriggerConcurrentCallback()
656 if (status != PromiseState::FULFILLED) { in TriggerConcurrentCallback()
Dobject_factory.cpp1235 JSPromise::Cast(*obj)->SetPromiseState(PromiseState::PENDING); in InitializeJSObject()
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dpending_job_test.cpp139 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()
Dmicro_job_queue_test.cpp210 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/
Dbuiltins_promise.cpp414 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/
Djs_module_source_text.cpp991 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/
Djsnapi_expo.cpp3919 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/
Druntime_stubs-inl.h1315 promiseObject->SetPromiseState(PromiseState::PENDING); in RuntimeAsyncFunctionEnter()