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. 32INSTANCE_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 2: "EXTERNAL_INTERNALIZED_STRING_TYPE", 48 6: "EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE", 49 10: "EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE", 50 18: "SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE", 51 22: "SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE", 52 26: "SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE", 53 128: "SYMBOL_TYPE", 54 130: "SIMD128_VALUE_TYPE", 55 132: "MAP_TYPE", 56 133: "CODE_TYPE", 57 131: "ODDBALL_TYPE", 58 169: "CELL_TYPE", 59 172: "PROPERTY_CELL_TYPE", 60 129: "HEAP_NUMBER_TYPE", 61 134: "MUTABLE_HEAP_NUMBER_TYPE", 62 135: "FOREIGN_TYPE", 63 136: "BYTE_ARRAY_TYPE", 64 137: "BYTECODE_ARRAY_TYPE", 65 138: "FREE_SPACE_TYPE", 66 139: "FIXED_INT8_ARRAY_TYPE", 67 140: "FIXED_UINT8_ARRAY_TYPE", 68 141: "FIXED_INT16_ARRAY_TYPE", 69 142: "FIXED_UINT16_ARRAY_TYPE", 70 143: "FIXED_INT32_ARRAY_TYPE", 71 144: "FIXED_UINT32_ARRAY_TYPE", 72 145: "FIXED_FLOAT32_ARRAY_TYPE", 73 146: "FIXED_FLOAT64_ARRAY_TYPE", 74 147: "FIXED_UINT8_CLAMPED_ARRAY_TYPE", 75 149: "FILLER_TYPE", 76 150: "ACCESSOR_INFO_TYPE", 77 151: "ACCESSOR_PAIR_TYPE", 78 152: "ACCESS_CHECK_INFO_TYPE", 79 153: "INTERCEPTOR_INFO_TYPE", 80 154: "CALL_HANDLER_INFO_TYPE", 81 155: "FUNCTION_TEMPLATE_INFO_TYPE", 82 156: "OBJECT_TEMPLATE_INFO_TYPE", 83 157: "SIGNATURE_INFO_TYPE", 84 158: "TYPE_SWITCH_INFO_TYPE", 85 160: "ALLOCATION_MEMENTO_TYPE", 86 159: "ALLOCATION_SITE_TYPE", 87 161: "SCRIPT_TYPE", 88 162: "TYPE_FEEDBACK_INFO_TYPE", 89 163: "ALIASED_ARGUMENTS_ENTRY_TYPE", 90 164: "BOX_TYPE", 91 173: "PROTOTYPE_INFO_TYPE", 92 174: "CONTEXT_EXTENSION_TYPE", 93 167: "FIXED_ARRAY_TYPE", 94 148: "FIXED_DOUBLE_ARRAY_TYPE", 95 168: "SHARED_FUNCTION_INFO_TYPE", 96 170: "WEAK_CELL_TYPE", 97 171: "TRANSITION_ARRAY_TYPE", 98 180: "JS_MESSAGE_OBJECT_TYPE", 99 179: "JS_VALUE_TYPE", 100 181: "JS_DATE_TYPE", 101 183: "JS_OBJECT_TYPE", 102 184: "JS_ARGUMENTS_TYPE", 103 185: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", 104 186: "JS_GENERATOR_OBJECT_TYPE", 105 187: "JS_MODULE_TYPE", 106 176: "JS_GLOBAL_OBJECT_TYPE", 107 177: "JS_GLOBAL_PROXY_TYPE", 108 182: "JS_API_OBJECT_TYPE", 109 178: "JS_SPECIAL_API_OBJECT_TYPE", 110 188: "JS_ARRAY_TYPE", 111 189: "JS_ARRAY_BUFFER_TYPE", 112 190: "JS_TYPED_ARRAY_TYPE", 113 191: "JS_DATA_VIEW_TYPE", 114 175: "JS_PROXY_TYPE", 115 192: "JS_SET_TYPE", 116 193: "JS_MAP_TYPE", 117 194: "JS_SET_ITERATOR_TYPE", 118 195: "JS_MAP_ITERATOR_TYPE", 119 196: "JS_WEAK_MAP_TYPE", 120 197: "JS_WEAK_SET_TYPE", 121 198: "JS_PROMISE_TYPE", 122 199: "JS_REGEXP_TYPE", 123 200: "JS_ERROR_TYPE", 124 201: "JS_BOUND_FUNCTION_TYPE", 125 202: "JS_FUNCTION_TYPE", 126 165: "DEBUG_INFO_TYPE", 127 166: "BREAK_POINT_INFO_TYPE", 128} 129 130# List of known V8 maps. 131KNOWN_MAPS = { 132 0x08101: (138, "FreeSpaceMap"), 133 0x0812d: (132, "MetaMap"), 134 0x08159: (131, "NullMap"), 135 0x08185: (167, "FixedArrayMap"), 136 0x081b1: (4, "OneByteInternalizedStringMap"), 137 0x081dd: (149, "OnePointerFillerMap"), 138 0x08209: (149, "TwoPointerFillerMap"), 139 0x08235: (131, "UninitializedMap"), 140 0x08261: (131, "UndefinedMap"), 141 0x0828d: (129, "HeapNumberMap"), 142 0x082b9: (131, "TheHoleMap"), 143 0x082e5: (131, "BooleanMap"), 144 0x08311: (136, "ByteArrayMap"), 145 0x0833d: (167, "FixedCOWArrayMap"), 146 0x08369: (167, "HashTableMap"), 147 0x08395: (128, "SymbolMap"), 148 0x083c1: (68, "OneByteStringMap"), 149 0x083ed: (167, "ScopeInfoMap"), 150 0x08419: (168, "SharedFunctionInfoMap"), 151 0x08445: (133, "CodeMap"), 152 0x08471: (167, "FunctionContextMap"), 153 0x0849d: (169, "CellMap"), 154 0x084c9: (170, "WeakCellMap"), 155 0x084f5: (172, "GlobalPropertyCellMap"), 156 0x08521: (135, "ForeignMap"), 157 0x0854d: (171, "TransitionArrayMap"), 158 0x08579: (131, "NoInterceptorResultSentinelMap"), 159 0x085a5: (131, "ArgumentsMarkerMap"), 160 0x085d1: (167, "NativeContextMap"), 161 0x085fd: (167, "ModuleContextMap"), 162 0x08629: (167, "ScriptContextMap"), 163 0x08655: (167, "BlockContextMap"), 164 0x08681: (167, "CatchContextMap"), 165 0x086ad: (167, "WithContextMap"), 166 0x086d9: (148, "FixedDoubleArrayMap"), 167 0x08705: (134, "MutableHeapNumberMap"), 168 0x08731: (167, "OrderedHashTableMap"), 169 0x0875d: (167, "SloppyArgumentsElementsMap"), 170 0x08789: (180, "JSMessageObjectMap"), 171 0x087b5: (183, "NeanderMap"), 172 0x087e1: (137, "BytecodeArrayMap"), 173 0x0880d: (64, "StringMap"), 174 0x08839: (69, "ConsOneByteStringMap"), 175 0x08865: (65, "ConsStringMap"), 176 0x08891: (67, "SlicedStringMap"), 177 0x088bd: (71, "SlicedOneByteStringMap"), 178 0x088e9: (66, "ExternalStringMap"), 179 0x08915: (74, "ExternalStringWithOneByteDataMap"), 180 0x08941: (70, "ExternalOneByteStringMap"), 181 0x0896d: (82, "ShortExternalStringMap"), 182 0x08999: (90, "ShortExternalStringWithOneByteDataMap"), 183 0x089c5: (0, "InternalizedStringMap"), 184 0x089f1: (2, "ExternalInternalizedStringMap"), 185 0x08a1d: (10, "ExternalInternalizedStringWithOneByteDataMap"), 186 0x08a49: (6, "ExternalOneByteInternalizedStringMap"), 187 0x08a75: (18, "ShortExternalInternalizedStringMap"), 188 0x08aa1: (26, "ShortExternalInternalizedStringWithOneByteDataMap"), 189 0x08acd: (22, "ShortExternalOneByteInternalizedStringMap"), 190 0x08af9: (86, "ShortExternalOneByteStringMap"), 191 0x08b25: (130, "Float32x4Map"), 192 0x08b51: (130, "Int32x4Map"), 193 0x08b7d: (130, "Uint32x4Map"), 194 0x08ba9: (130, "Bool32x4Map"), 195 0x08bd5: (130, "Int16x8Map"), 196 0x08c01: (130, "Uint16x8Map"), 197 0x08c2d: (130, "Bool16x8Map"), 198 0x08c59: (130, "Int8x16Map"), 199 0x08c85: (130, "Uint8x16Map"), 200 0x08cb1: (130, "Bool8x16Map"), 201 0x08cdd: (131, "ExceptionMap"), 202 0x08d09: (131, "TerminationExceptionMap"), 203 0x08d35: (131, "OptimizedOutMap"), 204 0x08d61: (131, "StaleRegisterMap"), 205 0x08d8d: (167, "DebugEvaluateContextMap"), 206 0x08db9: (167, "ScriptContextTableMap"), 207 0x08de5: (167, "UnseededNumberDictionaryMap"), 208 0x08e11: (183, "ExternalMap"), 209 0x08e3d: (86, "NativeSourceStringMap"), 210 0x08e69: (140, "FixedUint8ArrayMap"), 211 0x08e95: (139, "FixedInt8ArrayMap"), 212 0x08ec1: (142, "FixedUint16ArrayMap"), 213 0x08eed: (141, "FixedInt16ArrayMap"), 214 0x08f19: (144, "FixedUint32ArrayMap"), 215 0x08f45: (143, "FixedInt32ArrayMap"), 216 0x08f71: (145, "FixedFloat32ArrayMap"), 217 0x08f9d: (146, "FixedFloat64ArrayMap"), 218 0x08fc9: (147, "FixedUint8ClampedArrayMap"), 219 0x08ff5: (161, "ScriptMap"), 220 0x09021: (159, "AllocationSiteMap"), 221 0x0904d: (160, "AllocationMementoMap"), 222 0x09079: (150, "AccessorInfoMap"), 223 0x090a5: (164, "BoxMap"), 224 0x090d1: (151, "AccessorPairMap"), 225 0x090fd: (152, "AccessCheckInfoMap"), 226 0x09129: (153, "InterceptorInfoMap"), 227 0x09155: (154, "CallHandlerInfoMap"), 228 0x09181: (155, "FunctionTemplateInfoMap"), 229 0x091ad: (156, "ObjectTemplateInfoMap"), 230 0x091d9: (162, "TypeFeedbackInfoMap"), 231 0x09205: (163, "AliasedArgumentsEntryMap"), 232 0x09231: (165, "DebugInfoMap"), 233 0x0925d: (166, "BreakPointInfoMap"), 234 0x09289: (173, "PrototypeInfoMap"), 235 0x092b5: (174, "ContextExtensionMap"), 236} 237 238# List of known V8 objects. 239KNOWN_OBJECTS = { 240 ("OLD_SPACE", 0x08101): "NullValue", 241 ("OLD_SPACE", 0x0811d): "EmptyDescriptorArray", 242 ("OLD_SPACE", 0x08125): "EmptyFixedArray", 243 ("OLD_SPACE", 0x08151): "UninitializedValue", 244 ("OLD_SPACE", 0x081a1): "UndefinedValue", 245 ("OLD_SPACE", 0x081bd): "NanValue", 246 ("OLD_SPACE", 0x081cd): "TheHoleValue", 247 ("OLD_SPACE", 0x081f9): "TrueValue", 248 ("OLD_SPACE", 0x08239): "FalseValue", 249 ("OLD_SPACE", 0x08269): "empty_string", 250 ("OLD_SPACE", 0x08275): "NoInterceptorResultSentinel", 251 ("OLD_SPACE", 0x082bd): "ArgumentsMarker", 252 ("OLD_SPACE", 0x082f5): "EmptyByteArray", 253 ("OLD_SPACE", 0x082fd): "EmptyWeakCell", 254 ("OLD_SPACE", 0x0830d): "InfinityValue", 255 ("OLD_SPACE", 0x0831d): "MinusZeroValue", 256 ("OLD_SPACE", 0x0832d): "MinusInfinityValue", 257 ("OLD_SPACE", 0x09961): "EmptyLiteralsArray", 258 ("OLD_SPACE", 0x0996d): "ClearedOptimizedCodeMap", 259 ("OLD_SPACE", 0x09979): "Exception", 260 ("OLD_SPACE", 0x099ad): "TerminationException", 261 ("OLD_SPACE", 0x099ed): "OptimizedOut", 262 ("OLD_SPACE", 0x09a25): "StaleRegister", 263 ("OLD_SPACE", 0x09a5d): "EmptyFixedUint8Array", 264 ("OLD_SPACE", 0x09a6d): "EmptyFixedInt8Array", 265 ("OLD_SPACE", 0x09a7d): "EmptyFixedUint16Array", 266 ("OLD_SPACE", 0x09a8d): "EmptyFixedInt16Array", 267 ("OLD_SPACE", 0x09a9d): "EmptyFixedUint32Array", 268 ("OLD_SPACE", 0x09aad): "EmptyFixedInt32Array", 269 ("OLD_SPACE", 0x09abd): "EmptyFixedFloat32Array", 270 ("OLD_SPACE", 0x09acd): "EmptyFixedFloat64Array", 271 ("OLD_SPACE", 0x09add): "EmptyFixedUint8ClampedArray", 272 ("OLD_SPACE", 0x09aed): "EmptyScript", 273 ("OLD_SPACE", 0x09b2d): "UndefinedCell", 274 ("OLD_SPACE", 0x09b35): "EmptySloppyArgumentsElements", 275 ("OLD_SPACE", 0x09b45): "EmptySlowElementDictionary", 276 ("OLD_SPACE", 0x09b91): "DummyVector", 277 ("OLD_SPACE", 0x09c09): "EmptyPropertyCell", 278 ("OLD_SPACE", 0x09c19): "ArrayProtector", 279 ("OLD_SPACE", 0x09c29): "IsConcatSpreadableProtector", 280 ("OLD_SPACE", 0x09c31): "HasInstanceProtector", 281 ("OLD_SPACE", 0x09c41): "SpeciesProtector", 282 ("OLD_SPACE", 0x09c49): "NumberStringCache", 283 ("OLD_SPACE", 0x0a451): "SingleCharacterStringCache", 284 ("OLD_SPACE", 0x0a909): "StringSplitCache", 285 ("OLD_SPACE", 0x0ad11): "RegExpMultipleCache", 286 ("OLD_SPACE", 0x0b119): "NativesSourceCache", 287 ("OLD_SPACE", 0x0b2e5): "ExperimentalNativesSourceCache", 288 ("OLD_SPACE", 0x0b309): "ExtraNativesSourceCache", 289 ("OLD_SPACE", 0x0b325): "ExperimentalExtraNativesSourceCache", 290 ("OLD_SPACE", 0x0b331): "IntrinsicFunctionNames", 291 ("OLD_SPACE", 0x244bd): "EmptyPropertiesDictionary", 292 ("OLD_SPACE", 0x24509): "ScriptList", 293 ("OLD_SPACE", 0x3fd85): "CodeStubs", 294 ("OLD_SPACE", 0x49285): "WeakObjectToCodeTable", 295 ("OLD_SPACE", 0x49399): "WeakNewSpaceObjectToCodeList", 296 ("OLD_SPACE", 0x493e1): "NoScriptSharedFunctionInfos", 297 ("OLD_SPACE", 0x50cf9): "MessageListeners", 298 ("OLD_SPACE", 0x5494d): "StringTable", 299 ("CODE_SPACE", 0x184a1): "JsConstructEntryCode", 300 ("CODE_SPACE", 0x23fe1): "JsEntryCode", 301} 302