Home
last modified time | relevance | path

Searched refs:asyncFuncObj (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_async_function_test.cpp64 JSHandle<JSAsyncFuncObject> asyncFuncObj = factory->NewJSAsyncFuncObject(); in HWTEST_F_L0() local
65 JSHandle<JSTaggedValue> asyncFuncObjVal(thread, asyncFuncObj->GetGeneratorContext()); in HWTEST_F_L0()
74 rejFunc->SetAsyncContext(thread, asyncFuncObj->GetGeneratorContext()); in HWTEST_F_L0()
91 JSHandle<JSAsyncFuncObject> asyncFuncObj = factory->NewJSAsyncFuncObject(); in HWTEST_F_L0() local
92 JSAsyncFunction::AsyncFunctionAwait(thread, asyncFuncObj, valueHandle); in HWTEST_F_L0()
98 EXPECT_TRUE(asyncFuncObj->GetPromise().IsUndefined()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_async_function.cpp34 …syncFunction::AsyncFunctionAwait(JSThread *thread, const JSHandle<JSAsyncFuncObject> &asyncFuncObj, in AsyncFunctionAwait() argument
41 JSHandle<JSTaggedValue> asyncCtxt(thread, asyncFuncObj->GetGeneratorContext()); in AsyncFunctionAwait()
95 … JSAsyncFunction::AsyncFunctionAwait(JSThread *thread, const JSHandle<JSTaggedValue> &asyncFuncObj, in AsyncFunctionAwait() argument
102 if (asyncFuncObj->IsAsyncGeneratorObject()) { in AsyncFunctionAwait()
103 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, asyncFuncObj); in AsyncFunctionAwait()
108 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, asyncFuncObj); in AsyncFunctionAwait()
Djs_async_function.h52 static void AsyncFunctionAwait(JSThread *thread, const JSHandle<JSTaggedValue> &asyncFuncObj,
54 … static void AsyncFunctionAwait(JSThread *thread, const JSHandle<JSAsyncFuncObject> &asyncFuncObj,
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.h79 …static JSTaggedValue AsyncFunctionAwaitUncaught(JSThread *thread, JSTaggedValue asyncFuncObj, JSTa…
80 …static JSTaggedValue AsyncFunctionResolveOrReject(JSThread *thread, JSTaggedValue asyncFuncObj, JS…
174 static JSTaggedValue AsyncGeneratorResolve(JSThread *thread, JSTaggedValue asyncFuncObj,
176 static JSTaggedValue AsyncGeneratorReject(JSThread *thread, JSTaggedValue asyncFuncObj,
Dslow_runtime_stub.cpp466 …ggedValue SlowRuntimeStub::AsyncFunctionAwaitUncaught(JSThread *thread, JSTaggedValue asyncFuncObj, in AsyncFunctionAwaitUncaught() argument
471 JSHandle<JSTaggedValue> asyncFuncObjHandle(thread, asyncFuncObj); in AsyncFunctionAwaitUncaught()
477 …edValue SlowRuntimeStub::AsyncFunctionResolveOrReject(JSThread *thread, JSTaggedValue asyncFuncObj, in AsyncFunctionResolveOrReject() argument
483 JSHandle<JSTaggedValue> asyncFuncObjHandle(thread, asyncFuncObj); in AsyncFunctionResolveOrReject()
1142 JSTaggedValue SlowRuntimeStub::AsyncGeneratorResolve(JSThread *thread, JSTaggedValue asyncFuncObj, in AsyncGeneratorResolve() argument
1148 JSHandle<JSTaggedValue> genObjHandle(thread, asyncFuncObj); in AsyncGeneratorResolve()
1154 JSTaggedValue SlowRuntimeStub::AsyncGeneratorReject(JSThread *thread, JSTaggedValue asyncFuncObj, in AsyncGeneratorReject() argument
1160 JSHandle<JSAsyncGeneratorObject> asyncFuncObjHandle(thread, asyncFuncObj); in AsyncGeneratorReject()
Dinterpreter-inl.h5164 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in RunInternal() local
5167 … JSTaggedValue res = SlowRuntimeStub::AsyncFunctionAwaitUncaught(thread, asyncFuncObj, value); in RunInternal()
5177 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in RunInternal() local
5180 … JSTaggedValue res = SlowRuntimeStub::AsyncFunctionAwaitUncaught(thread, asyncFuncObj, value); in RunInternal()
6306 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in RunInternal() local
6309 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, tru… in RunInternal()
6321 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in RunInternal() local
6324 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, tru… in RunInternal()
6334 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in RunInternal() local
6337 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, fal… in RunInternal()
[all …]
Dinterpreter_assembly.cpp1798 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in HandleAsyncfunctionawaituncaughtV8() local
1801 JSTaggedValue res = SlowRuntimeStub::AsyncFunctionAwaitUncaught(thread, asyncFuncObj, value); in HandleAsyncfunctionawaituncaughtV8()
1815 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in HandleAsyncfunctionresolveV8() local
1818 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, tru… in HandleAsyncfunctionresolveV8()
1832 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in HandleAsyncfunctionrejectV8() local
1835 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, fal… in HandleAsyncfunctionrejectV8()
4218 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in HandleDeprecatedAsyncfunctionrejectPrefV8V8V8() local
4221 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, fal… in HandleDeprecatedAsyncfunctionrejectPrefV8V8V8()
4237 JSTaggedValue asyncFuncObj = GET_VREG_VALUE(v0); in HandleDeprecatedAsyncfunctionresolvePrefV8V8V8() local
4240 …JSTaggedValue res = SlowRuntimeStub::AsyncFunctionResolveOrReject(thread, asyncFuncObj, value, tru… in HandleDeprecatedAsyncfunctionresolvePrefV8V8V8()
[all …]
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h307 … const JSHandle<JSTaggedValue> &asyncFuncObj, in RuntimeAsyncFunctionAwaitUncaught() argument
310 JSAsyncFunction::AsyncFunctionAwait(thread, asyncFuncObj, value); in RuntimeAsyncFunctionAwaitUncaught()
311 if (asyncFuncObj->IsAsyncGeneratorObject()) { in RuntimeAsyncFunctionAwaitUncaught()
312 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, asyncFuncObj); in RuntimeAsyncFunctionAwaitUncaught()
324 JSHandle<JSAsyncFuncObject> asyncFuncObjHandle(asyncFuncObj); in RuntimeAsyncFunctionAwaitUncaught()
332 …const JSHandle<JSTaggedValue> &asyncFuncObj, const JSHandle<JSTaggedValue> &value, bool is_resolve) in RuntimeAsyncFunctionResolveOrReject() argument
334 JSHandle<JSAsyncFuncObject> asyncFuncObjHandle(asyncFuncObj); in RuntimeAsyncFunctionResolveOrReject()
357 … RuntimeStubs::RuntimeAsyncGeneratorResolve(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj, in RuntimeAsyncGeneratorResolve() argument
362 JSHandle<JSAsyncGeneratorObject> asyncGeneratorObjHandle(asyncFuncObj); in RuntimeAsyncGeneratorResolve()
374 …e RuntimeStubs::RuntimeAsyncGeneratorReject(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj, in RuntimeAsyncGeneratorReject() argument
[all …]
Druntime_stubs.h407 … JSTaggedValue RuntimeAsyncGeneratorResolve(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj,
409 …e JSTaggedValue RuntimeAsyncGeneratorReject(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj,
425 … const JSHandle<JSTaggedValue> &asyncFuncObj,
428 … const JSHandle<JSTaggedValue> &asyncFuncObj,
642 …TaggedValue RuntimeOptAsyncGeneratorResolve(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj,
Druntime_stubs.cpp644 …JSHandle<JSTaggedValue> asyncFuncObj = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zer… in DEF_RUNTIME_STUBS() local
646 return RuntimeAsyncFunctionAwaitUncaught(thread, asyncFuncObj, value).GetRawData(); in DEF_RUNTIME_STUBS()
652 …JSHandle<JSTaggedValue> asyncFuncObj = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zer… in DEF_RUNTIME_STUBS() local
655 …return RuntimeAsyncFunctionResolveOrReject(thread, asyncFuncObj, value, isResolve.IsTrue()).GetRaw… in DEF_RUNTIME_STUBS()
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dpandagen.h388 void AsyncFunctionAwait(const ir::AstNode *node, VReg asyncFuncObj);
389 void AsyncFunctionResolve(const ir::AstNode *node, VReg asyncFuncObj);
390 void AsyncFunctionReject(const ir::AstNode *node, VReg asyncFuncObj);
Dpandagen.cpp1436 void PandaGen::AsyncFunctionAwait(const ir::AstNode *node, VReg asyncFuncObj) in AsyncFunctionAwait() argument
1438 ra_.Emit<Asyncfunctionawaituncaught>(node, asyncFuncObj); // receivedValue is in acc in AsyncFunctionAwait()
1441 void PandaGen::AsyncFunctionResolve(const ir::AstNode *node, VReg asyncFuncObj) in AsyncFunctionResolve() argument
1443 ra_.Emit<Asyncfunctionresolve>(node, asyncFuncObj); // use retVal in acc in AsyncFunctionResolve()
1446 void PandaGen::AsyncFunctionReject(const ir::AstNode *node, VReg asyncFuncObj) in AsyncFunctionReject() argument
1448 ra_.Emit<Asyncfunctionreject>(node, asyncFuncObj); // exception is in acc in AsyncFunctionReject()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dinterpreter_stub.cpp359 GateRef asyncFuncObj = GetVregValue(sp, ZExtInt8ToPtr(ReadInst8_0(pc))); in DECLARE_ASM_HANDLER() local
362 { asyncFuncObj, value, TaggedTrue() }); in DECLARE_ASM_HANDLER()
368 GateRef asyncFuncObj = GetVregValue(sp, ZExtInt8ToPtr(ReadInst8_1(pc))); in DECLARE_ASM_HANDLER() local
371 { asyncFuncObj, value, TaggedTrue() }); in DECLARE_ASM_HANDLER()
377 GateRef asyncFuncObj = GetVregValue(sp, ZExtInt8ToPtr(ReadInst8_0(pc))); in DECLARE_ASM_HANDLER() local
380 { asyncFuncObj, value, TaggedFalse() }); in DECLARE_ASM_HANDLER()
386 GateRef asyncFuncObj = GetVregValue(sp, ZExtInt8ToPtr(ReadInst8_1(pc))); in DECLARE_ASM_HANDLER() local
389 { asyncFuncObj, value, TaggedFalse() }); in DECLARE_ASM_HANDLER()
1200 GateRef asyncFuncObj = GetVregValue(sp, ZExtInt8ToPtr(v0)); in DECLARE_ASM_HANDLER() local
1202 …GateRef result = CallRuntime(glue, RTSTUB_ID(AsyncFunctionAwaitUncaught), { asyncFuncObj, value }); in DECLARE_ASM_HANDLER()
[all …]