Home
last modified time | relevance | path

Searched refs:numOfElements (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_object-inl.h447 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnEnumerableNamesInFastMode() local
448 JSHandle<TaggedArray> elementArray = numOfElements > 0 ? JSObject::GetEnumElementKeys( in GetOwnEnumerableNamesInFastMode()
449 thread, obj, 0, numOfElements, copyLengthOfElements) : factory->EmptyArray(); in GetOwnEnumerableNamesInFastMode()
Djs_array.cpp186 uint32_t numOfElements = array->GetNumberOfElements(); in SetCapacity() local
188 if (newLen < oldLen && numOfElements != 0U) { in SetCapacity()
190 JSHandle<TaggedArray> newArr = factory->NewTaggedArray(numOfElements); in SetCapacity()
192 for (uint32_t i = numOfElements - 1; i >= newLen; i--) { in SetCapacity()
Djs_object.cpp526 uint32_t numOfElements, uint32_t *keys) in GetEnumElementKeys() argument
529 JSHandle<TaggedArray> elementArray = factory->NewTaggedArray(numOfElements); in GetEnumElementKeys()
615 uint32_t numOfElements = 0; in GetNumberOfElements() local
617 numOfElements = JSPrimitiveRef::Cast(this)->GetStringLength(); in GetNumberOfElements()
625 numOfElements++; in GetNumberOfElements()
629 numOfElements += static_cast<uint32_t>(NumberDictionary::Cast(elements)->EntriesCount()); in GetNumberOfElements()
632 return numOfElements; in GetNumberOfElements()
1273 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnPropertyKeys() local
1274 uint32_t keyLen = numOfElements + obj->GetNumberOfKeys(); in GetOwnPropertyKeys()
1278 if (numOfElements > 0) { in GetOwnPropertyKeys()
[all …]
Djs_object.h596 uint32_t numOfElements, uint32_t *keys);
/arkcompiler/ets_runtime/ecmascript/base/
Djson_stringifier.cpp504 uint32_t numOfElements = obj->GetNumberOfElements(); in SerializeJSONObject() local
505 if (numOfElements > 0) { in SerializeJSONObject()