Home
last modified time | relevance | path

Searched refs:numOfElements (Results 1 - 11 of 11) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
H A Dfast_json_stringifier.cpp241 uint32_t numOfElements = obj->GetNumberOfElements(); in SerializeJSONObject() local
242 if (numOfKeys + numOfElements < CACHE_MINIMUN_SIZIE || !cacheable_) { in SerializeJSONObject()
243 if (numOfElements > 0) { in SerializeJSONObject()
253 int32_t index = FindCache(jsHclass, numOfKeys + numOfElements); in SerializeJSONObject()
257 if (numOfElements > 0) { in SerializeJSONObject()
258 hasContent = SerializeElementsWithCache(obj, hasContent, strCache, cacheIndex, numOfElements); in SerializeJSONObject()
267 if (numOfElements > 0) { in SerializeJSONObject()
276 SetCache(value->GetTaggedObject()->GetClass(), numOfElements + numOfKeys, strCache); in SerializeJSONObject()
973 uint32_t numOfElements) in DefaultSerializeObject()
985 if (numOfElements > in DefaultSerializeObject()
972 DefaultSerializeObject(const JSTaggedValue &object, uint32_t numOfKeys, uint32_t numOfElements) DefaultSerializeObject() argument
[all...]
H A Dfast_json_stringifier.h93 bool DefaultSerializeObject(const JSTaggedValue &object, uint32_t numOfKeys, uint32_t numOfElements);
H A Djson_stringifier.cpp430 uint32_t numOfElements = obj->GetNumberOfElements(); in SerializeJSONObject() local
431 if (numOfElements > 0) { in SerializeJSONObject()
/arkcompiler/ets_runtime/ecmascript/
H A Dproperty_accessor.cpp49 uint32_t numOfElements = receiverObj->GetNumberOfElements(); in PreLoad() local
50 if (numOfElements > 0) { in PreLoad()
51 AccumulateKeyLength(numOfElements); in PreLoad()
H A Djs_array.cpp209 uint32_t numOfElements = array->GetNumberOfElements(); in SetCapacity() local
212 if (newLen < oldLen && numOfElements != 0U) { in SetCapacity()
214 JSHandle<TaggedArray> newArr = factory->NewTaggedArray(numOfElements); in SetCapacity()
216 for (uint32_t i = numOfElements - 1; i >= newLen; i--) { in SetCapacity()
H A Djs_object-inl.h561 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnEnumerableNamesInFastMode() local
562 JSHandle<TaggedArray> elementArray = numOfElements > 0 ? JSObject::GetEnumElementKeys( in GetOwnEnumerableNamesInFastMode()
563 thread, obj, 0, numOfElements, copyLengthOfElements) : factory->EmptyArray(); in GetOwnEnumerableNamesInFastMode()
H A Djs_object.cpp698 uint32_t numOfElements, uint32_t *keys) in GetEnumElementKeys()
701 JSHandle<TaggedArray> elementArray = factory->NewTaggedArray(numOfElements); in GetEnumElementKeys()
823 uint32_t numOfElements = 0; in GetNumberOfElements() local
825 numOfElements = JSPrimitiveRef::Cast(this)->GetStringLength(); in GetNumberOfElements()
832 numOfElements++; in GetNumberOfElements()
837 numOfElements += static_cast<uint32_t>(NumberDictionary::Cast(elements)->EntriesCount()); in GetNumberOfElements()
840 return numOfElements; in GetNumberOfElements()
1575 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnPropertyKeys() local
1576 uint32_t keyLen = numOfElements + obj->GetNumberOfKeys(); in GetOwnPropertyKeys()
1580 if (numOfElements > in GetOwnPropertyKeys()
697 GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset, uint32_t numOfElements, uint32_t *keys) GetEnumElementKeys() argument
1681 uint32_t numOfElements = obj->GetNumberOfElements(); AppendOwnEnumPropertyKeys() local
1690 uint32_t numOfElements = obj->GetNumberOfElements(); GetOwnEnumPropertyKeys() local
2538 uint32_t numOfElements = JSObject::Cast(receiver.GetTaggedObject())->GetNumberOfElements(); IsSimpleEnumCacheValid() local
2564 uint32_t numOfElements = JSObject::Cast(receiver.GetTaggedObject())->GetNumberOfElements(); IsEnumCacheWithProtoChainInfoValid() local
[all...]
H A Djs_object.h697 uint32_t numOfElements, uint32_t *keys);
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_bitvector.cpp445 uint32_t numOfElements = static_cast<uint32_t>(obj->GetLength()); in OwnKeys() local
446 JSHandle<TaggedArray> keyArray = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(numOfElements); in OwnKeys()
448 if (numOfElements > 0) { in OwnKeys()
449 for (uint32_t i = 0; i < numOfElements; ++i) { in OwnKeys()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_object_stub_builder.cpp1105 GateRef numOfElements = GetNumberOfElements(obj); in GetEnumElementKeys() local
1106 BRANCH(Int32GreaterThan(numOfElements, Int32(0)), &propsNotZero, &propsIsZero); in GetEnumElementKeys()
1116 GateRef elementArray = newBuilder.NewTaggedArray(glue, numOfElements); in GetEnumElementKeys()
1177 BRANCH(Int32LessThan(*elementIndex, numOfElements), &needTrim, &exit); in GetEnumElementKeys()
1502 GateRef numOfElements = GetNumberOfElements(obj); in GetOwnPropertyNames() local
1504 GateRef keyLen = Int32Add(numOfElements, numOfKeys); in GetOwnPropertyNames()
1507 BRANCH(Int32GreaterThan(numOfElements, Int32(0)), &getAllElementKeys, &checkNumOfKeys); in GetOwnPropertyNames()
1520 GetAllPropertyKeys(glue_, obj, numOfElements, keyArray); in GetOwnPropertyNames()
1610 GateRef numOfElements = GetNumberOfElements(obj); in GetOwnPropertySymbols() local
1612 GateRef keyLen = Int32Add(numOfElements, numOfKey in GetOwnPropertySymbols()
2247 GateRef numOfElements = GetNumberOfElements(obj); GetOwnPropertyDescriptors() local
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dstub_builder.cpp8090 DEFVARIABLE(numOfElements, VariableType::INT32(), Int32(0)); in GetNumberOfElements()
8105 numOfElements = GetLengthFromString(value); in GetNumberOfElements()
8127 numOfElements = Int32Add(*numOfElements, Int32(1)); in GetNumberOfElements()
8139 numOfElements = Int32Add(*numOfElements, entryCount); in GetNumberOfElements()
8143 auto ret = *numOfElements; in GetNumberOfElements()
8159 GateRef numOfElements = GetNumberOfElements(obj); in IsSimpleEnumCacheValid() local
8160 BRANCH(Int32GreaterThan(numOfElements, Int32(0)), &exit, &receiverHasNoElements); in IsSimpleEnumCacheValid()
8210 GateRef numOfElements in IsEnumCacheWithProtoChainInfoValid() local
[all...]

Completed in 45 milliseconds