/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_async_function_test.cpp | 64 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/ |
D | js_async_function.cpp | 34 …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()
|
D | js_async_function.h | 52 static void AsyncFunctionAwait(JSThread *thread, const JSHandle<JSTaggedValue> &asyncFuncObj, 54 … static void AsyncFunctionAwait(JSThread *thread, const JSHandle<JSAsyncFuncObject> &asyncFuncObj,
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | slow_runtime_stub.h | 79 …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,
|
D | slow_runtime_stub.cpp | 466 …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()
|
D | interpreter-inl.h | 5164 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 …]
|
D | interpreter_assembly.cpp | 1798 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/ |
D | runtime_stubs-inl.h | 307 … 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 …]
|
D | runtime_stubs.h | 407 … 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,
|
D | runtime_stubs.cpp | 644 …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/ |
D | pandagen.h | 388 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);
|
D | pandagen.cpp | 1436 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/ |
D | interpreter_stub.cpp | 359 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 …]
|