Home
last modified time | relevance | path

Searched refs:completion (Results 1 - 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_async_generator_object.cpp141 // 9. Let completion be next.[[Completion]]. in AsyncGeneratorResumeNext()
143 JSHandle<CompletionRecord> completion(thread, rcd); in AsyncGeneratorResumeNext()
144 CompletionRecordType type = completion->GetType(); in AsyncGeneratorResumeNext()
145 // 10. If completion is an abrupt completion, then in AsyncGeneratorResumeNext()
156 // i. If completion.[[Type]] is return, then in AsyncGeneratorResumeNext()
157 if (completion->GetType() == CompletionRecordType::RETURN) { in AsyncGeneratorResumeNext()
160 // 2. Let promise be ? PromiseResolve(%Promise%, completion.[[Value]]). in AsyncGeneratorResumeNext()
162 JSHandle<JSTaggedValue> val(thread, completion->GetValue()); in AsyncGeneratorResumeNext()
196 // 1. Assert: completion in AsyncGeneratorResumeNext()
[all...]
H A Djs_iterator.cpp235 const JSHandle<JSTaggedValue> &completion) in IteratorClose()
252 // 5.If return is undefined, return Completion(completion). in IteratorClose()
257 return completion; in IteratorClose()
273 if (completion->IsCompletionRecord()) { in IteratorClose()
274 completionRecord = JSHandle<CompletionRecord>::Cast(completion); in IteratorClose()
276 // 7.If completion.[[type]] is throw, return Completion(completion). in IteratorClose()
281 return completion; in IteratorClose()
294 return completion; in IteratorClose()
234 IteratorClose(JSThread *thread, const JSHandle<JSTaggedValue> &iter, const JSHandle<JSTaggedValue> &completion) IteratorClose() argument
H A Djs_iterator.h77 const JSHandle<JSTaggedValue> &completion);
/arkcompiler/ets_frontend/es2panda/compiler/base/
H A Diterators.cpp83 VReg completion = pg_->AllocReg(); in Close() local
88 pg_->StoreAccumulator(node_, completion); in Close()
107 // b. If return is undefined, return Completion(completion). in Close()
125 // 6. If completion.[[Type]] is throw, return Completion(completion). in Close()
127 pg_->LoadAccumulator(node_, completion); in Close()
140 pg_->LoadAccumulator(node_, completion); in Close()
/arkcompiler/ets_frontend/ets2panda/compiler/base/
H A Diterators.cpp83 VReg completion = pg_->AllocReg(); in CloseInnerResultNormal() local
87 // b. If return is undefined, return Completion(completion). in CloseInnerResultNormal()
90 pg_->LoadAccumulator(node_, completion); in CloseInnerResultNormal()
131 VReg completion = pg_->AllocReg(); in Close() local
135 pg_->StoreAccumulator(node_, completion); in Close()
160 // 6. If completion.[[Type]] is throw, return Completion(completion). in Close()
162 pg_->LoadAccumulator(node_, completion); in Close()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h382 JSHandle<PromiseCapability> completion(thread, next->GetCapability()); in RuntimeAsyncFunctionAwaitUncaught()
383 JSHandle<JSPromise> promise(thread, completion->GetPromise()); in RuntimeAsyncFunctionAwaitUncaught()

Completed in 9 milliseconds