Home
last modified time | relevance | path

Searched refs:numberOfNodes (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Dtagged_list.cpp32 JSHandle<Derived> TaggedList<Derived>::Create(const JSThread *thread, int numberOfNodes) in Create() argument
34 ASSERT_PRINT(numberOfNodes > 0, "size must be a non-negative integer"); in Create()
36 int length = ELEMENTS_START_INDEX + Derived::ENTRY_SIZE + numberOfNodes * Derived::ENTRY_SIZE; in Create()
112 int numberOfNodes = NumberOfNodes(); in Clear() local
114 for (int i = 0; i < numberOfNodes; i++) { in Clear()
130 uint32_t numberOfNodes = static_cast<uint32_t>(list->NumberOfNodes()); in TaggedListToArray() local
134 array->SetArrayLength(thread, numberOfNodes); in TaggedListToArray()
135 if (numberOfNodes == 0) { in TaggedListToArray()
138 JSHandle<TaggedArray> newElements = factory->ConvertListToArray(thread, list, numberOfNodes); in TaggedListToArray()
Dobject_factory.h339 uint32_t numberOfNodes) in ConvertListToArray() argument
341 …MemSpaceType spaceType = numberOfNodes < LENGTH_THRESHOLD ? MemSpaceType::SEMI_SPACE : MemSpaceTyp… in ConvertListToArray()
342 JSHandle<TaggedArray> dstElements = NewTaggedArrayWithoutInit(numberOfNodes, spaceType); in ConvertListToArray()
343 if (numberOfNodes == 0) { in ConvertListToArray()
347 for (uint32_t i = 0; i < numberOfNodes; i++) { in ConvertListToArray()
Dtagged_list.h38 … static JSHandle<Derived> Create(const JSThread *thread, int numberOfNodes = DEFAULT_ARRAY_LENGHT);
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_linked_list.cpp58 uint32_t numberOfNodes = static_cast<uint32_t>(srcDoubleList->NumberOfNodes()); in Clone() local
61 … (numberOfNodes + numberOfDeletedNodes + 1) * TaggedDoubleList::ENTRY_SIZE; in Clone()