Home
last modified time | relevance | path

Searched refs:JSGeneratorObject (Results 1 – 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_generator_object_test.cpp64 …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 …]
Ddump_test.cpp722 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/
Dbuiltins_generator.cpp42 …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/
Djs_generator_object.h56 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)
Djs_generator_object.cpp23 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()
Dgenerator_helper.cpp25 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()
Dobject_factory.h66 class JSGeneratorObject; variable
258 JSHandle<JSGeneratorObject> NewJSGeneratorObject(JSHandle<JSTaggedValue> generatorFunction);
Dobject_factory.cpp1100 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()
Ddump.cpp945 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/
Dinterpreter_stub-inl.h264 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()
Dasync_function_lowering.cpp49 GateRef contextOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_CONTEXT_OFFSET); in ProcessJumpTable()
Dslowpath_lowering.cpp774 …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()
Dinterpreter_stub.cpp977 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/
Dobject_xray.h294 JSGeneratorObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h4980 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()
Dinterpreter_assembly.cpp817 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/
Djsnapi.cpp168 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/
Druntime_stubs-inl.h167 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/
Djsnapi_tests.cpp1330 JSHandle<JSGeneratorObject> genObjHandleVal = factory->NewJSGeneratorObject(genFunc); in HWTEST_F_L0()