Index: tools/v8heapconst.py |
diff --git a/tools/v8heapconst.py b/tools/v8heapconst.py |
index 2c34116540be6d89bf8d7ae69dff02e9e6c13ec4..1dda399d61c66ab4403343fe8c636c672b8f37c5 100644 |
--- a/tools/v8heapconst.py |
+++ b/tools/v8heapconst.py |
@@ -62,63 +62,72 @@ INSTANCE_TYPES = { |
135: "FOREIGN_TYPE", |
136: "BYTE_ARRAY_TYPE", |
137: "FREE_SPACE_TYPE", |
- 138: "EXTERNAL_BYTE_ARRAY_TYPE", |
- 139: "EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE", |
- 140: "EXTERNAL_SHORT_ARRAY_TYPE", |
- 141: "EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE", |
- 142: "EXTERNAL_INT_ARRAY_TYPE", |
- 143: "EXTERNAL_UNSIGNED_INT_ARRAY_TYPE", |
- 144: "EXTERNAL_FLOAT_ARRAY_TYPE", |
- 145: "EXTERNAL_DOUBLE_ARRAY_TYPE", |
- 146: "EXTERNAL_PIXEL_ARRAY_TYPE", |
- 149: "FILLER_TYPE", |
- 150: "DECLARED_ACCESSOR_DESCRIPTOR_TYPE", |
- 151: "DECLARED_ACCESSOR_INFO_TYPE", |
- 152: "EXECUTABLE_ACCESSOR_INFO_TYPE", |
- 153: "ACCESSOR_PAIR_TYPE", |
- 154: "ACCESS_CHECK_INFO_TYPE", |
- 155: "INTERCEPTOR_INFO_TYPE", |
- 156: "CALL_HANDLER_INFO_TYPE", |
- 157: "FUNCTION_TEMPLATE_INFO_TYPE", |
- 158: "OBJECT_TEMPLATE_INFO_TYPE", |
- 159: "SIGNATURE_INFO_TYPE", |
- 160: "TYPE_SWITCH_INFO_TYPE", |
- 162: "ALLOCATION_MEMENTO_TYPE", |
- 161: "ALLOCATION_SITE_TYPE", |
- 163: "SCRIPT_TYPE", |
- 164: "CODE_CACHE_TYPE", |
- 165: "POLYMORPHIC_CODE_CACHE_TYPE", |
- 166: "TYPE_FEEDBACK_INFO_TYPE", |
- 167: "ALIASED_ARGUMENTS_ENTRY_TYPE", |
- 168: "BOX_TYPE", |
- 171: "FIXED_ARRAY_TYPE", |
- 147: "FIXED_DOUBLE_ARRAY_TYPE", |
- 148: "CONSTANT_POOL_ARRAY_TYPE", |
- 172: "SHARED_FUNCTION_INFO_TYPE", |
- 173: "JS_MESSAGE_OBJECT_TYPE", |
- 176: "JS_VALUE_TYPE", |
- 177: "JS_DATE_TYPE", |
- 178: "JS_OBJECT_TYPE", |
- 179: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", |
- 180: "JS_GENERATOR_OBJECT_TYPE", |
- 181: "JS_MODULE_TYPE", |
- 182: "JS_GLOBAL_OBJECT_TYPE", |
- 183: "JS_BUILTINS_OBJECT_TYPE", |
- 184: "JS_GLOBAL_PROXY_TYPE", |
- 185: "JS_ARRAY_TYPE", |
- 186: "JS_ARRAY_BUFFER_TYPE", |
- 187: "JS_TYPED_ARRAY_TYPE", |
- 188: "JS_DATA_VIEW_TYPE", |
- 175: "JS_PROXY_TYPE", |
- 189: "JS_SET_TYPE", |
- 190: "JS_MAP_TYPE", |
- 191: "JS_WEAK_MAP_TYPE", |
- 192: "JS_WEAK_SET_TYPE", |
- 193: "JS_REGEXP_TYPE", |
- 194: "JS_FUNCTION_TYPE", |
- 174: "JS_FUNCTION_PROXY_TYPE", |
- 169: "DEBUG_INFO_TYPE", |
- 170: "BREAK_POINT_INFO_TYPE", |
+ 138: "EXTERNAL_INT8_ARRAY_TYPE", |
+ 139: "EXTERNAL_UINT8_ARRAY_TYPE", |
+ 140: "EXTERNAL_INT16_ARRAY_TYPE", |
+ 141: "EXTERNAL_UINT16_ARRAY_TYPE", |
+ 142: "EXTERNAL_INT32_ARRAY_TYPE", |
+ 143: "EXTERNAL_UINT32_ARRAY_TYPE", |
+ 144: "EXTERNAL_FLOAT32_ARRAY_TYPE", |
+ 145: "EXTERNAL_FLOAT64_ARRAY_TYPE", |
+ 146: "EXTERNAL_UINT8_CLAMPED_ARRAY_TYPE", |
+ 147: "FIXED_INT8_ARRAY_TYPE", |
+ 148: "FIXED_UINT8_ARRAY_TYPE", |
+ 149: "FIXED_INT16_ARRAY_TYPE", |
+ 150: "FIXED_UINT16_ARRAY_TYPE", |
+ 151: "FIXED_INT32_ARRAY_TYPE", |
+ 152: "FIXED_UINT32_ARRAY_TYPE", |
+ 153: "FIXED_FLOAT32_ARRAY_TYPE", |
+ 154: "FIXED_FLOAT64_ARRAY_TYPE", |
+ 155: "FIXED_UINT8_CLAMPED_ARRAY_TYPE", |
+ 157: "FILLER_TYPE", |
+ 158: "DECLARED_ACCESSOR_DESCRIPTOR_TYPE", |
+ 159: "DECLARED_ACCESSOR_INFO_TYPE", |
+ 160: "EXECUTABLE_ACCESSOR_INFO_TYPE", |
+ 161: "ACCESSOR_PAIR_TYPE", |
+ 162: "ACCESS_CHECK_INFO_TYPE", |
+ 163: "INTERCEPTOR_INFO_TYPE", |
+ 164: "CALL_HANDLER_INFO_TYPE", |
+ 165: "FUNCTION_TEMPLATE_INFO_TYPE", |
+ 166: "OBJECT_TEMPLATE_INFO_TYPE", |
+ 167: "SIGNATURE_INFO_TYPE", |
+ 168: "TYPE_SWITCH_INFO_TYPE", |
+ 170: "ALLOCATION_MEMENTO_TYPE", |
+ 169: "ALLOCATION_SITE_TYPE", |
+ 171: "SCRIPT_TYPE", |
+ 172: "CODE_CACHE_TYPE", |
+ 173: "POLYMORPHIC_CODE_CACHE_TYPE", |
+ 174: "TYPE_FEEDBACK_INFO_TYPE", |
+ 175: "ALIASED_ARGUMENTS_ENTRY_TYPE", |
+ 176: "BOX_TYPE", |
+ 179: "FIXED_ARRAY_TYPE", |
+ 156: "FIXED_DOUBLE_ARRAY_TYPE", |
+ 180: "CONSTANT_POOL_ARRAY_TYPE", |
+ 181: "SHARED_FUNCTION_INFO_TYPE", |
+ 182: "JS_MESSAGE_OBJECT_TYPE", |
+ 185: "JS_VALUE_TYPE", |
+ 186: "JS_DATE_TYPE", |
+ 187: "JS_OBJECT_TYPE", |
+ 188: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", |
+ 189: "JS_GENERATOR_OBJECT_TYPE", |
+ 190: "JS_MODULE_TYPE", |
+ 191: "JS_GLOBAL_OBJECT_TYPE", |
+ 192: "JS_BUILTINS_OBJECT_TYPE", |
+ 193: "JS_GLOBAL_PROXY_TYPE", |
+ 194: "JS_ARRAY_TYPE", |
+ 195: "JS_ARRAY_BUFFER_TYPE", |
+ 196: "JS_TYPED_ARRAY_TYPE", |
+ 197: "JS_DATA_VIEW_TYPE", |
+ 184: "JS_PROXY_TYPE", |
+ 198: "JS_SET_TYPE", |
+ 199: "JS_MAP_TYPE", |
+ 200: "JS_WEAK_MAP_TYPE", |
+ 201: "JS_WEAK_SET_TYPE", |
+ 202: "JS_REGEXP_TYPE", |
+ 203: "JS_FUNCTION_TYPE", |
+ 183: "JS_FUNCTION_PROXY_TYPE", |
+ 177: "DEBUG_INFO_TYPE", |
+ 178: "BREAK_POINT_INFO_TYPE", |
} |
# List of known V8 maps. |
@@ -127,21 +136,21 @@ KNOWN_MAPS = { |
0x080a9: (129, "MetaMap"), |
0x080d1: (131, "OddballMap"), |
0x080f9: (4, "AsciiInternalizedStringMap"), |
- 0x08121: (171, "FixedArrayMap"), |
+ 0x08121: (179, "FixedArrayMap"), |
0x08149: (134, "HeapNumberMap"), |
- 0x08171: (137, "FreeSpaceMap"), |
- 0x08199: (149, "OnePointerFillerMap"), |
- 0x081c1: (149, "TwoPointerFillerMap"), |
- 0x081e9: (132, "CellMap"), |
- 0x08211: (133, "GlobalPropertyCellMap"), |
- 0x08239: (172, "SharedFunctionInfoMap"), |
- 0x08261: (171, "NativeContextMap"), |
- 0x08289: (130, "CodeMap"), |
- 0x082b1: (171, "ScopeInfoMap"), |
- 0x082d9: (171, "FixedCOWArrayMap"), |
- 0x08301: (147, "FixedDoubleArrayMap"), |
- 0x08329: (148, "ConstantPoolArrayMap"), |
- 0x08351: (171, "HashTableMap"), |
+ 0x08171: (130, "CodeMap"), |
+ 0x08199: (180, "ConstantPoolArrayMap"), |
+ 0x081c1: (137, "FreeSpaceMap"), |
+ 0x081e9: (157, "OnePointerFillerMap"), |
+ 0x08211: (157, "TwoPointerFillerMap"), |
+ 0x08239: (132, "CellMap"), |
+ 0x08261: (133, "GlobalPropertyCellMap"), |
+ 0x08289: (181, "SharedFunctionInfoMap"), |
+ 0x082b1: (179, "NativeContextMap"), |
+ 0x082d9: (179, "ScopeInfoMap"), |
+ 0x08301: (179, "FixedCOWArrayMap"), |
+ 0x08329: (156, "FixedDoubleArrayMap"), |
+ 0x08351: (179, "HashTableMap"), |
0x08379: (128, "SymbolMap"), |
0x083a1: (64, "StringMap"), |
0x083c9: (68, "AsciiStringMap"), |
@@ -166,92 +175,104 @@ KNOWN_MAPS = { |
0x086c1: (86, "ShortExternalAsciiStringMap"), |
0x086e9: (64, "UndetectableStringMap"), |
0x08711: (68, "UndetectableAsciiStringMap"), |
- 0x08739: (138, "ExternalByteArrayMap"), |
- 0x08761: (139, "ExternalUnsignedByteArrayMap"), |
- 0x08789: (140, "ExternalShortArrayMap"), |
- 0x087b1: (141, "ExternalUnsignedShortArrayMap"), |
- 0x087d9: (142, "ExternalIntArrayMap"), |
- 0x08801: (143, "ExternalUnsignedIntArrayMap"), |
- 0x08829: (144, "ExternalFloatArrayMap"), |
- 0x08851: (145, "ExternalDoubleArrayMap"), |
- 0x08879: (146, "ExternalPixelArrayMap"), |
- 0x088a1: (171, "NonStrictArgumentsElementsMap"), |
- 0x088c9: (171, "FunctionContextMap"), |
- 0x088f1: (171, "CatchContextMap"), |
- 0x08919: (171, "WithContextMap"), |
- 0x08941: (171, "BlockContextMap"), |
- 0x08969: (171, "ModuleContextMap"), |
- 0x08991: (171, "GlobalContextMap"), |
- 0x089b9: (173, "JSMessageObjectMap"), |
- 0x089e1: (135, "ForeignMap"), |
- 0x08a09: (178, "NeanderMap"), |
- 0x08a31: (162, "AllocationMementoMap"), |
- 0x08a59: (161, "AllocationSiteMap"), |
- 0x08a81: (165, "PolymorphicCodeCacheMap"), |
- 0x08aa9: (163, "ScriptMap"), |
- 0x08af9: (178, "ExternalMap"), |
- 0x08b21: (168, "BoxMap"), |
- 0x08b49: (150, "DeclaredAccessorDescriptorMap"), |
- 0x08b71: (151, "DeclaredAccessorInfoMap"), |
- 0x08b99: (152, "ExecutableAccessorInfoMap"), |
- 0x08bc1: (153, "AccessorPairMap"), |
- 0x08be9: (154, "AccessCheckInfoMap"), |
- 0x08c11: (155, "InterceptorInfoMap"), |
- 0x08c39: (156, "CallHandlerInfoMap"), |
- 0x08c61: (157, "FunctionTemplateInfoMap"), |
- 0x08c89: (158, "ObjectTemplateInfoMap"), |
- 0x08cb1: (159, "SignatureInfoMap"), |
- 0x08cd9: (160, "TypeSwitchInfoMap"), |
- 0x08d01: (164, "CodeCacheMap"), |
- 0x08d29: (166, "TypeFeedbackInfoMap"), |
- 0x08d51: (167, "AliasedArgumentsEntryMap"), |
- 0x08d79: (169, "DebugInfoMap"), |
- 0x08da1: (170, "BreakPointInfoMap"), |
+ 0x08739: (138, "ExternalInt8ArrayMap"), |
+ 0x08761: (139, "ExternalUint8ArrayMap"), |
+ 0x08789: (140, "ExternalInt16ArrayMap"), |
+ 0x087b1: (141, "ExternalUint16ArrayMap"), |
+ 0x087d9: (142, "ExternalInt32ArrayMap"), |
+ 0x08801: (143, "ExternalUint32ArrayMap"), |
+ 0x08829: (144, "ExternalFloat32ArrayMap"), |
+ 0x08851: (145, "ExternalFloat64ArrayMap"), |
+ 0x08879: (146, "ExternalUint8ClampedArrayMap"), |
+ 0x088a1: (148, "FixedUint8ArrayMap"), |
+ 0x088c9: (147, "FixedInt8ArrayMap"), |
+ 0x088f1: (150, "FixedUint16ArrayMap"), |
+ 0x08919: (149, "FixedInt16ArrayMap"), |
+ 0x08941: (152, "FixedUint32ArrayMap"), |
+ 0x08969: (151, "FixedInt32ArrayMap"), |
+ 0x08991: (153, "FixedFloat32ArrayMap"), |
+ 0x089b9: (154, "FixedFloat64ArrayMap"), |
+ 0x089e1: (155, "FixedUint8ClampedArrayMap"), |
+ 0x08a09: (179, "NonStrictArgumentsElementsMap"), |
+ 0x08a31: (179, "FunctionContextMap"), |
+ 0x08a59: (179, "CatchContextMap"), |
+ 0x08a81: (179, "WithContextMap"), |
+ 0x08aa9: (179, "BlockContextMap"), |
+ 0x08ad1: (179, "ModuleContextMap"), |
+ 0x08af9: (179, "GlobalContextMap"), |
+ 0x08b21: (182, "JSMessageObjectMap"), |
+ 0x08b49: (135, "ForeignMap"), |
+ 0x08b71: (187, "NeanderMap"), |
+ 0x08b99: (170, "AllocationMementoMap"), |
+ 0x08bc1: (169, "AllocationSiteMap"), |
+ 0x08be9: (173, "PolymorphicCodeCacheMap"), |
+ 0x08c11: (171, "ScriptMap"), |
+ 0x08c61: (187, "ExternalMap"), |
+ 0x08cb1: (176, "BoxMap"), |
+ 0x08cd9: (158, "DeclaredAccessorDescriptorMap"), |
+ 0x08d01: (159, "DeclaredAccessorInfoMap"), |
+ 0x08d29: (160, "ExecutableAccessorInfoMap"), |
+ 0x08d51: (161, "AccessorPairMap"), |
+ 0x08d79: (162, "AccessCheckInfoMap"), |
+ 0x08da1: (163, "InterceptorInfoMap"), |
+ 0x08dc9: (164, "CallHandlerInfoMap"), |
+ 0x08df1: (165, "FunctionTemplateInfoMap"), |
+ 0x08e19: (166, "ObjectTemplateInfoMap"), |
+ 0x08e41: (167, "SignatureInfoMap"), |
+ 0x08e69: (168, "TypeSwitchInfoMap"), |
+ 0x08e91: (172, "CodeCacheMap"), |
+ 0x08eb9: (174, "TypeFeedbackInfoMap"), |
+ 0x08ee1: (175, "AliasedArgumentsEntryMap"), |
+ 0x08f09: (177, "DebugInfoMap"), |
+ 0x08f31: (178, "BreakPointInfoMap"), |
} |
# List of known V8 objects. |
KNOWN_OBJECTS = { |
("OLD_POINTER_SPACE", 0x08081): "NullValue", |
("OLD_POINTER_SPACE", 0x08091): "UndefinedValue", |
- ("OLD_POINTER_SPACE", 0x080a1): "TheHoleValue", |
- ("OLD_POINTER_SPACE", 0x080b1): "TrueValue", |
- ("OLD_POINTER_SPACE", 0x080c1): "FalseValue", |
- ("OLD_POINTER_SPACE", 0x080d1): "UninitializedValue", |
- ("OLD_POINTER_SPACE", 0x080e1): "NoInterceptorResultSentinel", |
- ("OLD_POINTER_SPACE", 0x080f1): "ArgumentsMarker", |
- ("OLD_POINTER_SPACE", 0x08101): "NumberStringCache", |
- ("OLD_POINTER_SPACE", 0x08909): "SingleCharacterStringCache", |
- ("OLD_POINTER_SPACE", 0x08d11): "StringSplitCache", |
- ("OLD_POINTER_SPACE", 0x09119): "RegExpMultipleCache", |
- ("OLD_POINTER_SPACE", 0x09521): "TerminationException", |
- ("OLD_POINTER_SPACE", 0x09531): "MessageListeners", |
- ("OLD_POINTER_SPACE", 0x0954d): "CodeStubs", |
- ("OLD_POINTER_SPACE", 0x10485): "NonMonomorphicCache", |
- ("OLD_POINTER_SPACE", 0x10a99): "PolymorphicCodeCache", |
- ("OLD_POINTER_SPACE", 0x10aa1): "NativesSourceCache", |
- ("OLD_POINTER_SPACE", 0x10aed): "EmptyScript", |
- ("OLD_POINTER_SPACE", 0x10b25): "IntrinsicFunctionNames", |
- ("OLD_POINTER_SPACE", 0x13b41): "ObservationState", |
- ("OLD_POINTER_SPACE", 0x13b4d): "FrozenSymbol", |
- ("OLD_POINTER_SPACE", 0x13b5d): "ElementsTransitionSymbol", |
- ("OLD_POINTER_SPACE", 0x13b6d): "EmptySlowElementDictionary", |
- ("OLD_POINTER_SPACE", 0x13d09): "ObservedSymbol", |
- ("OLD_POINTER_SPACE", 0x32325): "StringTable", |
+ ("OLD_POINTER_SPACE", 0x0810d): "TheHoleValue", |
+ ("OLD_POINTER_SPACE", 0x0811d): "TerminationException", |
+ ("OLD_POINTER_SPACE", 0x0812d): "TrueValue", |
+ ("OLD_POINTER_SPACE", 0x0813d): "FalseValue", |
+ ("OLD_POINTER_SPACE", 0x081b9): "UninitializedValue", |
+ ("OLD_POINTER_SPACE", 0x081c9): "NoInterceptorResultSentinel", |
+ ("OLD_POINTER_SPACE", 0x081d9): "ArgumentsMarker", |
+ ("OLD_POINTER_SPACE", 0x081e9): "NumberStringCache", |
+ ("OLD_POINTER_SPACE", 0x089f1): "SingleCharacterStringCache", |
+ ("OLD_POINTER_SPACE", 0x08df9): "StringSplitCache", |
+ ("OLD_POINTER_SPACE", 0x09201): "RegExpMultipleCache", |
+ ("OLD_POINTER_SPACE", 0x09609): "MessageListeners", |
+ ("OLD_POINTER_SPACE", 0x09625): "CodeStubs", |
+ ("OLD_POINTER_SPACE", 0x103e9): "NonMonomorphicCache", |
+ ("OLD_POINTER_SPACE", 0x109fd): "PolymorphicCodeCache", |
+ ("OLD_POINTER_SPACE", 0x10a05): "NativesSourceCache", |
+ ("OLD_POINTER_SPACE", 0x10a51): "EmptyScript", |
+ ("OLD_POINTER_SPACE", 0x10a89): "IntrinsicFunctionNames", |
+ ("OLD_POINTER_SPACE", 0x13aa5): "ObservationState", |
+ ("OLD_POINTER_SPACE", 0x13ab1): "FrozenSymbol", |
+ ("OLD_POINTER_SPACE", 0x13ac1): "ElementsTransitionSymbol", |
+ ("OLD_POINTER_SPACE", 0x13ad1): "EmptySlowElementDictionary", |
+ ("OLD_POINTER_SPACE", 0x13c6d): "ObservedSymbol", |
+ ("OLD_POINTER_SPACE", 0x13c7d): "AllocationSitesScratchpad", |
+ ("OLD_POINTER_SPACE", 0x14085): "MicrotaskState", |
+ ("OLD_POINTER_SPACE", 0x32885): "StringTable", |
("OLD_DATA_SPACE", 0x08099): "EmptyDescriptorArray", |
("OLD_DATA_SPACE", 0x080a1): "EmptyFixedArray", |
("OLD_DATA_SPACE", 0x080a9): "NanValue", |
- ("OLD_DATA_SPACE", 0x08141): "EmptyByteArray", |
- ("OLD_DATA_SPACE", 0x08279): "EmptyExternalByteArray", |
- ("OLD_DATA_SPACE", 0x08285): "EmptyExternalUnsignedByteArray", |
- ("OLD_DATA_SPACE", 0x08291): "EmptyExternalShortArray", |
- ("OLD_DATA_SPACE", 0x0829d): "EmptyExternalUnsignedShortArray", |
- ("OLD_DATA_SPACE", 0x082a9): "EmptyExternalIntArray", |
- ("OLD_DATA_SPACE", 0x082b5): "EmptyExternalUnsignedIntArray", |
- ("OLD_DATA_SPACE", 0x082c1): "EmptyExternalFloatArray", |
- ("OLD_DATA_SPACE", 0x082cd): "EmptyExternalDoubleArray", |
- ("OLD_DATA_SPACE", 0x082d9): "EmptyExternalPixelArray", |
- ("OLD_DATA_SPACE", 0x082e5): "InfinityValue", |
- ("OLD_DATA_SPACE", 0x082f1): "MinusZeroValue", |
- ("CODE_SPACE", 0x14181): "JsConstructEntryCode", |
- ("CODE_SPACE", 0x15c61): "JsEntryCode", |
+ ("OLD_DATA_SPACE", 0x080e5): "EmptyConstantPoolArray", |
+ ("OLD_DATA_SPACE", 0x08235): "EmptyByteArray", |
+ ("OLD_DATA_SPACE", 0x08349): "EmptyExternalInt8Array", |
+ ("OLD_DATA_SPACE", 0x08355): "EmptyExternalUint8Array", |
+ ("OLD_DATA_SPACE", 0x08361): "EmptyExternalInt16Array", |
+ ("OLD_DATA_SPACE", 0x0836d): "EmptyExternalUint16Array", |
+ ("OLD_DATA_SPACE", 0x08379): "EmptyExternalInt32Array", |
+ ("OLD_DATA_SPACE", 0x08385): "EmptyExternalUint32Array", |
+ ("OLD_DATA_SPACE", 0x08391): "EmptyExternalFloat32Array", |
+ ("OLD_DATA_SPACE", 0x0839d): "EmptyExternalFloat64Array", |
+ ("OLD_DATA_SPACE", 0x083a9): "EmptyExternalUint8ClampedArray", |
+ ("OLD_DATA_SPACE", 0x083b5): "InfinityValue", |
+ ("OLD_DATA_SPACE", 0x083c1): "MinusZeroValue", |
+ ("CODE_SPACE", 0x13c81): "JsConstructEntryCode", |
+ ("CODE_SPACE", 0x215a1): "JsEntryCode", |
} |