Commit a32c97cc authored by Peter Marshall's avatar Peter Marshall Committed by Commit Bot

[cleanup] Clean up space names in the heap

- Remove AllocationSpaceName() which was in SHOUTY_CASE and did not
  actually handle CODE_LO_SPACE.
- Make GetSpaceName() static because it is.
- Change callers of old AllocationSpaceName() to use GetSpaceName().
- Change the input type to a AllocationSpace rather than int given the
  function crashes on invalid values.

Space::name() now returns a lower case result but this is only used by
functions guarded by gc_verbose or trace_fragmentation so I don't think
this will break anything.

Change-Id: Ice9a955365d4a22233af7ba39126ad8e5cff2aab
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1565474
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
Auto-Submit: Peter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60842}
parent fd8ce365
......@@ -8413,7 +8413,8 @@ bool Isolate::GetHeapSpaceStatistics(HeapSpaceStatistics* space_statistics,
i::Heap* heap = isolate->heap();
i::Space* space = heap->space(static_cast<int>(index));
space_statistics->space_name_ = heap->GetSpaceName(static_cast<int>(index));
space_statistics->space_name_ =
i::Heap::GetSpaceName(static_cast<i::AllocationSpace>(index));
space_statistics->space_size_ = space->CommittedMemory();
space_statistics->space_used_size_ = space->SizeOfObjects();
space_statistics->space_available_size_ = space->Available();
......
......@@ -652,9 +652,9 @@ size_t Heap::SizeOfObjects() {
return total;
}
const char* Heap::GetSpaceName(int idx) {
switch (idx) {
// static
const char* Heap::GetSpaceName(AllocationSpace space) {
switch (space) {
case NEW_SPACE:
return "new_space";
case OLD_SPACE:
......@@ -671,10 +671,8 @@ const char* Heap::GetSpaceName(int idx) {
return "code_large_object_space";
case RO_SPACE:
return "read_only_space";
default:
UNREACHABLE();
}
return nullptr;
UNREACHABLE();
}
void Heap::MergeAllocationSitePretenuringFeedback(
......@@ -5622,28 +5620,6 @@ size_t Heap::NumberOfDetachedContexts() {
return detached_contexts()->length() / 2;
}
const char* AllocationSpaceName(AllocationSpace space) {
switch (space) {
case NEW_SPACE:
return "NEW_SPACE";
case OLD_SPACE:
return "OLD_SPACE";
case CODE_SPACE:
return "CODE_SPACE";
case MAP_SPACE:
return "MAP_SPACE";
case LO_SPACE:
return "LO_SPACE";
case NEW_LO_SPACE:
return "NEW_LO_SPACE";
case RO_SPACE:
return "RO_SPACE";
default:
UNREACHABLE();
}
return nullptr;
}
void VerifyPointersVisitor::VisitPointers(HeapObject host, ObjectSlot start,
ObjectSlot end) {
VerifyPointers(host, MaybeObjectSlot(start), MaybeObjectSlot(end));
......
......@@ -664,7 +664,7 @@ class Heap {
inline Space* space(int idx);
// Returns name of the space.
const char* GetSpaceName(int idx);
V8_EXPORT_PRIVATE static const char* GetSpaceName(AllocationSpace space);
// ===========================================================================
// Getters to other components. ==============================================
......@@ -2325,8 +2325,6 @@ class AllocationObserver {
DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
};
V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space);
// -----------------------------------------------------------------------------
// Allows observation of heap object allocations.
class HeapObjectAllocationTracker {
......
......@@ -1005,7 +1005,7 @@ class V8_EXPORT_PRIVATE Space : public Malloced {
// Identity used in error reporting.
AllocationSpace identity() { return id_; }
const char* name() { return AllocationSpaceName(id_); }
const char* name() { return Heap::GetSpaceName(id_); }
virtual void AddAllocationObserver(AllocationObserver* observer);
......
......@@ -137,7 +137,7 @@ void SerializerAllocator::OutputStatistics() {
PrintF(" Spaces (bytes):\n");
for (int space = FIRST_SPACE; space < kNumberOfSpaces; space++) {
PrintF("%16s", AllocationSpaceName(static_cast<AllocationSpace>(space)));
PrintF("%16s", Heap::GetSpaceName(static_cast<AllocationSpace>(space)));
}
PrintF("\n");
......
......@@ -78,7 +78,7 @@ void Serializer::OutputStatistics(const char* name) {
PrintF("%10d %10" PRIuS " %-10s %s\n", \
instance_type_count_[space][Name], \
instance_type_size_[space][Name], \
AllocationSpaceName(static_cast<AllocationSpace>(space)), #Name); \
Heap::GetSpaceName(static_cast<AllocationSpace>(space)), #Name); \
} \
}
INSTANCE_TYPE_LIST(PRINT_INSTANCE_TYPE)
......
......@@ -193,248 +193,248 @@ INSTANCE_TYPES = {
# List of known V8 maps.
KNOWN_MAPS = {
("RO_SPACE", 0x00139): (138, "FreeSpaceMap"),
("RO_SPACE", 0x00189): (132, "MetaMap"),
("RO_SPACE", 0x00209): (131, "NullMap"),
("RO_SPACE", 0x00271): (219, "DescriptorArrayMap"),
("RO_SPACE", 0x002d1): (214, "WeakFixedArrayMap"),
("RO_SPACE", 0x00321): (152, "OnePointerFillerMap"),
("RO_SPACE", 0x00371): (152, "TwoPointerFillerMap"),
("RO_SPACE", 0x003f1): (131, "UninitializedMap"),
("RO_SPACE", 0x00461): (8, "OneByteInternalizedStringMap"),
("RO_SPACE", 0x00501): (131, "UndefinedMap"),
("RO_SPACE", 0x00561): (129, "HeapNumberMap"),
("RO_SPACE", 0x005e1): (131, "TheHoleMap"),
("RO_SPACE", 0x00689): (131, "BooleanMap"),
("RO_SPACE", 0x00761): (72, "EmptyStringMap"),
("RO_SPACE", 0x007b1): (136, "ByteArrayMap"),
("RO_SPACE", 0x00801): (189, "FixedArrayMap"),
("RO_SPACE", 0x00851): (189, "FixedCOWArrayMap"),
("RO_SPACE", 0x008a1): (192, "HashTableMap"),
("RO_SPACE", 0x008f1): (128, "SymbolMap"),
("RO_SPACE", 0x00941): (40, "OneByteStringMap"),
("RO_SPACE", 0x00991): (202, "ScopeInfoMap"),
("RO_SPACE", 0x009e1): (226, "SharedFunctionInfoMap"),
("RO_SPACE", 0x00a31): (133, "CodeMap"),
("RO_SPACE", 0x00a81): (209, "FunctionContextMap"),
("RO_SPACE", 0x00ad1): (217, "CellMap"),
("RO_SPACE", 0x00b21): (225, "GlobalPropertyCellMap"),
("RO_SPACE", 0x00b71): (135, "ForeignMap"),
("RO_SPACE", 0x00bc1): (215, "TransitionArrayMap"),
("RO_SPACE", 0x00c11): (221, "FeedbackVectorMap"),
("RO_SPACE", 0x00cb1): (131, "ArgumentsMarkerMap"),
("RO_SPACE", 0x00d51): (131, "ExceptionMap"),
("RO_SPACE", 0x00df1): (131, "TerminationExceptionMap"),
("RO_SPACE", 0x00e99): (131, "OptimizedOutMap"),
("RO_SPACE", 0x00f39): (131, "StaleRegisterMap"),
("RO_SPACE", 0x00fa9): (211, "NativeContextMap"),
("RO_SPACE", 0x00ff9): (210, "ModuleContextMap"),
("RO_SPACE", 0x01049): (208, "EvalContextMap"),
("RO_SPACE", 0x01099): (212, "ScriptContextMap"),
("RO_SPACE", 0x010e9): (204, "AwaitContextMap"),
("RO_SPACE", 0x01139): (205, "BlockContextMap"),
("RO_SPACE", 0x01189): (206, "CatchContextMap"),
("RO_SPACE", 0x011d9): (213, "WithContextMap"),
("RO_SPACE", 0x01229): (207, "DebugEvaluateContextMap"),
("RO_SPACE", 0x01279): (203, "ScriptContextTableMap"),
("RO_SPACE", 0x012c9): (191, "ClosureFeedbackCellArrayMap"),
("RO_SPACE", 0x01319): (151, "FeedbackMetadataArrayMap"),
("RO_SPACE", 0x01369): (189, "ArrayListMap"),
("RO_SPACE", 0x013b9): (130, "BigIntMap"),
("RO_SPACE", 0x01409): (190, "ObjectBoilerplateDescriptionMap"),
("RO_SPACE", 0x01459): (137, "BytecodeArrayMap"),
("RO_SPACE", 0x014a9): (218, "CodeDataContainerMap"),
("RO_SPACE", 0x014f9): (150, "FixedDoubleArrayMap"),
("RO_SPACE", 0x01549): (197, "GlobalDictionaryMap"),
("RO_SPACE", 0x01599): (220, "ManyClosuresCellMap"),
("RO_SPACE", 0x015e9): (189, "ModuleInfoMap"),
("RO_SPACE", 0x01639): (134, "MutableHeapNumberMap"),
("RO_SPACE", 0x01689): (196, "NameDictionaryMap"),
("RO_SPACE", 0x016d9): (220, "NoClosuresCellMap"),
("RO_SPACE", 0x01729): (198, "NumberDictionaryMap"),
("RO_SPACE", 0x01779): (220, "OneClosureCellMap"),
("RO_SPACE", 0x017c9): (193, "OrderedHashMapMap"),
("RO_SPACE", 0x01819): (194, "OrderedHashSetMap"),
("RO_SPACE", 0x01869): (195, "OrderedNameDictionaryMap"),
("RO_SPACE", 0x018b9): (223, "PreparseDataMap"),
("RO_SPACE", 0x01909): (224, "PropertyArrayMap"),
("RO_SPACE", 0x01959): (216, "SideEffectCallHandlerInfoMap"),
("RO_SPACE", 0x019a9): (216, "SideEffectFreeCallHandlerInfoMap"),
("RO_SPACE", 0x019f9): (216, "NextCallSideEffectFreeCallHandlerInfoMap"),
("RO_SPACE", 0x01a49): (199, "SimpleNumberDictionaryMap"),
("RO_SPACE", 0x01a99): (189, "SloppyArgumentsElementsMap"),
("RO_SPACE", 0x01ae9): (227, "SmallOrderedHashMapMap"),
("RO_SPACE", 0x01b39): (228, "SmallOrderedHashSetMap"),
("RO_SPACE", 0x01b89): (229, "SmallOrderedNameDictionaryMap"),
("RO_SPACE", 0x01bd9): (200, "StringTableMap"),
("RO_SPACE", 0x01c29): (231, "UncompiledDataWithoutPreparseDataMap"),
("RO_SPACE", 0x01c79): (232, "UncompiledDataWithPreparseDataMap"),
("RO_SPACE", 0x01cc9): (233, "WeakArrayListMap"),
("RO_SPACE", 0x01d19): (201, "EphemeronHashTableMap"),
("RO_SPACE", 0x01d69): (188, "EmbedderDataArrayMap"),
("RO_SPACE", 0x01db9): (234, "WeakCellMap"),
("RO_SPACE", 0x01e09): (58, "NativeSourceStringMap"),
("RO_SPACE", 0x01e59): (32, "StringMap"),
("RO_SPACE", 0x01ea9): (41, "ConsOneByteStringMap"),
("RO_SPACE", 0x01ef9): (33, "ConsStringMap"),
("RO_SPACE", 0x01f49): (45, "ThinOneByteStringMap"),
("RO_SPACE", 0x01f99): (37, "ThinStringMap"),
("RO_SPACE", 0x01fe9): (35, "SlicedStringMap"),
("RO_SPACE", 0x02039): (43, "SlicedOneByteStringMap"),
("RO_SPACE", 0x02089): (34, "ExternalStringMap"),
("RO_SPACE", 0x020d9): (42, "ExternalOneByteStringMap"),
("RO_SPACE", 0x02129): (50, "UncachedExternalStringMap"),
("RO_SPACE", 0x02179): (0, "InternalizedStringMap"),
("RO_SPACE", 0x021c9): (2, "ExternalInternalizedStringMap"),
("RO_SPACE", 0x02219): (10, "ExternalOneByteInternalizedStringMap"),
("RO_SPACE", 0x02269): (18, "UncachedExternalInternalizedStringMap"),
("RO_SPACE", 0x022b9): (26, "UncachedExternalOneByteInternalizedStringMap"),
("RO_SPACE", 0x02309): (58, "UncachedExternalOneByteStringMap"),
("RO_SPACE", 0x02359): (140, "FixedUint8ArrayMap"),
("RO_SPACE", 0x023a9): (139, "FixedInt8ArrayMap"),
("RO_SPACE", 0x023f9): (142, "FixedUint16ArrayMap"),
("RO_SPACE", 0x02449): (141, "FixedInt16ArrayMap"),
("RO_SPACE", 0x02499): (144, "FixedUint32ArrayMap"),
("RO_SPACE", 0x024e9): (143, "FixedInt32ArrayMap"),
("RO_SPACE", 0x02539): (145, "FixedFloat32ArrayMap"),
("RO_SPACE", 0x02589): (146, "FixedFloat64ArrayMap"),
("RO_SPACE", 0x025d9): (147, "FixedUint8ClampedArrayMap"),
("RO_SPACE", 0x02629): (149, "FixedBigUint64ArrayMap"),
("RO_SPACE", 0x02679): (148, "FixedBigInt64ArrayMap"),
("RO_SPACE", 0x026c9): (131, "SelfReferenceMarkerMap"),
("RO_SPACE", 0x02731): (175, "Tuple2Map"),
("RO_SPACE", 0x027d1): (177, "ArrayBoilerplateDescriptionMap"),
("RO_SPACE", 0x02b21): (164, "InterceptorInfoMap"),
("RO_SPACE", 0x05109): (153, "AccessCheckInfoMap"),
("RO_SPACE", 0x05159): (154, "AccessorInfoMap"),
("RO_SPACE", 0x051a9): (155, "AccessorPairMap"),
("RO_SPACE", 0x051f9): (156, "AliasedArgumentsEntryMap"),
("RO_SPACE", 0x05249): (157, "AllocationMementoMap"),
("RO_SPACE", 0x05299): (158, "AsmWasmDataMap"),
("RO_SPACE", 0x052e9): (159, "AsyncGeneratorRequestMap"),
("RO_SPACE", 0x05339): (160, "ClassPositionsMap"),
("RO_SPACE", 0x05389): (161, "DebugInfoMap"),
("RO_SPACE", 0x053d9): (162, "FunctionTemplateInfoMap"),
("RO_SPACE", 0x05429): (163, "FunctionTemplateRareDataMap"),
("RO_SPACE", 0x05479): (165, "InterpreterDataMap"),
("RO_SPACE", 0x054c9): (166, "ModuleInfoEntryMap"),
("RO_SPACE", 0x05519): (167, "ModuleMap"),
("RO_SPACE", 0x05569): (168, "ObjectTemplateInfoMap"),
("RO_SPACE", 0x055b9): (169, "PromiseCapabilityMap"),
("RO_SPACE", 0x05609): (170, "PromiseReactionMap"),
("RO_SPACE", 0x05659): (171, "PrototypeInfoMap"),
("RO_SPACE", 0x056a9): (172, "ScriptMap"),
("RO_SPACE", 0x056f9): (173, "StackFrameInfoMap"),
("RO_SPACE", 0x05749): (174, "StackTraceFrameMap"),
("RO_SPACE", 0x05799): (176, "Tuple3Map"),
("RO_SPACE", 0x057e9): (178, "WasmDebugInfoMap"),
("RO_SPACE", 0x05839): (179, "WasmExceptionTagMap"),
("RO_SPACE", 0x05889): (180, "WasmExportedFunctionDataMap"),
("RO_SPACE", 0x058d9): (181, "CallableTaskMap"),
("RO_SPACE", 0x05929): (182, "CallbackTaskMap"),
("RO_SPACE", 0x05979): (183, "PromiseFulfillReactionJobTaskMap"),
("RO_SPACE", 0x059c9): (184, "PromiseRejectReactionJobTaskMap"),
("RO_SPACE", 0x05a19): (185, "PromiseResolveThenableJobTaskMap"),
("RO_SPACE", 0x05a69): (186, "FinalizationGroupCleanupJobTaskMap"),
("RO_SPACE", 0x05ab9): (187, "AllocationSiteWithWeakNextMap"),
("RO_SPACE", 0x05b09): (187, "AllocationSiteWithoutWeakNextMap"),
("RO_SPACE", 0x05b59): (222, "LoadHandler1Map"),
("RO_SPACE", 0x05ba9): (222, "LoadHandler2Map"),
("RO_SPACE", 0x05bf9): (222, "LoadHandler3Map"),
("RO_SPACE", 0x05c49): (230, "StoreHandler0Map"),
("RO_SPACE", 0x05c99): (230, "StoreHandler1Map"),
("RO_SPACE", 0x05ce9): (230, "StoreHandler2Map"),
("RO_SPACE", 0x05d39): (230, "StoreHandler3Map"),
("MAP_SPACE", 0x00139): (1057, "ExternalMap"),
("MAP_SPACE", 0x00189): (1073, "JSMessageObjectMap"),
("read_only_space", 0x00139): (138, "FreeSpaceMap"),
("read_only_space", 0x00189): (132, "MetaMap"),
("read_only_space", 0x00209): (131, "NullMap"),
("read_only_space", 0x00271): (219, "DescriptorArrayMap"),
("read_only_space", 0x002d1): (214, "WeakFixedArrayMap"),
("read_only_space", 0x00321): (152, "OnePointerFillerMap"),
("read_only_space", 0x00371): (152, "TwoPointerFillerMap"),
("read_only_space", 0x003f1): (131, "UninitializedMap"),
("read_only_space", 0x00461): (8, "OneByteInternalizedStringMap"),
("read_only_space", 0x00501): (131, "UndefinedMap"),
("read_only_space", 0x00561): (129, "HeapNumberMap"),
("read_only_space", 0x005e1): (131, "TheHoleMap"),
("read_only_space", 0x00689): (131, "BooleanMap"),
("read_only_space", 0x00761): (72, "EmptyStringMap"),
("read_only_space", 0x007b1): (136, "ByteArrayMap"),
("read_only_space", 0x00801): (189, "FixedArrayMap"),
("read_only_space", 0x00851): (189, "FixedCOWArrayMap"),
("read_only_space", 0x008a1): (192, "HashTableMap"),
("read_only_space", 0x008f1): (128, "SymbolMap"),
("read_only_space", 0x00941): (40, "OneByteStringMap"),
("read_only_space", 0x00991): (202, "ScopeInfoMap"),
("read_only_space", 0x009e1): (226, "SharedFunctionInfoMap"),
("read_only_space", 0x00a31): (133, "CodeMap"),
("read_only_space", 0x00a81): (209, "FunctionContextMap"),
("read_only_space", 0x00ad1): (217, "CellMap"),
("read_only_space", 0x00b21): (225, "GlobalPropertyCellMap"),
("read_only_space", 0x00b71): (135, "ForeignMap"),
("read_only_space", 0x00bc1): (215, "TransitionArrayMap"),
("read_only_space", 0x00c11): (221, "FeedbackVectorMap"),
("read_only_space", 0x00cb1): (131, "ArgumentsMarkerMap"),
("read_only_space", 0x00d51): (131, "ExceptionMap"),
("read_only_space", 0x00df1): (131, "TerminationExceptionMap"),
("read_only_space", 0x00e99): (131, "OptimizedOutMap"),
("read_only_space", 0x00f39): (131, "StaleRegisterMap"),
("read_only_space", 0x00fa9): (211, "NativeContextMap"),
("read_only_space", 0x00ff9): (210, "ModuleContextMap"),
("read_only_space", 0x01049): (208, "EvalContextMap"),
("read_only_space", 0x01099): (212, "ScriptContextMap"),
("read_only_space", 0x010e9): (204, "AwaitContextMap"),
("read_only_space", 0x01139): (205, "BlockContextMap"),
("read_only_space", 0x01189): (206, "CatchContextMap"),
("read_only_space", 0x011d9): (213, "WithContextMap"),
("read_only_space", 0x01229): (207, "DebugEvaluateContextMap"),
("read_only_space", 0x01279): (203, "ScriptContextTableMap"),
("read_only_space", 0x012c9): (191, "ClosureFeedbackCellArrayMap"),
("read_only_space", 0x01319): (151, "FeedbackMetadataArrayMap"),
("read_only_space", 0x01369): (189, "ArrayListMap"),
("read_only_space", 0x013b9): (130, "BigIntMap"),
("read_only_space", 0x01409): (190, "ObjectBoilerplateDescriptionMap"),
("read_only_space", 0x01459): (137, "BytecodeArrayMap"),
("read_only_space", 0x014a9): (218, "CodeDataContainerMap"),
("read_only_space", 0x014f9): (150, "FixedDoubleArrayMap"),
("read_only_space", 0x01549): (197, "GlobalDictionaryMap"),
("read_only_space", 0x01599): (220, "ManyClosuresCellMap"),
("read_only_space", 0x015e9): (189, "ModuleInfoMap"),
("read_only_space", 0x01639): (134, "MutableHeapNumberMap"),
("read_only_space", 0x01689): (196, "NameDictionaryMap"),
("read_only_space", 0x016d9): (220, "NoClosuresCellMap"),
("read_only_space", 0x01729): (198, "NumberDictionaryMap"),
("read_only_space", 0x01779): (220, "OneClosureCellMap"),
("read_only_space", 0x017c9): (193, "OrderedHashMapMap"),
("read_only_space", 0x01819): (194, "OrderedHashSetMap"),
("read_only_space", 0x01869): (195, "OrderedNameDictionaryMap"),
("read_only_space", 0x018b9): (223, "PreparseDataMap"),
("read_only_space", 0x01909): (224, "PropertyArrayMap"),
("read_only_space", 0x01959): (216, "SideEffectCallHandlerInfoMap"),
("read_only_space", 0x019a9): (216, "SideEffectFreeCallHandlerInfoMap"),
("read_only_space", 0x019f9): (216, "NextCallSideEffectFreeCallHandlerInfoMap"),
("read_only_space", 0x01a49): (199, "SimpleNumberDictionaryMap"),
("read_only_space", 0x01a99): (189, "SloppyArgumentsElementsMap"),
("read_only_space", 0x01ae9): (227, "SmallOrderedHashMapMap"),
("read_only_space", 0x01b39): (228, "SmallOrderedHashSetMap"),
("read_only_space", 0x01b89): (229, "SmallOrderedNameDictionaryMap"),
("read_only_space", 0x01bd9): (200, "StringTableMap"),
("read_only_space", 0x01c29): (231, "UncompiledDataWithoutPreparseDataMap"),
("read_only_space", 0x01c79): (232, "UncompiledDataWithPreparseDataMap"),
("read_only_space", 0x01cc9): (233, "WeakArrayListMap"),
("read_only_space", 0x01d19): (201, "EphemeronHashTableMap"),
("read_only_space", 0x01d69): (188, "EmbedderDataArrayMap"),
("read_only_space", 0x01db9): (234, "WeakCellMap"),
("read_only_space", 0x01e09): (58, "NativeSourceStringMap"),
("read_only_space", 0x01e59): (32, "StringMap"),
("read_only_space", 0x01ea9): (41, "ConsOneByteStringMap"),
("read_only_space", 0x01ef9): (33, "ConsStringMap"),
("read_only_space", 0x01f49): (45, "ThinOneByteStringMap"),
("read_only_space", 0x01f99): (37, "ThinStringMap"),
("read_only_space", 0x01fe9): (35, "SlicedStringMap"),
("read_only_space", 0x02039): (43, "SlicedOneByteStringMap"),
("read_only_space", 0x02089): (34, "ExternalStringMap"),
("read_only_space", 0x020d9): (42, "ExternalOneByteStringMap"),
("read_only_space", 0x02129): (50, "UncachedExternalStringMap"),
("read_only_space", 0x02179): (0, "InternalizedStringMap"),
("read_only_space", 0x021c9): (2, "ExternalInternalizedStringMap"),
("read_only_space", 0x02219): (10, "ExternalOneByteInternalizedStringMap"),
("read_only_space", 0x02269): (18, "UncachedExternalInternalizedStringMap"),
("read_only_space", 0x022b9): (26, "UncachedExternalOneByteInternalizedStringMap"),
("read_only_space", 0x02309): (58, "UncachedExternalOneByteStringMap"),
("read_only_space", 0x02359): (140, "FixedUint8ArrayMap"),
("read_only_space", 0x023a9): (139, "FixedInt8ArrayMap"),
("read_only_space", 0x023f9): (142, "FixedUint16ArrayMap"),
("read_only_space", 0x02449): (141, "FixedInt16ArrayMap"),
("read_only_space", 0x02499): (144, "FixedUint32ArrayMap"),
("read_only_space", 0x024e9): (143, "FixedInt32ArrayMap"),
("read_only_space", 0x02539): (145, "FixedFloat32ArrayMap"),
("read_only_space", 0x02589): (146, "FixedFloat64ArrayMap"),
("read_only_space", 0x025d9): (147, "FixedUint8ClampedArrayMap"),
("read_only_space", 0x02629): (149, "FixedBigUint64ArrayMap"),
("read_only_space", 0x02679): (148, "FixedBigInt64ArrayMap"),
("read_only_space", 0x026c9): (131, "SelfReferenceMarkerMap"),
("read_only_space", 0x02731): (175, "Tuple2Map"),
("read_only_space", 0x027d1): (177, "ArrayBoilerplateDescriptionMap"),
("read_only_space", 0x02b21): (164, "InterceptorInfoMap"),
("read_only_space", 0x05109): (153, "AccessCheckInfoMap"),
("read_only_space", 0x05159): (154, "AccessorInfoMap"),
("read_only_space", 0x051a9): (155, "AccessorPairMap"),
("read_only_space", 0x051f9): (156, "AliasedArgumentsEntryMap"),
("read_only_space", 0x05249): (157, "AllocationMementoMap"),
("read_only_space", 0x05299): (158, "AsmWasmDataMap"),
("read_only_space", 0x052e9): (159, "AsyncGeneratorRequestMap"),
("read_only_space", 0x05339): (160, "ClassPositionsMap"),
("read_only_space", 0x05389): (161, "DebugInfoMap"),
("read_only_space", 0x053d9): (162, "FunctionTemplateInfoMap"),
("read_only_space", 0x05429): (163, "FunctionTemplateRareDataMap"),
("read_only_space", 0x05479): (165, "InterpreterDataMap"),
("read_only_space", 0x054c9): (166, "ModuleInfoEntryMap"),
("read_only_space", 0x05519): (167, "ModuleMap"),
("read_only_space", 0x05569): (168, "ObjectTemplateInfoMap"),
("read_only_space", 0x055b9): (169, "PromiseCapabilityMap"),
("read_only_space", 0x05609): (170, "PromiseReactionMap"),
("read_only_space", 0x05659): (171, "PrototypeInfoMap"),
("read_only_space", 0x056a9): (172, "ScriptMap"),
("read_only_space", 0x056f9): (173, "StackFrameInfoMap"),
("read_only_space", 0x05749): (174, "StackTraceFrameMap"),
("read_only_space", 0x05799): (176, "Tuple3Map"),
("read_only_space", 0x057e9): (178, "WasmDebugInfoMap"),
("read_only_space", 0x05839): (179, "WasmExceptionTagMap"),
("read_only_space", 0x05889): (180, "WasmExportedFunctionDataMap"),
("read_only_space", 0x058d9): (181, "CallableTaskMap"),
("read_only_space", 0x05929): (182, "CallbackTaskMap"),
("read_only_space", 0x05979): (183, "PromiseFulfillReactionJobTaskMap"),
("read_only_space", 0x059c9): (184, "PromiseRejectReactionJobTaskMap"),
("read_only_space", 0x05a19): (185, "PromiseResolveThenableJobTaskMap"),
("read_only_space", 0x05a69): (186, "FinalizationGroupCleanupJobTaskMap"),
("read_only_space", 0x05ab9): (187, "AllocationSiteWithWeakNextMap"),
("read_only_space", 0x05b09): (187, "AllocationSiteWithoutWeakNextMap"),
("read_only_space", 0x05b59): (222, "LoadHandler1Map"),
("read_only_space", 0x05ba9): (222, "LoadHandler2Map"),
("read_only_space", 0x05bf9): (222, "LoadHandler3Map"),
("read_only_space", 0x05c49): (230, "StoreHandler0Map"),
("read_only_space", 0x05c99): (230, "StoreHandler1Map"),
("read_only_space", 0x05ce9): (230, "StoreHandler2Map"),
("read_only_space", 0x05d39): (230, "StoreHandler3Map"),
("map_space", 0x00139): (1057, "ExternalMap"),
("map_space", 0x00189): (1073, "JSMessageObjectMap"),
}
# List of known V8 objects.
KNOWN_OBJECTS = {
("RO_SPACE", 0x001d9): "NullValue",
("RO_SPACE", 0x00259): "EmptyDescriptorArray",
("RO_SPACE", 0x002c1): "EmptyWeakFixedArray",
("RO_SPACE", 0x003c1): "UninitializedValue",
("RO_SPACE", 0x004d1): "UndefinedValue",
("RO_SPACE", 0x00551): "NanValue",
("RO_SPACE", 0x005b1): "TheHoleValue",
("RO_SPACE", 0x00649): "HoleNanValue",
("RO_SPACE", 0x00659): "TrueValue",
("RO_SPACE", 0x00709): "FalseValue",
("RO_SPACE", 0x00751): "empty_string",
("RO_SPACE", 0x00c61): "EmptyScopeInfo",
("RO_SPACE", 0x00c71): "EmptyFixedArray",
("RO_SPACE", 0x00c81): "ArgumentsMarker",
("RO_SPACE", 0x00d21): "Exception",
("RO_SPACE", 0x00dc1): "TerminationException",
("RO_SPACE", 0x00e69): "OptimizedOut",
("RO_SPACE", 0x00f09): "StaleRegister",
("RO_SPACE", 0x02719): "EmptyEnumCache",
("RO_SPACE", 0x02781): "EmptyPropertyArray",
("RO_SPACE", 0x02791): "EmptyByteArray",
("RO_SPACE", 0x027a1): "EmptyObjectBoilerplateDescription",
("RO_SPACE", 0x027b9): "EmptyArrayBoilerplateDescription",
("RO_SPACE", 0x02821): "EmptyClosureFeedbackCellArray",
("RO_SPACE", 0x02831): "EmptyFixedUint8Array",
("RO_SPACE", 0x02851): "EmptyFixedInt8Array",
("RO_SPACE", 0x02871): "EmptyFixedUint16Array",
("RO_SPACE", 0x02891): "EmptyFixedInt16Array",
("RO_SPACE", 0x028b1): "EmptyFixedUint32Array",
("RO_SPACE", 0x028d1): "EmptyFixedInt32Array",
("RO_SPACE", 0x028f1): "EmptyFixedFloat32Array",
("RO_SPACE", 0x02911): "EmptyFixedFloat64Array",
("RO_SPACE", 0x02931): "EmptyFixedUint8ClampedArray",
("RO_SPACE", 0x02951): "EmptyFixedBigUint64Array",
("RO_SPACE", 0x02971): "EmptyFixedBigInt64Array",
("RO_SPACE", 0x02991): "EmptySloppyArgumentsElements",
("RO_SPACE", 0x029b1): "EmptySlowElementDictionary",
("RO_SPACE", 0x029f9): "EmptyOrderedHashMap",
("RO_SPACE", 0x02a21): "EmptyOrderedHashSet",
("RO_SPACE", 0x02a49): "EmptyFeedbackMetadata",
("RO_SPACE", 0x02a59): "EmptyPropertyCell",
("RO_SPACE", 0x02a81): "EmptyPropertyDictionary",
("RO_SPACE", 0x02ad1): "NoOpInterceptorInfo",
("RO_SPACE", 0x02b71): "EmptyWeakArrayList",
("RO_SPACE", 0x02b89): "InfinityValue",
("RO_SPACE", 0x02b99): "MinusZeroValue",
("RO_SPACE", 0x02ba9): "MinusInfinityValue",
("RO_SPACE", 0x02bb9): "SelfReferenceMarker",
("RO_SPACE", 0x02c11): "OffHeapTrampolineRelocationInfo",
("RO_SPACE", 0x02c29): "HashSeed",
("OLD_SPACE", 0x00139): "ArgumentsIteratorAccessor",
("OLD_SPACE", 0x001a9): "ArrayLengthAccessor",
("OLD_SPACE", 0x00219): "BoundFunctionLengthAccessor",
("OLD_SPACE", 0x00289): "BoundFunctionNameAccessor",
("OLD_SPACE", 0x002f9): "ErrorStackAccessor",
("OLD_SPACE", 0x00369): "FunctionArgumentsAccessor",
("OLD_SPACE", 0x003d9): "FunctionCallerAccessor",
("OLD_SPACE", 0x00449): "FunctionNameAccessor",
("OLD_SPACE", 0x004b9): "FunctionLengthAccessor",
("OLD_SPACE", 0x00529): "FunctionPrototypeAccessor",
("OLD_SPACE", 0x00599): "StringLengthAccessor",
("OLD_SPACE", 0x00609): "InvalidPrototypeValidityCell",
("OLD_SPACE", 0x00619): "EmptyScript",
("OLD_SPACE", 0x00699): "ManyClosuresCell",
("OLD_SPACE", 0x006b1): "ArrayConstructorProtector",
("OLD_SPACE", 0x006c1): "NoElementsProtector",
("OLD_SPACE", 0x006e9): "IsConcatSpreadableProtector",
("OLD_SPACE", 0x006f9): "ArraySpeciesProtector",
("OLD_SPACE", 0x00721): "TypedArraySpeciesProtector",
("OLD_SPACE", 0x00749): "RegExpSpeciesProtector",
("OLD_SPACE", 0x00771): "PromiseSpeciesProtector",
("OLD_SPACE", 0x00799): "StringLengthProtector",
("OLD_SPACE", 0x007a9): "ArrayIteratorProtector",
("OLD_SPACE", 0x007d1): "ArrayBufferDetachingProtector",
("OLD_SPACE", 0x007f9): "PromiseHookProtector",
("OLD_SPACE", 0x00821): "PromiseResolveProtector",
("OLD_SPACE", 0x00831): "MapIteratorProtector",
("OLD_SPACE", 0x00859): "PromiseThenProtector",
("OLD_SPACE", 0x00881): "SetIteratorProtector",
("OLD_SPACE", 0x008a9): "StringIteratorProtector",
("OLD_SPACE", 0x008d1): "SingleCharacterStringCache",
("OLD_SPACE", 0x010e1): "StringSplitCache",
("OLD_SPACE", 0x018f1): "RegExpMultipleCache",
("OLD_SPACE", 0x02101): "BuiltinsConstantsTable",
("read_only_space", 0x001d9): "NullValue",
("read_only_space", 0x00259): "EmptyDescriptorArray",
("read_only_space", 0x002c1): "EmptyWeakFixedArray",
("read_only_space", 0x003c1): "UninitializedValue",
("read_only_space", 0x004d1): "UndefinedValue",
("read_only_space", 0x00551): "NanValue",
("read_only_space", 0x005b1): "TheHoleValue",
("read_only_space", 0x00649): "HoleNanValue",
("read_only_space", 0x00659): "TrueValue",
("read_only_space", 0x00709): "FalseValue",
("read_only_space", 0x00751): "empty_string",
("read_only_space", 0x00c61): "EmptyScopeInfo",
("read_only_space", 0x00c71): "EmptyFixedArray",
("read_only_space", 0x00c81): "ArgumentsMarker",
("read_only_space", 0x00d21): "Exception",
("read_only_space", 0x00dc1): "TerminationException",
("read_only_space", 0x00e69): "OptimizedOut",
("read_only_space", 0x00f09): "StaleRegister",
("read_only_space", 0x02719): "EmptyEnumCache",
("read_only_space", 0x02781): "EmptyPropertyArray",
("read_only_space", 0x02791): "EmptyByteArray",
("read_only_space", 0x027a1): "EmptyObjectBoilerplateDescription",
("read_only_space", 0x027b9): "EmptyArrayBoilerplateDescription",
("read_only_space", 0x02821): "EmptyClosureFeedbackCellArray",
("read_only_space", 0x02831): "EmptyFixedUint8Array",
("read_only_space", 0x02851): "EmptyFixedInt8Array",
("read_only_space", 0x02871): "EmptyFixedUint16Array",
("read_only_space", 0x02891): "EmptyFixedInt16Array",
("read_only_space", 0x028b1): "EmptyFixedUint32Array",
("read_only_space", 0x028d1): "EmptyFixedInt32Array",
("read_only_space", 0x028f1): "EmptyFixedFloat32Array",
("read_only_space", 0x02911): "EmptyFixedFloat64Array",
("read_only_space", 0x02931): "EmptyFixedUint8ClampedArray",
("read_only_space", 0x02951): "EmptyFixedBigUint64Array",
("read_only_space", 0x02971): "EmptyFixedBigInt64Array",
("read_only_space", 0x02991): "EmptySloppyArgumentsElements",
("read_only_space", 0x029b1): "EmptySlowElementDictionary",
("read_only_space", 0x029f9): "EmptyOrderedHashMap",
("read_only_space", 0x02a21): "EmptyOrderedHashSet",
("read_only_space", 0x02a49): "EmptyFeedbackMetadata",
("read_only_space", 0x02a59): "EmptyPropertyCell",
("read_only_space", 0x02a81): "EmptyPropertyDictionary",
("read_only_space", 0x02ad1): "NoOpInterceptorInfo",
("read_only_space", 0x02b71): "EmptyWeakArrayList",
("read_only_space", 0x02b89): "InfinityValue",
("read_only_space", 0x02b99): "MinusZeroValue",
("read_only_space", 0x02ba9): "MinusInfinityValue",
("read_only_space", 0x02bb9): "SelfReferenceMarker",
("read_only_space", 0x02c11): "OffHeapTrampolineRelocationInfo",
("read_only_space", 0x02c29): "HashSeed",
("old_space", 0x00139): "ArgumentsIteratorAccessor",
("old_space", 0x001a9): "ArrayLengthAccessor",
("old_space", 0x00219): "BoundFunctionLengthAccessor",
("old_space", 0x00289): "BoundFunctionNameAccessor",
("old_space", 0x002f9): "ErrorStackAccessor",
("old_space", 0x00369): "FunctionArgumentsAccessor",
("old_space", 0x003d9): "FunctionCallerAccessor",
("old_space", 0x00449): "FunctionNameAccessor",
("old_space", 0x004b9): "FunctionLengthAccessor",
("old_space", 0x00529): "FunctionPrototypeAccessor",
("old_space", 0x00599): "StringLengthAccessor",
("old_space", 0x00609): "InvalidPrototypeValidityCell",
("old_space", 0x00619): "EmptyScript",
("old_space", 0x00699): "ManyClosuresCell",
("old_space", 0x006b1): "ArrayConstructorProtector",
("old_space", 0x006c1): "NoElementsProtector",
("old_space", 0x006e9): "IsConcatSpreadableProtector",
("old_space", 0x006f9): "ArraySpeciesProtector",
("old_space", 0x00721): "TypedArraySpeciesProtector",
("old_space", 0x00749): "RegExpSpeciesProtector",
("old_space", 0x00771): "PromiseSpeciesProtector",
("old_space", 0x00799): "StringLengthProtector",
("old_space", 0x007a9): "ArrayIteratorProtector",
("old_space", 0x007d1): "ArrayBufferDetachingProtector",
("old_space", 0x007f9): "PromiseHookProtector",
("old_space", 0x00821): "PromiseResolveProtector",
("old_space", 0x00831): "MapIteratorProtector",
("old_space", 0x00859): "PromiseThenProtector",
("old_space", 0x00881): "SetIteratorProtector",
("old_space", 0x008a9): "StringIteratorProtector",
("old_space", 0x008d1): "SingleCharacterStringCache",
("old_space", 0x010e1): "StringSplitCache",
("old_space", 0x018f1): "RegExpMultipleCache",
("old_space", 0x02101): "BuiltinsConstantsTable",
}
# List of known V8 Frame Markers.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment