v8/tools/v8heapconst.py
Igor Sheludko b590d6a40c [runtime] Temporarily disable double fields unboxing.
... to see if it improves things in real-world area.

Change-Id: Icf6a1ff47f35eb3f7e25b549d736f7404148f6ab
Reviewed-on: https://chromium-review.googlesource.com/1004587
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52523}
2018-04-10 13:50:37 +00:00

366 lines
15 KiB
Python

# Copyright 2017 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
# This file is automatically generated by mkgrokdump and should not
# be modified manually.
# List of known V8 instance types.
INSTANCE_TYPES = {
0: "INTERNALIZED_STRING_TYPE",
2: "EXTERNAL_INTERNALIZED_STRING_TYPE",
8: "ONE_BYTE_INTERNALIZED_STRING_TYPE",
10: "EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE",
18: "EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE",
34: "SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE",
42: "SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE",
50: "SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE",
64: "STRING_TYPE",
65: "CONS_STRING_TYPE",
66: "EXTERNAL_STRING_TYPE",
67: "SLICED_STRING_TYPE",
69: "THIN_STRING_TYPE",
72: "ONE_BYTE_STRING_TYPE",
73: "CONS_ONE_BYTE_STRING_TYPE",
74: "EXTERNAL_ONE_BYTE_STRING_TYPE",
75: "SLICED_ONE_BYTE_STRING_TYPE",
77: "THIN_ONE_BYTE_STRING_TYPE",
82: "EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE",
98: "SHORT_EXTERNAL_STRING_TYPE",
106: "SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE",
114: "SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE",
128: "SYMBOL_TYPE",
129: "HEAP_NUMBER_TYPE",
130: "BIGINT_TYPE",
131: "ODDBALL_TYPE",
132: "MAP_TYPE",
133: "CODE_TYPE",
134: "MUTABLE_HEAP_NUMBER_TYPE",
135: "FOREIGN_TYPE",
136: "BYTE_ARRAY_TYPE",
137: "BYTECODE_ARRAY_TYPE",
138: "FREE_SPACE_TYPE",
139: "FIXED_INT8_ARRAY_TYPE",
140: "FIXED_UINT8_ARRAY_TYPE",
141: "FIXED_INT16_ARRAY_TYPE",
142: "FIXED_UINT16_ARRAY_TYPE",
143: "FIXED_INT32_ARRAY_TYPE",
144: "FIXED_UINT32_ARRAY_TYPE",
145: "FIXED_FLOAT32_ARRAY_TYPE",
146: "FIXED_FLOAT64_ARRAY_TYPE",
147: "FIXED_UINT8_CLAMPED_ARRAY_TYPE",
148: "FIXED_BIGINT64_ARRAY_TYPE",
149: "FIXED_BIGUINT64_ARRAY_TYPE",
150: "FIXED_DOUBLE_ARRAY_TYPE",
151: "FEEDBACK_METADATA_TYPE",
152: "FILLER_TYPE",
153: "ACCESS_CHECK_INFO_TYPE",
154: "ACCESSOR_INFO_TYPE",
155: "ACCESSOR_PAIR_TYPE",
156: "ALIASED_ARGUMENTS_ENTRY_TYPE",
157: "ALLOCATION_MEMENTO_TYPE",
158: "ALLOCATION_SITE_TYPE",
159: "ASYNC_GENERATOR_REQUEST_TYPE",
160: "CONTEXT_EXTENSION_TYPE",
161: "DEBUG_INFO_TYPE",
162: "FUNCTION_TEMPLATE_INFO_TYPE",
163: "INTERCEPTOR_INFO_TYPE",
164: "MODULE_INFO_ENTRY_TYPE",
165: "MODULE_TYPE",
166: "OBJECT_TEMPLATE_INFO_TYPE",
167: "PROMISE_CAPABILITY_TYPE",
168: "PROMISE_REACTION_TYPE",
169: "PROTOTYPE_INFO_TYPE",
170: "SCRIPT_TYPE",
171: "STACK_FRAME_INFO_TYPE",
172: "TUPLE2_TYPE",
173: "TUPLE3_TYPE",
174: "WASM_COMPILED_MODULE_TYPE",
175: "WASM_DEBUG_INFO_TYPE",
176: "WASM_SHARED_MODULE_DATA_TYPE",
177: "CALLABLE_TASK_TYPE",
178: "CALLBACK_TASK_TYPE",
179: "PROMISE_FULFILL_REACTION_JOB_TASK_TYPE",
180: "PROMISE_REJECT_REACTION_JOB_TASK_TYPE",
181: "PROMISE_RESOLVE_THENABLE_JOB_TASK_TYPE",
182: "FIXED_ARRAY_TYPE",
183: "BOILERPLATE_DESCRIPTION_TYPE",
184: "DESCRIPTOR_ARRAY_TYPE",
185: "HASH_TABLE_TYPE",
186: "SCOPE_INFO_TYPE",
187: "TRANSITION_ARRAY_TYPE",
188: "BLOCK_CONTEXT_TYPE",
189: "CATCH_CONTEXT_TYPE",
190: "DEBUG_EVALUATE_CONTEXT_TYPE",
191: "EVAL_CONTEXT_TYPE",
192: "FUNCTION_CONTEXT_TYPE",
193: "MODULE_CONTEXT_TYPE",
194: "NATIVE_CONTEXT_TYPE",
195: "SCRIPT_CONTEXT_TYPE",
196: "WITH_CONTEXT_TYPE",
197: "CALL_HANDLER_INFO_TYPE",
198: "CELL_TYPE",
199: "CODE_DATA_CONTAINER_TYPE",
200: "FEEDBACK_CELL_TYPE",
201: "FEEDBACK_VECTOR_TYPE",
202: "LOAD_HANDLER_TYPE",
203: "PROPERTY_ARRAY_TYPE",
204: "PROPERTY_CELL_TYPE",
205: "SHARED_FUNCTION_INFO_TYPE",
206: "SMALL_ORDERED_HASH_MAP_TYPE",
207: "SMALL_ORDERED_HASH_SET_TYPE",
208: "STORE_HANDLER_TYPE",
209: "WEAK_CELL_TYPE",
210: "WEAK_FIXED_ARRAY_TYPE",
1024: "JS_PROXY_TYPE",
1025: "JS_GLOBAL_OBJECT_TYPE",
1026: "JS_GLOBAL_PROXY_TYPE",
1027: "JS_MODULE_NAMESPACE_TYPE",
1040: "JS_SPECIAL_API_OBJECT_TYPE",
1041: "JS_VALUE_TYPE",
1056: "JS_API_OBJECT_TYPE",
1057: "JS_OBJECT_TYPE",
1058: "JS_ARGUMENTS_TYPE",
1059: "JS_ARRAY_BUFFER_TYPE",
1060: "JS_ARRAY_ITERATOR_TYPE",
1061: "JS_ARRAY_TYPE",
1062: "JS_ASYNC_FROM_SYNC_ITERATOR_TYPE",
1063: "JS_ASYNC_GENERATOR_OBJECT_TYPE",
1064: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
1065: "JS_DATE_TYPE",
1066: "JS_ERROR_TYPE",
1067: "JS_GENERATOR_OBJECT_TYPE",
1068: "JS_MAP_TYPE",
1069: "JS_MAP_KEY_ITERATOR_TYPE",
1070: "JS_MAP_KEY_VALUE_ITERATOR_TYPE",
1071: "JS_MAP_VALUE_ITERATOR_TYPE",
1072: "JS_MESSAGE_OBJECT_TYPE",
1073: "JS_PROMISE_TYPE",
1074: "JS_REGEXP_TYPE",
1075: "JS_REGEXP_STRING_ITERATOR_TYPE",
1076: "JS_SET_TYPE",
1077: "JS_SET_KEY_VALUE_ITERATOR_TYPE",
1078: "JS_SET_VALUE_ITERATOR_TYPE",
1079: "JS_STRING_ITERATOR_TYPE",
1080: "JS_WEAK_MAP_TYPE",
1081: "JS_WEAK_SET_TYPE",
1082: "JS_TYPED_ARRAY_TYPE",
1083: "JS_DATA_VIEW_TYPE",
1084: "WASM_GLOBAL_TYPE",
1085: "WASM_INSTANCE_TYPE",
1086: "WASM_MEMORY_TYPE",
1087: "WASM_MODULE_TYPE",
1088: "WASM_TABLE_TYPE",
1089: "JS_BOUND_FUNCTION_TYPE",
1090: "JS_FUNCTION_TYPE",
}
# List of known V8 maps.
KNOWN_MAPS = {
("MAP_SPACE", 0x02201): (138, "FreeSpaceMap"),
("MAP_SPACE", 0x02251): (132, "MetaMap"),
("MAP_SPACE", 0x022a1): (131, "NullMap"),
("MAP_SPACE", 0x022f1): (184, "DescriptorArrayMap"),
("MAP_SPACE", 0x02341): (182, "FixedArrayMap"),
("MAP_SPACE", 0x02391): (152, "OnePointerFillerMap"),
("MAP_SPACE", 0x023e1): (152, "TwoPointerFillerMap"),
("MAP_SPACE", 0x02431): (131, "UninitializedMap"),
("MAP_SPACE", 0x02481): (8, "OneByteInternalizedStringMap"),
("MAP_SPACE", 0x024d1): (131, "UndefinedMap"),
("MAP_SPACE", 0x02521): (129, "HeapNumberMap"),
("MAP_SPACE", 0x02571): (131, "TheHoleMap"),
("MAP_SPACE", 0x025c1): (131, "BooleanMap"),
("MAP_SPACE", 0x02611): (136, "ByteArrayMap"),
("MAP_SPACE", 0x02661): (182, "FixedCOWArrayMap"),
("MAP_SPACE", 0x026b1): (185, "HashTableMap"),
("MAP_SPACE", 0x02701): (128, "SymbolMap"),
("MAP_SPACE", 0x02751): (72, "OneByteStringMap"),
("MAP_SPACE", 0x027a1): (186, "ScopeInfoMap"),
("MAP_SPACE", 0x027f1): (205, "SharedFunctionInfoMap"),
("MAP_SPACE", 0x02841): (133, "CodeMap"),
("MAP_SPACE", 0x02891): (192, "FunctionContextMap"),
("MAP_SPACE", 0x028e1): (198, "CellMap"),
("MAP_SPACE", 0x02931): (209, "WeakCellMap"),
("MAP_SPACE", 0x02981): (204, "GlobalPropertyCellMap"),
("MAP_SPACE", 0x029d1): (135, "ForeignMap"),
("MAP_SPACE", 0x02a21): (187, "TransitionArrayMap"),
("MAP_SPACE", 0x02a71): (201, "FeedbackVectorMap"),
("MAP_SPACE", 0x02ac1): (131, "ArgumentsMarkerMap"),
("MAP_SPACE", 0x02b11): (131, "ExceptionMap"),
("MAP_SPACE", 0x02b61): (131, "TerminationExceptionMap"),
("MAP_SPACE", 0x02bb1): (131, "OptimizedOutMap"),
("MAP_SPACE", 0x02c01): (131, "StaleRegisterMap"),
("MAP_SPACE", 0x02c51): (194, "NativeContextMap"),
("MAP_SPACE", 0x02ca1): (193, "ModuleContextMap"),
("MAP_SPACE", 0x02cf1): (191, "EvalContextMap"),
("MAP_SPACE", 0x02d41): (195, "ScriptContextMap"),
("MAP_SPACE", 0x02d91): (188, "BlockContextMap"),
("MAP_SPACE", 0x02de1): (189, "CatchContextMap"),
("MAP_SPACE", 0x02e31): (196, "WithContextMap"),
("MAP_SPACE", 0x02e81): (190, "DebugEvaluateContextMap"),
("MAP_SPACE", 0x02ed1): (182, "ScriptContextTableMap"),
("MAP_SPACE", 0x02f21): (151, "FeedbackMetadataArrayMap"),
("MAP_SPACE", 0x02f71): (182, "ArrayListMap"),
("MAP_SPACE", 0x02fc1): (130, "BigIntMap"),
("MAP_SPACE", 0x03011): (183, "BoilerplateDescriptionMap"),
("MAP_SPACE", 0x03061): (137, "BytecodeArrayMap"),
("MAP_SPACE", 0x030b1): (199, "CodeDataContainerMap"),
("MAP_SPACE", 0x03101): (1057, "ExternalMap"),
("MAP_SPACE", 0x03151): (150, "FixedDoubleArrayMap"),
("MAP_SPACE", 0x031a1): (185, "GlobalDictionaryMap"),
("MAP_SPACE", 0x031f1): (200, "ManyClosuresCellMap"),
("MAP_SPACE", 0x03241): (1072, "JSMessageObjectMap"),
("MAP_SPACE", 0x03291): (182, "ModuleInfoMap"),
("MAP_SPACE", 0x032e1): (134, "MutableHeapNumberMap"),
("MAP_SPACE", 0x03331): (185, "NameDictionaryMap"),
("MAP_SPACE", 0x03381): (200, "NoClosuresCellMap"),
("MAP_SPACE", 0x033d1): (185, "NumberDictionaryMap"),
("MAP_SPACE", 0x03421): (200, "OneClosureCellMap"),
("MAP_SPACE", 0x03471): (185, "OrderedHashMapMap"),
("MAP_SPACE", 0x034c1): (185, "OrderedHashSetMap"),
("MAP_SPACE", 0x03511): (203, "PropertyArrayMap"),
("MAP_SPACE", 0x03561): (197, "SideEffectCallHandlerInfoMap"),
("MAP_SPACE", 0x035b1): (197, "SideEffectFreeCallHandlerInfoMap"),
("MAP_SPACE", 0x03601): (185, "SimpleNumberDictionaryMap"),
("MAP_SPACE", 0x03651): (182, "SloppyArgumentsElementsMap"),
("MAP_SPACE", 0x036a1): (206, "SmallOrderedHashMapMap"),
("MAP_SPACE", 0x036f1): (207, "SmallOrderedHashSetMap"),
("MAP_SPACE", 0x03741): (185, "StringTableMap"),
("MAP_SPACE", 0x03791): (210, "WeakFixedArrayMap"),
("MAP_SPACE", 0x037e1): (106, "NativeSourceStringMap"),
("MAP_SPACE", 0x03831): (64, "StringMap"),
("MAP_SPACE", 0x03881): (73, "ConsOneByteStringMap"),
("MAP_SPACE", 0x038d1): (65, "ConsStringMap"),
("MAP_SPACE", 0x03921): (77, "ThinOneByteStringMap"),
("MAP_SPACE", 0x03971): (69, "ThinStringMap"),
("MAP_SPACE", 0x039c1): (67, "SlicedStringMap"),
("MAP_SPACE", 0x03a11): (75, "SlicedOneByteStringMap"),
("MAP_SPACE", 0x03a61): (66, "ExternalStringMap"),
("MAP_SPACE", 0x03ab1): (82, "ExternalStringWithOneByteDataMap"),
("MAP_SPACE", 0x03b01): (74, "ExternalOneByteStringMap"),
("MAP_SPACE", 0x03b51): (98, "ShortExternalStringMap"),
("MAP_SPACE", 0x03ba1): (114, "ShortExternalStringWithOneByteDataMap"),
("MAP_SPACE", 0x03bf1): (0, "InternalizedStringMap"),
("MAP_SPACE", 0x03c41): (2, "ExternalInternalizedStringMap"),
("MAP_SPACE", 0x03c91): (18, "ExternalInternalizedStringWithOneByteDataMap"),
("MAP_SPACE", 0x03ce1): (10, "ExternalOneByteInternalizedStringMap"),
("MAP_SPACE", 0x03d31): (34, "ShortExternalInternalizedStringMap"),
("MAP_SPACE", 0x03d81): (50, "ShortExternalInternalizedStringWithOneByteDataMap"),
("MAP_SPACE", 0x03dd1): (42, "ShortExternalOneByteInternalizedStringMap"),
("MAP_SPACE", 0x03e21): (106, "ShortExternalOneByteStringMap"),
("MAP_SPACE", 0x03e71): (140, "FixedUint8ArrayMap"),
("MAP_SPACE", 0x03ec1): (139, "FixedInt8ArrayMap"),
("MAP_SPACE", 0x03f11): (142, "FixedUint16ArrayMap"),
("MAP_SPACE", 0x03f61): (141, "FixedInt16ArrayMap"),
("MAP_SPACE", 0x03fb1): (144, "FixedUint32ArrayMap"),
("MAP_SPACE", 0x04001): (143, "FixedInt32ArrayMap"),
("MAP_SPACE", 0x04051): (145, "FixedFloat32ArrayMap"),
("MAP_SPACE", 0x040a1): (146, "FixedFloat64ArrayMap"),
("MAP_SPACE", 0x040f1): (147, "FixedUint8ClampedArrayMap"),
("MAP_SPACE", 0x04141): (149, "FixedBigUint64ArrayMap"),
("MAP_SPACE", 0x04191): (148, "FixedBigInt64ArrayMap"),
("MAP_SPACE", 0x041e1): (172, "Tuple2Map"),
("MAP_SPACE", 0x04231): (170, "ScriptMap"),
("MAP_SPACE", 0x04281): (163, "InterceptorInfoMap"),
("MAP_SPACE", 0x042d1): (154, "AccessorInfoMap"),
("MAP_SPACE", 0x04321): (153, "AccessCheckInfoMap"),
("MAP_SPACE", 0x04371): (155, "AccessorPairMap"),
("MAP_SPACE", 0x043c1): (156, "AliasedArgumentsEntryMap"),
("MAP_SPACE", 0x04411): (157, "AllocationMementoMap"),
("MAP_SPACE", 0x04461): (158, "AllocationSiteMap"),
("MAP_SPACE", 0x044b1): (159, "AsyncGeneratorRequestMap"),
("MAP_SPACE", 0x04501): (160, "ContextExtensionMap"),
("MAP_SPACE", 0x04551): (161, "DebugInfoMap"),
("MAP_SPACE", 0x045a1): (162, "FunctionTemplateInfoMap"),
("MAP_SPACE", 0x045f1): (164, "ModuleInfoEntryMap"),
("MAP_SPACE", 0x04641): (165, "ModuleMap"),
("MAP_SPACE", 0x04691): (166, "ObjectTemplateInfoMap"),
("MAP_SPACE", 0x046e1): (167, "PromiseCapabilityMap"),
("MAP_SPACE", 0x04731): (168, "PromiseReactionMap"),
("MAP_SPACE", 0x04781): (169, "PrototypeInfoMap"),
("MAP_SPACE", 0x047d1): (171, "StackFrameInfoMap"),
("MAP_SPACE", 0x04821): (173, "Tuple3Map"),
("MAP_SPACE", 0x04871): (174, "WasmCompiledModuleMap"),
("MAP_SPACE", 0x048c1): (175, "WasmDebugInfoMap"),
("MAP_SPACE", 0x04911): (176, "WasmSharedModuleDataMap"),
("MAP_SPACE", 0x04961): (177, "CallableTaskMap"),
("MAP_SPACE", 0x049b1): (178, "CallbackTaskMap"),
("MAP_SPACE", 0x04a01): (179, "PromiseFulfillReactionJobTaskMap"),
("MAP_SPACE", 0x04a51): (180, "PromiseRejectReactionJobTaskMap"),
("MAP_SPACE", 0x04aa1): (181, "PromiseResolveThenableJobTaskMap"),
}
# List of known V8 objects.
KNOWN_OBJECTS = {
("OLD_SPACE", 0x02201): "NullValue",
("OLD_SPACE", 0x02231): "EmptyDescriptorArray",
("OLD_SPACE", 0x02251): "EmptyFixedArray",
("OLD_SPACE", 0x02261): "UninitializedValue",
("OLD_SPACE", 0x022e1): "UndefinedValue",
("OLD_SPACE", 0x02311): "NanValue",
("OLD_SPACE", 0x02321): "TheHoleValue",
("OLD_SPACE", 0x02371): "HoleNanValue",
("OLD_SPACE", 0x02381): "TrueValue",
("OLD_SPACE", 0x023f1): "FalseValue",
("OLD_SPACE", 0x02441): "empty_string",
("OLD_SPACE", 0x02459): "EmptyScopeInfo",
("OLD_SPACE", 0x02469): "ArgumentsMarker",
("OLD_SPACE", 0x024c1): "Exception",
("OLD_SPACE", 0x02519): "TerminationException",
("OLD_SPACE", 0x02579): "OptimizedOut",
("OLD_SPACE", 0x025d1): "StaleRegister",
("OLD_SPACE", 0x02661): "EmptyByteArray",
("OLD_SPACE", 0x02681): "EmptyFixedUint8Array",
("OLD_SPACE", 0x026a1): "EmptyFixedInt8Array",
("OLD_SPACE", 0x026c1): "EmptyFixedUint16Array",
("OLD_SPACE", 0x026e1): "EmptyFixedInt16Array",
("OLD_SPACE", 0x02701): "EmptyFixedUint32Array",
("OLD_SPACE", 0x02721): "EmptyFixedInt32Array",
("OLD_SPACE", 0x02741): "EmptyFixedFloat32Array",
("OLD_SPACE", 0x02761): "EmptyFixedFloat64Array",
("OLD_SPACE", 0x02781): "EmptyFixedUint8ClampedArray",
("OLD_SPACE", 0x027e1): "EmptyScript",
("OLD_SPACE", 0x02879): "ManyClosuresCell",
("OLD_SPACE", 0x02889): "EmptySloppyArgumentsElements",
("OLD_SPACE", 0x028a9): "EmptySlowElementDictionary",
("OLD_SPACE", 0x028f1): "EmptyOrderedHashMap",
("OLD_SPACE", 0x02919): "EmptyOrderedHashSet",
("OLD_SPACE", 0x02951): "EmptyPropertyCell",
("OLD_SPACE", 0x02979): "EmptyWeakCell",
("OLD_SPACE", 0x029e9): "NoElementsProtector",
("OLD_SPACE", 0x02a11): "IsConcatSpreadableProtector",
("OLD_SPACE", 0x02a21): "SpeciesProtector",
("OLD_SPACE", 0x02a49): "StringLengthProtector",
("OLD_SPACE", 0x02a59): "ArrayIteratorProtector",
("OLD_SPACE", 0x02a81): "ArrayBufferNeuteringProtector",
("OLD_SPACE", 0x02b09): "InfinityValue",
("OLD_SPACE", 0x02b19): "MinusZeroValue",
("OLD_SPACE", 0x02b29): "MinusInfinityValue",
}
# List of known V8 Frame Markers.
FRAME_MARKERS = (
"ENTRY",
"CONSTRUCT_ENTRY",
"EXIT",
"OPTIMIZED",
"WASM_COMPILED",
"WASM_TO_JS",
"JS_TO_WASM",
"WASM_INTERPRETER_ENTRY",
"C_WASM_ENTRY",
"INTERPRETED",
"STUB",
"BUILTIN_CONTINUATION",
"JAVA_SCRIPT_BUILTIN_CONTINUATION",
"JAVA_SCRIPT_BUILTIN_CONTINUATION_WITH_CATCH",
"INTERNAL",
"CONSTRUCT",
"ARGUMENTS_ADAPTOR",
"BUILTIN",
"BUILTIN_EXIT",
"NATIVE",
)
# This set of constants is generated from a shipping build.