/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | fast_json_stringifier.h | 93 bool DefaultSerializeObject(const JSTaggedValue &object, uint32_t numOfKeys, uint32_t numOfElements); 111 inline int32_t FindCache(JSHClass *hclass, size_t numOfKeys) in FindCache() argument 113 size_t index = GetHash(hclass, numOfKeys); in FindCache() 130 inline void SetCache(JSHClass *hclass, size_t numOfKeys, CVector<std::pair<CString, int>> &value) in SetCache() argument 132 size_t index = GetHash(hclass, numOfKeys); in SetCache() 144 inline size_t GetHash(JSHClass *hclass, size_t numOfKeys) in GetHash() argument 147 size_t hash = (ptr + numOfKeys) & JSON_CACHE_MASK; in GetHash()
|
H A D | fast_json_stringifier.cpp | 240 uint32_t numOfKeys = obj->GetNumberOfKeys(); in SerializeJSONObject() local 242 if (numOfKeys + numOfElements < CACHE_MINIMUN_SIZIE || !cacheable_) { in SerializeJSONObject() 247 if (numOfKeys > 0) { in SerializeJSONObject() 253 int32_t index = FindCache(jsHclass, numOfKeys + numOfElements); in SerializeJSONObject() 261 if (numOfKeys > 0) { in SerializeJSONObject() 271 if (numOfKeys > 0) { in SerializeJSONObject() 276 SetCache(value->GetTaggedObject()->GetClass(), numOfElements + numOfKeys, strCache); in SerializeJSONObject() 972 bool FastJsonStringifier::DefaultSerializeObject(const JSTaggedValue &object, uint32_t numOfKeys, in DefaultSerializeObject() argument 989 if (numOfKeys > 0) { in DefaultSerializeObject()
|
H A D | json_stringifier.cpp | 429 uint32_t numOfKeys = obj->GetNumberOfKeys(); in SerializeJSONObject() local 435 if (numOfKeys > 0) { in SerializeJSONObject()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | property_accessor.cpp | 55 std::pair<uint32_t, uint32_t> numOfKeys = receiverObj->GetNumberOfEnumKeys(); in PreLoad() local 56 uint32_t numOfEnumKeys = numOfKeys.first; in PreLoad() 60 uint32_t numOfShadowKeys = numOfKeys.second; in PreLoad() 91 std::pair<uint32_t, uint32_t> numOfKeys = currentObj->GetNumberOfEnumKeys(); in CollectPrototypeInfo() local 92 uint32_t numOfEnumKeys = numOfKeys.first; in CollectPrototypeInfo() 97 uint32_t numOfShadowKeys = numOfKeys.second; in CollectPrototypeInfo()
|
H A D | js_object-inl.h | 559 std::pair<uint32_t, uint32_t> numOfKeys = obj->GetNumberOfEnumKeys(); in GetOwnEnumerableNamesInFastMode() local 560 uint32_t numOfEnumKeys = numOfKeys.first; in GetOwnEnumerableNamesInFastMode()
|
H A D | js_object.cpp | 547 uint32_t numOfKeys, uint32_t *keys) in GetAllEnumKeys() 551 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(numOfKeys); in GetAllEnumKeys() 568 if (numOfKeys > 0) { in GetAllEnumKeys() 570 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(numOfKeys + EnumCache::ENUM_CACHE_HEADER_SIZE); in GetAllEnumKeys() 583 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(numOfKeys); in GetAllEnumKeys() 546 GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t numOfKeys, uint32_t *keys) GetAllEnumKeys() argument
|
H A D | js_object.h | 704 uint32_t numOfKeys, uint32_t *keys);
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_object_stub_builder.cpp | 1016 GateRef numOfKeys = GetNumKeysFromDictionary(array);
in GetAllEnumKeys() local 1017 BRANCH(Int32GreaterThan(numOfKeys, Int32(0)), &propsNotZero, &propsIsZero);
in GetAllEnumKeys() 1019 result = CallRuntime(glue, RTSTUB_ID(NameDictionaryGetAllEnumKeys), { obj, IntToTaggedInt(numOfKeys) });
in GetAllEnumKeys() 1039 GateRef numOfKeys = GetNumKeysFromLayoutInfo(obj, num, layout);
in GetAllEnumKeys() local 1055 BRANCH(Int32GreaterThan(numOfKeys, Int32(0)), &numNotZero, ¬HasProps);
in GetAllEnumKeys() 1059 Int32Add(numOfKeys, Int32(static_cast<int32_t>(EnumCache::ENUM_CACHE_HEADER_SIZE))));
in GetAllEnumKeys() 1503 GateRef numOfKeys = GetNumberOfPropsFromHClass(hclass);
in GetOwnPropertyNames() local 1504 GateRef keyLen = Int32Add(numOfElements, numOfKeys);
in GetOwnPropertyNames() 1517 BRANCH(Int32GreaterThan(numOfKeys, Int32(0)), &getAllPropertyKeys, &checkElementType);
in GetOwnPropertyNames() 1611 GateRef numOfKeys in GetOwnPropertySymbols() local [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs.cpp | 3788 int numOfKeys = argKeys.GetInt(); in DEF_RUNTIME_STUBS() local 3791 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(numOfKeys); in DEF_RUNTIME_STUBS()
|