b8b25e1c27
There are only very few custom compiled IC handlers left that go in there, and for each compiled handler we only have 1 cache hit on top25; maximally saving 60ms over 33s. Additionally we'll migrate the remaining handlers to data-driven handlers anyway. Let's try to remove this code. Bug: Change-Id: Ib874cc498015046a3ff67c83ea8b10b3c4eb7d0f Reviewed-on: https://chromium-review.googlesource.com/668409 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#48201}
345 lines
12 KiB
Python
345 lines
12 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_DOUBLE_ARRAY_TYPE",
|
|
149: "FILLER_TYPE",
|
|
150: "ACCESSOR_INFO_TYPE",
|
|
151: "ACCESSOR_PAIR_TYPE",
|
|
152: "ACCESS_CHECK_INFO_TYPE",
|
|
153: "INTERCEPTOR_INFO_TYPE",
|
|
154: "FUNCTION_TEMPLATE_INFO_TYPE",
|
|
155: "OBJECT_TEMPLATE_INFO_TYPE",
|
|
156: "ALLOCATION_SITE_TYPE",
|
|
157: "ALLOCATION_MEMENTO_TYPE",
|
|
158: "SCRIPT_TYPE",
|
|
159: "ALIASED_ARGUMENTS_ENTRY_TYPE",
|
|
160: "PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE",
|
|
161: "PROMISE_REACTION_JOB_INFO_TYPE",
|
|
162: "PROMISE_CAPABILITY_TYPE",
|
|
163: "DEBUG_INFO_TYPE",
|
|
164: "STACK_FRAME_INFO_TYPE",
|
|
165: "PROTOTYPE_INFO_TYPE",
|
|
166: "TUPLE2_TYPE",
|
|
167: "TUPLE3_TYPE",
|
|
168: "CONTEXT_EXTENSION_TYPE",
|
|
169: "MODULE_TYPE",
|
|
170: "MODULE_INFO_ENTRY_TYPE",
|
|
171: "ASYNC_GENERATOR_REQUEST_TYPE",
|
|
172: "FIXED_ARRAY_TYPE",
|
|
173: "HASH_TABLE_TYPE",
|
|
174: "FEEDBACK_VECTOR_TYPE",
|
|
175: "TRANSITION_ARRAY_TYPE",
|
|
176: "PROPERTY_ARRAY_TYPE",
|
|
177: "SHARED_FUNCTION_INFO_TYPE",
|
|
178: "CELL_TYPE",
|
|
179: "WEAK_CELL_TYPE",
|
|
180: "PROPERTY_CELL_TYPE",
|
|
181: "SMALL_ORDERED_HASH_MAP_TYPE",
|
|
182: "SMALL_ORDERED_HASH_SET_TYPE",
|
|
183: "JS_PROXY_TYPE",
|
|
184: "JS_GLOBAL_OBJECT_TYPE",
|
|
185: "JS_GLOBAL_PROXY_TYPE",
|
|
186: "JS_MODULE_NAMESPACE_TYPE",
|
|
187: "JS_SPECIAL_API_OBJECT_TYPE",
|
|
188: "JS_VALUE_TYPE",
|
|
189: "JS_MESSAGE_OBJECT_TYPE",
|
|
190: "JS_DATE_TYPE",
|
|
191: "JS_API_OBJECT_TYPE",
|
|
192: "JS_OBJECT_TYPE",
|
|
193: "JS_ARGUMENTS_TYPE",
|
|
194: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
|
|
195: "JS_GENERATOR_OBJECT_TYPE",
|
|
196: "JS_ASYNC_GENERATOR_OBJECT_TYPE",
|
|
197: "JS_ARRAY_TYPE",
|
|
198: "JS_ARRAY_BUFFER_TYPE",
|
|
199: "JS_TYPED_ARRAY_TYPE",
|
|
200: "JS_DATA_VIEW_TYPE",
|
|
201: "JS_SET_TYPE",
|
|
202: "JS_MAP_TYPE",
|
|
203: "JS_SET_KEY_VALUE_ITERATOR_TYPE",
|
|
204: "JS_SET_VALUE_ITERATOR_TYPE",
|
|
205: "JS_MAP_KEY_ITERATOR_TYPE",
|
|
206: "JS_MAP_KEY_VALUE_ITERATOR_TYPE",
|
|
207: "JS_MAP_VALUE_ITERATOR_TYPE",
|
|
208: "JS_WEAK_MAP_TYPE",
|
|
209: "JS_WEAK_SET_TYPE",
|
|
210: "JS_PROMISE_TYPE",
|
|
211: "JS_REGEXP_TYPE",
|
|
212: "JS_ERROR_TYPE",
|
|
213: "JS_ASYNC_FROM_SYNC_ITERATOR_TYPE",
|
|
214: "JS_STRING_ITERATOR_TYPE",
|
|
215: "JS_TYPED_ARRAY_KEY_ITERATOR_TYPE",
|
|
216: "JS_FAST_ARRAY_KEY_ITERATOR_TYPE",
|
|
217: "JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE",
|
|
218: "JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
219: "JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
220: "JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
221: "JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
222: "JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
223: "JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
224: "JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
225: "JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
226: "JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
227: "JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
228: "JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
229: "JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
230: "JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
231: "JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
232: "JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
233: "JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE",
|
|
234: "JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE",
|
|
235: "JS_INT8_ARRAY_VALUE_ITERATOR_TYPE",
|
|
236: "JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE",
|
|
237: "JS_INT16_ARRAY_VALUE_ITERATOR_TYPE",
|
|
238: "JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE",
|
|
239: "JS_INT32_ARRAY_VALUE_ITERATOR_TYPE",
|
|
240: "JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE",
|
|
241: "JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE",
|
|
242: "JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE",
|
|
243: "JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE",
|
|
244: "JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE",
|
|
245: "JS_FAST_ARRAY_VALUE_ITERATOR_TYPE",
|
|
246: "JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE",
|
|
247: "JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
|
|
248: "JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
|
|
249: "JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE",
|
|
250: "WASM_INSTANCE_TYPE",
|
|
251: "WASM_MEMORY_TYPE",
|
|
252: "WASM_MODULE_TYPE",
|
|
253: "WASM_TABLE_TYPE",
|
|
254: "JS_BOUND_FUNCTION_TYPE",
|
|
255: "JS_FUNCTION_TYPE",
|
|
}
|
|
|
|
# List of known V8 maps.
|
|
KNOWN_MAPS = {
|
|
0x02201: (138, "FreeSpaceMap"),
|
|
0x02251: (132, "MetaMap"),
|
|
0x022a1: (131, "NullMap"),
|
|
0x022f1: (172, "FixedArrayMap"),
|
|
0x02341: (149, "OnePointerFillerMap"),
|
|
0x02391: (149, "TwoPointerFillerMap"),
|
|
0x023e1: (131, "UninitializedMap"),
|
|
0x02431: (8, "OneByteInternalizedStringMap"),
|
|
0x02481: (131, "UndefinedMap"),
|
|
0x024d1: (129, "HeapNumberMap"),
|
|
0x02521: (131, "TheHoleMap"),
|
|
0x02571: (131, "BooleanMap"),
|
|
0x025c1: (136, "ByteArrayMap"),
|
|
0x02611: (172, "FixedCOWArrayMap"),
|
|
0x02661: (173, "HashTableMap"),
|
|
0x026b1: (128, "SymbolMap"),
|
|
0x02701: (72, "OneByteStringMap"),
|
|
0x02751: (172, "ScopeInfoMap"),
|
|
0x027a1: (177, "SharedFunctionInfoMap"),
|
|
0x027f1: (133, "CodeMap"),
|
|
0x02841: (172, "FunctionContextMap"),
|
|
0x02891: (178, "CellMap"),
|
|
0x028e1: (179, "WeakCellMap"),
|
|
0x02931: (180, "GlobalPropertyCellMap"),
|
|
0x02981: (135, "ForeignMap"),
|
|
0x029d1: (175, "TransitionArrayMap"),
|
|
0x02a21: (131, "ArgumentsMarkerMap"),
|
|
0x02a71: (131, "ExceptionMap"),
|
|
0x02ac1: (131, "TerminationExceptionMap"),
|
|
0x02b11: (131, "OptimizedOutMap"),
|
|
0x02b61: (131, "StaleRegisterMap"),
|
|
0x02bb1: (172, "NativeContextMap"),
|
|
0x02c01: (172, "ModuleContextMap"),
|
|
0x02c51: (172, "EvalContextMap"),
|
|
0x02ca1: (172, "ScriptContextMap"),
|
|
0x02cf1: (172, "BlockContextMap"),
|
|
0x02d41: (172, "CatchContextMap"),
|
|
0x02d91: (172, "WithContextMap"),
|
|
0x02de1: (148, "FixedDoubleArrayMap"),
|
|
0x02e31: (134, "MutableHeapNumberMap"),
|
|
0x02e81: (173, "OrderedHashTableMap"),
|
|
0x02ed1: (172, "SloppyArgumentsElementsMap"),
|
|
0x02f21: (181, "SmallOrderedHashMapMap"),
|
|
0x02f71: (182, "SmallOrderedHashSetMap"),
|
|
0x02fc1: (189, "JSMessageObjectMap"),
|
|
0x03011: (137, "BytecodeArrayMap"),
|
|
0x03061: (172, "ModuleInfoMap"),
|
|
0x030b1: (178, "NoClosuresCellMap"),
|
|
0x03101: (178, "OneClosureCellMap"),
|
|
0x03151: (178, "ManyClosuresCellMap"),
|
|
0x031a1: (176, "PropertyArrayMap"),
|
|
0x031f1: (130, "BigIntMap"),
|
|
0x03241: (64, "StringMap"),
|
|
0x03291: (73, "ConsOneByteStringMap"),
|
|
0x032e1: (65, "ConsStringMap"),
|
|
0x03331: (77, "ThinOneByteStringMap"),
|
|
0x03381: (69, "ThinStringMap"),
|
|
0x033d1: (67, "SlicedStringMap"),
|
|
0x03421: (75, "SlicedOneByteStringMap"),
|
|
0x03471: (66, "ExternalStringMap"),
|
|
0x034c1: (82, "ExternalStringWithOneByteDataMap"),
|
|
0x03511: (74, "ExternalOneByteStringMap"),
|
|
0x03561: (98, "ShortExternalStringMap"),
|
|
0x035b1: (114, "ShortExternalStringWithOneByteDataMap"),
|
|
0x03601: (0, "InternalizedStringMap"),
|
|
0x03651: (2, "ExternalInternalizedStringMap"),
|
|
0x036a1: (18, "ExternalInternalizedStringWithOneByteDataMap"),
|
|
0x036f1: (10, "ExternalOneByteInternalizedStringMap"),
|
|
0x03741: (34, "ShortExternalInternalizedStringMap"),
|
|
0x03791: (50, "ShortExternalInternalizedStringWithOneByteDataMap"),
|
|
0x037e1: (42, "ShortExternalOneByteInternalizedStringMap"),
|
|
0x03831: (106, "ShortExternalOneByteStringMap"),
|
|
0x03881: (140, "FixedUint8ArrayMap"),
|
|
0x038d1: (139, "FixedInt8ArrayMap"),
|
|
0x03921: (142, "FixedUint16ArrayMap"),
|
|
0x03971: (141, "FixedInt16ArrayMap"),
|
|
0x039c1: (144, "FixedUint32ArrayMap"),
|
|
0x03a11: (143, "FixedInt32ArrayMap"),
|
|
0x03a61: (145, "FixedFloat32ArrayMap"),
|
|
0x03ab1: (146, "FixedFloat64ArrayMap"),
|
|
0x03b01: (147, "FixedUint8ClampedArrayMap"),
|
|
0x03b51: (158, "ScriptMap"),
|
|
0x03ba1: (174, "FeedbackVectorMap"),
|
|
0x03bf1: (172, "DebugEvaluateContextMap"),
|
|
0x03c41: (172, "ScriptContextTableMap"),
|
|
0x03c91: (173, "UnseededNumberDictionaryMap"),
|
|
0x03ce1: (192, "ExternalMap"),
|
|
0x03d31: (106, "NativeSourceStringMap"),
|
|
0x03d81: (166, "Tuple2Map"),
|
|
0x03dd1: (153, "InterceptorInfoMap"),
|
|
0x03e21: (150, "AccessorInfoMap"),
|
|
0x03e71: (151, "AccessorPairMap"),
|
|
0x03ec1: (152, "AccessCheckInfoMap"),
|
|
0x03f11: (154, "FunctionTemplateInfoMap"),
|
|
0x03f61: (155, "ObjectTemplateInfoMap"),
|
|
0x03fb1: (156, "AllocationSiteMap"),
|
|
0x04001: (157, "AllocationMementoMap"),
|
|
0x04051: (159, "AliasedArgumentsEntryMap"),
|
|
0x040a1: (160, "PromiseResolveThenableJobInfoMap"),
|
|
0x040f1: (161, "PromiseReactionJobInfoMap"),
|
|
0x04141: (162, "PromiseCapabilityMap"),
|
|
0x04191: (163, "DebugInfoMap"),
|
|
0x041e1: (164, "StackFrameInfoMap"),
|
|
0x04231: (165, "PrototypeInfoMap"),
|
|
0x04281: (167, "Tuple3Map"),
|
|
0x042d1: (168, "ContextExtensionMap"),
|
|
0x04321: (169, "ModuleMap"),
|
|
0x04371: (170, "ModuleInfoEntryMap"),
|
|
0x043c1: (171, "AsyncGeneratorRequestMap"),
|
|
}
|
|
|
|
# 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", 0x02629): "EmptyByteArray",
|
|
("OLD_SPACE", 0x02639): "EmptyFixedUint8Array",
|
|
("OLD_SPACE", 0x02659): "EmptyFixedInt8Array",
|
|
("OLD_SPACE", 0x02679): "EmptyFixedUint16Array",
|
|
("OLD_SPACE", 0x02699): "EmptyFixedInt16Array",
|
|
("OLD_SPACE", 0x026b9): "EmptyFixedUint32Array",
|
|
("OLD_SPACE", 0x026d9): "EmptyFixedInt32Array",
|
|
("OLD_SPACE", 0x026f9): "EmptyFixedFloat32Array",
|
|
("OLD_SPACE", 0x02719): "EmptyFixedFloat64Array",
|
|
("OLD_SPACE", 0x02739): "EmptyFixedUint8ClampedArray",
|
|
("OLD_SPACE", 0x02759): "EmptyScript",
|
|
("OLD_SPACE", 0x027e1): "UndefinedCell",
|
|
("OLD_SPACE", 0x027f1): "EmptySloppyArgumentsElements",
|
|
("OLD_SPACE", 0x02811): "EmptySlowElementDictionary",
|
|
("OLD_SPACE", 0x02859): "EmptyPropertyCell",
|
|
("OLD_SPACE", 0x02881): "EmptyWeakCell",
|
|
("OLD_SPACE", 0x02891): "ArrayProtector",
|
|
("OLD_SPACE", 0x028b9): "IsConcatSpreadableProtector",
|
|
("OLD_SPACE", 0x028c9): "SpeciesProtector",
|
|
("OLD_SPACE", 0x028f1): "StringLengthProtector",
|
|
("OLD_SPACE", 0x02901): "FastArrayIterationProtector",
|
|
("OLD_SPACE", 0x02911): "ArrayIteratorProtector",
|
|
("OLD_SPACE", 0x02939): "ArrayBufferNeuteringProtector",
|
|
("OLD_SPACE", 0x02961): "InfinityValue",
|
|
("OLD_SPACE", 0x02971): "MinusZeroValue",
|
|
("OLD_SPACE", 0x02981): "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",
|
|
"INTERNAL",
|
|
"CONSTRUCT",
|
|
"ARGUMENTS_ADAPTOR",
|
|
"BUILTIN",
|
|
"BUILTIN_EXIT",
|
|
)
|
|
|
|
# This set of constants is generated from a shipping build.
|