/arkcompiler/ets_runtime/ecmascript/base/ |
D | fast_json_stringifier.cpp | 254 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()
|
D | fast_json_stringifier.h | 72 …ol DefaultSerializeObject(const JSTaggedValue &object, uint32_t numOfKeys, uint32_t numOfElements);
|
D | json_stringifier.cpp | 416 uint32_t numOfElements = obj->GetNumberOfElements(); in SerializeJSONObject() local 417 if (numOfElements > 0) { in SerializeJSONObject()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | property_accessor.cpp | 51 uint32_t numOfElements = receiverObj->GetNumberOfElements(); in PreLoad() local 52 if (numOfElements > 0) { in PreLoad() 53 AccumulateKeyLength(numOfElements); in PreLoad()
|
D | js_object.cpp | 642 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 …]
|
D | js_object-inl.h | 548 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()
|
D | js_array.cpp | 203 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()
|
D | js_object.h | 670 uint32_t numOfElements, uint32_t *keys);
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_object_stub_builder.cpp | 1146 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/ |
D | ETSparser.h | 314 std::size_t numOfElements = 1);
|
D | ETSparser.cpp | 659 std::size_t numOfElements) in MarkNodeAsExported() argument 664 if (numOfElements > 1) { in MarkNodeAsExported()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | stub_builder.cpp | 6353 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()
|