/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_generator_object_test.cpp | 64 …JSHandle<JSGeneratorObject> genOjb = factory->NewJSGeneratorObject(env->GetGeneratorFunctionFuncti… in HWTEST_F_L0() 65 …JSGeneratorState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cas… in HWTEST_F_L0() 75 JSHandle<JSGeneratorObject> genObj(thread, genObjTagVal); in HWTEST_F_L0() 76 …JSGeneratorState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cas… in HWTEST_F_L0() 88 JSHandle<JSGeneratorObject> genObj(thread, JSGeneratorObject::Cast(genObjectHeader)); in HWTEST_F_L0() 89 …JSGeneratorState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cas… 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() 116 …JSHandle<JSObject> result = JSGeneratorObject::GeneratorResume(thread, genObj, JSTaggedValue::Unde… in HWTEST_F_L0() 138 JSHandle<JSGeneratorObject> genObj(thread, genObjTagVal); in HWTEST_F_L0() [all …]
|
D | dump_test.cpp | 722 CHECK_DUMP_FIELDS(JSObject::SIZE, JSGeneratorObject::SIZE, 3U); in HWTEST_F_L0() 723 NEW_OBJECT_AND_DUMP(JSGeneratorObject, JS_GENERATOR_OBJECT) in HWTEST_F_L0() 732 CHECK_DUMP_FIELDS(JSGeneratorObject::SIZE, JSAsyncFuncObject::SIZE, 1U); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_generator.cpp | 42 …JSHandle<JSGeneratorObject> generator(thread, JSGeneratorObject::Cast(*JSTaggedValue::ToObject(thr… in GeneratorPrototypeNext() 47 …JSHandle<JSObject> result = JSGeneratorObject::GeneratorResume(thread, generator, value.GetTaggedV… in GeneratorPrototypeNext() 63 …JSHandle<JSGeneratorObject> generator(thread, JSGeneratorObject::Cast(*JSTaggedValue::ToObject(thr… in GeneratorPrototypeReturn() 72 …JSHandle<JSObject> result = JSGeneratorObject::GeneratorResumeAbrupt(thread, generator, completion… in GeneratorPrototypeReturn() 88 …JSHandle<JSGeneratorObject> generator(thread, JSGeneratorObject::Cast(*JSTaggedValue::ToObject(thr… in GeneratorPrototypeThrow() 97 …JSHandle<JSObject> result = JSGeneratorObject::GeneratorResumeAbrupt(thread, generator, completion… in GeneratorPrototypeThrow()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_generator_object.h | 56 class JSGeneratorObject : public JSObject { 58 CAST_CHECK(JSGeneratorObject, IsGeneratorObject); 79 …static JSHandle<JSObject> GeneratorResume(JSThread *thread, const JSHandle<JSGeneratorObject> &gen… 83 …dle<JSObject> GeneratorResumeAbrupt(JSThread *thread, const JSHandle<JSGeneratorObject> &generator, 97 class JSAsyncFuncObject : public JSGeneratorObject { 101 static constexpr size_t GENERATOR_PROMISE_OFFSET = JSGeneratorObject::SIZE; 104 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSGeneratorObject, GENERATOR_PROMISE_OFFSET, SIZE)
|
D | js_generator_object.cpp | 23 JSGeneratorState JSGeneratorObject::GeneratorValidate(JSThread *thread, const JSHandle<JSTaggedValu… in GeneratorValidate() 36 JSHandle<JSGeneratorObject> generator(thread, JSGeneratorObject::Cast(*(toObj))); in GeneratorValidate() 46 JSHandle<JSObject> JSGeneratorObject::GeneratorResume(JSThread *thread, const JSHandle<JSGeneratorO… in GeneratorResume() 84 JSHandle<JSObject> JSGeneratorObject::GeneratorResumeAbrupt(JSThread *thread, in GeneratorResumeAbrupt() 85 … const JSHandle<JSGeneratorObject> &generator, in GeneratorResumeAbrupt()
|
D | generator_helper.cpp | 25 JSHandle<JSGeneratorObject> genObject(thread, genContext->GetGeneratorObject()); in Next() 44 JSHandle<JSGeneratorObject> genObject(thread, genContext->GetGeneratorObject()); in Return() 61 JSHandle<JSGeneratorObject> genObject(thread, genContext->GetGeneratorObject()); in Throw()
|
D | object_factory.h | 66 class JSGeneratorObject; variable 258 JSHandle<JSGeneratorObject> NewJSGeneratorObject(JSHandle<JSTaggedValue> generatorFunction);
|
D | object_factory.cpp | 1100 JSGeneratorObject::Cast(*obj)->SetGeneratorContext(thread_, JSTaggedValue::Undefined()); in InitializeJSObject() 1101 JSGeneratorObject::Cast(*obj)->SetResumeResult(thread_, JSTaggedValue::Undefined()); in InitializeJSObject() 1102 JSGeneratorObject::Cast(*obj)->SetGeneratorState(JSGeneratorState::UNDEFINED); in InitializeJSObject() 1103 JSGeneratorObject::Cast(*obj)->SetResumeMode(GeneratorResumeMode::UNDEFINED); in InitializeJSObject() 1737 JSHandle<JSGeneratorObject> ObjectFactory::NewJSGeneratorObject(JSHandle<JSTaggedValue> generatorFu… in NewJSGeneratorObject() 1742 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSGeneratorObject, thread_); in NewJSGeneratorObject() 1745 …JSHandle<JSHClass> hclass = NewEcmaHClass(JSGeneratorObject::SIZE, JSType::JS_GENERATOR_OBJECT, pr… in NewJSGeneratorObject() 1746 …JSHandle<JSGeneratorObject> generatorObject = JSHandle<JSGeneratorObject>::Cast(NewJSObject(hclass… in NewJSGeneratorObject()
|
D | dump.cpp | 945 JSGeneratorObject::Cast(obj)->Dump(os); in DumpObject() 3071 void JSGeneratorObject::Dump(std::ostream &os) const in Dump() 3966 JSGeneratorObject::Cast(obj)->DumpForSnapshot(vec); in DumpObject() 5227 void JSGeneratorObject::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | interpreter_stub-inl.h | 264 GateRef bitfieldOffset = IntPtr(JSGeneratorObject::BIT_FIELD_OFFSET); in GetResumeModeFromGeneratorObject() 267 Int32LSR(bitfield, Int32(JSGeneratorObject::ResumeModeBits::START_BIT)), in GetResumeModeFromGeneratorObject() 268 Int32((1LU << JSGeneratorObject::ResumeModeBits::SIZE) - 1)); in GetResumeModeFromGeneratorObject()
|
D | async_function_lowering.cpp | 49 GateRef contextOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_CONTEXT_OFFSET); in ProcessJumpTable()
|
D | slowpath_lowering.cpp | 774 …builder_.Load(VariableType::JS_POINTER(), genObj, builder_.IntPtr(JSGeneratorObject::GENERATOR_CON… in SaveFrameToContext() 832 GateRef contextOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_CONTEXT_OFFSET); in SaveFrameToContext() 2651 GateRef contextOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_CONTEXT_OFFSET); in LowerResumeGenerator() 2681 … GateRef resumeResultOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_RESUME_RESULT_OFFSET); in LowerResumeGenerator() 2713 GateRef bitFieldOffset = builder_.IntPtr(JSGeneratorObject::BIT_FIELD_OFFSET); in LowerGetResumeMode() 2715 …auto bitfieldlsr = builder_.Int32LSR(bitField, builder_.Int32(JSGeneratorObject::ResumeModeBits::S… in LowerGetResumeMode() 2717 … builder_.Int32((1LU << JSGeneratorObject::ResumeModeBits::SIZE) - 1)); in LowerGetResumeMode()
|
D | interpreter_stub.cpp | 977 GateRef resumeResultOffset = IntPtr(JSGeneratorObject::GENERATOR_RESUME_RESULT_OFFSET); in DECLARE_ASM_HANDLER() 1008 GateRef resumeResultOffset = IntPtr(JSGeneratorObject::GENERATOR_RESUME_RESULT_OFFSET); in DECLARE_ASM_HANDLER()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 294 JSGeneratorObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | interpreter-inl.h | 4980 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in RunInternal() 4993 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in RunInternal() 5006 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in RunInternal() 5019 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in RunInternal()
|
D | interpreter_assembly.cpp | 817 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in HandleResumegenerator() 833 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in HandleGetresumemode() 4462 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in HandleDeprecatedGetresumemodePrefV8() 4479 JSGeneratorObject *obj = JSGeneratorObject::Cast(objVal.GetTaggedObject()); in HandleDeprecatedResumegeneratorPrefV8()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 168 using ecmascript::JSGeneratorObject; 2750 JSHandle<JSGeneratorObject> jsGenerator(JSNApiHelper::ToJSHandle(this)); in GetGeneratorState() 2762 JSHandle<JSGeneratorObject> jsGenerator(JSNApiHelper::ToJSHandle(this)); in GetGeneratorFunction() 2773 JSHandle<JSGeneratorObject> jsGenerator(JSNApiHelper::ToJSHandle(this)); in GetGeneratorReceiver()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 167 JSHandle<JSGeneratorObject> obj = factory->NewJSGeneratorObject(genFunc); in RuntimeCreateGeneratorObj() 1069 JSHandle<JSGeneratorObject> generatorObjectHandle(genObj); in RuntimeSuspendGenerator() 2300 JSHandle<JSGeneratorObject> generatorObjectHandle(genObj); in RuntimeOptSuspendGenerator()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | jsnapi_tests.cpp | 1330 JSHandle<JSGeneratorObject> genObjHandleVal = factory->NewJSGeneratorObject(genFunc); in HWTEST_F_L0()
|