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  0: "INTERNALIZED_STRING_TYPE",
34  2: "EXTERNAL_INTERNALIZED_STRING_TYPE",
35  4: "ONE_BYTE_INTERNALIZED_STRING_TYPE",
36  6: "EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE",
37  10: "EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE",
38  18: "SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE",
39  22: "SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE",
40  26: "SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE",
41  64: "STRING_TYPE",
42  65: "CONS_STRING_TYPE",
43  66: "EXTERNAL_STRING_TYPE",
44  67: "SLICED_STRING_TYPE",
45  68: "ONE_BYTE_STRING_TYPE",
46  69: "CONS_ONE_BYTE_STRING_TYPE",
47  70: "EXTERNAL_ONE_BYTE_STRING_TYPE",
48  71: "SLICED_ONE_BYTE_STRING_TYPE",
49  74: "EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE",
50  82: "SHORT_EXTERNAL_STRING_TYPE",
51  86: "SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE",
52  90: "SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE",
53  128: "SYMBOL_TYPE",
54  129: "HEAP_NUMBER_TYPE",
55  130: "SIMD128_VALUE_TYPE",
56  131: "ODDBALL_TYPE",
57  132: "MAP_TYPE",
58  133: "CODE_TYPE",
59  134: "MUTABLE_HEAP_NUMBER_TYPE",
60  135: "FOREIGN_TYPE",
61  136: "BYTE_ARRAY_TYPE",
62  137: "BYTECODE_ARRAY_TYPE",
63  138: "FREE_SPACE_TYPE",
64  139: "FIXED_INT8_ARRAY_TYPE",
65  140: "FIXED_UINT8_ARRAY_TYPE",
66  141: "FIXED_INT16_ARRAY_TYPE",
67  142: "FIXED_UINT16_ARRAY_TYPE",
68  143: "FIXED_INT32_ARRAY_TYPE",
69  144: "FIXED_UINT32_ARRAY_TYPE",
70  145: "FIXED_FLOAT32_ARRAY_TYPE",
71  146: "FIXED_FLOAT64_ARRAY_TYPE",
72  147: "FIXED_UINT8_CLAMPED_ARRAY_TYPE",
73  148: "FIXED_DOUBLE_ARRAY_TYPE",
74  149: "FILLER_TYPE",
75  150: "ACCESSOR_INFO_TYPE",
76  151: "ACCESSOR_PAIR_TYPE",
77  152: "ACCESS_CHECK_INFO_TYPE",
78  153: "INTERCEPTOR_INFO_TYPE",
79  154: "CALL_HANDLER_INFO_TYPE",
80  155: "FUNCTION_TEMPLATE_INFO_TYPE",
81  156: "OBJECT_TEMPLATE_INFO_TYPE",
82  157: "ALLOCATION_SITE_TYPE",
83  158: "ALLOCATION_MEMENTO_TYPE",
84  159: "SCRIPT_TYPE",
85  160: "TYPE_FEEDBACK_INFO_TYPE",
86  161: "ALIASED_ARGUMENTS_ENTRY_TYPE",
87  162: "BOX_TYPE",
88  163: "PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE",
89  164: "PROMISE_REACTION_JOB_INFO_TYPE",
90  165: "DEBUG_INFO_TYPE",
91  166: "BREAK_POINT_INFO_TYPE",
92  167: "PROTOTYPE_INFO_TYPE",
93  168: "TUPLE2_TYPE",
94  169: "TUPLE3_TYPE",
95  170: "CONTEXT_EXTENSION_TYPE",
96  171: "CONSTANT_ELEMENTS_PAIR_TYPE",
97  172: "MODULE_TYPE",
98  173: "MODULE_INFO_ENTRY_TYPE",
99  174: "FIXED_ARRAY_TYPE",
100  175: "TRANSITION_ARRAY_TYPE",
101  176: "SHARED_FUNCTION_INFO_TYPE",
102  177: "CELL_TYPE",
103  178: "WEAK_CELL_TYPE",
104  179: "PROPERTY_CELL_TYPE",
105  180: "JS_PROXY_TYPE",
106  181: "JS_GLOBAL_OBJECT_TYPE",
107  182: "JS_GLOBAL_PROXY_TYPE",
108  183: "JS_SPECIAL_API_OBJECT_TYPE",
109  184: "JS_VALUE_TYPE",
110  185: "JS_MESSAGE_OBJECT_TYPE",
111  186: "JS_DATE_TYPE",
112  187: "JS_API_OBJECT_TYPE",
113  188: "JS_OBJECT_TYPE",
114  189: "JS_ARGUMENTS_TYPE",
115  190: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
116  191: "JS_GENERATOR_OBJECT_TYPE",
117  192: "JS_MODULE_NAMESPACE_TYPE",
118  193: "JS_ARRAY_TYPE",
119  194: "JS_ARRAY_BUFFER_TYPE",
120  195: "JS_TYPED_ARRAY_TYPE",
121  196: "JS_DATA_VIEW_TYPE",
122  197: "JS_SET_TYPE",
123  198: "JS_MAP_TYPE",
124  199: "JS_SET_ITERATOR_TYPE",
125  200: "JS_MAP_ITERATOR_TYPE",
126  201: "JS_WEAK_MAP_TYPE",
127  202: "JS_WEAK_SET_TYPE",
128  203: "JS_PROMISE_TYPE",
129  204: "JS_REGEXP_TYPE",
130  205: "JS_ERROR_TYPE",
131  206: "JS_STRING_ITERATOR_TYPE",
132  207: "JS_TYPED_ARRAY_KEY_ITERATOR_TYPE",
133  208: "JS_FAST_ARRAY_KEY_ITERATOR_TYPE",
134  209: "JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE",
135  210: "JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
136  211: "JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
137  212: "JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
138  213: "JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
139  214: "JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
140  215: "JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
141  216: "JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
142  217: "JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE",
143  218: "JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE",
144  219: "JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
145  220: "JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
146  221: "JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE",
147  222: "JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE",
148  223: "JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
149  224: "JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
150  225: "JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE",
151  226: "JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE",
152  227: "JS_INT8_ARRAY_VALUE_ITERATOR_TYPE",
153  228: "JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE",
154  229: "JS_INT16_ARRAY_VALUE_ITERATOR_TYPE",
155  230: "JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE",
156  231: "JS_INT32_ARRAY_VALUE_ITERATOR_TYPE",
157  232: "JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE",
158  233: "JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE",
159  234: "JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE",
160  235: "JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE",
161  236: "JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE",
162  237: "JS_FAST_ARRAY_VALUE_ITERATOR_TYPE",
163  238: "JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE",
164  239: "JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
165  240: "JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
166  241: "JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE",
167  242: "JS_BOUND_FUNCTION_TYPE",
168  243: "JS_FUNCTION_TYPE",
169}
170
171# List of known V8 maps.
172KNOWN_MAPS = {
173  0x84101: (138, "FreeSpaceMap"),
174  0x8412d: (132, "MetaMap"),
175  0x84159: (131, "NullMap"),
176  0x84185: (174, "FixedArrayMap"),
177  0x841b1: (4, "OneByteInternalizedStringMap"),
178  0x841dd: (149, "OnePointerFillerMap"),
179  0x84209: (149, "TwoPointerFillerMap"),
180  0x84235: (131, "UninitializedMap"),
181  0x84261: (131, "UndefinedMap"),
182  0x8428d: (129, "HeapNumberMap"),
183  0x842b9: (131, "TheHoleMap"),
184  0x842e5: (131, "BooleanMap"),
185  0x84311: (136, "ByteArrayMap"),
186  0x8433d: (174, "FixedCOWArrayMap"),
187  0x84369: (174, "HashTableMap"),
188  0x84395: (128, "SymbolMap"),
189  0x843c1: (68, "OneByteStringMap"),
190  0x843ed: (174, "ScopeInfoMap"),
191  0x84419: (176, "SharedFunctionInfoMap"),
192  0x84445: (133, "CodeMap"),
193  0x84471: (174, "FunctionContextMap"),
194  0x8449d: (177, "CellMap"),
195  0x844c9: (178, "WeakCellMap"),
196  0x844f5: (179, "GlobalPropertyCellMap"),
197  0x84521: (135, "ForeignMap"),
198  0x8454d: (175, "TransitionArrayMap"),
199  0x84579: (131, "NoInterceptorResultSentinelMap"),
200  0x845a5: (131, "ArgumentsMarkerMap"),
201  0x845d1: (174, "NativeContextMap"),
202  0x845fd: (174, "ModuleContextMap"),
203  0x84629: (174, "ScriptContextMap"),
204  0x84655: (174, "BlockContextMap"),
205  0x84681: (174, "CatchContextMap"),
206  0x846ad: (174, "WithContextMap"),
207  0x846d9: (148, "FixedDoubleArrayMap"),
208  0x84705: (134, "MutableHeapNumberMap"),
209  0x84731: (174, "OrderedHashTableMap"),
210  0x8475d: (174, "SloppyArgumentsElementsMap"),
211  0x84789: (185, "JSMessageObjectMap"),
212  0x847b5: (137, "BytecodeArrayMap"),
213  0x847e1: (174, "ModuleInfoMap"),
214  0x8480d: (64, "StringMap"),
215  0x84839: (69, "ConsOneByteStringMap"),
216  0x84865: (65, "ConsStringMap"),
217  0x84891: (67, "SlicedStringMap"),
218  0x848bd: (71, "SlicedOneByteStringMap"),
219  0x848e9: (66, "ExternalStringMap"),
220  0x84915: (74, "ExternalStringWithOneByteDataMap"),
221  0x84941: (70, "ExternalOneByteStringMap"),
222  0x8496d: (82, "ShortExternalStringMap"),
223  0x84999: (90, "ShortExternalStringWithOneByteDataMap"),
224  0x849c5: (0, "InternalizedStringMap"),
225  0x849f1: (2, "ExternalInternalizedStringMap"),
226  0x84a1d: (10, "ExternalInternalizedStringWithOneByteDataMap"),
227  0x84a49: (6, "ExternalOneByteInternalizedStringMap"),
228  0x84a75: (18, "ShortExternalInternalizedStringMap"),
229  0x84aa1: (26, "ShortExternalInternalizedStringWithOneByteDataMap"),
230  0x84acd: (22, "ShortExternalOneByteInternalizedStringMap"),
231  0x84af9: (86, "ShortExternalOneByteStringMap"),
232  0x84b25: (130, "Float32x4Map"),
233  0x84b51: (130, "Int32x4Map"),
234  0x84b7d: (130, "Uint32x4Map"),
235  0x84ba9: (130, "Bool32x4Map"),
236  0x84bd5: (130, "Int16x8Map"),
237  0x84c01: (130, "Uint16x8Map"),
238  0x84c2d: (130, "Bool16x8Map"),
239  0x84c59: (130, "Int8x16Map"),
240  0x84c85: (130, "Uint8x16Map"),
241  0x84cb1: (130, "Bool8x16Map"),
242  0x84cdd: (131, "ExceptionMap"),
243  0x84d09: (131, "TerminationExceptionMap"),
244  0x84d35: (131, "OptimizedOutMap"),
245  0x84d61: (131, "StaleRegisterMap"),
246  0x84d8d: (174, "DebugEvaluateContextMap"),
247  0x84db9: (174, "ScriptContextTableMap"),
248  0x84de5: (174, "UnseededNumberDictionaryMap"),
249  0x84e11: (188, "ExternalMap"),
250  0x84e3d: (86, "NativeSourceStringMap"),
251  0x84e69: (140, "FixedUint8ArrayMap"),
252  0x84e95: (139, "FixedInt8ArrayMap"),
253  0x84ec1: (142, "FixedUint16ArrayMap"),
254  0x84eed: (141, "FixedInt16ArrayMap"),
255  0x84f19: (144, "FixedUint32ArrayMap"),
256  0x84f45: (143, "FixedInt32ArrayMap"),
257  0x84f71: (145, "FixedFloat32ArrayMap"),
258  0x84f9d: (146, "FixedFloat64ArrayMap"),
259  0x84fc9: (147, "FixedUint8ClampedArrayMap"),
260  0x84ff5: (159, "ScriptMap"),
261  0x85021: (157, "AllocationSiteMap"),
262  0x8504d: (158, "AllocationMementoMap"),
263  0x85079: (150, "AccessorInfoMap"),
264  0x850a5: (155, "FunctionTemplateInfoMap"),
265  0x850d1: (168, "Tuple2Map"),
266  0x850fd: (167, "PrototypeInfoMap"),
267  0x85129: (151, "AccessorPairMap"),
268  0x85155: (152, "AccessCheckInfoMap"),
269  0x85181: (153, "InterceptorInfoMap"),
270  0x851ad: (154, "CallHandlerInfoMap"),
271  0x851d9: (156, "ObjectTemplateInfoMap"),
272  0x85205: (160, "TypeFeedbackInfoMap"),
273  0x85231: (161, "AliasedArgumentsEntryMap"),
274  0x8525d: (162, "BoxMap"),
275  0x85289: (163, "PromiseResolveThenableJobInfoMap"),
276  0x852b5: (164, "PromiseReactionJobInfoMap"),
277  0x852e1: (165, "DebugInfoMap"),
278  0x8530d: (166, "BreakPointInfoMap"),
279  0x85339: (169, "Tuple3Map"),
280  0x85365: (170, "ContextExtensionMap"),
281  0x85391: (171, "ConstantElementsPairMap"),
282  0x853bd: (172, "ModuleMap"),
283  0x853e9: (173, "ModuleInfoEntryMap"),
284}
285
286# List of known V8 objects.
287KNOWN_OBJECTS = {
288  ("OLD_SPACE", 0x84101): "NullValue",
289  ("OLD_SPACE", 0x8411d): "EmptyDescriptorArray",
290  ("OLD_SPACE", 0x84125): "EmptyFixedArray",
291  ("OLD_SPACE", 0x84151): "UninitializedValue",
292  ("OLD_SPACE", 0x841a1): "UndefinedValue",
293  ("OLD_SPACE", 0x841bd): "NanValue",
294  ("OLD_SPACE", 0x841cd): "TheHoleValue",
295  ("OLD_SPACE", 0x841fd): "HoleNanValue",
296  ("OLD_SPACE", 0x84209): "TrueValue",
297  ("OLD_SPACE", 0x84249): "FalseValue",
298  ("OLD_SPACE", 0x84279): "empty_string",
299  ("OLD_SPACE", 0x84285): "NoInterceptorResultSentinel",
300  ("OLD_SPACE", 0x842cd): "ArgumentsMarker",
301  ("OLD_SPACE", 0x84305): "EmptyByteArray",
302  ("OLD_SPACE", 0x8430d): "EmptyWeakCell",
303  ("OLD_SPACE", 0x8431d): "InfinityValue",
304  ("OLD_SPACE", 0x8432d): "MinusZeroValue",
305  ("OLD_SPACE", 0x8433d): "MinusInfinityValue",
306  ("OLD_SPACE", 0x85939): "EmptyLiteralsArray",
307  ("OLD_SPACE", 0x85945): "EmptyTypeFeedbackVector",
308  ("OLD_SPACE", 0x85955): "EmptyScopeInfo",
309  ("OLD_SPACE", 0x8595d): "Exception",
310  ("OLD_SPACE", 0x85991): "TerminationException",
311  ("OLD_SPACE", 0x859d1): "OptimizedOut",
312  ("OLD_SPACE", 0x85a09): "StaleRegister",
313  ("OLD_SPACE", 0x85a41): "EmptyFixedUint8Array",
314  ("OLD_SPACE", 0x85a51): "EmptyFixedInt8Array",
315  ("OLD_SPACE", 0x85a61): "EmptyFixedUint16Array",
316  ("OLD_SPACE", 0x85a71): "EmptyFixedInt16Array",
317  ("OLD_SPACE", 0x85a81): "EmptyFixedUint32Array",
318  ("OLD_SPACE", 0x85a91): "EmptyFixedInt32Array",
319  ("OLD_SPACE", 0x85aa1): "EmptyFixedFloat32Array",
320  ("OLD_SPACE", 0x85ab1): "EmptyFixedFloat64Array",
321  ("OLD_SPACE", 0x85ac1): "EmptyFixedUint8ClampedArray",
322  ("OLD_SPACE", 0x85ad1): "EmptyScript",
323  ("OLD_SPACE", 0x85b11): "UndefinedCell",
324  ("OLD_SPACE", 0x85b19): "EmptySloppyArgumentsElements",
325  ("OLD_SPACE", 0x85b29): "EmptySlowElementDictionary",
326  ("OLD_SPACE", 0x85b75): "DummyVector",
327  ("OLD_SPACE", 0x85bb9): "EmptyPropertyCell",
328  ("OLD_SPACE", 0x85bc9): "ArrayProtector",
329  ("OLD_SPACE", 0x85bd9): "IsConcatSpreadableProtector",
330  ("OLD_SPACE", 0x85be1): "HasInstanceProtector",
331  ("OLD_SPACE", 0x85bf1): "SpeciesProtector",
332  ("OLD_SPACE", 0x85bf9): "StringLengthProtector",
333  ("OLD_SPACE", 0x85c09): "FastArrayIterationProtector",
334  ("OLD_SPACE", 0x85c11): "ArrayIteratorProtector",
335  ("OLD_SPACE", 0x85c19): "ArrayBufferNeuteringProtector",
336  ("OLD_SPACE", 0x85c29): "NumberStringCache",
337  ("OLD_SPACE", 0x86431): "SingleCharacterStringCache",
338  ("OLD_SPACE", 0x86859): "StringSplitCache",
339  ("OLD_SPACE", 0x86c61): "RegExpMultipleCache",
340  ("OLD_SPACE", 0x87069): "NativesSourceCache",
341  ("OLD_SPACE", 0x871d1): "ExperimentalNativesSourceCache",
342  ("OLD_SPACE", 0x871ed): "ExtraNativesSourceCache",
343  ("OLD_SPACE", 0x87209): "ExperimentalExtraNativesSourceCache",
344  ("OLD_SPACE", 0x87215): "EmptyPropertiesDictionary",
345  ("OLD_SPACE", 0x87261): "ScriptList",
346  ("OLD_SPACE", 0x9ab99): "CodeStubs",
347  ("OLD_SPACE", 0xa2bd5): "WeakObjectToCodeTable",
348  ("OLD_SPACE", 0xa2ce9): "WeakNewSpaceObjectToCodeList",
349  ("OLD_SPACE", 0xa2d31): "NoScriptSharedFunctionInfos",
350  ("OLD_SPACE", 0xb26e9): "MessageListeners",
351  ("OLD_SPACE", 0xb6d75): "StringTable",
352  ("CODE_SPACE", 0x1aa01): "JsConstructEntryCode",
353  ("CODE_SPACE", 0x29ba1): "JsEntryCode",
354}
355