Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/base/
Dfast_json_stringifier.cpp254 uint32_t numOfElements = obj->GetNumberOfElements(); in SerializeJSONObject() local
255 if (numOfKeys + numOfElements < CACHE_MINIMUN_SIZIE || !cacheable_) { in SerializeJSONObject()
256 if (numOfElements > 0) { in SerializeJSONObject()
266 int32_t index = FindCache(jsHclass, numOfKeys + numOfElements); in SerializeJSONObject()
270 if (numOfElements > 0) { in SerializeJSONObject()
271 … hasContent = SerializeElementsWithCache(obj, hasContent, strCache, cacheIndex, numOfElements); in SerializeJSONObject()
280 if (numOfElements > 0) { in SerializeJSONObject()
289 … SetCache(value->GetTaggedObject()->GetClass(), numOfElements + numOfKeys, strCache); in SerializeJSONObject()
930 uint32_t numOfElements) in DefaultSerializeObject() argument
942 if (numOfElements > 0) { in DefaultSerializeObject()
Dfast_json_stringifier.h72 …ol DefaultSerializeObject(const JSTaggedValue &object, uint32_t numOfKeys, uint32_t numOfElements);
Djson_stringifier.cpp416 uint32_t numOfElements = obj->GetNumberOfElements(); in SerializeJSONObject() local
417 if (numOfElements > 0) { in SerializeJSONObject()
/arkcompiler/ets_runtime/ecmascript/
Dproperty_accessor.cpp51 uint32_t numOfElements = receiverObj->GetNumberOfElements(); in PreLoad() local
52 if (numOfElements > 0) { in PreLoad()
53 AccumulateKeyLength(numOfElements); in PreLoad()
Djs_object.cpp642 uint32_t numOfElements, uint32_t *keys) in GetEnumElementKeys() argument
645 JSHandle<TaggedArray> elementArray = factory->NewTaggedArray(numOfElements); in GetEnumElementKeys()
767 uint32_t numOfElements = 0; in GetNumberOfElements() local
769 numOfElements = JSPrimitiveRef::Cast(this)->GetStringLength(); in GetNumberOfElements()
776 numOfElements++; in GetNumberOfElements()
781 numOfElements += static_cast<uint32_t>(NumberDictionary::Cast(elements)->EntriesCount()); in GetNumberOfElements()
784 return numOfElements; in GetNumberOfElements()
1470 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnPropertyKeys() local
1471 uint32_t keyLen = numOfElements + obj->GetNumberOfKeys(); in GetOwnPropertyKeys()
1475 if (numOfElements > 0) { in GetOwnPropertyKeys()
[all …]
Djs_object-inl.h548 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnEnumerableNamesInFastMode() local
549 JSHandle<TaggedArray> elementArray = numOfElements > 0 ? JSObject::GetEnumElementKeys( in GetOwnEnumerableNamesInFastMode()
550 thread, obj, 0, numOfElements, copyLengthOfElements) : factory->EmptyArray(); in GetOwnEnumerableNamesInFastMode()
Djs_array.cpp203 uint32_t numOfElements = array->GetNumberOfElements(); in SetCapacity() local
205 if (newLen < oldLen && numOfElements != 0U) { in SetCapacity()
207 JSHandle<TaggedArray> newArr = factory->NewTaggedArray(numOfElements); in SetCapacity()
209 for (uint32_t i = numOfElements - 1; i >= newLen; i--) { in SetCapacity()
Djs_object.h670 uint32_t numOfElements, uint32_t *keys);
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_object_stub_builder.cpp1146 GateRef numOfElements = GetNumberOfElements(obj); in GetEnumElementKeys() local
1147 Branch(Int32GreaterThan(numOfElements, Int32(0)), &propsNotZero, &propsIsZero); in GetEnumElementKeys()
1157 GateRef elementArray = newBuilder.NewTaggedArray(glue, numOfElements); in GetEnumElementKeys()
/arkcompiler/ets_frontend/ets2panda/parser/
DETSparser.h314 std::size_t numOfElements = 1);
DETSparser.cpp659 std::size_t numOfElements) in MarkNodeAsExported() argument
664 if (numOfElements > 1) { in MarkNodeAsExported()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_builder.cpp6353 DEFVARIABLE(numOfElements, VariableType::INT32(), Int32(0)); in GetNumberOfElements()
6368 numOfElements = GetLengthFromString(value); in GetNumberOfElements()
6390 numOfElements = Int32Add(*numOfElements, Int32(1)); in GetNumberOfElements()
6402 numOfElements = Int32Add(*numOfElements, entryCount); in GetNumberOfElements()
6406 auto ret = *numOfElements; in GetNumberOfElements()
6422 GateRef numOfElements = GetNumberOfElements(obj); in IsSimpleEnumCacheValid() local
6423 Branch(Int32GreaterThan(numOfElements, Int32(0)), &exit, &receiverHasNoElements); in IsSimpleEnumCacheValid()
6473 GateRef numOfElements = GetNumberOfElements(obj); in IsEnumCacheWithProtoChainInfoValid() local
6474 Branch(Int32GreaterThan(numOfElements, Int32(0)), &exit, &receiverHasNoElements); in IsEnumCacheWithProtoChainInfoValid()