Home | History | Annotate | Download | only in tools
      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   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   173: "CELL_TYPE",
     59   176: "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: "DECLARED_ACCESSOR_DESCRIPTOR_TYPE",
     77   151: "DECLARED_ACCESSOR_INFO_TYPE",
     78   152: "EXECUTABLE_ACCESSOR_INFO_TYPE",
     79   153: "ACCESSOR_PAIR_TYPE",
     80   154: "ACCESS_CHECK_INFO_TYPE",
     81   155: "INTERCEPTOR_INFO_TYPE",
     82   156: "CALL_HANDLER_INFO_TYPE",
     83   157: "FUNCTION_TEMPLATE_INFO_TYPE",
     84   158: "OBJECT_TEMPLATE_INFO_TYPE",
     85   159: "SIGNATURE_INFO_TYPE",
     86   160: "TYPE_SWITCH_INFO_TYPE",
     87   162: "ALLOCATION_MEMENTO_TYPE",
     88   161: "ALLOCATION_SITE_TYPE",
     89   163: "SCRIPT_TYPE",
     90   164: "CODE_CACHE_TYPE",
     91   165: "POLYMORPHIC_CODE_CACHE_TYPE",
     92   166: "TYPE_FEEDBACK_INFO_TYPE",
     93   167: "ALIASED_ARGUMENTS_ENTRY_TYPE",
     94   168: "BOX_TYPE",
     95   177: "PROTOTYPE_INFO_TYPE",
     96   178: "SLOPPY_BLOCK_WITH_EVAL_CONTEXT_EXTENSION_TYPE",
     97   171: "FIXED_ARRAY_TYPE",
     98   148: "FIXED_DOUBLE_ARRAY_TYPE",
     99   172: "SHARED_FUNCTION_INFO_TYPE",
    100   174: "WEAK_CELL_TYPE",
    101   175: "TRANSITION_ARRAY_TYPE",
    102   181: "JS_MESSAGE_OBJECT_TYPE",
    103   180: "JS_VALUE_TYPE",
    104   182: "JS_DATE_TYPE",
    105   183: "JS_OBJECT_TYPE",
    106   184: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
    107   185: "JS_GENERATOR_OBJECT_TYPE",
    108   186: "JS_MODULE_TYPE",
    109   187: "JS_GLOBAL_OBJECT_TYPE",
    110   188: "JS_GLOBAL_PROXY_TYPE",
    111   189: "JS_ARRAY_TYPE",
    112   190: "JS_ARRAY_BUFFER_TYPE",
    113   191: "JS_TYPED_ARRAY_TYPE",
    114   192: "JS_DATA_VIEW_TYPE",
    115   179: "JS_PROXY_TYPE",
    116   193: "JS_SET_TYPE",
    117   194: "JS_MAP_TYPE",
    118   195: "JS_SET_ITERATOR_TYPE",
    119   196: "JS_MAP_ITERATOR_TYPE",
    120   197: "JS_ITERATOR_RESULT_TYPE",
    121   198: "JS_WEAK_MAP_TYPE",
    122   199: "JS_WEAK_SET_TYPE",
    123   200: "JS_PROMISE_TYPE",
    124   201: "JS_REGEXP_TYPE",
    125   202: "JS_BOUND_FUNCTION_TYPE",
    126   203: "JS_FUNCTION_TYPE",
    127   169: "DEBUG_INFO_TYPE",
    128   170: "BREAK_POINT_INFO_TYPE",
    129 }
    130 
    131 # List of known V8 maps.
    132 KNOWN_MAPS = {
    133   0x08081: (136, "ByteArrayMap"),
    134   0x080ad: (132, "MetaMap"),
    135   0x080d9: (131, "NullMap"),
    136   0x08105: (171, "FixedArrayMap"),
    137   0x08131: (4, "OneByteInternalizedStringMap"),
    138   0x0815d: (138, "FreeSpaceMap"),
    139   0x08189: (149, "OnePointerFillerMap"),
    140   0x081b5: (149, "TwoPointerFillerMap"),
    141   0x081e1: (131, "UndefinedMap"),
    142   0x0820d: (129, "HeapNumberMap"),
    143   0x08239: (131, "TheHoleMap"),
    144   0x08265: (131, "BooleanMap"),
    145   0x08291: (131, "UninitializedMap"),
    146   0x082bd: (173, "CellMap"),
    147   0x082e9: (176, "GlobalPropertyCellMap"),
    148   0x08315: (172, "SharedFunctionInfoMap"),
    149   0x08341: (134, "MutableHeapNumberMap"),
    150   0x0836d: (130, "Float32x4Map"),
    151   0x08399: (130, "Int32x4Map"),
    152   0x083c5: (130, "Uint32x4Map"),
    153   0x083f1: (130, "Bool32x4Map"),
    154   0x0841d: (130, "Int16x8Map"),
    155   0x08449: (130, "Uint16x8Map"),
    156   0x08475: (130, "Bool16x8Map"),
    157   0x084a1: (130, "Int8x16Map"),
    158   0x084cd: (130, "Uint8x16Map"),
    159   0x084f9: (130, "Bool8x16Map"),
    160   0x08525: (171, "NativeContextMap"),
    161   0x08551: (133, "CodeMap"),
    162   0x0857d: (171, "ScopeInfoMap"),
    163   0x085a9: (171, "FixedCOWArrayMap"),
    164   0x085d5: (148, "FixedDoubleArrayMap"),
    165   0x08601: (174, "WeakCellMap"),
    166   0x0862d: (175, "TransitionArrayMap"),
    167   0x08659: (68, "OneByteStringMap"),
    168   0x08685: (171, "FunctionContextMap"),
    169   0x086b1: (131, "NoInterceptorResultSentinelMap"),
    170   0x086dd: (131, "ArgumentsMarkerMap"),
    171   0x08709: (131, "ExceptionMap"),
    172   0x08735: (131, "TerminationExceptionMap"),
    173   0x08761: (171, "HashTableMap"),
    174   0x0878d: (171, "OrderedHashTableMap"),
    175   0x087b9: (128, "SymbolMap"),
    176   0x087e5: (64, "StringMap"),
    177   0x08811: (69, "ConsOneByteStringMap"),
    178   0x0883d: (65, "ConsStringMap"),
    179   0x08869: (67, "SlicedStringMap"),
    180   0x08895: (71, "SlicedOneByteStringMap"),
    181   0x088c1: (66, "ExternalStringMap"),
    182   0x088ed: (74, "ExternalStringWithOneByteDataMap"),
    183   0x08919: (70, "ExternalOneByteStringMap"),
    184   0x08945: (70, "NativeSourceStringMap"),
    185   0x08971: (82, "ShortExternalStringMap"),
    186   0x0899d: (90, "ShortExternalStringWithOneByteDataMap"),
    187   0x089c9: (0, "InternalizedStringMap"),
    188   0x089f5: (2, "ExternalInternalizedStringMap"),
    189   0x08a21: (10, "ExternalInternalizedStringWithOneByteDataMap"),
    190   0x08a4d: (6, "ExternalOneByteInternalizedStringMap"),
    191   0x08a79: (18, "ShortExternalInternalizedStringMap"),
    192   0x08aa5: (26, "ShortExternalInternalizedStringWithOneByteDataMap"),
    193   0x08ad1: (22, "ShortExternalOneByteInternalizedStringMap"),
    194   0x08afd: (86, "ShortExternalOneByteStringMap"),
    195   0x08b29: (140, "FixedUint8ArrayMap"),
    196   0x08b55: (139, "FixedInt8ArrayMap"),
    197   0x08b81: (142, "FixedUint16ArrayMap"),
    198   0x08bad: (141, "FixedInt16ArrayMap"),
    199   0x08bd9: (144, "FixedUint32ArrayMap"),
    200   0x08c05: (143, "FixedInt32ArrayMap"),
    201   0x08c31: (145, "FixedFloat32ArrayMap"),
    202   0x08c5d: (146, "FixedFloat64ArrayMap"),
    203   0x08c89: (147, "FixedUint8ClampedArrayMap"),
    204   0x08cb5: (171, "SloppyArgumentsElementsMap"),
    205   0x08ce1: (171, "CatchContextMap"),
    206   0x08d0d: (171, "WithContextMap"),
    207   0x08d39: (171, "BlockContextMap"),
    208   0x08d65: (171, "ModuleContextMap"),
    209   0x08d91: (171, "ScriptContextMap"),
    210   0x08dbd: (171, "ScriptContextTableMap"),
    211   0x08de9: (181, "JSMessageObjectMap"),
    212   0x08e15: (135, "ForeignMap"),
    213   0x08e41: (183, "NeanderMap"),
    214   0x08e6d: (183, "ExternalMap"),
    215   0x08e99: (162, "AllocationMementoMap"),
    216   0x08ec5: (161, "AllocationSiteMap"),
    217   0x08ef1: (165, "PolymorphicCodeCacheMap"),
    218   0x08f1d: (163, "ScriptMap"),
    219   0x08f75: (137, "BytecodeArrayMap"),
    220   0x08fa1: (168, "BoxMap"),
    221   0x08fcd: (152, "ExecutableAccessorInfoMap"),
    222   0x08ff9: (153, "AccessorPairMap"),
    223   0x09025: (154, "AccessCheckInfoMap"),
    224   0x09051: (155, "InterceptorInfoMap"),
    225   0x0907d: (156, "CallHandlerInfoMap"),
    226   0x090a9: (157, "FunctionTemplateInfoMap"),
    227   0x090d5: (158, "ObjectTemplateInfoMap"),
    228   0x09101: (164, "CodeCacheMap"),
    229   0x0912d: (166, "TypeFeedbackInfoMap"),
    230   0x09159: (167, "AliasedArgumentsEntryMap"),
    231   0x09185: (169, "DebugInfoMap"),
    232   0x091b1: (170, "BreakPointInfoMap"),
    233   0x091dd: (177, "PrototypeInfoMap"),
    234   0x09209: (178, "SloppyBlockWithEvalContextExtensionMap"),
    235 }
    236 
    237 # List of known V8 objects.
    238 KNOWN_OBJECTS = {
    239   ("OLD_SPACE", 0x08081): "NullValue",
    240   ("OLD_SPACE", 0x08095): "EmptyDescriptorArray",
    241   ("OLD_SPACE", 0x0809d): "EmptyFixedArray",
    242   ("OLD_SPACE", 0x080c9): "UndefinedValue",
    243   ("OLD_SPACE", 0x080f5): "NanValue",
    244   ("OLD_SPACE", 0x08105): "TheHoleValue",
    245   ("OLD_SPACE", 0x08129): "TrueValue",
    246   ("OLD_SPACE", 0x08161): "FalseValue",
    247   ("OLD_SPACE", 0x08189): "empty_string",
    248   ("OLD_SPACE", 0x08195): "hidden_string",
    249   ("OLD_SPACE", 0x081a1): "UninitializedValue",
    250   ("OLD_SPACE", 0x081d1): "EmptyByteArray",
    251   ("OLD_SPACE", 0x081d9): "NoInterceptorResultSentinel",
    252   ("OLD_SPACE", 0x08219): "ArgumentsMarker",
    253   ("OLD_SPACE", 0x08249): "Exception",
    254   ("OLD_SPACE", 0x08275): "TerminationException",
    255   ("OLD_SPACE", 0x082ad): "NumberStringCache",
    256   ("OLD_SPACE", 0x08ab5): "SingleCharacterStringCache",
    257   ("OLD_SPACE", 0x08f4d): "StringSplitCache",
    258   ("OLD_SPACE", 0x09355): "RegExpMultipleCache",
    259   ("OLD_SPACE", 0x0975d): "EmptyFixedUint8Array",
    260   ("OLD_SPACE", 0x0976d): "EmptyFixedInt8Array",
    261   ("OLD_SPACE", 0x0977d): "EmptyFixedUint16Array",
    262   ("OLD_SPACE", 0x0978d): "EmptyFixedInt16Array",
    263   ("OLD_SPACE", 0x0979d): "EmptyFixedUint32Array",
    264   ("OLD_SPACE", 0x097ad): "EmptyFixedInt32Array",
    265   ("OLD_SPACE", 0x097bd): "EmptyFixedFloat32Array",
    266   ("OLD_SPACE", 0x097cd): "EmptyFixedFloat64Array",
    267   ("OLD_SPACE", 0x097dd): "EmptyFixedUint8ClampedArray",
    268   ("OLD_SPACE", 0x097ed): "InfinityValue",
    269   ("OLD_SPACE", 0x097fd): "MinusZeroValue",
    270   ("OLD_SPACE", 0x0980d): "MinusInfinityValue",
    271   ("OLD_SPACE", 0x0981d): "MessageListeners",
    272   ("OLD_SPACE", 0x09839): "CodeStubs",
    273   ("OLD_SPACE", 0x10201): "DummyVector",
    274   ("OLD_SPACE", 0x1403d): "NonMonomorphicCache",
    275   ("OLD_SPACE", 0x14651): "PolymorphicCodeCache",
    276   ("OLD_SPACE", 0x14659): "NativesSourceCache",
    277   ("OLD_SPACE", 0x148f5): "ExperimentalNativesSourceCache",
    278   ("OLD_SPACE", 0x14929): "ExtraNativesSourceCache",
    279   ("OLD_SPACE", 0x14949): "ExperimentalExtraNativesSourceCache",
    280   ("OLD_SPACE", 0x14955): "EmptyScript",
    281   ("OLD_SPACE", 0x14995): "IntrinsicFunctionNames",
    282   ("OLD_SPACE", 0x2e73d): "UndefinedCell",
    283   ("OLD_SPACE", 0x2e745): "ObservationState",
    284   ("OLD_SPACE", 0x2e751): "ScriptList",
    285   ("OLD_SPACE", 0x2e8d9): "ClearedOptimizedCodeMap",
    286   ("OLD_SPACE", 0x2e8e5): "EmptyWeakCell",
    287   ("OLD_SPACE", 0x54715): "EmptySlowElementDictionary",
    288   ("OLD_SPACE", 0x54761): "WeakObjectToCodeTable",
    289   ("OLD_SPACE", 0x54875): "ArrayProtector",
    290   ("OLD_SPACE", 0x54885): "EmptyPropertyCell",
    291   ("OLD_SPACE", 0x54895): "NoScriptSharedFunctionInfos",
    292   ("OLD_SPACE", 0x5711d): "InterpreterTable",
    293   ("OLD_SPACE", 0x57325): "EmptyBytecodeArray",
    294   ("OLD_SPACE", 0x5a2d1): "StringTable",
    295   ("CODE_SPACE", 0x1a2a1): "JsEntryCode",
    296   ("CODE_SPACE", 0x1f081): "JsConstructEntryCode",
    297 }
    298