/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_generator_object_test.cpp | 75 JSHandle<JSGeneratorObject> genObj(thread, genObjTagVal); in HWTEST_F_L0() local 76 …rState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cast(genObj)); in HWTEST_F_L0() 88 JSHandle<JSGeneratorObject> genObj(thread, JSGeneratorObject::Cast(genObjectHeader)); in HWTEST_F_L0() local 89 …rState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cast(genObj)); in HWTEST_F_L0() 92 genObj->SetGeneratorState(JSGeneratorState::COMPLETED); in HWTEST_F_L0() 93 state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cast(genObj)); in HWTEST_F_L0() 112 JSHandle<JSGeneratorObject> genObj(thread, genObjTagVal); in HWTEST_F_L0() local 115 genObj->SetGeneratorState(JSGeneratorState::COMPLETED); in HWTEST_F_L0() 116 …JSHandle<JSObject> result = JSGeneratorObject::GeneratorResume(thread, genObj, JSTaggedValue::Unde… in HWTEST_F_L0() 138 JSHandle<JSGeneratorObject> genObj(thread, genObjTagVal); in HWTEST_F_L0() local [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | pandagen.ts | 517 generatorYield(node: ts.Node, genObj: VReg): void { 520 loadAccumulator(genObj), 525 generatorComplete(node: ts.Node | NodeKind, genObj: VReg): void { 528 loadAccumulator(genObj), 1170 asyncgeneratorresolve(node: ts.Node | NodeKind, genObj: VReg, value: VReg, done: VReg): void { 1171 this.add(node, new Asyncgeneratorresolve(genObj, value, done)); 1174 asyncgeneratorreject(node: ts.Node, genObj: VReg): void { 1175 this.add(node, new Asyncgeneratorreject(genObj)); 1178 suspendGenerator(node: ts.Node | NodeKind, genObj: VReg): void { 1179 this.add(node, new Suspendgenerator(genObj)); // promise obj is in acc [all …]
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | pandagen.h | 384 void ResumeGenerator(const ir::AstNode *node, VReg genObj); 385 void GetResumeMode(const ir::AstNode *node, VReg genObj); 392 void GeneratorYield(const ir::AstNode *node, VReg genObj); 393 void GeneratorComplete(const ir::AstNode *node, VReg genObj); 396 void SuspendGenerator(const ir::AstNode *node, VReg genObj);
|
D | pandagen.cpp | 1394 void PandaGen::SuspendGenerator(const ir::AstNode *node, VReg genObj) in SuspendGenerator() argument 1396 ra_.Emit<Suspendgenerator>(node, genObj); // iterResult is in acc in SuspendGenerator() 1407 void PandaGen::GeneratorYield(const ir::AstNode *node, VReg genObj) in GeneratorYield() argument 1409 LoadAccumulator(node, genObj); in GeneratorYield() 1413 void PandaGen::GeneratorComplete(const ir::AstNode *node, VReg genObj) in GeneratorComplete() argument 1415 LoadAccumulator(node, genObj); in GeneratorComplete() 1419 void PandaGen::ResumeGenerator(const ir::AstNode *node, VReg genObj) in ResumeGenerator() argument 1421 LoadAccumulator(node, genObj); in ResumeGenerator() 1425 void PandaGen::GetResumeMode(const ir::AstNode *node, VReg genObj) in GetResumeMode() argument 1427 LoadAccumulator(node, genObj); in GetResumeMode()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | slow_runtime_stub.h | 77 …static JSTaggedValue SuspendGenerator(JSThread *thread, JSTaggedValue genObj, JSTaggedValue value); 78 static void SetGeneratorState(JSThread *thread, JSTaggedValue genObj, int32_t index);
|
D | slow_runtime_stub.cpp | 447 JSTaggedValue SlowRuntimeStub::SuspendGenerator(JSThread *thread, JSTaggedValue genObj, JSTaggedVal… in SuspendGenerator() argument 452 JSHandle<JSTaggedValue> genObjHandle(thread, genObj); in SuspendGenerator() 457 void SlowRuntimeStub::SetGeneratorState(JSThread *thread, JSTaggedValue genObj, int32_t index) in SetGeneratorState() argument 462 JSHandle<JSTaggedValue> genObjHandle(thread, genObj); in SetGeneratorState()
|
D | interpreter-inl.h | 5087 JSTaggedValue genObj = GET_VREG_VALUE(v0); in RunInternal() local 5092 JSTaggedValue res = SlowRuntimeStub::SuspendGenerator(thread, genObj, value); in RunInternal() 5121 JSTaggedValue genObj = GET_VREG_VALUE(v0); in RunInternal() local 5126 JSTaggedValue res = SlowRuntimeStub::SuspendGenerator(thread, genObj, value); in RunInternal()
|
D | interpreter_assembly.cpp | 1760 JSTaggedValue genObj = GET_VREG_VALUE(v0); in HandleSuspendgeneratorV8() local 1765 JSTaggedValue res = SlowRuntimeStub::SuspendGenerator(thread, genObj, value); in HandleSuspendgeneratorV8() 4385 JSTaggedValue genObj = GET_VREG_VALUE(v0); in HandleDeprecatedSuspendgeneratorPrefV8V8() local 4390 JSTaggedValue res = SlowRuntimeStub::SuspendGenerator(thread, genObj, value); in HandleDeprecatedSuspendgeneratorPrefV8V8()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 1051 …alue RuntimeStubs::RuntimeSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, in RuntimeSuspendGenerator() argument 1054 if (genObj->IsAsyncGeneratorObject()) { in RuntimeSuspendGenerator() 1055 JSHandle<JSAsyncGeneratorObject> generatorObjectHandle(genObj); in RuntimeSuspendGenerator() 1068 if (genObj->IsGeneratorObject()) { in RuntimeSuspendGenerator() 1069 JSHandle<JSGeneratorObject> generatorObjectHandle(genObj); in RuntimeSuspendGenerator() 1087 void RuntimeStubs::RuntimeSetGeneratorState(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, in RuntimeSetGeneratorState() argument 1090 JSHandle<JSAsyncGeneratorObject> generatorObjectHandle(genObj); in RuntimeSetGeneratorState() 2286 …e RuntimeStubs::RuntimeOptSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, in RuntimeOptSuspendGenerator() argument 2289 if (genObj->IsAsyncGeneratorObject()) { in RuntimeOptSuspendGenerator() 2290 JSHandle<JSAsyncGeneratorObject> generatorObjectHandle(genObj); in RuntimeOptSuspendGenerator() [all …]
|
D | runtime_stubs.h | 490 …line JSTaggedValue RuntimeSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, 517 …tatic inline void RuntimeSetGeneratorState(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, 640 …e JSTaggedValue RuntimeOptSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj,
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | slowpath_lowering.cpp | 767 GateRef genObj = acc_.GetValueIn(gate, 1); in SaveFrameToContext() local 774 …builder_.Load(VariableType::JS_POINTER(), genObj, builder_.IntPtr(JSGeneratorObject::GENERATOR_CON… in SaveFrameToContext() 815 builder_.Store(VariableType::JS_ANY(), glue_, context, generatorObjectOffset, genObj); in SaveFrameToContext() 833 builder_.Store(VariableType::JS_POINTER(), glue_, genObj, contextOffset, context); in SaveFrameToContext() 836 builder_.Store(VariableType::JS_POINTER(), glue_, context, generatorObjectOffset, genObj); in SaveFrameToContext() 846 auto genObj = acc_.GetValueIn(gate, 1); in LowerSuspendGenerator() local 847 GateRef newGate = LowerCallRuntime(gate, id, { genObj, value }); in LowerSuspendGenerator()
|
D | interpreter_stub.cpp | 2442 GateRef genObj = GetVregValue(sp, ZExtInt8ToPtr(ReadInst8_0(pc))); in DECLARE_ASM_HANDLER() local 2445 GateRef res = CallRuntime(glue, RTSTUB_ID(SuspendGenerator), { genObj, value }); in DECLARE_ASM_HANDLER() 2516 GateRef genObj = GetVregValue(sp, ZExtInt8ToPtr(ReadInst8_1(pc))); in DECLARE_ASM_HANDLER() local 2519 GateRef res = CallRuntime(glue, RTSTUB_ID(SuspendGenerator), { genObj, value }); in DECLARE_ASM_HANDLER()
|