Lines Matching full:thread
481 static void DumpArrayClass(const JSThread *thread, const TaggedArray *arr, std::ostream &os) in DumpArrayClass() argument
487 JSTaggedValue val(arr->Get(thread, i)); in DumpArrayClass()
490 val.DumpTaggedValue(thread, os); in DumpArrayClass()
496 static void DumpMutantTaggedArray(const JSThread *thread, const MutantTaggedArray *arr, std::ostrea… in DumpMutantTaggedArray() argument
502 JSTaggedValue val(arr->Get(thread, i)); in DumpMutantTaggedArray()
509 static void DumpCOWMutantTaggedArray(const JSThread *thread, const COWMutantTaggedArray *arr, std::… in DumpCOWMutantTaggedArray() argument
515 JSTaggedValue val(arr->Get(thread, i)); in DumpCOWMutantTaggedArray()
522 static void DumpConstantPoolClass(const JSThread *thread, const ConstantPool *pool, std::ostream &o… in DumpConstantPoolClass() argument
528 JSTaggedValue val(pool->GetObjectFromCache(thread, i)); in DumpConstantPoolClass()
531 val.DumpTaggedValue(thread, os); in DumpConstantPoolClass()
537 static void DumpStringClass(const JSThread *thread, const EcmaString *str, std::ostream &os) in DumpStringClass() argument
540 CString string = ConvertToString(thread, str); in DumpStringClass()
544 static void DumpPropertyKey(const JSThread *thread, JSTaggedValue key, std::ostream &os) in DumpPropertyKey() argument
547 DumpStringClass(thread, EcmaString::Cast(key.GetTaggedObject()), os); in DumpPropertyKey()
550 if (sym->GetDescription(thread).IsString()) { in DumpPropertyKey()
552 … DumpStringClass(thread, EcmaString::Cast(sym->GetDescription(thread).GetTaggedObject()), os); in DumpPropertyKey()
598 static void DumpHClass(const JSThread *thread, const JSHClass *jshclass, std::ostream &os, bool wit… in DumpHClass() argument
605 jshclass->GetPrototype(thread).DumpTaggedValue(thread, os); in DumpHClass()
608 JSTaggedValue attrs = jshclass->GetLayout(thread); in DumpHClass()
609 attrs.DumpTaggedValue(thread, os); in DumpHClass()
612 LayoutInfo *layout = LayoutInfo::Cast(jshclass->GetLayout(thread).GetTaggedObject()); in DumpHClass()
615 JSTaggedValue key = layout->GetKey(thread, i); in DumpHClass()
616 PropertyAttributes attr = layout->GetAttr(thread, i); in DumpHClass()
619 DumpPropertyKey(thread, key, os); in DumpHClass()
627 JSTaggedValue transtions = jshclass->GetTransitions(thread); in DumpHClass()
628 transtions.DumpTaggedValue(thread, os); in DumpHClass()
631 transtions.Dump(thread, os); in DumpHClass()
635 JSTaggedValue marker = jshclass->GetProtoChangeMarker(thread); in DumpHClass()
636 marker.DumpTaggedValue(thread, os); in DumpHClass()
638 ProtoChangeMarker::Cast(marker.GetTaggedObject())->Dump(thread, os); in DumpHClass()
644 JSTaggedValue details = jshclass->GetProtoChangeDetails(thread); in DumpHClass()
645 details.DumpTaggedValue(thread, os); in DumpHClass()
647 ProtoChangeDetails::Cast(details.GetTaggedObject())->Dump(thread, os); in DumpHClass()
667 static void DumpClass(const JSThread *thread, TaggedObject *obj, std::ostream &os) in DumpClass() argument
670 DumpHClass(thread, JSHClass::Cast(obj), os, true); in DumpClass()
673 static void DumpObject(const JSThread *thread, TaggedObject *obj, std::ostream &os, bool isPrivacy) in DumpObject() argument
682 return DumpClass(thread, obj, os); in DumpObject()
691 DumpArrayClass(thread, TaggedArray::Cast(obj), os); in DumpObject()
694 DumpMutantTaggedArray(thread, MutantTaggedArray::Cast(obj), os); in DumpObject()
697 DumpCOWMutantTaggedArray(thread, COWMutantTaggedArray::Cast(obj), os); in DumpObject()
700 DumpConstantPoolClass(thread, ConstantPool::Cast(obj), os); in DumpObject()
703 ProfileTypeInfo::Cast(obj)->Dump(thread, os); in DumpObject()
708 ProfileTypeInfoCell::Cast(obj)->Dump(thread, os); in DumpObject()
711 FunctionTemplate::Cast(obj)->Dump(thread, os); in DumpObject()
714 VTable::Cast(obj)->Dump(thread, os); in DumpObject()
717 ExtraProfileTypeInfo::Cast(obj)->Dump(thread, os); in DumpObject()
722 DumpStringClass(thread, EcmaString::Cast(obj), os); in DumpObject()
743 JSObject::Cast(obj)->Dump(thread, os, isPrivacy); in DumpObject()
747 JSFunctionBase::Cast(obj)->Dump(thread, os); in DumpObject()
750 GlobalEnv::Cast(obj)->Dump(thread, os); in DumpObject()
757 JSFunction::Cast(obj)->Dump(thread, os); in DumpObject()
761 JSBoundFunction::Cast(obj)->Dump(thread, os); in DumpObject()
765 JSSet::Cast(obj)->Dump(thread, os); in DumpObject()
769 JSSharedSet::Cast(obj)->Dump(thread, os); in DumpObject()
773 JSMap::Cast(obj)->Dump(thread, os); in DumpObject()
777 JSSharedMap::Cast(obj)->Dump(thread, os); in DumpObject()
781 JSWeakSet::Cast(obj)->Dump(thread, os); in DumpObject()
785 JSWeakMap::Cast(obj)->Dump(thread, os); in DumpObject()
789 JSWeakRef::Cast(obj)->Dump(thread, os); in DumpObject()
792 JSFinalizationRegistry::Cast(obj)->Dump(thread, os); in DumpObject()
795 CellRecord::Cast(obj)->Dump(thread, os); in DumpObject()
799 JSRegExp::Cast(obj)->Dump(thread, os); in DumpObject()
803 JSDate::Cast(obj)->Dump(thread, os); in DumpObject()
807 JSArray::Cast(obj)->Dump(thread, os); in DumpObject()
811 JSSharedArray::Cast(obj)->Dump(thread, os); in DumpObject()
826 JSTypedArray::Cast(obj)->Dump(thread, os); in DumpObject()
841 JSSharedTypedArray::Cast(obj)->Dump(thread, os); in DumpObject()
844 BigInt::Cast(obj)->Dump(thread, os); in DumpObject()
847 ByteArray::Cast(obj)->Dump(thread, os); in DumpObject()
851 JSProxy::Cast(obj)->Dump(thread, os); in DumpObject()
854 JSPrimitiveRef::Cast(obj)->Dump(thread, os); in DumpObject()
857 JSSymbol::Cast(obj)->Dump(thread, os); in DumpObject()
860 JSDataView::Cast(obj)->Dump(thread, os); in DumpObject()
863 JSArrayBuffer::Cast(obj)->Dump(thread, os); in DumpObject()
866 JSSendableArrayBuffer::Cast(obj)->Dump(thread, os); in DumpObject()
869 JSArrayBuffer::Cast(obj)->Dump(thread, os); in DumpObject()
872 PromiseReaction::Cast(obj)->Dump(thread, os); in DumpObject()
875 PromiseCapability::Cast(obj)->Dump(thread, os); in DumpObject()
878 PromiseIteratorRecord::Cast(obj)->Dump(thread, os); in DumpObject()
881 PromiseRecord::Cast(obj)->Dump(thread, os); in DumpObject()
884 ResolvingFunctionsRecord::Cast(obj)->Dump(thread, os); in DumpObject()
888 JSPromise::Cast(obj)->Dump(thread, os); in DumpObject()
891 JSPromiseReactionsFunction::Cast(obj)->Dump(thread, os); in DumpObject()
894 JSPromiseExecutorFunction::Cast(obj)->Dump(thread, os); in DumpObject()
897 JSAsyncModuleFulfilledFunction::Cast(obj)->Dump(thread, os); in DumpObject()
900 JSAsyncModuleRejectedFunction::Cast(obj)->Dump(thread, os); in DumpObject()
903 AsyncGeneratorRequest::Cast(obj)->Dump(thread, os); in DumpObject()
906 AsyncIteratorRecord::Cast(obj)->Dump(thread, os); in DumpObject()
909 JSAsyncFromSyncIterator::Cast(obj)->Dump(thread, os); in DumpObject()
912 JSAsyncFromSyncIterUnwarpFunction::Cast(obj)->Dump(thread, os); in DumpObject()
915 JSPromiseAllResolveElementFunction::Cast(obj)->Dump(thread, os); in DumpObject()
918 JSPromiseAnyRejectElementFunction::Cast(obj)->Dump(thread, os); in DumpObject()
921 JSPromiseAllSettledElementFunction::Cast(obj)->Dump(thread, os); in DumpObject()
924 JSPromiseFinallyFunction::Cast(obj)->Dump(thread, os); in DumpObject()
927 JSPromiseValueThunkOrThrowerFunction::Cast(obj)->Dump(thread, os); in DumpObject()
930 MicroJobQueue::Cast(obj)->Dump(thread, os); in DumpObject()
933 PendingJob::Cast(obj)->Dump(thread, os); in DumpObject()
936 CompletionRecord::Cast(obj)->Dump(thread, os); in DumpObject()
939 JSProxyRevocFunction::Cast(obj)->Dump(thread, os); in DumpObject()
944 JSAsyncFunction::Cast(obj)->Dump(thread, os); in DumpObject()
947 JSAsyncAwaitStatusFunction::Cast(obj)->Dump(thread, os); in DumpObject()
950 JSGeneratorFunction::Cast(obj)->Dump(thread, os); in DumpObject()
954 JSAsyncGeneratorFunction::Cast(obj)->Dump(thread, os); in DumpObject()
957 JSAsyncGeneratorResNextRetProRstFtn::Cast(obj)->Dump(thread, os); in DumpObject()
960 JSIntlBoundFunction::Cast(obj)->Dump(thread, os); in DumpObject()
967 JSForInIterator::Cast(obj)->Dump(thread, os); in DumpObject()
970 JSMapIterator::Cast(obj)->Dump(thread, os); in DumpObject()
973 JSSharedMapIterator::Cast(obj)->Dump(thread, os); in DumpObject()
976 JSSetIterator::Cast(obj)->Dump(thread, os); in DumpObject()
979 JSSharedSetIterator::Cast(obj)->Dump(thread, os); in DumpObject()
982 JSRegExpIterator::Cast(obj)->Dump(thread, os); in DumpObject()
985 JSArrayIterator::Cast(obj)->Dump(thread, os); in DumpObject()
988 JSSharedArrayIterator::Cast(obj)->Dump(thread, os); in DumpObject()
991 JSStringIterator::Cast(obj)->Dump(thread, os); in DumpObject()
994 PrototypeHandler::Cast(obj)->Dump(thread, os); in DumpObject()
997 TransitionHandler::Cast(obj)->Dump(thread, os); in DumpObject()
1000 TransWithProtoHandler::Cast(obj)->Dump(thread, os); in DumpObject()
1003 StoreAOTHandler::Cast(obj)->Dump(thread, os); in DumpObject()
1006 PropertyBox::Cast(obj)->Dump(thread, os); in DumpObject()
1010 JSRealm::Cast(obj)->Dump(thread, os); in DumpObject()
1015 JSIntl::Cast(obj)->Dump(thread, os); in DumpObject()
1019 JSLocale::Cast(obj)->Dump(thread, os); in DumpObject()
1022 JSDateTimeFormat::Cast(obj)->Dump(thread, os); in DumpObject()
1025 JSRelativeTimeFormat::Cast(obj)->Dump(thread, os); in DumpObject()
1028 JSNumberFormat::Cast(obj)->Dump(thread, os); in DumpObject()
1032 JSCollator::Cast(obj)->Dump(thread, os); in DumpObject()
1035 JSPluralRules::Cast(obj)->Dump(thread, os); in DumpObject()
1038 JSDisplayNames::Cast(obj)->Dump(thread, os); in DumpObject()
1041 JSSegmenter::Cast(obj)->Dump(thread, os); in DumpObject()
1044 JSSegments::Cast(obj)->Dump(thread, os); in DumpObject()
1047 JSSegmentIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1050 JSListFormat::Cast(obj)->Dump(thread, os); in DumpObject()
1069 JSGeneratorObject::Cast(obj)->Dump(thread, os); in DumpObject()
1073 JSAsyncGeneratorObject::Cast(obj)->Dump(thread, os); in DumpObject()
1077 JSAsyncFuncObject::Cast(obj)->Dump(thread, os); in DumpObject()
1080 GeneratorContext::Cast(obj)->Dump(thread, os); in DumpObject()
1083 ProtoChangeDetails::Cast(obj)->Dump(thread, os); in DumpObject()
1086 TrackInfo::Cast(obj)->Dump(thread, os); in DumpObject()
1089 EnumCache::Cast(obj)->Dump(thread, os); in DumpObject()
1092 ProtoChangeMarker::Cast(obj)->Dump(thread, os); in DumpObject()
1095 MarkerCell::Cast(obj)->Dump(thread, os); in DumpObject()
1098 Program::Cast(obj)->Dump(thread, os); in DumpObject()
1101 MachineCode::Cast(obj)->Dump(thread, os); in DumpObject()
1104 ClassInfoExtractor::Cast(obj)->Dump(thread, os); in DumpObject()
1107 JSAPIArrayList::Cast(obj)->Dump(thread, os); in DumpObject()
1110 JSAPIArrayListIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1113 JSAPIBitVector::Cast(obj)->Dump(thread, os); in DumpObject()
1116 JSAPIBitVectorIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1119 JSAPIFastBuffer::Cast(obj)->Dump(thread, os); in DumpObject()
1122 JSAPILightWeightMap::Cast(obj)->Dump(thread, os); in DumpObject()
1125 JSAPILightWeightMapIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1128 JSAPILightWeightSet::Cast(obj)->Dump(thread, os); in DumpObject()
1131 JSAPILightWeightSetIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1134 LinkedNode::Cast(obj)->Dump(thread, os); in DumpObject()
1137 RBTreeNode::Cast(obj)->Dump(thread, os); in DumpObject()
1140 JSAPIHashMap::Cast(obj)->Dump(thread, os); in DumpObject()
1143 JSAPIHashSet::Cast(obj)->Dump(thread, os); in DumpObject()
1146 JSAPIHashMapIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1149 JSAPIHashSetIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1152 JSAPITreeMap::Cast(obj)->Dump(thread, os); in DumpObject()
1155 JSAPITreeSet::Cast(obj)->Dump(thread, os); in DumpObject()
1158 JSAPITreeMapIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1161 JSAPITreeSetIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1164 JSAPIVector::Cast(obj)->Dump(thread, os); in DumpObject()
1167 JSAPIVectorIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1170 JSAPIQueue::Cast(obj)->Dump(thread, os); in DumpObject()
1173 JSAPIQueueIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1176 JSAPIDeque::Cast(obj)->Dump(thread, os); in DumpObject()
1179 JSAPIDequeIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1182 JSAPIStack::Cast(obj)->Dump(thread, os); in DumpObject()
1185 JSAPIStackIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1188 JSAPIList::Cast(obj)->Dump(thread, os); in DumpObject()
1191 JSAPIListIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1194 JSAPILinkedList::Cast(obj)->Dump(thread, os); in DumpObject()
1197 JSAPILinkedListIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1200 SourceTextModule::Cast(obj)->Dump(thread, os); in DumpObject()
1203 ImportEntry::Cast(obj)->Dump(thread, os); in DumpObject()
1206 LocalExportEntry::Cast(obj)->Dump(thread, os); in DumpObject()
1209 IndirectExportEntry::Cast(obj)->Dump(thread, os); in DumpObject()
1212 StarExportEntry::Cast(obj)->Dump(thread, os); in DumpObject()
1215 ResolvedBinding::Cast(obj)->Dump(thread, os); in DumpObject()
1218 ResolvedIndexBinding::Cast(obj)->Dump(thread, os); in DumpObject()
1221 ResolvedRecordIndexBinding::Cast(obj)->Dump(thread, os); in DumpObject()
1224 ResolvedRecordBinding::Cast(obj)->Dump(thread, os); in DumpObject()
1227 NativeModuleFailureInfo::Cast(obj)->Dump(thread, os); in DumpObject()
1230 ModuleNamespace::Cast(obj)->Dump(thread, os); in DumpObject()
1233 JSAPIPlainArray::Cast(obj)->Dump(thread, os); in DumpObject()
1236 JSAPIPlainArrayIterator::Cast(obj)->Dump(thread, os); in DumpObject()
1239 CjsModule::Cast(obj)->Dump(thread, os); in DumpObject()
1242 CjsRequire::Cast(obj)->Dump(thread, os); in DumpObject()
1245 CjsExports::Cast(obj)->Dump(thread, os); in DumpObject()
1248 Method::Cast(obj)->Dump(thread, os); in DumpObject()
1251 ClassLiteral::Cast(obj)->Dump(thread, os); in DumpObject()
1260 DumpHClass(thread, jsHclass, os, false); in DumpObject()
1294 void JSTaggedValue::DumpHeapObjectType(const JSThread *thread, std::ostream &os) const in DumpHeapObjectType() argument
1305 CString string = ConvertToString(thread, EcmaString::Cast(obj)); in DumpHeapObjectType()
1314 … << "[" + JSHClass::DumpJSType(type) + "(" + addrStr + "-" + method->GetMethodName(thread) + ")]"; in DumpHeapObjectType()
1324 void JSTaggedValue::DumpTaggedValue(const JSThread *thread, std::ostream &os) const in DumpTaggedValue() argument
1334 DumpHeapObjectType(thread, os); in DumpTaggedValue()
1353 void JSTaggedValue::Dump(const JSThread *thread, std::ostream &os, bool isPrivacy) const in Dump() argument
1355 DumpTaggedValue(thread, os); in Dump()
1359 if (UNLIKELY(thread == nullptr)) { in Dump()
1360 thread = JSThread::GetCurrent(); in Dump()
1363 DumpObject(thread, obj, os, isPrivacy); in Dump()
1367 void JSTaggedValue::DumpHeapObjAddress([[maybe_unused]]const JSThread *thread, std::ostream &os) co… in DumpHeapObjAddress() argument
1377 void JSTaggedValue::D(const JSThread *thread) const in D()
1379 Dump(thread, std::cout); in D()
1382 void JSTaggedValue::DV(const JSThread *thread, JSTaggedType val) in DV() argument
1384 JSTaggedValue(val).D(thread); in DV()
1393 void NumberDictionary::Dump(const JSThread *thread, std::ostream &os, bool isPrivacy) const in Dump() argument
1398 JSTaggedValue key(GetKey(thread, hashIndex)); in Dump()
1403 JSTaggedValue val(GetValue(thread, hashIndex)); in Dump()
1404 val.DumpTaggedValue(thread, os); in Dump()
1407 DumpAttr(GetAttributes(thread, hashIndex), false, os); in Dump()
1413 void NameDictionary::Dump(const JSThread *thread, std::ostream &os, bool isPrivacy) const in Dump() argument
1418 JSTaggedValue key(GetKey(thread, hashIndex)); in Dump()
1421 DumpPropertyKey(thread, key, os); in Dump()
1424 JSTaggedValue val(GetValue(thread, hashIndex)); in Dump()
1425 val.DumpTaggedValue(thread, os); in Dump()
1428 DumpAttr(GetAttributes(thread, hashIndex), false, os); in Dump()
1434 void GlobalDictionary::Dump(const JSThread *thread, std::ostream &os, bool isPrivacy) const in Dump() argument
1439 JSTaggedValue key(GetKey(thread, hashIndex)); in Dump()
1442 DumpPropertyKey(thread, key, os); in Dump()
1445 JSTaggedValue val(GetValue(thread, hashIndex)); in Dump()
1446 val.DumpTaggedValue(thread, os); in Dump()
1449 DumpAttr(GetAttributes(thread, hashIndex), false, os); in Dump()
1455 void LayoutInfo::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1460 JSTaggedValue key = GetKey(thread, i); in Dump()
1461 PropertyAttributes attr = GetAttr(thread, i); in Dump()
1464 DumpPropertyKey(thread, key, os); in Dump()
1471 void TransitionsDictionary::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1476 JSTaggedValue key(GetKey(thread, hashIndex)); in Dump()
1479 DumpPropertyKey(thread, key, os); in Dump()
1481 GetValue(thread, hashIndex).DumpTaggedValue(thread, os); in Dump()
1483 GetAttributes(thread, hashIndex).DumpTaggedValue(thread, os); in Dump()
1489 void LinkedHashSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1494 JSTaggedValue key(GetKey(thread, hashIndex)); in Dump()
1497 key.DumpTaggedValue(thread, os); in Dump()
1503 void LinkedHashMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1508 JSTaggedValue key(GetKey(thread, hashIndex)); in Dump()
1510 JSTaggedValue val(GetValue(thread, hashIndex)); in Dump()
1512 key.DumpTaggedValue(thread, os); in Dump()
1514 val.DumpTaggedValue(thread, os); in Dump()
1520 void TaggedDoubleList::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1528 GetElement(thread, 5).Dump(thread, os); in Dump()
1531 GetElement(thread, 6).Dump(thread, os); in Dump()
1534 int next = GetElement(thread, 5).GetInt(); in Dump()
1537 GetElement(thread, next).DumpTaggedValue(thread, os); in Dump()
1540 GetElement(thread, next + 1).Dump(thread, os); in Dump()
1543 GetElement(thread, next + 2).Dump(thread, os); in Dump()
1545 next = GetElement(thread, next + 1).GetInt(); in Dump()
1550 void TaggedSingleList::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1556 GetElement(thread, 5).Dump(thread, os); in Dump()
1559 int next = GetElement(thread, 5).GetInt(); in Dump()
1562 GetElement(thread, next).DumpTaggedValue(thread, os); in Dump()
1565 GetElement(thread, next + 1).Dump(thread, os); in Dump()
1567 next = GetElement(thread, next + 1).GetInt(); in Dump()
1572 void JSObject::Dump(const JSThread *thread, std::ostream &os, bool isPrivacy) const in Dump() argument
1578 jshclass->GetPrototype(thread).DumpTaggedValue(thread, os); in Dump()
1581 JSTaggedType hashField = Barriers::GetTaggedValue(thread, this, HASH_OFFSET); in Dump()
1584 value.Dump(thread, os); in Dump()
1586 TaggedArray *elements = TaggedArray::Cast(GetElements(thread).GetTaggedObject()); in Dump()
1591 DumpArrayClass(thread, elements, os); in Dump()
1595 dict->Dump(thread, os, isPrivacy); in Dump()
1598 TaggedArray *properties = TaggedArray::Cast(GetProperties(thread).GetTaggedObject()); in Dump()
1603 dict->Dump(thread, os, isPrivacy); in Dump()
1608 JSTaggedValue attrs = jshclass->GetLayout(thread); in Dump()
1617 JSTaggedValue key = layoutInfo->GetKey(thread, i); in Dump()
1618 PropertyAttributes attr = layoutInfo->GetAttr(thread, i); in Dump()
1621 DumpPropertyKey(thread, key, os); in Dump()
1625 val = GetPropertyInlinedPropsWithRep(thread, i, attr); in Dump()
1627 … val = properties->Get(thread, i - static_cast<int>(jshclass->GetInlinedProperties())); in Dump()
1630 val.DumpTaggedValue(thread, os); in Dump()
1639 dict->Dump(thread, os, isPrivacy); in Dump()
1643 void TaggedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1645 DumpArrayClass(thread, this, os); in Dump()
1648 void AccessorData::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1658 GetGetter(thread).DumpTaggedValue(thread, os); in Dump()
1662 GetSetter(thread).DumpTaggedValue(thread, os); in Dump()
1666 void Program::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1669 GetMainFunction(thread).Dump(thread, os); in Dump()
1673 void LinkedNode::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
1680 void RBTreeNode::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
1692 … auto presentKey = EcmaStringAccessor(EcmaString::Cast(root->GetKey(thread))).ToStdString(thread); in Dump()
1695 … ", hash :" << root->GetHash(thread).GetInt() << ", isLeftSon: " << (isLeft ? "true" : "false") << in Dump()
1698 if (!root->GetLeft(thread).IsHole()) { in Dump()
1699 q.push({presentKey, RBTreeNode::Cast(root->GetLeft(thread).GetTaggedObject()), true}); in Dump()
1701 if (!root->GetRight(thread).IsHole()) { in Dump()
1702 q.push({presentKey, RBTreeNode::Cast(root->GetRight(thread).GetTaggedObject()), false}); in Dump()
1708 void ConstantPool::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1710 DumpArrayClass(thread, this, os); in Dump()
1713 void ProfileTypeInfo::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1719 JSTaggedValue val(Get(thread, i)); in Dump()
1722 val.DumpTaggedValue(thread, os); in Dump()
1728 void ExtraProfileTypeInfo::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1732 GetReceiverObject(thread).Dump(thread, os); in Dump()
1734 GetHolderObject(thread).Dump(thread, os); in Dump()
1738 void ProfileTypeInfoCell::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1742 GetValue(thread).Dump(thread, os); in Dump()
1744 GetHandle(thread).Dump(thread, os); in Dump()
1748 void FunctionTemplate::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1752 GetMethod(thread).Dump(thread, os); in Dump()
1754 GetModule(thread).Dump(thread, os); in Dump()
1756 GetRawProfileTypeInfo(thread).Dump(thread, os); in Dump()
1760 void VTable::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1768 JSTaggedValue name = GetTupleItem(thread, i, VTable::TupleItem::NAME); in Dump()
1769 DumpPropertyKey(thread, name, os); in Dump()
1770 os << ", type :" << (IsAccessor(thread, i) ? "Accessor" : "Function"); in Dump()
1771 JSTaggedValue owner = GetTupleItem(thread, i, VTable::TupleItem::OWNER); in Dump()
1773 owner.DumpTaggedValue(thread, os); in Dump()
1774 JSTaggedValue offset = GetTupleItem(thread, i, VTable::TupleItem::OFFSET); in Dump()
1781 void JSFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1784 GetProtoOrHClass(thread).Dump(thread, os); in Dump()
1787 if (GetLexicalEnv(thread).IsLexicalEnv()) { in Dump()
1788 GetLexicalEnv(thread).Dump(thread, os); in Dump()
1790 GetLexicalEnv(thread).DumpTaggedValue(thread, os); // reduce circular calls in Dump()
1794 GetRawProfileTypeInfo(thread).Dump(thread, os); in Dump()
1797 GetHomeObject(thread).Dump(thread, os); in Dump()
1800 GetFunctionExtraInfo(thread).Dump(thread, os); in Dump()
1803 GetMethod(thread).Dump(thread, os); in Dump()
1806 GetModule(thread).Dump(thread, os); in Dump()
1808 JSObject::Dump(thread, os); in Dump()
1811 void JSHClass::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1813 DumpHClass(thread, this, os, true); in Dump()
1816 void JSBoundFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1819 GetBoundTarget(thread).DumpTaggedValue(thread, os); in Dump()
1823 GetBoundThis(thread).DumpTaggedValue(thread, os); in Dump()
1827 GetBoundArguments(thread).DumpTaggedValue(thread, os); in Dump()
1830 JSObject::Dump(thread, os); in Dump()
1833 void JSPrimitiveRef::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1836 GetValue(thread).DumpTaggedValue(thread, os); in Dump()
1838 JSObject::Dump(thread, os); in Dump()
1841 void BigInt::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
1848 void JSDate::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1850 os << " - time: " << GetTime(const_cast<JSThread*>(thread)).GetDouble() << "\n"; in Dump()
1851 os << " - localOffset: " << GetLocalOffset(thread).GetDouble() << "\n"; in Dump()
1852 JSObject::Dump(thread, os); in Dump()
1855 void JSMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1857 LinkedHashMap *map = LinkedHashMap::Cast(GetLinkedMap(thread).GetTaggedObject()); in Dump()
1861 JSObject::Dump(thread, os); in Dump()
1864 map->Dump(thread, os); in Dump()
1867 void JSSharedMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1869 LinkedHashMap *map = LinkedHashMap::Cast(GetLinkedMap(thread).GetTaggedObject()); in Dump()
1874 JSObject::Dump(thread, os); in Dump()
1877 map->Dump(thread, os); in Dump()
1880 void JSAPITreeMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1882 TaggedTreeMap *map = TaggedTreeMap::Cast(GetTreeMap(thread).GetTaggedObject()); in Dump()
1886 JSObject::Dump(thread, os); in Dump()
1889 map->Dump(thread, os); in Dump()
1892 void JSAPITreeMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
1894 if (!(GetTreeMap(thread).IsInvalidValue())) { in DumpForSnapshot()
1895 TaggedTreeMap *map = TaggedTreeMap::Cast(GetTreeMap(thread).GetTaggedObject()); in DumpForSnapshot()
1896 vec.emplace_back("treemap", GetTreeMap(thread)); in DumpForSnapshot()
1897 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
1900 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
1903 void JSAPITreeMapIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1906 TaggedTreeMap::Cast(JSAPITreeMap::Cast(GetIteratedMap(thread).GetTaggedObject())-> in Dump()
1907 GetTreeMap(thread).GetTaggedObject()); in Dump()
1913 JSObject::Dump(thread, os); in Dump()
1916 map->Dump(thread, os); in Dump()
1919 void JSAPITreeMapIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
1921 if (!(GetIteratedMap(thread).IsInvalidValue())) { in DumpForSnapshot()
1923 TaggedTreeMap::Cast(JSAPITreeMap::Cast(GetIteratedMap(thread).GetTaggedObject())-> in DumpForSnapshot()
1924 GetTreeMap(thread).GetTaggedObject()); in DumpForSnapshot()
1925 vec.emplace_back("iteratedmap", GetIteratedMap(thread)); in DumpForSnapshot()
1926 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
1931 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
1935 void DumpTaggedTreeEntry(const JSThread *thread, T tree, std::ostream &os, int index, bool isMap = … in DumpTaggedTreeEntry() argument
1939 JSTaggedValue val(tree->GetValue(thread, index)); in DumpTaggedTreeEntry()
1947 JSTaggedValue key(tree->GetKey(thread, index)); in DumpTaggedTreeEntry()
1948 key.DumpTaggedValue(thread, os); in DumpTaggedTreeEntry()
1953 val.DumpTaggedValue(thread, os); in DumpTaggedTreeEntry()
1957 parent.DumpTaggedValue(thread, os); in DumpTaggedTreeEntry()
1961 color.DumpTaggedValue(thread, os); in DumpTaggedTreeEntry()
1965 left.DumpTaggedValue(thread, os); in DumpTaggedTreeEntry()
1968 right.DumpTaggedValue(thread, os); in DumpTaggedTreeEntry()
1972 void TaggedTreeMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
1976 JSTaggedValue node = TaggedArray::Get(thread, 0); in Dump()
1977 node.DumpTaggedValue(thread, os); in Dump()
1980 node = TaggedArray::Get(thread, 1); in Dump()
1981 node.DumpTaggedValue(thread, os); in Dump()
1984 node = TaggedArray::Get(thread, 2); // 2 means the three element in Dump()
1985 node.DumpTaggedValue(thread, os); in Dump()
1988 node = TaggedArray::Get(thread, 3); // 3 means the three element in Dump()
1989 node.DumpTaggedValue(thread, os); in Dump()
1994 if (GetKey(thread, index).IsHole()) { in Dump()
1996 GetKey(thread, index).DumpTaggedValue(thread, os); in Dump()
1999 DumpTaggedTreeEntry(thread, const_cast<TaggedTreeMap *>(this), os, index, true); in Dump()
2004 void JSAPITreeSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2006 TaggedTreeSet *set = TaggedTreeSet::Cast(GetTreeSet(thread).GetTaggedObject()); in Dump()
2010 JSObject::Dump(thread, os); in Dump()
2013 set->Dump(thread, os); in Dump()
2016 void JSAPITreeSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
2018 if (!(GetTreeSet(thread).IsInvalidValue())) { in DumpForSnapshot()
2019 TaggedTreeSet *set = TaggedTreeSet::Cast(GetTreeSet(thread).GetTaggedObject()); in DumpForSnapshot()
2020 vec.emplace_back("treeset", GetTreeSet(thread)); in DumpForSnapshot()
2021 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2024 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2027 void JSAPITreeSetIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2030 TaggedTreeSet::Cast(JSAPITreeSet::Cast(GetIteratedSet(thread).GetTaggedObject())-> in Dump()
2031 GetTreeSet(thread).GetTaggedObject()); in Dump()
2037 JSObject::Dump(thread, os); in Dump()
2040 set->Dump(thread, os); in Dump()
2043 void JSAPITreeSetIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
2045 if (!(GetIteratedSet(thread).IsInvalidValue())) { in DumpForSnapshot()
2047 TaggedTreeSet::Cast(JSAPITreeSet::Cast(GetIteratedSet(thread).GetTaggedObject())-> in DumpForSnapshot()
2048 GetTreeSet(thread).GetTaggedObject()); in DumpForSnapshot()
2049 vec.emplace_back("iteratedset", GetIteratedSet(thread)); in DumpForSnapshot()
2050 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2055 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2058 void TaggedTreeSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2062 JSTaggedValue node = TaggedArray::Get(thread, 0); in Dump()
2063 node.DumpTaggedValue(thread, os); in Dump()
2066 node = TaggedArray::Get(thread, 1); in Dump()
2067 node.DumpTaggedValue(thread, os); in Dump()
2070 node = TaggedArray::Get(thread, 2); // 2 means the three element in Dump()
2071 node.DumpTaggedValue(thread, os); in Dump()
2074 node = TaggedArray::Get(thread, 3); // 3 means the three element in Dump()
2075 node.DumpTaggedValue(thread, os); in Dump()
2080 if (GetKey(thread, index).IsHole()) { in Dump()
2082 GetKey(thread, index).DumpTaggedValue(thread, os); in Dump()
2085 DumpTaggedTreeEntry(thread, const_cast<TaggedTreeSet *>(this), os, index); in Dump()
2090 void JSAPIPlainArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2092 TaggedArray *keys = TaggedArray::Cast(GetKeys(thread).GetTaggedObject()); in Dump()
2093 TaggedArray *values = TaggedArray::Cast(GetValues(thread).GetTaggedObject()); in Dump()
2097 keys->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2100 values->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2104 JSObject::Dump(thread, os); in Dump()
2107 void JSAPIPlainArrayIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2109 JSAPIPlainArray *array = JSAPIPlainArray::Cast(GetIteratedPlainArray(thread).GetTaggedObject()); in Dump()
2112 JSObject::Dump(thread, os); in Dump()
2115 void JSAPIPlainArrayIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) … in DumpForSnapshot() argument
2117 if (!(GetIteratedPlainArray(thread).IsInvalidValue())) { in DumpForSnapshot()
2118 … JSAPIPlainArray *array = JSAPIPlainArray::Cast(GetIteratedPlainArray(thread).GetTaggedObject()); in DumpForSnapshot()
2119 vec.emplace_back("iteratedplainarray", GetIteratedPlainArray(thread)); in DumpForSnapshot()
2120 array->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2124 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2127 void JSForInIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2130 GetObject(thread).DumpTaggedValue(thread, os); in Dump()
2132 GetCachedHClass(thread).DumpTaggedValue(thread, os); in Dump()
2135 GetKeys(thread).DumpTaggedValue(thread, os); in Dump()
2141 JSObject::Dump(thread, os); in Dump()
2144 void JSMapIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2146 LinkedHashMap *map = LinkedHashMap::Cast(GetIteratedMap(thread).GetTaggedObject()); in Dump()
2152 JSObject::Dump(thread, os); in Dump()
2155 map->Dump(thread, os); in Dump()
2158 void JSSharedMapIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2160 JSSharedMap *iteratedMap = JSSharedMap::Cast(GetIteratedMap(thread).GetTaggedObject()); in Dump()
2161 LinkedHashMap *map = LinkedHashMap::Cast(iteratedMap->GetLinkedMap(thread).GetTaggedObject()); in Dump()
2167 JSObject::Dump(thread, os); in Dump()
2170 map->Dump(thread, os); in Dump()
2173 void JSSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2175 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet(thread).GetTaggedObject()); in Dump()
2179 JSObject::Dump(thread, os); in Dump()
2182 set->Dump(thread, os); in Dump()
2185 void JSSharedSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2187 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet(thread).GetTaggedObject()); in Dump()
2192 JSObject::Dump(thread, os); in Dump()
2195 set->Dump(thread, os); in Dump()
2198 void JSWeakMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2200 LinkedHashMap *map = LinkedHashMap::Cast(GetLinkedMap(thread).GetTaggedObject()); in Dump()
2201 os << " - length: " << std::dec << GetSize(thread) << "\n"; in Dump()
2205 JSObject::Dump(thread, os); in Dump()
2208 map->Dump(thread, os); in Dump()
2211 void JSWeakSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2213 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet(thread).GetTaggedObject()); in Dump()
2214 os << " - size: " << std::dec << GetSize(thread) << "\n"; in Dump()
2218 JSObject::Dump(thread, os); in Dump()
2221 set->Dump(thread, os); in Dump()
2224 void JSWeakRef::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2227 GetWeakObject(thread).DumpTaggedValue(thread, os); in Dump()
2229 JSObject::Dump(thread, os); in Dump()
2232 void JSFinalizationRegistry::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2235 GetCleanupCallback(thread).DumpTaggedValue(thread, os); in Dump()
2238 GetNoUnregister(thread).Dump(thread, os); in Dump()
2241 LinkedHashMap *map = LinkedHashMap::Cast(GetMaybeUnregister(thread).GetTaggedObject()); in Dump()
2245 JSObject::Dump(thread, os); in Dump()
2248 void CellRecord::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2251 GetFromWeakRefTarget(thread).DumpTaggedValue(thread, os); in Dump()
2254 GetHeldValue(thread).DumpTaggedValue(thread, os); in Dump()
2258 void JSSetIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2260 LinkedHashSet *set = LinkedHashSet::Cast(GetIteratedSet(thread).GetTaggedObject()); in Dump()
2266 JSObject::Dump(thread, os); in Dump()
2269 set->Dump(thread, os); in Dump()
2272 void JSSharedSetIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2274 JSSharedSet *iteratedSet = JSSharedSet::Cast(GetIteratedSet(thread).GetTaggedObject()); in Dump()
2275 LinkedHashSet *set = LinkedHashSet::Cast(iteratedSet->GetLinkedSet(thread).GetTaggedObject()); in Dump()
2281 JSObject::Dump(thread, os); in Dump()
2284 set->Dump(thread, os); in Dump()
2287 void JSRegExpIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2290 GetIteratingRegExp(thread).Dump(thread, os); in Dump()
2293 GetIteratedString(thread).Dump(thread, os); in Dump()
2298 JSObject::Dump(thread, os); in Dump()
2301 void JSArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2304 JSObject::Dump(thread, os); in Dump()
2307 void JSSharedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2310 JSObject::Dump(thread, os); in Dump()
2313 void JSArrayIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2315 JSArray *array = JSArray::Cast(GetIteratedArray(thread).GetTaggedObject()); in Dump()
2319 JSObject::Dump(thread, os); in Dump()
2322 void JSSharedArrayIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2324 JSSharedArray *array = JSSharedArray::Cast(GetIteratedArray(thread).GetTaggedObject()); in Dump()
2328 JSObject::Dump(thread, os); in Dump()
2331 void JSAPIArrayList::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2333 os << " - length: " << std::dec << GetSize(const_cast<JSThread *>(thread)) << "\n"; in Dump()
2334 JSObject::Dump(thread, os); in Dump()
2337 void JSAPIArrayListIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2339 … JSAPIArrayList *arrayList = JSAPIArrayList::Cast(GetIteratedArrayList(thread).GetTaggedObject()); in Dump()
2340 os << " - length: " << std::dec << arrayList->GetSize(const_cast<JSThread *>(thread)) << "\n"; in Dump()
2342 JSObject::Dump(thread, os); in Dump()
2345 void JSAPIDeque::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2349 JSObject::Dump(thread, os); in Dump()
2352 void JSAPIDequeIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2354 JSAPIDeque *deque = JSAPIDeque::Cast(GetIteratedDeque(thread).GetTaggedObject()); in Dump()
2355 os << " - length: " << std::dec << deque->GetSize(thread) << "\n"; in Dump()
2357 JSObject::Dump(thread, os); in Dump()
2360 void JSAPILightWeightMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2365 TaggedArray *hashArray = TaggedArray::Cast(GetHashes(thread).GetTaggedObject()); in Dump()
2366 TaggedArray *keyArray = TaggedArray::Cast(GetKeys(thread).GetTaggedObject()); in Dump()
2367 TaggedArray *valueArray = TaggedArray::Cast(GetValues(thread).GetTaggedObject()); in Dump()
2370 hashArray->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2372 keyArray->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2374 valueArray->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2378 JSObject::Dump(thread, os); in Dump()
2381 void JSAPILightWeightMapIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2385 JSObject::Dump(thread, os); in Dump()
2388 void JSAPIHashMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2390 TaggedHashArray *hashArray = TaggedHashArray::Cast(GetTable(thread).GetTaggedObject()); in Dump()
2393 hashArray->Dump(thread, os); in Dump()
2394 JSObject::Dump(thread, os); in Dump()
2397 void JSAPIHashMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
2399 if (!(GetTable(thread).IsInvalidValue())) { in DumpForSnapshot()
2400 TaggedHashArray *map = TaggedHashArray::Cast(GetTable(thread).GetTaggedObject()); in DumpForSnapshot()
2401 vec.emplace_back("hashmap", GetTable(thread)); in DumpForSnapshot()
2402 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2405 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2408 void JSAPIHashSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2410 TaggedHashArray *hashArray = TaggedHashArray::Cast(GetTable(thread).GetTaggedObject()); in Dump()
2413 hashArray->Dump(thread, os); in Dump()
2414 JSObject::Dump(thread, os); in Dump()
2417 void JSAPIHashSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
2419 if (!(GetTable(thread).IsInvalidValue())) { in DumpForSnapshot()
2420 TaggedHashArray *set = TaggedHashArray::Cast(GetTable(thread).GetTaggedObject()); in DumpForSnapshot()
2421 vec.emplace_back("hashset", GetTable(thread)); in DumpForSnapshot()
2422 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2425 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2428 void JSAPIHashMapIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2432 JSObject::Dump(thread, os); in Dump()
2435 void JSAPIHashMapIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
2437 vec.emplace_back(CString("IteratedHashMap"), JSTaggedValue(GetIteratedHashMap(thread))); in DumpForSnapshot()
2438 vec.emplace_back(CString("TaggedQueue"), JSTaggedValue(GetTaggedQueue(thread))); in DumpForSnapshot()
2439 vec.emplace_back(CString("CurrentNodeResult"), JSTaggedValue(GetCurrentNodeResult(thread))); in DumpForSnapshot()
2441 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2444 void JSAPIHashSetIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2448 JSObject::Dump(thread, os); in Dump()
2451 void JSAPIHashSetIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
2453 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2456 void JSAPILightWeightSet::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2458 TaggedArray *keys = TaggedArray::Cast(GetHashes(thread).GetTaggedObject()); in Dump()
2459 TaggedArray *values = TaggedArray::Cast(GetValues(thread).GetTaggedObject()); in Dump()
2463 keys->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2466 values->Get(thread, i).DumpTaggedValue(thread, os); in Dump()
2470 JSObject::Dump(thread, os); in Dump()
2473 void JSAPILightWeightSetIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2477 JSObject::Dump(thread, os); in Dump()
2480 void JSAPIList::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2482 TaggedSingleList *list = TaggedSingleList::Cast(GetSingleList(thread).GetTaggedObject()); in Dump()
2487 JSObject::Dump(thread, os); in Dump()
2488 list->Dump(thread, os); in Dump()
2491 void JSAPIList::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
2493 if (!(GetSingleList(thread).IsInvalidValue())) { in DumpForSnapshot()
2494 TaggedSingleList *list = TaggedSingleList::Cast(GetSingleList(thread).GetTaggedObject()); in DumpForSnapshot()
2495 vec.emplace_back("singleList", GetSingleList(thread)); in DumpForSnapshot()
2496 list->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2498 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2501 void JSAPIListIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2503 TaggedSingleList *list = TaggedSingleList::Cast(GetIteratedList(thread).GetTaggedObject()); in Dump()
2508 JSObject::Dump(thread, os); in Dump()
2509 list->Dump(thread, os); in Dump()
2512 void JSAPIListIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
2514 if (!(GetIteratedList(thread).IsInvalidValue())) { in DumpForSnapshot()
2515 TaggedSingleList *list = TaggedSingleList::Cast(GetIteratedList(thread).GetTaggedObject()); in DumpForSnapshot()
2516 vec.emplace_back("iteratedlist", GetIteratedList(thread)); in DumpForSnapshot()
2517 list->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2520 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2523 void JSAPILinkedList::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2525 TaggedDoubleList *linkedList = TaggedDoubleList::Cast(GetDoubleList(thread).GetTaggedObject()); in Dump()
2529 JSObject::Dump(thread, os); in Dump()
2530 linkedList->Dump(thread, os); in Dump()
2533 void JSAPILinkedList::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
2535 if (!(GetDoubleList(thread).IsInvalidValue())) { in DumpForSnapshot()
2536 TaggedDoubleList *list = TaggedDoubleList::Cast(GetDoubleList(thread).GetTaggedObject()); in DumpForSnapshot()
2537 vec.emplace_back("doubleList", GetDoubleList(thread)); in DumpForSnapshot()
2538 list->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2541 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2544 void JSAPILinkedListIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2546 …TaggedDoubleList *linkedList = TaggedDoubleList::Cast(GetIteratedLinkedList(thread).GetTaggedObjec… in Dump()
2551 JSObject::Dump(thread, os); in Dump()
2552 linkedList->Dump(thread, os); in Dump()
2555 void JSAPILinkedListIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) … in DumpForSnapshot() argument
2557 if (!(GetIteratedLinkedList(thread).IsInvalidValue())) { in DumpForSnapshot()
2558 …TaggedDoubleList *linkedList = TaggedDoubleList::Cast(GetIteratedLinkedList(thread).GetTaggedObjec… in DumpForSnapshot()
2559 vec.emplace_back("iteratedlist", GetIteratedLinkedList(thread)); in DumpForSnapshot()
2560 linkedList->DumpForSnapshot(thread, vec); in DumpForSnapshot()
2564 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
2567 void JSAPIQueue::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2569 os << " - length: " << std::dec << GetSize(thread) << "\n"; in Dump()
2572 JSObject::Dump(thread, os); in Dump()
2575 void JSAPIQueueIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2577 JSAPIQueue *queue = JSAPIQueue::Cast(GetIteratedQueue(thread).GetTaggedObject()); in Dump()
2578 os << " - length: " << std::dec << queue->GetSize(thread) << "\n"; in Dump()
2580 JSObject::Dump(thread, os); in Dump()
2583 void JSAPIStack::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2586 JSObject::Dump(thread, os); in Dump()
2589 void JSAPIStackIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2591 JSAPIStack *stack = JSAPIStack::Cast(GetIteratedStack(thread).GetTaggedObject()); in Dump()
2594 JSObject::Dump(thread, os); in Dump()
2597 void JSAPIVector::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2600 JSObject::Dump(thread, os); in Dump()
2603 void JSAPIVectorIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2605 JSAPIVector *vector = JSAPIVector::Cast(GetIteratedVector(thread).GetTaggedObject()); in Dump()
2608 JSObject::Dump(thread, os); in Dump()
2611 void JSAPIBitVector::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2614 JSObject::Dump(thread, os); in Dump()
2617 void JSAPIBitVectorIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2619 … JSAPIBitVector *bitVector = JSAPIBitVector::Cast(GetIteratedBitVector(thread).GetTaggedObject()); in Dump()
2622 JSObject::Dump(thread, os); in Dump()
2625 void JSAPIFastBuffer::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2629 auto array = JSTypedArray::Cast(GetFastBufferData(thread).GetTaggedObject()); in Dump()
2630 array->Dump(thread, os); in Dump()
2631 JSObject::Dump(thread, os); in Dump()
2634 void JSStringIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2636 EcmaString *str = EcmaString::Cast(GetIteratedString(thread).GetTaggedObject()); in Dump()
2637 os << " - IteratedString: " << EcmaStringAccessor(str).ToCString(thread) << "\n"; in Dump()
2639 JSObject::Dump(thread, os); in Dump()
2641 void JSTypedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2644 GetViewedArrayBufferOrByteArray(thread).Dump(thread, os); in Dump()
2646 GetTypedArrayName(thread).Dump(thread, os); in Dump()
2650 JSObject::Dump(thread, os); in Dump()
2653 void JSSharedTypedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2656 GetViewedArrayBufferOrByteArray(thread).Dump(thread, os); in Dump()
2658 GetTypedArrayName(thread).Dump(thread, os); in Dump()
2662 JSObject::Dump(thread, os); in Dump()
2665 void ByteArray::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
2671 void JSRegExp::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2675 GetByteCodeBuffer(thread).Dump(thread, os); in Dump()
2678 GetOriginalSource(thread).Dump(thread, os); in Dump()
2681 GetOriginalFlags(thread).Dump(thread, os); in Dump()
2684 GetGroupName(thread).Dump(thread, os); in Dump()
2688 JSObject::Dump(thread, os); in Dump()
2691 void JSProxy::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2695 JSObject::Cast(GetTarget(thread).GetTaggedObject())->Dump(thread, os); in Dump()
2698 JSObject::Cast(GetHandler(thread).GetTaggedObject())->Dump(thread, os); in Dump()
2702 void JSSymbol::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2707 JSTaggedValue description = GetDescription(thread); in Dump()
2708 description.Dump(thread, os); in Dump()
2711 void LexicalEnv::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2713 DumpArrayClass(thread, this, os); in Dump()
2716 void SFunctionEnv::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2718 DumpArrayClass(thread, this, os); in Dump()
2721 void SendableEnv::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2723 DumpArrayClass(thread, this, os); in Dump()
2726 void COWTaggedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2728 DumpArrayClass(thread, this, os); in Dump()
2731 void MutantTaggedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2733 DumpMutantTaggedArray(thread, this, os); in Dump()
2736 void COWMutantTaggedArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2738 DumpCOWMutantTaggedArray(thread, this, os); in Dump()
2742 void GlobalEnv::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2746 GetObjectFunction().GetTaggedValue().Dump(thread, os); in Dump()
2748 GetFunctionFunction().GetTaggedValue().Dump(thread, os); in Dump()
2750 GetNumberFunction().GetTaggedValue().Dump(thread, os); in Dump()
2752 GetBigIntFunction().GetTaggedValue().Dump(thread, os); in Dump()
2754 GetDateFunction().GetTaggedValue().Dump(thread, os); in Dump()
2756 GetBooleanFunction().GetTaggedValue().Dump(thread, os); in Dump()
2758 GetErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2760 GetArrayFunction().GetTaggedValue().Dump(thread, os); in Dump()
2762 GetTypedArrayFunction().GetTaggedValue().Dump(thread, os); in Dump()
2764 GetInt8ArrayFunction().GetTaggedValue().Dump(thread, os); in Dump()
2766 GetUint8ArrayFunction().GetTaggedValue().Dump(thread, os); in Dump()
2768 GetUint8ClampedArrayFunction().GetTaggedValue().Dump(thread, os); in Dump()
2770 GetInt16ArrayFunction().GetTaggedValue().Dump(thread, os); in Dump()
2772 GetArrayBufferFunction().GetTaggedValue().Dump(thread, os); in Dump()
2774 GetSharedArrayBufferFunction().GetTaggedValue().Dump(thread, os); in Dump()
2776 GetSymbolFunction().GetTaggedValue().Dump(thread, os); in Dump()
2778 GetRangeErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2780 GetReferenceErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2782 GetTypeErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2784 GetAggregateErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2786 GetURIErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2788 GetSyntaxErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2790 GetEvalErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2792 GetOOMErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2794 GetTerminationErrorFunction().GetTaggedValue().Dump(thread, os); in Dump()
2796 GetRegExpFunction().GetTaggedValue().Dump(thread, os); in Dump()
2798 GetBuiltinsSetFunction().GetTaggedValue().Dump(thread, os); in Dump()
2800 GetBuiltinsMapFunction().GetTaggedValue().Dump(thread, os); in Dump()
2802 GetBuiltinsWeakSetFunction().GetTaggedValue().Dump(thread, os); in Dump()
2804 GetBuiltinsWeakMapFunction().GetTaggedValue().Dump(thread, os); in Dump()
2806 GetBuiltinsWeakRefFunction().GetTaggedValue().Dump(thread, os); in Dump()
2808 GetBuiltinsFinalizationRegistryFunction().GetTaggedValue().Dump(thread, os); in Dump()
2810 GetMathFunction().GetTaggedValue().Dump(thread, os); in Dump()
2812 GetAtomicsFunction().GetTaggedValue().Dump(thread, os); in Dump()
2814 GetJsonFunction().GetTaggedValue().Dump(thread, os); in Dump()
2816 GetStringFunction().GetTaggedValue().Dump(thread, os); in Dump()
2818 GetProxyFunction().GetTaggedValue().Dump(thread, os); in Dump()
2820 GetReflectFunction().GetTaggedValue().Dump(thread, os); in Dump()
2822 GetAsyncFunction().GetTaggedValue().Dump(thread, os); in Dump()
2824 GetAsyncFunctionPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2826 GetJSGlobalObject().GetTaggedValue().Dump(thread, os); in Dump()
2828 GetGlobalPatch().GetTaggedValue().Dump(thread, os); in Dump()
2830 globalConst->GetEmptyArray().Dump(thread, os); in Dump()
2832 globalConst->GetEmptyString().Dump(thread, os); in Dump()
2834 globalConst->GetEmptyTaggedQueue().Dump(thread, os); in Dump()
2836 globalConst->GetEmptyProfileTypeInfoCell().Dump(thread, os); in Dump()
2838 globalConst->GetPrototypeString().Dump(thread, os); in Dump()
2840 GetHasInstanceSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2842 GetIsConcatSpreadableSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2844 GetToStringTagSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2846 GetIteratorSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2848 GetAsyncIteratorSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2850 GetMatchSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2852 GetMatchAllSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2854 GetReplaceSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2856 GetSearchSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2858 GetSpeciesSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2860 GetSplitSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2862 GetToPrimitiveSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2864 GetUnscopablesSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2866 GetHoleySymbol().GetTaggedValue().Dump(thread, os); in Dump()
2868 GetNativeBindingSymbol().GetTaggedValue().Dump(thread, os); in Dump()
2870 globalConst->GetConstructorString().Dump(thread, os); in Dump()
2872 GetIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2874 GetForinIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2876 GetStringIterator().GetTaggedValue().Dump(thread, os); in Dump()
2878 GetMapIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2880 GetSetIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2882 GetRegExpIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2884 GetArrayIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2886 GetStringIteratorPrototype().GetTaggedValue().Dump(thread, os); in Dump()
2888 globalConst->GetLengthString().Dump(thread, os); in Dump()
2890 globalConst->GetValueString().Dump(thread, os); in Dump()
2892 globalConst->GetWritableString().Dump(thread, os); in Dump()
2894 globalConst->GetGetString().Dump(thread, os); in Dump()
2896 globalConst->GetSetString().Dump(thread, os); in Dump()
2898 globalConst->GetEnumerableString().Dump(thread, os); in Dump()
2900 globalConst->GetConfigurableString().Dump(thread, os); in Dump()
2902 globalConst->GetNameString().Dump(thread, os); in Dump()
2904 globalConst->GetValueOfString().Dump(thread, os); in Dump()
2906 globalConst->GetToStringString().Dump(thread, os); in Dump()
2908 globalConst->GetToLocaleStringString().Dump(thread, os); in Dump()
2910 globalConst->GetUndefinedString().Dump(thread, os); in Dump()
2912 globalConst->GetNullString().Dump(thread, os); in Dump()
2914 globalConst->GetTrueString().Dump(thread, os); in Dump()
2916 globalConst->GetFalseString().Dump(thread, os); in Dump()
2918 GetThrowTypeError().GetTaggedValue().Dump(thread, os); in Dump()
2920 globalConst->GetGetPrototypeOfString().Dump(thread, os); in Dump()
2922 globalConst->GetSetPrototypeOfString().Dump(thread, os); in Dump()
2924 globalConst->GetIsExtensibleString().Dump(thread, os); in Dump()
2926 globalConst->GetPreventExtensionsString().Dump(thread, os); in Dump()
2928 globalConst->GetGetOwnPropertyDescriptorString().Dump(thread, os); in Dump()
2930 globalConst->GetDefinePropertyString().Dump(thread, os); in Dump()
2932 globalConst->GetHasString().Dump(thread, os); in Dump()
2934 globalConst->GetDeletePropertyString().Dump(thread, os); in Dump()
2936 globalConst->GetEnumerateString().Dump(thread, os); in Dump()
2938 globalConst->GetOwnKeysString().Dump(thread, os); in Dump()
2940 globalConst->GetApplyString().Dump(thread, os); in Dump()
2942 globalConst->GetProxyString().Dump(thread, os); in Dump()
2944 globalConst->GetRevokeString().Dump(thread, os); in Dump()
2946 globalConst->GetProxyConstructString().Dump(thread, os); in Dump()
2948 globalConst->GetProxyCallString().Dump(thread, os); in Dump()
2950 globalConst->GetDoneString().Dump(thread, os); in Dump()
2952 globalConst->GetNegativeZeroString().Dump(thread, os); in Dump()
2954 globalConst->GetNextString().Dump(thread, os); in Dump()
2956 globalConst->GetPromiseThenString().Dump(thread, os); in Dump()
2958 GetPromiseFunction().GetTaggedValue().Dump(thread, os); in Dump()
2960 GetPromiseReactionJob().GetTaggedValue().Dump(thread, os); in Dump()
2962 GetPromiseResolveThenableJob().GetTaggedValue().Dump(thread, os); in Dump()
2964 GetDynamicImportJob().GetTaggedValue().Dump(thread, os); in Dump()
2966 globalConst->GetScriptJobString().Dump(thread, os); in Dump()
2968 globalConst->GetPromiseString().Dump(thread, os); in Dump()
2970 globalConst->GetIdentityString().Dump(thread, os); in Dump()
2972 globalConst->GetAsyncFunctionString().Dump(thread, os); in Dump()
2974 globalConst->GetThrowerString().Dump(thread, os); in Dump()
2976 globalConst->GetUndefined().Dump(thread, os); in Dump()
2979 void JSDataView::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2982 GetDataView(thread).Dump(thread, os); in Dump()
2984 GetViewedArrayBuffer(thread).Dump(thread, os); in Dump()
2989 void JSArrayBuffer::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
2993 GetArrayBufferData(thread).Dump(thread, os); in Dump()
2997 void JSSendableArrayBuffer::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3001 GetArrayBufferData(thread).Dump(thread, os); in Dump()
3005 void PromiseReaction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3008 GetPromiseCapability(thread).Dump(thread, os); in Dump()
3011 GetHandler(thread).Dump(thread, os); in Dump()
3014 void PromiseCapability::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3017 GetPromise(thread).Dump(thread, os); in Dump()
3019 GetResolve(thread).Dump(thread, os); in Dump()
3021 GetReject(thread).Dump(thread, os); in Dump()
3024 void PromiseIteratorRecord::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3027 GetIterator(thread).Dump(thread, os); in Dump()
3031 void PromiseRecord::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3034 GetValue(thread).Dump(thread, os); in Dump()
3037 void ResolvingFunctionsRecord::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3040 GetResolveFunction(thread).Dump(thread, os); in Dump()
3042 GetRejectFunction(thread).Dump(thread, os); in Dump()
3045 void AsyncGeneratorRequest::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3048 GetCompletion(thread).Dump(thread, os); in Dump()
3050 GetCapability(thread).Dump(thread, os); in Dump()
3053 void AsyncIteratorRecord::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3056 GetIterator(thread).Dump(thread, os); in Dump()
3058 GetNextMethod(thread).Dump(thread, os); in Dump()
3062 void JSAsyncFromSyncIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3065 GetSyncIteratorRecord(thread).Dump(thread, os); in Dump()
3066 JSObject::Dump(thread, os); in Dump()
3069 void JSAsyncFromSyncIterUnwarpFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3072 GetDone(thread).Dump(thread, os); in Dump()
3073 JSObject::Dump(thread, os); in Dump()
3076 void JSPromise::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3080 GetPromiseResult(thread).Dump(thread, os); in Dump()
3082 GetPromiseFulfillReactions(thread).Dump(thread, os); in Dump()
3084 GetPromiseRejectReactions(thread).Dump(thread, os); in Dump()
3086 JSObject::Dump(thread, os); in Dump()
3089 void JSPromiseReactionsFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3092 GetPromise(thread).Dump(thread, os); in Dump()
3094 GetAlreadyResolved(thread).Dump(thread, os); in Dump()
3095 JSObject::Dump(thread, os); in Dump()
3098 void JSPromiseExecutorFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3101 GetCapability(thread).Dump(thread, os); in Dump()
3102 JSObject::Dump(thread, os); in Dump()
3105 void JSAsyncModuleFulfilledFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3108 GetModule(thread).Dump(thread, os); in Dump()
3109 JSObject::Dump(thread, os); in Dump()
3112 void JSAsyncModuleRejectedFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3115 GetModule(thread).Dump(thread, os); in Dump()
3116 JSObject::Dump(thread, os); in Dump()
3119 void JSPromiseAllResolveElementFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3122 GetIndex(thread).Dump(thread, os); in Dump()
3124 GetValues(thread).Dump(thread, os); in Dump()
3126 GetCapabilities(thread).Dump(thread, os); in Dump()
3128 GetRemainingElements(thread).Dump(thread, os); in Dump()
3130 GetAlreadyCalled(thread).Dump(thread, os); in Dump()
3131 JSObject::Dump(thread, os); in Dump()
3134 void JSPromiseAnyRejectElementFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3137 JSTaggedValue(GetIndex()).Dump(thread, os); in Dump()
3139 GetErrors(thread).Dump(thread, os); in Dump()
3141 GetCapability(thread).Dump(thread, os); in Dump()
3143 GetRemainingElements(thread).Dump(thread, os); in Dump()
3145 GetAlreadyCalled(thread).Dump(thread, os); in Dump()
3146 JSObject::Dump(thread, os); in Dump()
3149 void JSPromiseAllSettledElementFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3152 GetAlreadyCalled(thread).Dump(thread, os); in Dump()
3154 JSTaggedValue(GetIndex()).Dump(thread, os); in Dump()
3156 GetValues(thread).Dump(thread, os); in Dump()
3158 GetCapability(thread).Dump(thread, os); in Dump()
3160 GetRemainingElements(thread).Dump(thread, os); in Dump()
3161 JSObject::Dump(thread, os); in Dump()
3164 void JSPromiseFinallyFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3167 GetConstructor(thread).Dump(thread, os); in Dump()
3169 GetOnFinally(thread).Dump(thread, os); in Dump()
3170 JSObject::Dump(thread, os); in Dump()
3173 void JSPromiseValueThunkOrThrowerFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3176 GetResult(thread).Dump(thread, os); in Dump()
3177 JSObject::Dump(thread, os); in Dump()
3180 void JSAsyncGeneratorResNextRetProRstFtn::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3183 GetAsyncGeneratorObject(thread).Dump(thread, os); in Dump()
3184 JSObject::Dump(thread, os); in Dump()
3187 void MicroJobQueue::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3190 GetPromiseJobQueue(thread).Dump(thread, os); in Dump()
3192 GetScriptJobQueue(thread).Dump(thread, os); in Dump()
3195 void PendingJob::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3198 GetJob(thread).Dump(thread, os); in Dump()
3201 GetArguments(thread).Dump(thread, os); in Dump()
3215 void CompletionRecord::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3219 GetValue(thread).Dump(thread, os); in Dump()
3222 void JSProxyRevocFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3226 GetRevocableProxy(thread).Dump(thread, os); in Dump()
3230 void JSAsyncFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3232 JSFunction::Dump(thread, os); in Dump()
3235 void JSAsyncAwaitStatusFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3239 GetAsyncContext(thread).Dump(thread, os); in Dump()
3243 void JSGeneratorFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3245 JSFunction::Dump(thread, os); in Dump()
3248 void JSAsyncGeneratorFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3250 JSFunction::Dump(thread, os); in Dump()
3253 void JSIntlBoundFunction::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3255 JSObject::Dump(thread, os); in Dump()
3258 void PropertyBox::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3261 GetValue(thread).Dump(thread, os); in Dump()
3265 void PrototypeHandler::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3268 GetHandlerInfo(thread).Dump(thread, os); in Dump()
3271 GetProtoCell(thread).Dump(thread, os); in Dump()
3274 GetHolder(thread).Dump(thread, os); in Dump()
3278 void TransitionHandler::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3281 GetHandlerInfo(thread).Dump(thread, os); in Dump()
3284 GetTransitionHClass(thread).Dump(thread, os); in Dump()
3288 void TransWithProtoHandler::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3291 GetHandlerInfo(thread).Dump(thread, os); in Dump()
3294 GetTransitionHClass(thread).Dump(thread, os); in Dump()
3297 GetProtoCell(thread).Dump(thread, os); in Dump()
3301 void StoreAOTHandler::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3304 GetHandlerInfo(thread).Dump(thread, os); in Dump()
3307 GetProtoCell(thread).Dump(thread, os); in Dump()
3310 GetHolder(thread).Dump(thread, os); in Dump()
3314 void JSRealm::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3317 GetValue(thread).Dump(thread, os); in Dump()
3320 GetGlobalEnv(thread).Dump(thread, os); in Dump()
3322 JSObject::Dump(thread, os); in Dump()
3325 void JSIntl::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3328 GetFallbackSymbol(thread).Dump(thread, os); in Dump()
3330 JSObject::Dump(thread, os); in Dump()
3333 void JSLocale::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3336 GetIcuField(thread).Dump(thread, os); in Dump()
3338 JSObject::Dump(thread, os); in Dump()
3341 void JSDateTimeFormat::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3344 GetLocale(thread).Dump(thread, os); in Dump()
3347 GetCalendar(thread).Dump(thread, os); in Dump()
3350 GetNumberingSystem(thread).Dump(thread, os); in Dump()
3353 GetTimeZone(thread).Dump(thread, os); in Dump()
3358 GetLocaleIcu(thread).Dump(thread, os); in Dump()
3361 GetSimpleDateTimeFormatIcu(thread).Dump(thread, os); in Dump()
3364 GetIso8601(thread).Dump(thread, os); in Dump()
3371 GetBoundFormat(thread).Dump(thread, os); in Dump()
3373 JSObject::Dump(thread, os); in Dump()
3376 void JSRelativeTimeFormat::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3379 GetLocale(thread).Dump(thread, os); in Dump()
3382 GetNumberingSystem(thread).Dump(thread, os); in Dump()
3389 GetIcuField(thread).Dump(thread, os); in Dump()
3391 JSObject::Dump(thread, os); in Dump()
3394 void JSNumberFormat::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3397 GetLocale(thread).Dump(thread, os); in Dump()
3399 GetNumberingSystem(thread).Dump(thread, os); in Dump()
3402 GetCurrency(thread).Dump(thread, os); in Dump()
3406 GetUnit(thread).Dump(thread, os); in Dump()
3409 GetMinimumIntegerDigits(thread).Dump(thread, os); in Dump()
3411 GetMinimumFractionDigits(thread).Dump(thread, os); in Dump()
3413 GetMaximumFractionDigits(thread).Dump(thread, os); in Dump()
3415 GetMinimumSignificantDigits(thread).Dump(thread, os); in Dump()
3417 GetMaximumSignificantDigits(thread).Dump(thread, os); in Dump()
3419 GetUseGrouping(thread).Dump(thread, os); in Dump()
3425 GetBoundFormat(thread).Dump(thread, os); in Dump()
3427 GetIcuField(thread).Dump(thread, os); in Dump()
3429 JSObject::Dump(thread, os); in Dump()
3432 void JSCollator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3435 GetIcuField(thread).Dump(thread, os); in Dump()
3437 GetLocale(thread).Dump(thread, os); in Dump()
3442 GetCollation(thread).Dump(thread, os); in Dump()
3446 GetBoundCompare(thread).Dump(thread, os); in Dump()
3448 JSObject::Dump(thread, os); in Dump()
3451 void JSPluralRules::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3454 GetLocale(thread).Dump(thread, os); in Dump()
3459 GetMinimumIntegerDigits(thread).Dump(thread, os); in Dump()
3462 GetMinimumFractionDigits(thread).Dump(thread, os); in Dump()
3465 GetMaximumFractionDigits(thread).Dump(thread, os); in Dump()
3468 GetMinimumSignificantDigits(thread).Dump(thread, os); in Dump()
3471 GetMaximumSignificantDigits(thread).Dump(thread, os); in Dump()
3476 GetIcuPR(thread).Dump(thread, os); in Dump()
3479 GetIcuNF(thread).Dump(thread, os); in Dump()
3481 JSObject::Dump(thread, os); in Dump()
3484 void JSDisplayNames::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3487 GetLocale(thread).Dump(thread, os); in Dump()
3496 GetIcuLDN(thread).Dump(thread, os); in Dump()
3498 JSObject::Dump(thread, os); in Dump()
3501 void JSSegmenter::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3504 GetLocale(thread).Dump(thread, os); in Dump()
3509 GetIcuField(thread).Dump(thread, os); in Dump()
3511 JSObject::Dump(thread, os); in Dump()
3514 void JSSegments::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3517 GetSegmentsString(thread).Dump(thread, os); in Dump()
3520 GetUnicodeString(thread).Dump(thread, os); in Dump()
3525 GetIcuField(thread).Dump(thread, os); in Dump()
3527 JSObject::Dump(thread, os); in Dump()
3530 void JSSegmentIterator::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3533 GetIteratedString(thread).Dump(thread, os); in Dump()
3536 GetUnicodeString(thread).Dump(thread, os); in Dump()
3541 GetIcuField(thread).Dump(thread, os); in Dump()
3543 JSObject::Dump(thread, os); in Dump()
3546 void JSListFormat::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3549 GetLocale(thread).Dump(thread, os); in Dump()
3556 GetIcuLF(thread).Dump(thread, os); in Dump()
3558 JSObject::Dump(thread, os); in Dump()
3561 void JSGeneratorObject::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3564 GetGeneratorContext(thread).Dump(thread, os); in Dump()
3567 GetResumeResult(thread).Dump(thread, os); in Dump()
3573 JSObject::Dump(thread, os); in Dump()
3576 void JSAsyncGeneratorObject::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3579 GetGeneratorContext(thread).Dump(thread, os); in Dump()
3582 GetAsyncGeneratorQueue(thread).Dump(thread, os); in Dump()
3585 GetGeneratorBrand(thread).Dump(thread, os); in Dump()
3588 GetResumeResult(thread).Dump(thread, os); in Dump()
3594 JSObject::Dump(thread, os); in Dump()
3597 void JSAsyncFuncObject::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3600 GetPromise(thread).Dump(thread, os); in Dump()
3604 void GeneratorContext::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3607 GetRegsArray(thread).Dump(thread, os); in Dump()
3610 GetMethod(thread).Dump(thread, os); in Dump()
3613 GetThis(thread).Dump(thread, os); in Dump()
3616 GetAcc(thread).Dump(thread, os); in Dump()
3619 GetGeneratorObject(thread).Dump(thread, os); in Dump()
3622 GetLexicalEnv(thread).Dump(thread, os); in Dump()
3630 void EnumCache::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3632 os << " - EnumCacheOwn: " << GetEnumCacheOwn(thread); in Dump()
3634 os << " - EnumCacheAll: " << GetEnumCacheAll(thread); in Dump()
3636 os << " - ProtoChainInfoEnumCache: " << GetProtoChainInfoEnumCache(thread); in Dump()
3642 void ProtoChangeMarker::Dump([[maybe_unused]]const JSThread *thread, std::ostream &os) const in Dump() argument
3649 void MarkerCell::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
3654 void ProtoChangeDetails::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3657 GetChangeListener(thread).Dump(thread, os); in Dump()
3662 void TrackInfo::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
3669 void MachineCode::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
3675 void ClassInfoExtractor::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3678 GetNonStaticKeys(thread).Dump(thread, os); in Dump()
3681 GetNonStaticProperties(thread).Dump(thread, os); in Dump()
3684 GetNonStaticElements(thread).Dump(thread, os); in Dump()
3687 GetStaticKeys(thread).Dump(thread, os); in Dump()
3690 GetStaticProperties(thread).Dump(thread, os); in Dump()
3693 GetStaticElements(thread).Dump(thread, os); in Dump()
3697 void SourceTextModule::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3700 GetEnvironment(thread).Dump(thread, os); in Dump()
3703 GetNamespace(thread).Dump(thread, os); in Dump()
3712 GetModuleRequests(thread).Dump(thread, os); in Dump()
3715 GetRequestedModules(thread).Dump(thread, os); in Dump()
3718 GetImportEntries(thread).Dump(thread, os); in Dump()
3721 GetLocalExportEntries(thread).Dump(thread, os); in Dump()
3724 GetIndirectExportEntries(thread).Dump(thread, os); in Dump()
3727 GetStarExportEntries(thread).Dump(thread, os); in Dump()
3733 GetException(thread).Dump(thread, os); in Dump()
3742 GetNameDictionary(thread).Dump(thread, os); in Dump()
3746 if (GetCycleRoot(thread) != JSTaggedValue(this)) { in Dump()
3747 GetCycleRoot(thread).Dump(thread, os); in Dump()
3753 GetTopLevelCapability(thread).Dump(thread, os); in Dump()
3756 GetAsyncParentModules(thread).Dump(thread, os); in Dump()
3759 GetSendableEnv(thread).Dump(thread, os); in Dump()
3772 void ImportEntry::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3778 GetImportName(thread).Dump(thread, os); in Dump()
3781 GetLocalName(thread).Dump(thread, os); in Dump()
3785 void LocalExportEntry::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3788 GetExportName(thread).Dump(thread, os); in Dump()
3791 GetLocalName(thread).Dump(thread, os); in Dump()
3797 void IndirectExportEntry::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3800 GetExportName(thread).Dump(thread, os); in Dump()
3806 GetImportName(thread).Dump(thread, os); in Dump()
3810 void StarExportEntry::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
3817 void ResolvedBinding::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3820 GetModule(thread).Dump(thread, os); in Dump()
3823 GetBindingName(thread).Dump(thread, os); in Dump()
3827 void ResolvedIndexBinding::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3830 GetModule(thread).Dump(thread, os); in Dump()
3838 void ResolvedRecordIndexBinding::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3841 GetModuleRecord(thread).Dump(thread, os); in Dump()
3844 GetAbcFileName(thread).Dump(thread, os); in Dump()
3850 void ResolvedRecordBinding::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3853 GetModuleRecord(thread).Dump(thread, os); in Dump()
3856 GetBindingName(thread).Dump(thread, os); in Dump()
3860 void ModuleNamespace::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3863 GetExports(thread).Dump(thread, os); in Dump()
3867 void NativeModuleFailureInfo::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3870 GetArkNativeModuleFailureInfo(thread).Dump(thread, os); in Dump()
3874 void CjsModule::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3877 GetPath(thread).Dump(thread, os); in Dump()
3880 GetFilename(thread).Dump(thread, os); in Dump()
3884 void CjsRequire::Dump([[maybe_unused]] const JSThread *thread, std::ostream &os) const in Dump() argument
3890 void CjsExports::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3896 jshclass->GetPrototype(thread).DumpTaggedValue(thread, os); in Dump()
3899 TaggedArray *properties = TaggedArray::Cast(GetProperties(thread).GetTaggedObject()); in Dump()
3903 JSTaggedValue attrs = jshclass->GetLayout(thread); in Dump()
3912 JSTaggedValue key = layoutInfo->GetKey(thread, i); in Dump()
3913 PropertyAttributes attr = layoutInfo->GetAttr(thread, i); in Dump()
3916 DumpPropertyKey(thread, key, os); in Dump()
3920 val = GetPropertyInlinedPropsWithRep(thread, i, attr); in Dump()
3922 … val = properties->Get(thread, i - static_cast<int>(jshclass->GetInlinedProperties())); in Dump()
3924 val.DumpTaggedValue(thread, os); in Dump()
3932 dict->Dump(thread, os); in Dump()
3936 void JSFunctionBase::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3939 GetMethod(thread).Dump(thread, os); in Dump()
3943 void Method::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3946 os << GetMethodName(thread); in Dump()
3949 GetConstantPool(thread).Dump(thread, os); in Dump()
3957 void ClassLiteral::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
3964 GetArray(thread).Dump(thread, os); in Dump()
3971 static void DumpArrayClass(const JSThread *thread, const TaggedArray *arr, std::vector<Reference> &… in DumpArrayClass() argument
3977 JSTaggedValue val(arr->Get(thread, i)); in DumpArrayClass()
3983 static void DumpMutantTaggedArrayClass(const JSThread *thread, const MutantTaggedArray *arr, in DumpMutantTaggedArrayClass() argument
3990 JSTaggedValue val(arr->Get(thread, i)); in DumpMutantTaggedArrayClass()
3996 static void DumpCOWMutantTaggedArrayClass(const JSThread *thread, const COWMutantTaggedArray *arr, in DumpCOWMutantTaggedArrayClass() argument
4003 JSTaggedValue val(arr->Get(thread, i)); in DumpCOWMutantTaggedArrayClass()
4009 static void DumpElementClass(const JSThread *thread, const TaggedArray *arr, std::vector<Reference>… in DumpElementClass() argument
4015 JSTaggedValue val(arr->Get(thread, i)); in DumpElementClass()
4020 static void DumpConstantPoolClass(const JSThread *thread, const ConstantPool *arr, std::vector<Refe… in DumpConstantPoolClass() argument
4026 JSTaggedValue val(arr->GetObjectFromCache(thread, i)); in DumpConstantPoolClass()
4038 static void DumpObject(const JSThread *thread, TaggedObject *obj, std::vector<Reference> &vec, bool… in DumpObject() argument
4047 JSHClass::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4056 DumpArrayClass(thread, TaggedArray::Cast(obj), vec); in DumpObject()
4059 DumpMutantTaggedArrayClass(thread, MutantTaggedArray::Cast(obj), vec); in DumpObject()
4062 DumpCOWMutantTaggedArrayClass(thread, COWMutantTaggedArray::Cast(obj), vec); in DumpObject()
4065 DumpConstantPoolClass(thread, ConstantPool::Cast(obj), vec); in DumpObject()
4070 ProfileTypeInfoCell::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4073 FunctionTemplate::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4076 VTable::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4079 ProfileTypeInfo::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4103 JSObject::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4108 JSFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4111 JSBoundFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4114 JSSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4117 JSSharedSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4120 JSMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4123 JSSharedMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4126 JSWeakSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4129 JSWeakMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4132 JSWeakRef::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4135 JSFinalizationRegistry::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4138 CellRecord::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4141 JSRegExp::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4144 JSDate::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4147 JSArray::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4150 JSSharedArray::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4164 JSTypedArray::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4178 JSSharedTypedArray::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4181 BigInt::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4184 ByteArray::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4187 JSProxy::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4190 JSPrimitiveRef::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4193 JSSymbol::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4197 AccessorData::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4200 JSDataView::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4203 PromiseReaction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4206 PromiseCapability::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4209 PromiseIteratorRecord::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4212 PromiseRecord::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4215 ResolvingFunctionsRecord::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4218 JSPromise::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4221 JSPromiseReactionsFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4224 JSPromiseExecutorFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4227 JSAsyncModuleFulfilledFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4230 JSAsyncModuleRejectedFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4233 AsyncGeneratorRequest::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4236 AsyncIteratorRecord::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4239 JSAsyncFromSyncIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4242 JSAsyncFromSyncIterUnwarpFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4245 JSPromiseAllResolveElementFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4248 JSPromiseAnyRejectElementFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4251 JSPromiseAllSettledElementFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4254 JSPromiseFinallyFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4257 JSPromiseValueThunkOrThrowerFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4260 JSAsyncGeneratorResNextRetProRstFtn::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4263 MicroJobQueue::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4266 PendingJob::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4269 CompletionRecord::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4283 JSArrayBuffer::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4286 JSArrayBuffer::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4289 JSSendableArrayBuffer::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4292 JSProxyRevocFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4296 JSAsyncFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4299 JSAsyncAwaitStatusFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4302 JSGeneratorFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4305 JSAsyncGeneratorFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4308 JSIntlBoundFunction::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4311 JSRealm::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4315 JSIntl::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4318 JSLocale::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4321 JSDateTimeFormat::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4324 JSRelativeTimeFormat::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4327 JSNumberFormat::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4330 JSCollator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4333 JSPluralRules::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4336 JSDisplayNames::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4339 JSSegmenter::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4342 JSSegments::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4345 JSSegmentIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4348 JSListFormat::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4366 CjsModule::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4369 CjsExports::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4372 CjsRequire::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4375 JSGeneratorObject::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4378 JSAsyncGeneratorObject::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4381 JSAsyncFuncObject::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4384 GeneratorContext::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4387 JSAPIArrayList::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4390 JSAPIArrayListIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4393 LinkedNode::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4398 JSAPIHashMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4401 JSAPIHashSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4404 JSAPIHashMapIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4407 JSAPIHashSetIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4410 JSAPILightWeightMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4413 JSAPILightWeightMapIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4416 JSAPILightWeightSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4419 JSAPILightWeightSetIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4422 JSAPITreeMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4425 JSAPITreeSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4428 JSAPITreeMapIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4431 JSAPITreeSetIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4434 JSAPIVector::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4437 JSAPIVectorIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4440 JSAPIBitVector::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4443 JSAPIBitVectorIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4446 JSAPIFastBuffer::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4449 JSAPIQueue::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4452 JSAPIQueueIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4455 JSAPIDeque::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4458 JSAPIDequeIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4461 JSAPIStack::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4464 JSAPIStackIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4467 JSAPIList::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4470 JSAPILinkedList::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4473 JSAPIListIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4476 JSAPILinkedListIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4479 SourceTextModule::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4482 ImportEntry::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4485 LocalExportEntry::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4488 IndirectExportEntry::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4491 StarExportEntry::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4494 ResolvedBinding::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4497 ResolvedIndexBinding::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4500 ResolvedRecordIndexBinding::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4503 ResolvedRecordBinding::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4506 ModuleNamespace::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4509 NativeModuleFailureInfo::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4512 JSAPIPlainArray::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4515 JSAPIPlainArrayIterator::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4523 PropertyBox::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4526 DumpArrayClass(thread, TaggedArray::Cast(obj), vec); in DumpObject()
4529 GlobalEnv::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4532 EnumCache::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4535 ProtoChangeMarker::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4538 MarkerCell::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4541 ProtoChangeDetails::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4544 TrackInfo::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4547 Program::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4550 MachineCode::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4553 TransitionHandler::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4556 TransWithProtoHandler::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4559 StoreAOTHandler::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4562 PrototypeHandler::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4565 ClassInfoExtractor::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4568 Method::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4571 ClassLiteral::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
4581 static inline void EcmaStringToStd(const JSThread *thread, CString &res, EcmaString *str) in EcmaStringToStd() argument
4588 CString string = ConvertToString(thread, str); in EcmaStringToStd()
4592 static void KeyToStd(const JSThread *thread, CString &res, JSTaggedValue key) in KeyToStd() argument
4605 EcmaStringToStd(thread, res, EcmaString::Cast(key.GetTaggedObject())); in KeyToStd()
4608 JSTaggedValue desc = sym->GetDescription(thread); in KeyToStd()
4610 EcmaStringToStd(thread, res, EcmaString::Cast(desc.GetTaggedObject())); in KeyToStd()
4616 void JSAPIPlainArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4619 TaggedArray *keys = TaggedArray::Cast(GetKeys(thread).GetTaggedObject()); in DumpForSnapshot()
4620 TaggedArray *values = TaggedArray::Cast(GetValues(thread).GetTaggedObject()); in DumpForSnapshot()
4625 KeyToStd(thread, str, keys->Get(thread, i)); in DumpForSnapshot()
4626 vec.emplace_back(str, values->Get(thread, i)); in DumpForSnapshot()
4628 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
4631 void JSTaggedValue::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec, bool isVmM… in DumpForSnapshot() argument
4634 return DumpObject(thread, GetTaggedObject(), vec, isVmMode); in DumpForSnapshot()
4640 void NumberDictionary::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4646 JSTaggedValue key(GetKey(thread, hashIndex)); in DumpForSnapshot()
4648 JSTaggedValue val(GetValue(thread, hashIndex)); in DumpForSnapshot()
4655 void NameDictionary::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4661 JSTaggedValue key(GetKey(thread, hashIndex)); in DumpForSnapshot()
4663 JSTaggedValue val(GetValue(thread, hashIndex)); in DumpForSnapshot()
4665 KeyToStd(thread, str, key); in DumpForSnapshot()
4671 void GlobalDictionary::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4677 JSTaggedValue key(GetKey(thread, hashIndex)); in DumpForSnapshot()
4680 KeyToStd(thread, str, key); in DumpForSnapshot()
4681 JSTaggedValue val = GetValue(thread, hashIndex); in DumpForSnapshot()
4687 void LinkedHashSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4693 JSTaggedValue key(GetKey(thread, hashIndex)); in DumpForSnapshot()
4696 KeyToStd(thread, str, key); in DumpForSnapshot()
4702 void LinkedHashMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4708 JSTaggedValue key(GetKey(thread, hashIndex)); in DumpForSnapshot()
4710 JSTaggedValue val = GetValue(thread, hashIndex); in DumpForSnapshot()
4712 KeyToStd(thread, str, key); in DumpForSnapshot()
4718 void TaggedHashArray::Dump(const JSThread *thread, std::ostream &os) const in Dump() argument
4720 DumpArrayClass(thread, this, os); in Dump()
4723 void TaggedHashArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4729 JSTaggedValue value = Get(thread, hashIndex); in DumpForSnapshot()
4732 node->DumpForSnapshot(thread, vec); in DumpForSnapshot()
4738 void DumpForSnapshotTaggedTreeEntry(const JSThread *thread, T tree, int index, std::vector<Referenc… in DumpForSnapshotTaggedTreeEntry() argument
4743 vec.emplace_back("key", JSTaggedValue(tree->GetKey(thread, index))); in DumpForSnapshotTaggedTreeEntry()
4745 vec.emplace_back("value", JSTaggedValue(tree->GetValue(thread, index))); in DumpForSnapshotTaggedTreeEntry()
4752 void TaggedTreeMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4755 vec.emplace_back("Elements", TaggedArray::Get(thread, NUMBER_OF_ELEMENTS_INDEX)); in DumpForSnapshot()
4756 vec.emplace_back("Delete", TaggedArray::Get(thread, NUMBER_OF_HOLE_ENTRIES_INDEX)); in DumpForSnapshot()
4757 vec.emplace_back("Capacity", TaggedArray::Get(thread, CAPACITY_INDEX)); in DumpForSnapshot()
4758 vec.emplace_back("RootNode", TaggedArray::Get(thread, ROOT_INDEX)); in DumpForSnapshot()
4759 vec.emplace_back("CompareFunction", TaggedArray::Get(thread, COMPARE_FUNCTION_INDEX)); in DumpForSnapshot()
4763 JSTaggedValue key(GetKey(thread, index)); in DumpForSnapshot()
4765 JSTaggedValue val = GetValue(thread, index); in DumpForSnapshot()
4767 KeyToStd(thread, str, key); in DumpForSnapshot()
4770 … DumpForSnapshotTaggedTreeEntry(thread, const_cast<TaggedTreeMap *>(this), index, vec, true); in DumpForSnapshot()
4775 void TaggedTreeSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4778 vec.emplace_back("Elements", TaggedArray::Get(thread, NUMBER_OF_ELEMENTS_INDEX)); in DumpForSnapshot()
4779 vec.emplace_back("Delete", TaggedArray::Get(thread, NUMBER_OF_HOLE_ENTRIES_INDEX)); in DumpForSnapshot()
4780 vec.emplace_back("Capacity", TaggedArray::Get(thread, CAPACITY_INDEX)); in DumpForSnapshot()
4781 vec.emplace_back("RootNode", TaggedArray::Get(thread, ROOT_INDEX)); in DumpForSnapshot()
4782 vec.emplace_back("CompareFunction", TaggedArray::Get(thread, COMPARE_FUNCTION_INDEX)); in DumpForSnapshot()
4786 JSTaggedValue key(GetKey(thread, index)); in DumpForSnapshot()
4789 KeyToStd(thread, str, key); in DumpForSnapshot()
4792 … DumpForSnapshotTaggedTreeEntry(thread, const_cast<TaggedTreeSet *>(this), index, vec, true); in DumpForSnapshot()
4797 void TaggedDoubleList::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4803 JSTaggedValue val = GetElement(thread, index); in DumpForSnapshot()
4805 KeyToStd(thread, str, JSTaggedValue(index)); in DumpForSnapshot()
4810 void TaggedSingleList::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4816 JSTaggedValue val = GetElement(thread, index); in DumpForSnapshot()
4818 KeyToStd(thread, str, JSTaggedValue(index)); in DumpForSnapshot()
4823 void JSObject::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4828 vec.emplace_back(CString("__proto__"), jshclass->GetPrototype(thread)); in DumpForSnapshot()
4830 vec.emplace_back(CString("ArkInternalHash"), JSTaggedValue(GetHash(thread))); in DumpForSnapshot()
4831 JSTaggedType hashField = Barriers::GetTaggedValue(thread, this, HASH_OFFSET); in DumpForSnapshot()
4836 TaggedArray *elements = TaggedArray::Cast(GetElements(thread).GetTaggedObject()); in DumpForSnapshot()
4840 DumpElementClass(thread, elements, vec); in DumpForSnapshot()
4843 dict->DumpForSnapshot(thread, vec); in DumpForSnapshot()
4846 TaggedArray *properties = TaggedArray::Cast(GetProperties(thread).GetTaggedObject()); in DumpForSnapshot()
4849 dict->DumpForSnapshot(thread, vec); in DumpForSnapshot()
4854 JSTaggedValue attrs = jshclass->GetLayout(thread); in DumpForSnapshot()
4863 JSTaggedValue key = layoutInfo->GetKey(thread, i); in DumpForSnapshot()
4864 PropertyAttributes attr = layoutInfo->GetAttr(thread, i); in DumpForSnapshot()
4868 val = GetPropertyInlinedPropsWithRep(thread, i, attr); in DumpForSnapshot()
4870 … val = properties->Get(thread, i - static_cast<int>(jshclass->GetInlinedProperties())); in DumpForSnapshot()
4874 KeyToStd(thread, str, key); in DumpForSnapshot()
4879 dict->DumpForSnapshot(thread, vec); in DumpForSnapshot()
4883 void JSHClass::DumpForSnapshot(const JSThread *thread, [[maybe_unused]] std::vector<Reference> &vec… in DumpForSnapshot() argument
4886 vec.emplace_back(CString("__proto__"), GetPrototype(thread)); in DumpForSnapshot()
4887 vec.emplace_back(CString("Layout"), GetLayout(thread)); in DumpForSnapshot()
4888 vec.emplace_back(CString("Transitions"), GetTransitions(thread)); in DumpForSnapshot()
4889 vec.emplace_back(CString("Parent"), GetParent(thread)); in DumpForSnapshot()
4890 vec.emplace_back(CString("ProtoChangeMarker"), GetProtoChangeMarker(thread)); in DumpForSnapshot()
4891 vec.emplace_back(CString("ProtoChangeDetails"), GetProtoChangeDetails(thread)); in DumpForSnapshot()
4892 vec.emplace_back(CString("EnumCache"), GetEnumCache(thread)); in DumpForSnapshot()
4898 void JSFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4900 vec.emplace_back(CString("ProtoOrHClass"), GetProtoOrHClass(thread)); in DumpForSnapshot()
4901 vec.emplace_back(CString("LexicalEnv"), GetLexicalEnv(thread)); in DumpForSnapshot()
4902 vec.emplace_back(CString("RawProfileTypeInfo"), GetRawProfileTypeInfo(thread)); in DumpForSnapshot()
4903 vec.emplace_back(CString("HomeObject"), GetHomeObject(thread)); in DumpForSnapshot()
4904 vec.emplace_back(CString("Module"), GetModule(thread)); in DumpForSnapshot()
4905 vec.emplace_back(CString("Method"), GetMethod(thread)); in DumpForSnapshot()
4906 if ((!GetMethod(thread).IsNull()) && (!GetMethod(thread).IsUndefined())) { in DumpForSnapshot()
4907 …ec.emplace_back(CString("FunctionKind"), JSTaggedValue(static_cast<int>(GetFunctionKind(thread)))); in DumpForSnapshot()
4909 vec.emplace_back(CString("FunctionExtraInfo"), GetFunctionExtraInfo(thread)); in DumpForSnapshot()
4910 vec.emplace_back(CString("Method"), GetMethod(thread)); in DumpForSnapshot()
4911 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
4914 void Method::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4916 vec.emplace_back(CString("MethodName"), JSTaggedValue(GetMethodName(thread))); in DumpForSnapshot()
4917 vec.emplace_back(CString("ConstantPool"), GetConstantPool(thread)); in DumpForSnapshot()
4920 void Program::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4922 vec.emplace_back(CString("MainFunction"), GetMainFunction(thread)); in DumpForSnapshot()
4925 void LinkedNode::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4927 JSTaggedValue next = GetNext(thread); in DumpForSnapshot()
4931 nextNode->DumpForSnapshot(thread, vec); in DumpForSnapshot()
4933 vec.emplace_back(CString("Key"), GetKey(thread)); in DumpForSnapshot()
4934 JSTaggedValue key = GetKey(thread); in DumpForSnapshot()
4936 KeyToStd(thread, str, key); in DumpForSnapshot()
4937 vec.emplace_back(str, GetValue(thread)); in DumpForSnapshot()
4940 void ConstantPool::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4942 DumpArrayClass(thread, this, vec); in DumpForSnapshot()
4945 void ProfileTypeInfoCell::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4947 vec.emplace_back(CString("Value"), GetValue(thread)); in DumpForSnapshot()
4948 vec.emplace_back(CString("Handle"), GetHandle(thread)); in DumpForSnapshot()
4951 void FunctionTemplate::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4953 vec.emplace_back(CString("Method"), GetMethod(thread)); in DumpForSnapshot()
4954 vec.emplace_back(CString("Module"), GetModule(thread)); in DumpForSnapshot()
4955 vec.emplace_back(CString("RawProfileTypeInfo"), GetRawProfileTypeInfo(thread)); in DumpForSnapshot()
4959 void ExtraProfileTypeInfo::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
4961 vec.emplace_back(CString("Receiver"), GetReceiverObject(thread)); in DumpForSnapshot()
4962 vec.emplace_back(CString("Holder"), GetHolderObject(thread)); in DumpForSnapshot()
4965 void VTable::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4967 DumpArrayClass(thread, this, vec); in DumpForSnapshot()
4970 void ProfileTypeInfo::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4976 JSTaggedValue val(Get(thread, i)); in DumpForSnapshot()
4982 void COWTaggedArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4984 DumpArrayClass(thread, this, vec); in DumpForSnapshot()
4987 void MutantTaggedArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4989 DumpMutantTaggedArrayClass(thread, this, vec); in DumpForSnapshot()
4992 void COWMutantTaggedArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
4994 DumpCOWMutantTaggedArrayClass(thread, this, vec); in DumpForSnapshot()
4997 void JSBoundFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
4999 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5000 vec.emplace_back(CString("Method"), GetMethod(thread)); in DumpForSnapshot()
5001 vec.emplace_back(CString("BoundTarget"), GetBoundTarget(thread)); in DumpForSnapshot()
5002 vec.emplace_back(CString("BoundThis"), GetBoundThis(thread)); in DumpForSnapshot()
5003 vec.emplace_back(CString("BoundArguments"), GetBoundArguments(thread)); in DumpForSnapshot()
5006 void JSPrimitiveRef::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5008 vec.emplace_back(CString("subValue"), GetValue(thread)); in DumpForSnapshot()
5009 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5012 void BigInt::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Reference> &vec) … in DumpForSnapshot() argument
5018 void JSDate::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5020 vec.emplace_back(CString("time"), GetTime(thread)); in DumpForSnapshot()
5021 vec.emplace_back(CString("localOffset"), GetLocalOffset(thread)); in DumpForSnapshot()
5023 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5026 void JSMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5028 if (!(GetLinkedMap(thread).IsInvalidValue())) { in DumpForSnapshot()
5029 LinkedHashMap *map = LinkedHashMap::Cast(GetLinkedMap(thread).GetTaggedObject()); in DumpForSnapshot()
5030 vec.emplace_back("linkedmap", GetLinkedMap(thread)); in DumpForSnapshot()
5031 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5034 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5037 void JSSharedMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5039 LinkedHashMap *map = LinkedHashMap::Cast(GetLinkedMap(thread).GetTaggedObject()); in DumpForSnapshot()
5040 vec.emplace_back("linkedmap", GetLinkedMap(thread)); in DumpForSnapshot()
5042 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5044 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5047 void JSForInIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5049 vec.emplace_back(CString("Object"), GetObject(thread)); in DumpForSnapshot()
5050 vec.emplace_back(CString("CachedHclass"), GetCachedHClass(thread)); in DumpForSnapshot()
5051 vec.emplace_back(CString("Keys"), GetKeys(thread)); in DumpForSnapshot()
5054 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5057 void JSMapIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5059 if (!(GetIteratedMap(thread).IsInvalidValue())) { in DumpForSnapshot()
5060 LinkedHashMap *map = LinkedHashMap::Cast(GetIteratedMap(thread).GetTaggedObject()); in DumpForSnapshot()
5061 vec.emplace_back("iteratedmap", GetIteratedMap(thread)); in DumpForSnapshot()
5062 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5067 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5070 void JSSharedMapIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5072 JSSharedMap *iteratedMap = JSSharedMap::Cast(GetIteratedMap(thread).GetTaggedObject()); in DumpForSnapshot()
5073 LinkedHashMap *map = LinkedHashMap::Cast(iteratedMap->GetLinkedMap(thread).GetTaggedObject()); in DumpForSnapshot()
5074 vec.emplace_back("iteratedmap", GetIteratedMap(thread)); in DumpForSnapshot()
5075 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5078 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5081 void JSSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5083 if (!(GetLinkedSet(thread).IsInvalidValue())) { in DumpForSnapshot()
5084 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet(thread).GetTaggedObject()); in DumpForSnapshot()
5085 vec.emplace_back("linkedset", GetLinkedSet(thread)); in DumpForSnapshot()
5086 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5089 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5092 void JSSharedSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5094 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet(thread).GetTaggedObject()); in DumpForSnapshot()
5095 vec.emplace_back("linkedset", GetLinkedSet(thread)); in DumpForSnapshot()
5097 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5099 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5102 void JSWeakMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5104 if (!(GetLinkedMap(thread).IsInvalidValue())) { in DumpForSnapshot()
5105 LinkedHashMap *map = LinkedHashMap::Cast(GetLinkedMap(thread).GetTaggedObject()); in DumpForSnapshot()
5106 vec.emplace_back("linkedmap", GetLinkedMap(thread)); in DumpForSnapshot()
5107 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5110 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5113 void JSWeakSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5115 if (!(GetLinkedSet(thread).IsInvalidValue())) { in DumpForSnapshot()
5116 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet(thread).GetTaggedObject()); in DumpForSnapshot()
5117 vec.emplace_back("linkeset", GetLinkedSet(thread)); in DumpForSnapshot()
5118 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5121 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5124 void JSWeakRef::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5126 vec.emplace_back(CString("WeakObject"), GetWeakObject(thread)); in DumpForSnapshot()
5127 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5130 void JSFinalizationRegistry::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) c… in DumpForSnapshot() argument
5132 vec.emplace_back(CString("CleanupCallback"), GetCleanupCallback(thread)); in DumpForSnapshot()
5133 if (!(GetMaybeUnregister(thread).IsInvalidValue())) { in DumpForSnapshot()
5134 vec.emplace_back(CString("MaybeUnregister"), GetMaybeUnregister(thread)); in DumpForSnapshot()
5136 if (!(GetNoUnregister(thread).IsInvalidValue())) { in DumpForSnapshot()
5137 vec.emplace_back(CString("NoUnregister"), GetNoUnregister(thread)); in DumpForSnapshot()
5140 vec.emplace_back(CString("Next"), GetNext(thread)); in DumpForSnapshot()
5141 vec.emplace_back(CString("Prev"), GetPrev(thread)); in DumpForSnapshot()
5142 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5145 void CellRecord::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5147 vec.emplace_back(CString("WeakRefTarget"), GetWeakRefTarget(thread)); in DumpForSnapshot()
5148 vec.emplace_back(CString("HeldValue"), GetHeldValue(thread)); in DumpForSnapshot()
5151 void JSSetIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5153 if (!(GetIteratedSet(thread).IsInvalidValue())) { in DumpForSnapshot()
5154 LinkedHashSet *set = LinkedHashSet::Cast(GetIteratedSet(thread).GetTaggedObject()); in DumpForSnapshot()
5155 vec.emplace_back("iteratedset", GetIteratedSet(thread)); in DumpForSnapshot()
5156 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5161 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5164 void JSSharedSetIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5166 JSSharedSet *iteratedSet = JSSharedSet::Cast(GetIteratedSet(thread).GetTaggedObject()); in DumpForSnapshot()
5167 LinkedHashSet *set = LinkedHashSet::Cast(iteratedSet->GetLinkedSet(thread).GetTaggedObject()); in DumpForSnapshot()
5168 vec.emplace_back("iteratedset", GetIteratedSet(thread)); in DumpForSnapshot()
5169 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5172 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5175 void JSArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5178 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5181 void JSSharedArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5184 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5187 void JSAPIArrayList::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5189 vec.emplace_back(CString("Length"), JSTaggedValue(GetLength(thread))); in DumpForSnapshot()
5190 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5193 void JSAPIArrayListIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) c… in DumpForSnapshot() argument
5195 if (!(GetIteratedArrayList(thread).IsInvalidValue())) { in DumpForSnapshot()
5196 … JSAPIArrayList *arraylist = JSAPIArrayList::Cast(GetIteratedArrayList(thread).GetTaggedObject()); in DumpForSnapshot()
5197 vec.emplace_back("iteratedlist", GetIteratedArrayList(thread)); in DumpForSnapshot()
5198 arraylist->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5201 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5204 void JSAPILightWeightMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5207 vec.emplace_back("Hashes", GetHashes(thread)); in DumpForSnapshot()
5208 vec.emplace_back("Keys", GetKeys(thread)); in DumpForSnapshot()
5209 TaggedArray *keys = TaggedArray::Cast(GetKeys(thread).GetTaggedObject()); in DumpForSnapshot()
5210 TaggedArray *values = TaggedArray::Cast(GetValues(thread).GetTaggedObject()); in DumpForSnapshot()
5215 KeyToStd(thread, str, keys->Get(thread, i)); in DumpForSnapshot()
5216 vec.emplace_back(str, values->Get(thread, i)); in DumpForSnapshot()
5218 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5221 void JSAPILightWeightMapIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &v… in DumpForSnapshot() argument
5223 if (!(GetIteratedLightWeightMap(thread).IsInvalidValue())) { in DumpForSnapshot()
5225 JSAPILightWeightMap::Cast(GetIteratedLightWeightMap(thread).GetTaggedObject()); in DumpForSnapshot()
5226 vec.emplace_back("iteratedmap", GetIteratedLightWeightMap(thread)); in DumpForSnapshot()
5227 map->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5233 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5236 void JSAPIQueue::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5238 vec.emplace_back(CString("Length"), JSTaggedValue(GetLength(thread))); in DumpForSnapshot()
5239 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5242 void JSAPIQueueIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5244 if (!(GetIteratedQueue(thread).IsInvalidValue())) { in DumpForSnapshot()
5245 JSAPIQueue *queue = JSAPIQueue::Cast(GetIteratedQueue(thread).GetTaggedObject()); in DumpForSnapshot()
5246 vec.emplace_back("iteratedqueue", GetIteratedQueue(thread)); in DumpForSnapshot()
5247 queue->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5251 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5254 void JSAPIDeque::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5256 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5259 void JSAPIDequeIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5261 if (!(GetIteratedDeque(thread).IsInvalidValue())) { in DumpForSnapshot()
5262 JSAPIDeque *deque = JSAPIDeque::Cast(GetIteratedDeque(thread).GetTaggedObject()); in DumpForSnapshot()
5263 vec.emplace_back("iterateddeque", GetIteratedDeque(thread)); in DumpForSnapshot()
5264 deque->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5268 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5271 void JSAPILightWeightSet::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5274 TaggedArray *hashes = TaggedArray::Cast(GetHashes(thread).GetTaggedObject()); in DumpForSnapshot()
5275 TaggedArray *values = TaggedArray::Cast(GetValues(thread).GetTaggedObject()); in DumpForSnapshot()
5280 KeyToStd(thread, str, hashes->Get(thread, i)); in DumpForSnapshot()
5281 vec.emplace_back(str, values->Get(thread, i)); in DumpForSnapshot()
5283 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5286 void JSAPILightWeightSetIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &v… in DumpForSnapshot() argument
5288 if (!(GetIteratedLightWeightSet(thread).IsInvalidValue())) { in DumpForSnapshot()
5290 JSAPILightWeightSet::Cast(GetIteratedLightWeightSet(thread).GetTaggedObject()); in DumpForSnapshot()
5291 vec.emplace_back("iteratedset", GetIteratedLightWeightSet(thread)); in DumpForSnapshot()
5292 set->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5297 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5300 void JSAPIStack::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5302 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5305 void JSAPIStackIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5307 if (!(GetIteratedStack(thread).IsInvalidValue())) { in DumpForSnapshot()
5308 JSAPIStack *stack = JSAPIStack::Cast(GetIteratedStack(thread).GetTaggedObject()); in DumpForSnapshot()
5309 vec.emplace_back("iteratedstack", GetIteratedStack(thread)); in DumpForSnapshot()
5310 stack->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5314 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5317 void JSArrayIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5319 if (!(GetIteratedArray(thread).IsInvalidValue())) { in DumpForSnapshot()
5320 JSArray *array = JSArray::Cast(GetIteratedArray(thread).GetTaggedObject()); in DumpForSnapshot()
5321 vec.emplace_back("iteratedarray", GetIteratedArray(thread)); in DumpForSnapshot()
5322 array->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5328 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5331 void JSSharedArrayIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) co… in DumpForSnapshot() argument
5333 JSSharedArray *array = JSSharedArray::Cast(GetIteratedArray(thread).GetTaggedObject()); in DumpForSnapshot()
5334 vec.emplace_back("iteratedarray", GetIteratedArray(thread)); in DumpForSnapshot()
5335 array->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5338 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5341 void JSAPIVector::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5343 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5346 void JSAPIVectorIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5348 if (!(GetIteratedVector(thread).IsInvalidValue())) { in DumpForSnapshot()
5349 JSAPIVector *vector = JSAPIVector::Cast(GetIteratedVector(thread).GetTaggedObject()); in DumpForSnapshot()
5350 vec.emplace_back("iteratedvector", GetIteratedVector(thread)); in DumpForSnapshot()
5351 vector->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5355 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5358 void JSAPIBitVector::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5360 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5363 void JSAPIBitVectorIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) c… in DumpForSnapshot() argument
5365 JSAPIVector *vector = JSAPIVector::Cast(GetIteratedBitVector(thread).GetTaggedObject()); in DumpForSnapshot()
5366 vec.emplace_back("iteratedbitvector", GetIteratedBitVector(thread)); in DumpForSnapshot()
5367 vector->DumpForSnapshot(thread, vec); in DumpForSnapshot()
5369 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5372 void JSAPIFastBuffer::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5374 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5377 void JSStringIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5379 vec.emplace_back(CString("IteratedString"), GetIteratedString(thread)); in DumpForSnapshot()
5381 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5384 void JSTypedArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5389 vec.emplace_back(CString("viewed-array-buffer"), GetViewedArrayBufferOrByteArray(thread)); in DumpForSnapshot()
5390 vec.emplace_back(CString("typed-array-name"), GetTypedArrayName(thread)); in DumpForSnapshot()
5394 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5397 void JSSharedTypedArray::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5402 vec.emplace_back(CString("viewed-array-buffer"), GetViewedArrayBufferOrByteArray(thread)); in DumpForSnapshot()
5403 vec.emplace_back(CString("typed-array-name"), GetTypedArrayName(thread)); in DumpForSnapshot()
5407 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5410 void ByteArray::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Reference> &ve… in DumpForSnapshot() argument
5416 void JSRegExp::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5418 vec.emplace_back(CString("ByteCodeBuffer"), GetByteCodeBuffer(thread)); in DumpForSnapshot()
5419 vec.emplace_back(CString("originalSource"), GetOriginalSource(thread)); in DumpForSnapshot()
5420 vec.emplace_back(CString("originalFlags"), GetOriginalFlags(thread)); in DumpForSnapshot()
5421 vec.emplace_back(CString("groupName"), GetGroupName(thread)); in DumpForSnapshot()
5422 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5425 void JSRegExpIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5427 vec.emplace_back(CString("IteratingRegExp"), GetIteratingRegExp(thread)); in DumpForSnapshot()
5428 vec.emplace_back(CString("IteratedString"), GetIteratedString(thread)); in DumpForSnapshot()
5432 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5435 void JSProxy::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5437 vec.emplace_back(CString("target"), GetTarget(thread)); in DumpForSnapshot()
5438 vec.emplace_back(CString("handler"), GetHandler(thread)); in DumpForSnapshot()
5439 vec.emplace_back(CString("Method"), GetMethod(thread)); in DumpForSnapshot()
5440 vec.emplace_back(CString("PrivateField"), GetPrivateField(thread)); in DumpForSnapshot()
5444 void JSSymbol::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5448 vec.emplace_back(CString("description"), GetDescription(thread)); in DumpForSnapshot()
5451 void AccessorData::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5459 vec.emplace_back(CString("getter"), GetGetter(thread)); in DumpForSnapshot()
5460 vec.emplace_back(CString("setter"), GetSetter(thread)); in DumpForSnapshot()
5463 void LexicalEnv::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5465 DumpArrayClass(thread, this, vec); in DumpForSnapshot()
5468 void SFunctionEnv::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5470 DumpArrayClass(thread, this, vec); in DumpForSnapshot()
5473 void SendableEnv::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5475 DumpArrayClass(thread, this, vec); in DumpForSnapshot()
5478 void GlobalEnv::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Reference> &ve… in DumpForSnapshot() argument
5498 void JSDataView::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5500 vec.emplace_back(CString("data-view"), GetDataView(thread)); in DumpForSnapshot()
5501 vec.emplace_back(CString("buffer"), GetViewedArrayBuffer(thread)); in DumpForSnapshot()
5504 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5507 void JSArrayBuffer::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5509 vec.emplace_back(CString("buffer-data"), GetArrayBufferData(thread)); in DumpForSnapshot()
5512 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5515 void JSSendableArrayBuffer::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) co… in DumpForSnapshot() argument
5517 vec.emplace_back(CString("buffer-data"), GetArrayBufferData(thread)); in DumpForSnapshot()
5520 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5523 void PromiseReaction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5525 vec.emplace_back(CString("promise-capability"), GetPromiseCapability(thread)); in DumpForSnapshot()
5526 vec.emplace_back(CString("handler"), GetHandler(thread)); in DumpForSnapshot()
5530 void PromiseCapability::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5532 vec.emplace_back(CString("promise"), GetPromise(thread)); in DumpForSnapshot()
5533 vec.emplace_back(CString("resolve"), GetResolve(thread)); in DumpForSnapshot()
5534 vec.emplace_back(CString("reject"), GetReject(thread)); in DumpForSnapshot()
5537 void PromiseIteratorRecord::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) co… in DumpForSnapshot() argument
5539 vec.emplace_back(CString("iterator"), GetIterator(thread)); in DumpForSnapshot()
5543 void PromiseRecord::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5545 vec.emplace_back(CString("value"), GetValue(thread)); in DumpForSnapshot()
5548 void ResolvingFunctionsRecord::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec)… in DumpForSnapshot() argument
5550 vec.emplace_back(CString("resolve-function"), GetResolveFunction(thread)); in DumpForSnapshot()
5551 vec.emplace_back(CString("reject-function"), GetRejectFunction(thread)); in DumpForSnapshot()
5554 void AsyncGeneratorRequest::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) co… in DumpForSnapshot() argument
5556 vec.emplace_back(CString("completion"), GetCompletion(thread)); in DumpForSnapshot()
5557 vec.emplace_back(CString("capability"), GetCapability(thread)); in DumpForSnapshot()
5560 void AsyncIteratorRecord::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5562 vec.emplace_back(CString("iterator"), GetIterator(thread)); in DumpForSnapshot()
5563 vec.emplace_back(CString("nextmethod"), GetNextMethod(thread)); in DumpForSnapshot()
5567 void JSAsyncFromSyncIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) … in DumpForSnapshot() argument
5569 vec.emplace_back(CString("synciteratorrecord"), GetSyncIteratorRecord(thread)); in DumpForSnapshot()
5570 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5573 void JSAsyncFromSyncIterUnwarpFunction::DumpForSnapshot(const JSThread *thread, std::vector<Referen… in DumpForSnapshot() argument
5575 vec.emplace_back(CString("done"), JSTaggedValue(GetDone(thread))); in DumpForSnapshot()
5576 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5579 void JSPromise::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5582 vec.emplace_back(CString("promise-result"), GetPromiseResult(thread)); in DumpForSnapshot()
5583 vec.emplace_back(CString("promise-fulfill-reactions"), GetPromiseFulfillReactions(thread)); in DumpForSnapshot()
5584 vec.emplace_back(CString("promise-reject-reactions"), GetPromiseRejectReactions(thread)); in DumpForSnapshot()
5586 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5589 void JSPromiseReactionsFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &ve… in DumpForSnapshot() argument
5591 vec.emplace_back(CString("promise"), GetPromise(thread)); in DumpForSnapshot()
5592 vec.emplace_back(CString("already-resolved"), GetAlreadyResolved(thread)); in DumpForSnapshot()
5593 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5596 void JSAsyncGeneratorResNextRetProRstFtn::DumpForSnapshot(const JSThread *thread, std::vector<Refer… in DumpForSnapshot() argument
5598 vec.emplace_back(CString("async-generator-object"), GetAsyncGeneratorObject(thread)); in DumpForSnapshot()
5599 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5602 void JSPromiseExecutorFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec… in DumpForSnapshot() argument
5604 vec.emplace_back(CString("capability"), GetCapability(thread)); in DumpForSnapshot()
5605 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5608 void JSAsyncModuleFulfilledFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference>… in DumpForSnapshot() argument
5610 vec.emplace_back(CString("module"), GetModule(thread)); in DumpForSnapshot()
5611 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5614 void JSAsyncModuleRejectedFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> … in DumpForSnapshot() argument
5616 vec.emplace_back(CString("module"), GetModule(thread)); in DumpForSnapshot()
5617 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5620 void JSPromiseAllResolveElementFunction::DumpForSnapshot(const JSThread *thread, std::vector<Refere… in DumpForSnapshot() argument
5622 vec.emplace_back(CString("index"), GetIndex(thread)); in DumpForSnapshot()
5623 vec.emplace_back(CString("values"), GetValues(thread)); in DumpForSnapshot()
5624 vec.emplace_back(CString("capabilities"), GetCapabilities(thread)); in DumpForSnapshot()
5625 vec.emplace_back(CString("remaining-elements"), GetRemainingElements(thread)); in DumpForSnapshot()
5626 vec.emplace_back(CString("already-called"), GetAlreadyCalled(thread)); in DumpForSnapshot()
5627 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5630 void JSPromiseAnyRejectElementFunction::DumpForSnapshot(const JSThread *thread, std::vector<Referen… in DumpForSnapshot() argument
5633 vec.emplace_back(CString("errors"), GetErrors(thread)); in DumpForSnapshot()
5634 vec.emplace_back(CString("capability"), GetCapability(thread)); in DumpForSnapshot()
5635 vec.emplace_back(CString("remaining-elements"), GetRemainingElements(thread)); in DumpForSnapshot()
5636 vec.emplace_back(CString("already-called"), GetAlreadyCalled(thread)); in DumpForSnapshot()
5637 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5640 void JSPromiseAllSettledElementFunction::DumpForSnapshot(const JSThread *thread, std::vector<Refere… in DumpForSnapshot() argument
5642 vec.emplace_back(CString("already-called"), GetAlreadyCalled(thread)); in DumpForSnapshot()
5644 vec.emplace_back(CString("values"), GetValues(thread)); in DumpForSnapshot()
5645 vec.emplace_back(CString("capability"), GetCapability(thread)); in DumpForSnapshot()
5646 vec.emplace_back(CString("remaining-elements"), GetRemainingElements(thread)); in DumpForSnapshot()
5647 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5650 void JSPromiseFinallyFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec)… in DumpForSnapshot() argument
5652 vec.emplace_back(CString("constructor"), GetConstructor(thread)); in DumpForSnapshot()
5653 vec.emplace_back(CString("onFinally"), GetOnFinally(thread)); in DumpForSnapshot()
5654 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5657 void JSPromiseValueThunkOrThrowerFunction::DumpForSnapshot(const JSThread *thread, std::vector<Refe… in DumpForSnapshot() argument
5659 vec.emplace_back(CString("result"), GetResult(thread)); in DumpForSnapshot()
5660 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5663 void MicroJobQueue::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5665 vec.emplace_back(CString("promise-job-queue"), GetPromiseJobQueue(thread)); in DumpForSnapshot()
5666 vec.emplace_back(CString("script-job-queue"), GetScriptJobQueue(thread)); in DumpForSnapshot()
5669 void PendingJob::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5671 vec.emplace_back(CString("job"), GetJob(thread)); in DumpForSnapshot()
5672 vec.emplace_back(CString("arguments"), GetArguments(thread)); in DumpForSnapshot()
5675 void CompletionRecord::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5677 vec.emplace_back(CString("value"), GetValue(thread)); in DumpForSnapshot()
5681 void JSProxyRevocFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
5683 vec.emplace_back(CString("RevocableProxy"), GetRevocableProxy(thread)); in DumpForSnapshot()
5684 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5687 void JSAsyncFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5689 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5692 void JSAsyncAwaitStatusFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &ve… in DumpForSnapshot() argument
5694 vec.emplace_back(CString("AsyncContext"), GetAsyncContext(thread)); in DumpForSnapshot()
5695 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5698 void JSGeneratorFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5700 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5703 void JSAsyncGeneratorFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec)… in DumpForSnapshot() argument
5705 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5708 void JSIntlBoundFunction::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5710 vec.emplace_back(CString("NumberFormat"), GetNumberFormat(thread)); in DumpForSnapshot()
5711 vec.emplace_back(CString("DateTimeFormat"), GetDateTimeFormat(thread)); in DumpForSnapshot()
5712 vec.emplace_back(CString("Collator"), GetCollator(thread)); in DumpForSnapshot()
5713 JSFunction::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5716 void PropertyBox::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5718 vec.emplace_back(CString("Value"), GetValue(thread)); in DumpForSnapshot()
5721 void PrototypeHandler::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5723 vec.emplace_back(CString("HandlerInfo"), GetHandlerInfo(thread)); in DumpForSnapshot()
5724 vec.emplace_back(CString("ProtoCell"), GetProtoCell(thread)); in DumpForSnapshot()
5725 vec.emplace_back(CString("Holder"), GetHolder(thread)); in DumpForSnapshot()
5728 void TransitionHandler::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5730 vec.emplace_back(CString("HandlerInfo"), GetHandlerInfo(thread)); in DumpForSnapshot()
5731 vec.emplace_back(CString("TransitionHClass"), GetTransitionHClass(thread)); in DumpForSnapshot()
5734 void TransWithProtoHandler::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) co… in DumpForSnapshot() argument
5736 vec.emplace_back(CString("HandlerInfo"), GetHandlerInfo(thread)); in DumpForSnapshot()
5737 vec.emplace_back(CString("TransitionHClass"), GetTransitionHClass(thread)); in DumpForSnapshot()
5738 vec.emplace_back(CString("ProtoCell"), GetProtoCell(thread)); in DumpForSnapshot()
5741 void StoreAOTHandler::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5743 vec.emplace_back(CString("HandlerInfo"), GetHandlerInfo(thread)); in DumpForSnapshot()
5744 vec.emplace_back(CString("ProtoCell"), GetProtoCell(thread)); in DumpForSnapshot()
5745 vec.emplace_back(CString("Holder"), GetHolder(thread)); in DumpForSnapshot()
5748 void JSRealm::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5750 vec.emplace_back(CString("Value"), GetValue(thread)); in DumpForSnapshot()
5751 vec.emplace_back(CString("GLobalEnv"), GetGlobalEnv(thread)); in DumpForSnapshot()
5752 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5755 void JSIntl::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5757 vec.emplace_back(CString("FallbackSymbol"), GetFallbackSymbol(thread)); in DumpForSnapshot()
5758 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5761 void JSLocale::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5763 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5764 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5767 void JSDateTimeFormat::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5772 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5773 vec.emplace_back(CString("Calendar"), GetCalendar(thread)); in DumpForSnapshot()
5774 vec.emplace_back(CString("NumberingSystem"), GetNumberingSystem(thread)); in DumpForSnapshot()
5775 vec.emplace_back(CString("TimeZone"), GetTimeZone(thread)); in DumpForSnapshot()
5777 vec.emplace_back(CString("LocaleIcu"), GetLocaleIcu(thread)); in DumpForSnapshot()
5778 vec.emplace_back(CString("SimpleDateTimeFormatIcu"), GetSimpleDateTimeFormatIcu(thread)); in DumpForSnapshot()
5779 vec.emplace_back(CString("Iso8601"), GetIso8601(thread)); in DumpForSnapshot()
5782 vec.emplace_back(CString("BoundFormat"), GetBoundFormat(thread)); in DumpForSnapshot()
5783 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5786 void JSRelativeTimeFormat::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
5788 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5789 vec.emplace_back(CString("NumberingSystem"), GetNumberingSystem(thread)); in DumpForSnapshot()
5792 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5793 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5796 void JSNumberFormat::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5801 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5802 vec.emplace_back(CString("NumberingSystem"), GetNumberingSystem(thread)); in DumpForSnapshot()
5804 vec.emplace_back(CString("Currency"), GetCurrency(thread)); in DumpForSnapshot()
5807 vec.emplace_back(CString("Unit"), GetUnit(thread)); in DumpForSnapshot()
5809 vec.emplace_back(CString("MinimumIntegerDigits"), GetMinimumIntegerDigits(thread)); in DumpForSnapshot()
5810 vec.emplace_back(CString("MinimumFractionDigits"), GetMinimumFractionDigits(thread)); in DumpForSnapshot()
5811 vec.emplace_back(CString("MaximumFractionDigits"), GetMaximumFractionDigits(thread)); in DumpForSnapshot()
5812 vec.emplace_back(CString("MinimumSignificantDigits"), GetMinimumSignificantDigits(thread)); in DumpForSnapshot()
5813 vec.emplace_back(CString("MaximumSignificantDigits"), GetMaximumSignificantDigits(thread)); in DumpForSnapshot()
5814 vec.emplace_back(CString("UseGrouping"), GetUseGrouping(thread)); in DumpForSnapshot()
5819 vec.emplace_back(CString("BoundFormat"), GetBoundFormat(thread)); in DumpForSnapshot()
5820 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5821 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5824 void JSCollator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5829 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5830 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5831 vec.emplace_back(CString("Collation"), GetCollation(thread)); in DumpForSnapshot()
5832 vec.emplace_back(CString("BoundCompare"), GetBoundCompare(thread)); in DumpForSnapshot()
5838 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5841 void JSPluralRules::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5846 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5847 vec.emplace_back(CString("MinimumIntegerDigits"), GetMinimumIntegerDigits(thread)); in DumpForSnapshot()
5848 vec.emplace_back(CString("MinimumFractionDigits"), GetMinimumFractionDigits(thread)); in DumpForSnapshot()
5849 vec.emplace_back(CString("MaximumFractionDigits"), GetMaximumFractionDigits(thread)); in DumpForSnapshot()
5850 vec.emplace_back(CString("MinimumSignificantDigits"), GetMinimumSignificantDigits(thread)); in DumpForSnapshot()
5851 vec.emplace_back(CString("MaximumSignificantDigits"), GetMaximumSignificantDigits(thread)); in DumpForSnapshot()
5853 vec.emplace_back(CString("IcuPR"), GetIcuPR(thread)); in DumpForSnapshot()
5854 vec.emplace_back(CString("IcuNF"), GetIcuNF(thread)); in DumpForSnapshot()
5856 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5859 void JSDisplayNames::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5861 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5865 vec.emplace_back(CString("IcuLDN"), GetIcuLDN(thread)); in DumpForSnapshot()
5866 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5869 void JSSegmenter::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5871 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5873 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5874 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5877 void JSSegments::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5879 vec.emplace_back(CString("SegmentsString"), GetSegmentsString(thread)); in DumpForSnapshot()
5880 vec.emplace_back(CString("UnicodeString"), GetUnicodeString(thread)); in DumpForSnapshot()
5882 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5883 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5886 void JSSegmentIterator::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5888 vec.emplace_back(CString("IteratedString"), GetIteratedString(thread)); in DumpForSnapshot()
5889 vec.emplace_back(CString("UnicodeString"), GetUnicodeString(thread)); in DumpForSnapshot()
5891 vec.emplace_back(CString("IcuField"), GetIcuField(thread)); in DumpForSnapshot()
5892 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5895 void JSListFormat::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5897 vec.emplace_back(CString("Locale"), GetLocale(thread)); in DumpForSnapshot()
5900 vec.emplace_back(CString("IcuLF"), GetIcuLF(thread)); in DumpForSnapshot()
5901 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5904 void JSGeneratorObject::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5906 vec.emplace_back(CString("GeneratorContext"), GetGeneratorContext(thread)); in DumpForSnapshot()
5907 vec.emplace_back(CString("ResumeResult"), GetResumeResult(thread)); in DumpForSnapshot()
5910 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5913 void JSAsyncGeneratorObject::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) c… in DumpForSnapshot() argument
5915 vec.emplace_back(CString("GeneratorContext"), GetGeneratorContext(thread)); in DumpForSnapshot()
5916 vec.emplace_back(CString("AsyncGeneratorQueue"), GetAsyncGeneratorQueue(thread)); in DumpForSnapshot()
5917 vec.emplace_back(CString("GeneratorBrand"), GetGeneratorBrand(thread)); in DumpForSnapshot()
5918 vec.emplace_back(CString("ResumeResult"), GetResumeResult(thread)); in DumpForSnapshot()
5921 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5924 void JSAsyncFuncObject::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5926 vec.emplace_back(CString("Promise"), GetPromise(thread)); in DumpForSnapshot()
5927 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
5930 void GeneratorContext::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5935 vec.emplace_back(CString("RegsArray"), GetRegsArray(thread)); in DumpForSnapshot()
5936 vec.emplace_back(CString("Method"), GetMethod(thread)); in DumpForSnapshot()
5937 vec.emplace_back(CString("This"), GetThis(thread)); in DumpForSnapshot()
5938 vec.emplace_back(CString("Acc"), GetAcc(thread)); in DumpForSnapshot()
5939 vec.emplace_back(CString("GeneratorObject"), GetGeneratorObject(thread)); in DumpForSnapshot()
5940 vec.emplace_back(CString("LexicalEnv"), GetLexicalEnv(thread)); in DumpForSnapshot()
5945 void EnumCache::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5949 vec.emplace_back(CString("EnumCacheOwn"), GetEnumCacheOwn(thread)); in DumpForSnapshot()
5950 vec.emplace_back(CString("EnumCacheAll"), GetEnumCacheAll(thread)); in DumpForSnapshot()
5951 vec.emplace_back(CString("ProtoChainInfoEnumCache"), GetProtoChainInfoEnumCache(thread)); in DumpForSnapshot()
5955 void ProtoChangeMarker::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Refere… in DumpForSnapshot() argument
5960 void MarkerCell::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Reference> &v… in DumpForSnapshot() argument
5965 void ProtoChangeDetails::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5967 vec.emplace_back(CString("ChangeListener"), GetChangeListener(thread)); in DumpForSnapshot()
5971 void MachineCode::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Reference> &… in DumpForSnapshot() argument
5976 void TrackInfo::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5980 vec.emplace_back(CString("CachedHClass"), GetCachedHClass(thread)); in DumpForSnapshot()
5981 vec.emplace_back(CString("CachedFunc"), GetCachedFunc(thread)); in DumpForSnapshot()
5985 void ClassInfoExtractor::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
5990 vec.emplace_back(CString("NonStaticKeys"), GetNonStaticKeys(thread)); in DumpForSnapshot()
5991 vec.emplace_back(CString("NonStaticProperties"), GetNonStaticProperties(thread)); in DumpForSnapshot()
5992 vec.emplace_back(CString("NonStaticElements"), GetNonStaticElements(thread)); in DumpForSnapshot()
5993 vec.emplace_back(CString("StaticKeys"), GetStaticKeys(thread)); in DumpForSnapshot()
5994 vec.emplace_back(CString("StaticProperties"), GetStaticProperties(thread)); in DumpForSnapshot()
5995 vec.emplace_back(CString("StaticElements"), GetStaticElements(thread)); in DumpForSnapshot()
5996 vec.emplace_back(CString("ConstructorMethod"), GetConstructorMethod(thread)); in DumpForSnapshot()
6000 void SourceTextModule::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6005 vec.emplace_back(CString("Environment"), GetEnvironment(thread)); in DumpForSnapshot()
6006 vec.emplace_back(CString("Namespace"), GetNamespace(thread)); in DumpForSnapshot()
6007 vec.emplace_back(CString("ModuleRequests"), GetModuleRequests(thread)); in DumpForSnapshot()
6008 vec.emplace_back(CString("RequestedModules"), GetRequestedModules(thread)); in DumpForSnapshot()
6009 vec.emplace_back(CString("ImportEntries"), GetImportEntries(thread)); in DumpForSnapshot()
6010 vec.emplace_back(CString("LocalExportEntries"), GetLocalExportEntries(thread)); in DumpForSnapshot()
6011 vec.emplace_back(CString("IndirectExportEntries"), GetIndirectExportEntries(thread)); in DumpForSnapshot()
6012 vec.emplace_back(CString("StarExportEntries"), GetStarExportEntries(thread)); in DumpForSnapshot()
6014 vec.emplace_back(CString("Exception"), GetException(thread)); in DumpForSnapshot()
6017 vec.emplace_back(CString("NameDictionary"), GetNameDictionary(thread)); in DumpForSnapshot()
6018 vec.emplace_back(CString("CycleRoot"), GetCycleRoot(thread)); in DumpForSnapshot()
6019 vec.emplace_back(CString("TopLevelCapability"), GetTopLevelCapability(thread)); in DumpForSnapshot()
6020 vec.emplace_back(CString("AsyncParentModules"), GetAsyncParentModules(thread)); in DumpForSnapshot()
6021 vec.emplace_back(CString("SendableEnv"), GetSendableEnv(thread)); in DumpForSnapshot()
6027 void ImportEntry::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6030 vec.emplace_back(CString("ImportName"), GetImportName(thread)); in DumpForSnapshot()
6031 vec.emplace_back(CString("LocalName"), GetLocalName(thread)); in DumpForSnapshot()
6034 void LocalExportEntry::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6036 vec.emplace_back(CString("ExportName"), GetExportName(thread)); in DumpForSnapshot()
6037 vec.emplace_back(CString("LocalName"), GetLocalName(thread)); in DumpForSnapshot()
6040 void IndirectExportEntry::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6042 vec.emplace_back(CString("ExportName"), GetExportName(thread)); in DumpForSnapshot()
6044 vec.emplace_back(CString("ImportName"), GetImportName(thread)); in DumpForSnapshot()
6047 void StarExportEntry::DumpForSnapshot([[maybe_unused]] const JSThread *thread, std::vector<Referenc… in DumpForSnapshot() argument
6052 void ResolvedBinding::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6054 vec.emplace_back(CString("Module"), GetModule(thread)); in DumpForSnapshot()
6055 vec.emplace_back(CString("BindingName"), GetBindingName(thread)); in DumpForSnapshot()
6058 void ResolvedIndexBinding::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) con… in DumpForSnapshot() argument
6060 vec.emplace_back(CString("Module"), GetModule(thread)); in DumpForSnapshot()
6065 void ResolvedRecordIndexBinding::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &ve… in DumpForSnapshot() argument
6067 vec.emplace_back(CString("ModuleRecord"), GetModuleRecord(thread)); in DumpForSnapshot()
6068 vec.emplace_back(CString("AbcFileName"), GetAbcFileName(thread)); in DumpForSnapshot()
6072 void ResolvedRecordBinding::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) co… in DumpForSnapshot() argument
6074 vec.emplace_back(CString("ModuleRecord"), GetModuleRecord(thread)); in DumpForSnapshot()
6075 vec.emplace_back(CString("BindingName"), GetBindingName(thread)); in DumpForSnapshot()
6078 void ModuleNamespace::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6080 vec.emplace_back(CString("Module"), GetModule(thread)); in DumpForSnapshot()
6081 vec.emplace_back(CString("Exports"), GetExports(thread)); in DumpForSnapshot()
6082 vec.emplace_back(CString("DeregisterProcession"), GetDeregisterProcession(thread)); in DumpForSnapshot()
6083 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
6086 void NativeModuleFailureInfo::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) … in DumpForSnapshot() argument
6088 vec.emplace_back(CString("ArkNativeModuleFailureInfo"), GetArkNativeModuleFailureInfo(thread)); in DumpForSnapshot()
6089 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
6092 void CjsModule::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6094 vec.emplace_back(CString("Id"), GetId(thread)); in DumpForSnapshot()
6095 vec.emplace_back(CString("Path"), GetPath(thread)); in DumpForSnapshot()
6096 vec.emplace_back(CString("Exports"), GetExports(thread)); in DumpForSnapshot()
6097 vec.emplace_back(CString("Filename"), GetFilename(thread)); in DumpForSnapshot()
6099 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
6102 void CjsExports::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6104 vec.emplace_back(CString("Exports"), GetExports(thread)); in DumpForSnapshot()
6105 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
6108 void CjsRequire::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6110 vec.emplace_back(CString("Cache"), GetCache(thread)); in DumpForSnapshot()
6111 vec.emplace_back(CString("Parent"), GetParent(thread)); in DumpForSnapshot()
6112 JSObject::DumpForSnapshot(thread, vec); in DumpForSnapshot()
6115 void ClassLiteral::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() argument
6117 vec.emplace_back(CString("Array"), GetArray(thread)); in DumpForSnapshot()
6119 if (!GetArray(thread).IsUndefined()) { in DumpForSnapshot()
6120 DumpArrayClass(thread, TaggedArray::Cast(GetArray(thread).GetTaggedObject()), vec); in DumpForSnapshot()