1 # Copyright 2013 the V8 project authors. All rights reserved. 2 # Redistribution and use in source and binary forms, with or without 3 # modification, are permitted provided that the following conditions are 4 # met: 5 # 6 # * Redistributions of source code must retain the above copyright 7 # notice, this list of conditions and the following disclaimer. 8 # * Redistributions in binary form must reproduce the above 9 # copyright notice, this list of conditions and the following 10 # disclaimer in the documentation and/or other materials provided 11 # with the distribution. 12 # * Neither the name of Google Inc. nor the names of its 13 # contributors may be used to endorse or promote products derived 14 # from this software without specific prior written permission. 15 # 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28 # This file is automatically generated from the V8 source and should not 29 # be modified manually, run 'make grokdump' instead to update this file. 30 31 # List of known V8 instance types. 32 INSTANCE_TYPES = { 33 64: "STRING_TYPE", 34 68: "ONE_BYTE_STRING_TYPE", 35 65: "CONS_STRING_TYPE", 36 69: "CONS_ONE_BYTE_STRING_TYPE", 37 67: "SLICED_STRING_TYPE", 38 71: "SLICED_ONE_BYTE_STRING_TYPE", 39 66: "EXTERNAL_STRING_TYPE", 40 70: "EXTERNAL_ONE_BYTE_STRING_TYPE", 41 74: "EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE", 42 82: "SHORT_EXTERNAL_STRING_TYPE", 43 86: "SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE", 44 90: "SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE", 45 0: "INTERNALIZED_STRING_TYPE", 46 4: "ONE_BYTE_INTERNALIZED_STRING_TYPE", 47 1: "CONS_INTERNALIZED_STRING_TYPE", 48 5: "CONS_ONE_BYTE_INTERNALIZED_STRING_TYPE", 49 2: "EXTERNAL_INTERNALIZED_STRING_TYPE", 50 6: "EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE", 51 10: "EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE", 52 18: "SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE", 53 22: "SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE", 54 26: "SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE", 55 128: "SYMBOL_TYPE", 56 129: "MAP_TYPE", 57 130: "CODE_TYPE", 58 131: "ODDBALL_TYPE", 59 132: "CELL_TYPE", 60 133: "PROPERTY_CELL_TYPE", 61 134: "HEAP_NUMBER_TYPE", 62 135: "FOREIGN_TYPE", 63 136: "BYTE_ARRAY_TYPE", 64 137: "FREE_SPACE_TYPE", 65 138: "EXTERNAL_INT8_ARRAY_TYPE", 66 139: "EXTERNAL_UINT8_ARRAY_TYPE", 67 140: "EXTERNAL_INT16_ARRAY_TYPE", 68 141: "EXTERNAL_UINT16_ARRAY_TYPE", 69 142: "EXTERNAL_INT32_ARRAY_TYPE", 70 143: "EXTERNAL_UINT32_ARRAY_TYPE", 71 144: "EXTERNAL_FLOAT32_ARRAY_TYPE", 72 145: "EXTERNAL_FLOAT64_ARRAY_TYPE", 73 146: "EXTERNAL_UINT8_CLAMPED_ARRAY_TYPE", 74 147: "FIXED_INT8_ARRAY_TYPE", 75 148: "FIXED_UINT8_ARRAY_TYPE", 76 149: "FIXED_INT16_ARRAY_TYPE", 77 150: "FIXED_UINT16_ARRAY_TYPE", 78 151: "FIXED_INT32_ARRAY_TYPE", 79 152: "FIXED_UINT32_ARRAY_TYPE", 80 153: "FIXED_FLOAT32_ARRAY_TYPE", 81 154: "FIXED_FLOAT64_ARRAY_TYPE", 82 155: "FIXED_UINT8_CLAMPED_ARRAY_TYPE", 83 157: "FILLER_TYPE", 84 158: "DECLARED_ACCESSOR_DESCRIPTOR_TYPE", 85 159: "DECLARED_ACCESSOR_INFO_TYPE", 86 160: "EXECUTABLE_ACCESSOR_INFO_TYPE", 87 161: "ACCESSOR_PAIR_TYPE", 88 162: "ACCESS_CHECK_INFO_TYPE", 89 163: "INTERCEPTOR_INFO_TYPE", 90 164: "CALL_HANDLER_INFO_TYPE", 91 165: "FUNCTION_TEMPLATE_INFO_TYPE", 92 166: "OBJECT_TEMPLATE_INFO_TYPE", 93 167: "SIGNATURE_INFO_TYPE", 94 168: "TYPE_SWITCH_INFO_TYPE", 95 170: "ALLOCATION_MEMENTO_TYPE", 96 169: "ALLOCATION_SITE_TYPE", 97 171: "SCRIPT_TYPE", 98 172: "CODE_CACHE_TYPE", 99 173: "POLYMORPHIC_CODE_CACHE_TYPE", 100 174: "TYPE_FEEDBACK_INFO_TYPE", 101 175: "ALIASED_ARGUMENTS_ENTRY_TYPE", 102 176: "BOX_TYPE", 103 179: "FIXED_ARRAY_TYPE", 104 156: "FIXED_DOUBLE_ARRAY_TYPE", 105 180: "CONSTANT_POOL_ARRAY_TYPE", 106 181: "SHARED_FUNCTION_INFO_TYPE", 107 182: "JS_MESSAGE_OBJECT_TYPE", 108 185: "JS_VALUE_TYPE", 109 186: "JS_DATE_TYPE", 110 187: "JS_OBJECT_TYPE", 111 188: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", 112 189: "JS_GENERATOR_OBJECT_TYPE", 113 190: "JS_MODULE_TYPE", 114 191: "JS_GLOBAL_OBJECT_TYPE", 115 192: "JS_BUILTINS_OBJECT_TYPE", 116 193: "JS_GLOBAL_PROXY_TYPE", 117 194: "JS_ARRAY_TYPE", 118 195: "JS_ARRAY_BUFFER_TYPE", 119 196: "JS_TYPED_ARRAY_TYPE", 120 197: "JS_DATA_VIEW_TYPE", 121 184: "JS_PROXY_TYPE", 122 198: "JS_SET_TYPE", 123 199: "JS_MAP_TYPE", 124 200: "JS_WEAK_MAP_TYPE", 125 201: "JS_WEAK_SET_TYPE", 126 202: "JS_REGEXP_TYPE", 127 203: "JS_FUNCTION_TYPE", 128 183: "JS_FUNCTION_PROXY_TYPE", 129 177: "DEBUG_INFO_TYPE", 130 178: "BREAK_POINT_INFO_TYPE", 131 } 132 133 # List of known V8 maps. 134 KNOWN_MAPS = { 135 0x08081: (136, "ByteArrayMap"), 136 0x080a9: (129, "MetaMap"), 137 0x080d1: (131, "OddballMap"), 138 0x080f9: (4, "OneByteInternalizedStringMap"), 139 0x08121: (179, "FixedArrayMap"), 140 0x08149: (134, "HeapNumberMap"), 141 0x08171: (137, "FreeSpaceMap"), 142 0x08199: (157, "OnePointerFillerMap"), 143 0x081c1: (157, "TwoPointerFillerMap"), 144 0x081e9: (132, "CellMap"), 145 0x08211: (133, "GlobalPropertyCellMap"), 146 0x08239: (181, "SharedFunctionInfoMap"), 147 0x08261: (179, "NativeContextMap"), 148 0x08289: (130, "CodeMap"), 149 0x082b1: (179, "ScopeInfoMap"), 150 0x082d9: (179, "FixedCOWArrayMap"), 151 0x08301: (156, "FixedDoubleArrayMap"), 152 0x08329: (180, "ConstantPoolArrayMap"), 153 0x08351: (179, "HashTableMap"), 154 0x08379: (128, "SymbolMap"), 155 0x083a1: (64, "StringMap"), 156 0x083c9: (68, "OneByteStringMap"), 157 0x083f1: (65, "ConsStringMap"), 158 0x08419: (69, "ConsOneByteStringMap"), 159 0x08441: (67, "SlicedStringMap"), 160 0x08469: (71, "SlicedOneByteStringMap"), 161 0x08491: (66, "ExternalStringMap"), 162 0x084b9: (74, "ExternalStringWithOneByteDataMap"), 163 0x084e1: (70, "ExternalOneByteStringMap"), 164 0x08509: (82, "ShortExternalStringMap"), 165 0x08531: (90, "ShortExternalStringWithOneByteDataMap"), 166 0x08559: (0, "InternalizedStringMap"), 167 0x08581: (1, "ConsInternalizedStringMap"), 168 0x085a9: (5, "ConsOneByteInternalizedStringMap"), 169 0x085d1: (2, "ExternalInternalizedStringMap"), 170 0x085f9: (10, "ExternalInternalizedStringWithOneByteDataMap"), 171 0x08621: (6, "ExternalOneByteInternalizedStringMap"), 172 0x08649: (18, "ShortExternalInternalizedStringMap"), 173 0x08671: (26, "ShortExternalInternalizedStringWithOneByteDataMap"), 174 0x08699: (22, "ShortExternalOneByteInternalizedStringMap"), 175 0x086c1: (86, "ShortExternalOneByteStringMap"), 176 0x086e9: (64, "UndetectableStringMap"), 177 0x08711: (68, "UndetectableOneByteStringMap"), 178 0x08739: (138, "ExternalInt8ArrayMap"), 179 0x08761: (139, "ExternalUint8ArrayMap"), 180 0x08789: (140, "ExternalInt16ArrayMap"), 181 0x087b1: (141, "ExternalUint16ArrayMap"), 182 0x087d9: (142, "ExternalInt32ArrayMap"), 183 0x08801: (143, "ExternalUint32ArrayMap"), 184 0x08829: (144, "ExternalFloat32ArrayMap"), 185 0x08851: (145, "ExternalFloat64ArrayMap"), 186 0x08879: (146, "ExternalUint8ClampedArrayMap"), 187 0x088a1: (148, "FixedUint8ArrayMap"), 188 0x088c9: (147, "FixedInt8ArrayMap"), 189 0x088f1: (150, "FixedUint16ArrayMap"), 190 0x08919: (149, "FixedInt16ArrayMap"), 191 0x08941: (152, "FixedUint32ArrayMap"), 192 0x08969: (151, "FixedInt32ArrayMap"), 193 0x08991: (153, "FixedFloat32ArrayMap"), 194 0x089b9: (154, "FixedFloat64ArrayMap"), 195 0x089e1: (155, "FixedUint8ClampedArrayMap"), 196 0x08a09: (179, "NonStrictArgumentsElementsMap"), 197 0x08a31: (179, "FunctionContextMap"), 198 0x08a59: (179, "CatchContextMap"), 199 0x08a81: (179, "WithContextMap"), 200 0x08aa9: (179, "BlockContextMap"), 201 0x08ad1: (179, "ModuleContextMap"), 202 0x08af9: (179, "GlobalContextMap"), 203 0x08b21: (182, "JSMessageObjectMap"), 204 0x08b49: (135, "ForeignMap"), 205 0x08b71: (187, "NeanderMap"), 206 0x08b99: (170, "AllocationMementoMap"), 207 0x08bc1: (169, "AllocationSiteMap"), 208 0x08be9: (173, "PolymorphicCodeCacheMap"), 209 0x08c11: (171, "ScriptMap"), 210 0x08c61: (187, "ExternalMap"), 211 0x08cb1: (176, "BoxMap"), 212 0x08cd9: (158, "DeclaredAccessorDescriptorMap"), 213 0x08d01: (159, "DeclaredAccessorInfoMap"), 214 0x08d29: (160, "ExecutableAccessorInfoMap"), 215 0x08d51: (161, "AccessorPairMap"), 216 0x08d79: (162, "AccessCheckInfoMap"), 217 0x08da1: (163, "InterceptorInfoMap"), 218 0x08dc9: (164, "CallHandlerInfoMap"), 219 0x08df1: (165, "FunctionTemplateInfoMap"), 220 0x08e19: (166, "ObjectTemplateInfoMap"), 221 0x08e41: (167, "SignatureInfoMap"), 222 0x08e69: (168, "TypeSwitchInfoMap"), 223 0x08e91: (172, "CodeCacheMap"), 224 0x08eb9: (174, "TypeFeedbackInfoMap"), 225 0x08ee1: (175, "AliasedArgumentsEntryMap"), 226 0x08f09: (177, "DebugInfoMap"), 227 0x08f31: (178, "BreakPointInfoMap"), 228 } 229 230 # List of known V8 objects. 231 KNOWN_OBJECTS = { 232 ("OLD_POINTER_SPACE", 0x08081): "NullValue", 233 ("OLD_POINTER_SPACE", 0x08091): "UndefinedValue", 234 ("OLD_POINTER_SPACE", 0x080a1): "TheHoleValue", 235 ("OLD_POINTER_SPACE", 0x080b1): "TrueValue", 236 ("OLD_POINTER_SPACE", 0x080c1): "FalseValue", 237 ("OLD_POINTER_SPACE", 0x080d1): "UninitializedValue", 238 ("OLD_POINTER_SPACE", 0x080e1): "NoInterceptorResultSentinel", 239 ("OLD_POINTER_SPACE", 0x080f1): "ArgumentsMarker", 240 ("OLD_POINTER_SPACE", 0x08101): "NumberStringCache", 241 ("OLD_POINTER_SPACE", 0x08909): "SingleCharacterStringCache", 242 ("OLD_POINTER_SPACE", 0x08d11): "StringSplitCache", 243 ("OLD_POINTER_SPACE", 0x09119): "RegExpMultipleCache", 244 ("OLD_POINTER_SPACE", 0x09521): "TerminationException", 245 ("OLD_POINTER_SPACE", 0x09531): "MessageListeners", 246 ("OLD_POINTER_SPACE", 0x0954d): "CodeStubs", 247 ("OLD_POINTER_SPACE", 0x0ca65): "MegamorphicSymbol", 248 ("OLD_POINTER_SPACE", 0x0ca75): "UninitializedSymbol", 249 ("OLD_POINTER_SPACE", 0x10ae9): "NonMonomorphicCache", 250 ("OLD_POINTER_SPACE", 0x110fd): "PolymorphicCodeCache", 251 ("OLD_POINTER_SPACE", 0x11105): "NativesSourceCache", 252 ("OLD_POINTER_SPACE", 0x11155): "EmptyScript", 253 ("OLD_POINTER_SPACE", 0x11189): "IntrinsicFunctionNames", 254 ("OLD_POINTER_SPACE", 0x141a5): "ObservationState", 255 ("OLD_POINTER_SPACE", 0x141b1): "FrozenSymbol", 256 ("OLD_POINTER_SPACE", 0x141c1): "NonExistentSymbol", 257 ("OLD_POINTER_SPACE", 0x141d1): "ElementsTransitionSymbol", 258 ("OLD_POINTER_SPACE", 0x141e1): "EmptySlowElementDictionary", 259 ("OLD_POINTER_SPACE", 0x1437d): "ObservedSymbol", 260 ("OLD_POINTER_SPACE", 0x1438d): "AllocationSitesScratchpad", 261 ("OLD_POINTER_SPACE", 0x14795): "MicrotaskState", 262 ("OLD_POINTER_SPACE", 0x36241): "StringTable", 263 ("OLD_DATA_SPACE", 0x08099): "EmptyDescriptorArray", 264 ("OLD_DATA_SPACE", 0x080a1): "EmptyFixedArray", 265 ("OLD_DATA_SPACE", 0x080a9): "NanValue", 266 ("OLD_DATA_SPACE", 0x08141): "EmptyByteArray", 267 ("OLD_DATA_SPACE", 0x08149): "EmptyConstantPoolArray", 268 ("OLD_DATA_SPACE", 0x0828d): "EmptyExternalInt8Array", 269 ("OLD_DATA_SPACE", 0x08299): "EmptyExternalUint8Array", 270 ("OLD_DATA_SPACE", 0x082a5): "EmptyExternalInt16Array", 271 ("OLD_DATA_SPACE", 0x082b1): "EmptyExternalUint16Array", 272 ("OLD_DATA_SPACE", 0x082bd): "EmptyExternalInt32Array", 273 ("OLD_DATA_SPACE", 0x082c9): "EmptyExternalUint32Array", 274 ("OLD_DATA_SPACE", 0x082d5): "EmptyExternalFloat32Array", 275 ("OLD_DATA_SPACE", 0x082e1): "EmptyExternalFloat64Array", 276 ("OLD_DATA_SPACE", 0x082ed): "EmptyExternalUint8ClampedArray", 277 ("OLD_DATA_SPACE", 0x082f9): "InfinityValue", 278 ("OLD_DATA_SPACE", 0x08305): "MinusZeroValue", 279 ("CODE_SPACE", 0x138e1): "JsConstructEntryCode", 280 ("CODE_SPACE", 0x21361): "JsEntryCode", 281 } 282