Home
last modified time | relevance | path

Searched refs:JSAPIArrayList (Results 1 – 24 of 24) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_arraylist.h27 class JSAPIArrayList : public JSObject {
30 static JSAPIArrayList *Cast(TaggedObject *object) in Cast()
33 return static_cast<JSAPIArrayList *>(object); in Cast()
36 …static bool Add(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, const JSHandle<JSTagg…
37 static void Insert(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList,
39 static void Clear(JSThread *thread, const JSHandle<JSAPIArrayList> &obj);
40 static JSHandle<JSAPIArrayList> Clone(JSThread *thread, const JSHandle<JSAPIArrayList> &obj);
41 static uint32_t GetCapacity(JSThread *thread, const JSHandle<JSAPIArrayList> &obj);
42 static void IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList,
44 static void TrimToCurrentLength(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList);
[all …]
Djs_api_arraylist.cpp26 bool JSAPIArrayList::Add(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, in Add()
38 void JSAPIArrayList::Insert(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, in Insert()
58 void JSAPIArrayList::Clear(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList) in Clear()
71 JSHandle<JSAPIArrayList> JSAPIArrayList::Clone(JSThread *thread, const JSHandle<JSAPIArrayList> &ob… in Clone()
78 JSHandle<JSAPIArrayList> newArrayList = factory->NewJSAPIArrayList(0); in Clone()
86 uint32_t JSAPIArrayList::GetCapacity(JSThread *thread, const JSHandle<JSAPIArrayList> &obj) in GetCapacity()
94 void JSAPIArrayList::IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, in IncreaseCapacityTo()
109 void JSAPIArrayList::TrimToCurrentLength(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayLis… in TrimToCurrentLength()
112 uint32_t capacity = JSAPIArrayList::GetCapacity(thread, arrayList); in TrimToCurrentLength()
120 JSTaggedValue JSAPIArrayList::Get(JSThread *thread, const uint32_t index) in Get()
[all …]
Djs_api_arraylist_iterator.cpp50 length = JSHandle<JSAPIArrayList>(arrayList)->GetLength().GetArrayLength(); in Next()
60 …JSHandle<JSTaggedValue> value(thread, JSHandle<JSAPIArrayList>::Cast(arrayList)->Get(thread, index… in Next()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_arraylist_test.cpp41 … TaggedArray *elements = TaggedArray::Cast(JSAPIArrayList::Cast(arrayList.GetTaggedValue(). in TestForEachAndReplaceAllFunc()
51 …static JSHandle<JSTaggedValue> ReplaceOrForEachCommon(JSThread* thread, JSHandle<JSAPIArrayList>& … in ReplaceOrForEachCommon()
68JSAPIArrayList::ForEach(thread, callInfo->GetThis(), callInfo->GetFunction(), callInfo->GetCallArg… in ReplaceOrForEachCommon()
70 … val = JSAPIArrayList::ReplaceAllElements(thread, callInfo->GetThis(), callInfo->GetFunction(), in ReplaceOrForEachCommon()
80 JSAPIArrayList *CreateArrayList() in CreateArrayList()
88 JSAPIArrayList *arrayList = CreateArrayList(); in HWTEST_F_L0()
101 JSHandle<JSAPIArrayList> arrayList(thread, CreateArrayList()); in HWTEST_F_L0()
104 JSAPIArrayList::Add(thread, arrayList, value); in HWTEST_F_L0()
121 JSHandle<JSAPIArrayList> arrayList(thread, CreateArrayList()); in HWTEST_F_L0()
124 JSAPIArrayList::Add(thread, arrayList, value); in HWTEST_F_L0()
[all …]
Djs_api_arraylist_iterator_test.cpp32 JSAPIArrayList *CreateArrayList() in CreateArrayList()
46 JSHandle<JSAPIArrayList> arrayList(thread, CreateArrayList()); in HWTEST_F_L0()
50 JSAPIArrayList::Add(thread, arrayList, value); in HWTEST_F_L0()
52 …JSHandle<JSAPIArrayListIterator> arrayListIterator(thread, JSAPIArrayList::GetIteratorObj(thread, … in HWTEST_F_L0()
54 uint32_t capacity = JSAPIArrayList::GetCapacity(thread, arrayList); in HWTEST_F_L0()
Decma_container_common.h69 static JSAPIArrayList *CreateArrayList(JSThread *thread) in CreateArrayList()
74 JSHandle<JSAPIArrayList> arrayList( in CreateArrayList()
76 …JSHandle<TaggedArray> taggedArray = factory->NewTaggedArray(JSAPIArrayList::DEFAULT_CAPACITY_LENGT… in CreateArrayList()
Ddump_test.cpp308 static JSHandle<JSAPIArrayList> NewJSAPIArrayList(JSThread *thread, ObjectFactory *factory, in NewJSAPIArrayList()
312 factory->NewEcmaHClass(JSAPIArrayList::SIZE, JSType::JS_API_ARRAY_LIST, proto); in NewJSAPIArrayList()
313 …JSHandle<JSAPIArrayList> jsArrayList = JSHandle<JSAPIArrayList>::Cast(factory->NewJSObjectWithInit… in NewJSAPIArrayList()
1167 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIArrayList::SIZE, 1U); in HWTEST_F_L0()
1168 JSHandle<JSAPIArrayList> jsArrayList = NewJSAPIArrayList(thread, factory, proto); in HWTEST_F_L0()
1175 JSHandle<JSAPIArrayList> jsArrayList = NewJSAPIArrayList(thread, factory, proto); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_arraylist.cpp42 …JSHandle<TaggedArray> newTaggedArray = factory->NewTaggedArray(JSAPIArrayList::DEFAULT_CAPACITY_LE… in ArrayListConstructor()
66 … return GetTaggedBoolean(JSAPIArrayList::Add(thread, JSHandle<JSAPIArrayList>::Cast(self), value)); in Add()
102JSAPIArrayList::Insert(thread, JSHandle<JSAPIArrayList>::Cast(self), value, JSTaggedValue::ToUint3… in Insert()
126 JSAPIArrayList::Clear(thread, JSHandle<JSAPIArrayList>::Cast(self)); in Clear()
149 …JSHandle<JSAPIArrayList> newArrayList = JSAPIArrayList::Clone(thread, JSHandle<JSAPIArrayList>::Ca… in Clone()
173 bool isHas = JSHandle<JSAPIArrayList>::Cast(self)->Has(value.GetTaggedValue()); in Has()
196 uint32_t capacity = JSAPIArrayList::GetCapacity(thread, JSHandle<JSAPIArrayList>::Cast(self)); in GetCapacity()
229 JSAPIArrayList::IncreaseCapacityTo(thread, JSHandle<JSAPIArrayList>::Cast(self), in IncreaseCapacityTo()
253 JSAPIArrayList::TrimToCurrentLength(thread, JSHandle<JSAPIArrayList>::Cast(self)); in TrimToCurrentLength()
278 …JSTaggedValue element = JSHandle<JSAPIArrayList>::Cast(self)->Get(thread, JSTaggedValue::ToUint32(… in Get()
[all …]
Dcontainers_private.cpp279 …factory->NewEcmaHClass(JSAPIArrayList::SIZE, JSType::JS_API_ARRAY_LIST, arrayListFuncPrototypeValu… in InitializeArrayList()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_arraylist_test.cpp68 … TaggedArray *elements = TaggedArray::Cast(JSAPIArrayList::Cast(arrayList.GetTaggedValue(). in TestForEachFunc()
99 JSHandle<JSAPIArrayList> CreateJSAPIArrayList() in CreateJSAPIArrayList()
111 JSHandle<JSAPIArrayList> ArrayList(thread, result); in CreateJSAPIArrayList()
115 JSTaggedValue ArrayListAdd(JSHandle<JSAPIArrayList> arrayList, JSTaggedValue value) in ArrayListAdd()
129 … JSTaggedValue ArrayListRemoveByRange(JSHandle<JSAPIArrayList> arrayList, JSTaggedValue startIndex, in ArrayListRemoveByRange()
145 … JSTaggedValue ArrayListSubArrayList(JSHandle<JSAPIArrayList> arrayList, JSTaggedValue startIndex, in ArrayListSubArrayList()
177 JSHandle<JSAPIArrayList> arrayList(thread, result); in HWTEST_F_L0()
192 JSHandle<JSAPIArrayList> arrayList = CreateJSAPIArrayList(); in HWTEST_F_L0()
233 JSHandle<JSAPIArrayList> arrayList = CreateJSAPIArrayList(); in HWTEST_F_L0()
259 …JSHandle<TaggedArray> elements(thread, JSAPIArrayList::Cast(newArrayList.GetTaggedObject())->GetEl… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/arraylist_fuzzer/
Darraylist_fuzzer.cpp70 JSHandle<JSAPIArrayList> CreateJSAPIArrayList(JSThread *thread) in CreateJSAPIArrayList()
78 JSHandle<JSAPIArrayList> arrayList(thread, result); in CreateJSAPIArrayList()
82 void ArrayListAdd(JSThread* thread, JSHandle<JSAPIArrayList> arrayList, JSTaggedValue value) in ArrayListAdd()
99 … TaggedArray *elements = TaggedArray::Cast(JSAPIArrayList::Cast(arrayList.GetTaggedValue(). in TestForEachFunc()
116 …JSHandle<JSAPIArrayList>::Cast(arrayList)->Set(thread, index->GetNumber(), newValue.GetTaggedValue… in TestReplaceAllElementsFunc()
146 JSHandle<JSAPIArrayList> arrayList = CreateJSAPIArrayList(thread); in ArrayListForEachFuzzTest()
153 JSHandle<JSAPIArrayList> arrList = CreateJSAPIArrayList(thread); in ArrayListForEachFuzzTest()
174 JSHandle<JSAPIArrayList> arrayList = CreateJSAPIArrayList(thread); in ArrayListAddFuzzTest()
217 JSHandle<JSAPIArrayList> arrayList = CreateJSAPIArrayList(thread); in ArrayListClearFuzzTest()
253 JSHandle<JSAPIArrayList> arrayList = CreateJSAPIArrayList(thread); in ArrayListCloneFuzzTest()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_arraylist_stub_builder.h32 GateRef len = Load(VariableType::JS_ANY(), obj, IntPtr(JSAPIArrayList::LENGTH_OFFSET)); in GetSize()
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_value.cpp1506 return JSHandle<JSAPIArrayList>::Cast(obj)->Has(key.GetTaggedValue()); in HasContainerProperty()
1556 return JSAPIArrayList::OwnKeys(thread, JSHandle<JSAPIArrayList>::Cast(obj)); in GetOwnContainerPropertyKeys()
1644 … return JSAPIArrayList::GetOwnProperty(thread, JSHandle<JSAPIArrayList>::Cast(obj), key); in GetContainerProperty()
1733 … return JSAPIArrayList::GetProperty(thread, JSHandle<JSAPIArrayList>::Cast(obj), key); in GetJSAPIProperty()
1778 … return JSAPIArrayList::SetProperty(thread, JSHandle<JSAPIArrayList>::Cast(obj), key, value); in SetJSAPIProperty()
Dobject_factory.h111 class JSAPIArrayList; variable
641 JSHandle<JSAPIArrayList> NewJSAPIArrayList(uint32_t capacity);
653 …JSHandle<JSAPIArrayListIterator> NewJSAPIArrayListIterator(const JSHandle<JSAPIArrayList> &arrayLi…
Ddump.cpp1068 JSAPIArrayList::Cast(obj)->Dump(os); in DumpObject()
2223 void JSAPIArrayList::Dump(std::ostream &os) const in Dump()
2231 JSAPIArrayList *arrayList = JSAPIArrayList::Cast(GetIteratedArrayList().GetTaggedObject()); in Dump()
4253 JSAPIArrayList::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5038 void JSAPIArrayList::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
5047 JSAPIArrayList *arraylist = JSAPIArrayList::Cast(GetIteratedArrayList().GetTaggedObject()); in DumpForSnapshot()
Dobject_fast_operator-inl.h1091 res = JSAPIArrayList::Cast(receiver.GetTaggedObject())->Get(thread, index); in GetContainerProperty()
1134 res = JSAPIArrayList::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
Dobject_factory.cpp1477 JSAPIArrayList::Cast(*obj)->SetLength(thread_, JSTaggedValue(0)); in InitializeJSObject()
4312 JSHandle<JSAPIArrayList> ObjectFactory::NewJSAPIArrayList(uint32_t capacity) in NewJSAPIArrayList()
4316 JSHandle<JSAPIArrayList> obj = JSHandle<JSAPIArrayList>(NewJSObjectByConstructor(builtinObj)); in NewJSAPIArrayList()
4324 …ayListIterator> ObjectFactory::NewJSAPIArrayListIterator(const JSHandle<JSAPIArrayList> &arrayList) in NewJSAPIArrayListIterator()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_dump_test.cpp329 JSHandle<JSAPIArrayList> NewJSAPIArrayList() in NewJSAPIArrayList()
332 …JSHandle<JSObject> jsAPIArrayListObject = NewObject(JSAPIArrayList::SIZE, JSType::JS_API_ARRAY_LIS… in NewJSAPIArrayList()
333 … JSHandle<JSAPIArrayList> jsAPIArrayList = JSHandle<JSAPIArrayList>::Cast(jsAPIArrayListObject); in NewJSAPIArrayList()
Djs_metadata_test.cpp475 {JSType::JS_API_ARRAY_LIST, {JSAPIArrayList::LENGTH_OFFSET, in JSMetadataTestHelper()
476 JSAPIArrayList::SIZE - JSAPIArrayList::LENGTH_OFFSET}}, in JSMetadataTestHelper()
1293 {JSType::JS_API_ARRAY_LIST, {JSAPIArrayList::SIZE - JSAPIArrayList::LENGTH_OFFSET}}, in JSMetadataTestHelper()
/arkcompiler/ets_runtime/
Dlibark_jsruntime.map192 panda::ecmascript::JSAPIArrayList::Set*;
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h614 JSAPIArrayList::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp35 using ecmascript::JSAPIArrayList;
965 JSHandle<JSAPIArrayList> arrayList(JSNApiHelper::ToJSHandle(value)); in GetArrayListValue()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Dffi_workload.cpp700 …JSHandle<JSHClass> arrayListClass = factory->NewEcmaHClass(JSAPIArrayList::SIZE, JSType::JS_API_AR… in HWTEST_F_L0()
701 …JSHandle<JSAPIArrayList> jsArrayList = JSHandle<JSAPIArrayList>::Cast(factory->NewJSObjectWithInit… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_builder.cpp7740 GateRef lengthOffset = IntPtr(panda::ecmascript::JSAPIArrayList::LENGTH_OFFSET); in JSAPIContainerGet()