Lines Matching defs:hasContent
161 CString FastJsonStringifier::SerializeObjectKey(const JSHandle<JSTaggedValue> &key, bool hasContent)
163 if (hasContent) {
209 bool hasContent = false;
232 SerializeObjectKey(handleKey_, hasContent);
236 hasContent = true;
244 hasContent = DefaultSerializeElements(obj, hasContent);
248 hasContent = DefaultSerializeKeys(obj, hasContent);
258 hasContent = SerializeElementsWithCache(obj, hasContent, strCache, cacheIndex, numOfElements);
262 hasContent = SerializeKeysWithCache(obj, hasContent, strCache, cacheIndex);
268 hasContent = TryCacheSerializeElements(obj, hasContent, strCache);
272 hasContent = TryCacheSerializeKeys(obj, hasContent, strCache);
400 bool FastJsonStringifier::TryCacheSerializeElements(const JSHandle<JSObject> &obj, bool hasContent,
409 hasContent = AppendJsonString(hasContent, strCache, i);
440 hasContent = AppendJsonString(hasContent, strCache, index);
444 return hasContent;
447 bool FastJsonStringifier::SerializeElementsWithCache(const JSHandle<JSObject> &obj, bool hasContent,
456 hasContent = FastAppendJsonString(hasContent, key);
473 hasContent = FastAppendJsonString(hasContent, key);
477 return hasContent;
480 bool FastJsonStringifier::TryCacheSerializeKeys(const JSHandle<JSObject> &obj, bool hasContent,
485 return TryCacheSerializeKeysFromPropertiesArray(obj, hasContent, strCache);
489 return TryCacheSerializeKeysFromGlobalObject(obj, hasContent, strCache);
492 return TryCacheSerializeKeysFromNameDictionary(obj, hasContent, strCache);
495 bool FastJsonStringifier::TryCacheSerializeKeysFromPropertiesArray(const JSHandle<JSObject> &obj, bool hasContent,
502 return TryCacheSerializeKeysFromEnumCache(obj, hasContent, strCache);
507 return hasContent;
531 hasContent = AppendJsonString(hasContent, strCache, index);
535 return hasContent;
538 bool FastJsonStringifier::TryCacheSerializeKeysFromEnumCache(const JSHandle<JSObject> &obj, bool hasContent,
568 hasContent = AppendJsonString(hasContent, strCache, index);
571 return hasContent;
574 bool FastJsonStringifier::TryCacheSerializeKeysFromGlobalObject(const JSHandle<JSObject> &obj, bool hasContent,
605 hasContent = AppendJsonString(hasContent, strCache, index);
608 return hasContent;
611 bool FastJsonStringifier::TryCacheSerializeKeysFromNameDictionary(const JSHandle<JSObject> &obj, bool hasContent,
642 hasContent = AppendJsonString(hasContent, strCache, index);
645 return hasContent;
648 bool FastJsonStringifier::SerializeKeysWithCache(const JSHandle<JSObject> &obj, bool hasContent,
669 hasContent = FastAppendJsonString(hasContent, str);
672 return hasContent;
687 hasContent = FastAppendJsonString(hasContent, str);
690 return hasContent;
704 hasContent = FastAppendJsonString(hasContent, str);
707 return hasContent;
710 bool FastJsonStringifier::AppendJsonString(bool hasContent, CVector<std::pair<CString, int>> &strCache, int index)
717 return hasContent;
721 CString keyStr = SerializeObjectKey(handleKey_, hasContent);
728 EraseKeyString(keyStr, hasContent);
729 return hasContent;
732 bool FastJsonStringifier::FastAppendJsonString(bool hasContent, CString &key)
739 return hasContent;
743 FastSerializeObjectKey(key, hasContent);
749 EraseKeyString(key, hasContent);
750 return hasContent;
753 bool FastJsonStringifier::DefaultSerializeElements(const JSHandle<JSObject> &obj, bool hasContent)
761 hasContent = AppendJsonString(hasContent);
792 hasContent = AppendJsonString(hasContent);
796 return hasContent;
799 bool FastJsonStringifier::DefaultSerializeKeys(const JSHandle<JSObject> &obj, bool hasContent)
806 return SerializeKeysFromCache(obj, enumCache, propertiesArr, hasContent);
808 return SerializeKeysFromLayout(obj, jsHclass, propertiesArr, hasContent);
811 return SerializeKeysFromGlobalDictionary(obj, propertiesArr, hasContent);
813 return SerializeKeysFromNameDictionary(obj, propertiesArr, hasContent);
818 const JSHandle<TaggedArray> &propertiesArr, bool hasContent)
827 hasContent = SerializeKeyValue(obj, key, propertiesArr, hasContent);
830 return hasContent;
834 const JSHandle<TaggedArray> &propertiesArr, bool hasContent)
838 return hasContent;
844 hasContent = SerializeKeyValue(obj, key, propertiesArr, hasContent);
848 return hasContent;
853 bool hasContent)
882 hasContent = AppendJsonString(hasContent);
885 return hasContent;
890 bool hasContent)
919 hasContent = AppendJsonString(hasContent);
922 return hasContent;
926 const JSHandle<TaggedArray> &propertiesArr, bool hasContent)
938 return hasContent;
946 hasContent = AppendJsonString(hasContent);
948 return hasContent;
951 bool FastJsonStringifier::AppendJsonString(bool hasContent)
958 return hasContent;
962 CString keyStr = SerializeObjectKey(handleKey_, hasContent);
968 EraseKeyString(keyStr, hasContent);
969 return hasContent;
982 bool hasContent = false;
986 hasContent = DefaultSerializeElements(obj, hasContent);
990 hasContent = DefaultSerializeKeys(obj, hasContent);