2019-02-14 10:00:15 +00:00
|
|
|
# Copyright 2019 the V8 project authors. All rights reserved.
|
2017-03-30 11:44:00 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can
|
|
|
|
# be found in the LICENSE file.
|
2013-08-02 09:02:02 +00:00
|
|
|
|
2017-04-20 06:14:53 +00:00
|
|
|
# This file is automatically generated by mkgrokdump and should not
|
|
|
|
# be modified manually.
|
|
|
|
|
2013-08-02 09:02:02 +00:00
|
|
|
# List of known V8 instance types.
|
|
|
|
INSTANCE_TYPES = {
|
2016-12-20 15:26:08 +00:00
|
|
|
0: "INTERNALIZED_STRING_TYPE",
|
|
|
|
2: "EXTERNAL_INTERNALIZED_STRING_TYPE",
|
2017-03-28 08:44:17 +00:00
|
|
|
8: "ONE_BYTE_INTERNALIZED_STRING_TYPE",
|
|
|
|
10: "EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE",
|
2019-03-04 12:55:22 +00:00
|
|
|
18: "UNCACHED_EXTERNAL_INTERNALIZED_STRING_TYPE",
|
|
|
|
26: "UNCACHED_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE",
|
|
|
|
32: "STRING_TYPE",
|
|
|
|
33: "CONS_STRING_TYPE",
|
|
|
|
34: "EXTERNAL_STRING_TYPE",
|
|
|
|
35: "SLICED_STRING_TYPE",
|
|
|
|
37: "THIN_STRING_TYPE",
|
|
|
|
40: "ONE_BYTE_STRING_TYPE",
|
|
|
|
41: "CONS_ONE_BYTE_STRING_TYPE",
|
|
|
|
42: "EXTERNAL_ONE_BYTE_STRING_TYPE",
|
|
|
|
43: "SLICED_ONE_BYTE_STRING_TYPE",
|
|
|
|
45: "THIN_ONE_BYTE_STRING_TYPE",
|
|
|
|
50: "UNCACHED_EXTERNAL_STRING_TYPE",
|
|
|
|
58: "UNCACHED_EXTERNAL_ONE_BYTE_STRING_TYPE",
|
[turbofan] Significantly improve ConsString creation performance.
This change significantly improves the performance of string
concatenation in optimized code for the case where the resulting string
is represented as a ConsString. On the relevant test cases we go from
serializeNaive: 10762 ms.
serializeClever: 7813 ms.
serializeConcat: 10271 ms.
to
serializeNaive: 10278 ms.
serializeClever: 5533 ms.
serializeConcat: 10310 ms.
which represents a 30% improvement on the "clever" benchmark, which
tests specifically the ConsString creation performance.
This was accomplished via a couple of different steps, which are briefly
outlined here:
1. The empty_string gets its own map, so that we can easily recognize
and handle it appropriately in the TurboFan type system. This
allows us to express (and assert) that the inputs to NewConsString
are non-empty strings, making sure that TurboFan no longer creates
"crippled ConsStrings" with empty left or right hand sides.
2. Further split the existing String types in TurboFan to be able to
distinguish between OneByte and TwoByte strings on the type system
level. This allows us to avoid having to dynamically lookup the
resulting ConsString map in case of ConsString creation (i.e. when
we know that both input strings are OneByte strings or at least
one of the input strings is TwoByte).
3. We also introduced more finegrained feedback for the Add bytecode
in the interpreter, having it collect feedback about ConsStrings,
specifically ConsOneByteString and ConsTwoByteString. This feedback
can be used by TurboFan to only inline the relevant code for what
was seen so far. This allows us to remove the Octane/Splay specific
magic in JSTypedLowering to detect ConsString creation, and instead
purely rely on the feedback of what was seen so far (also making it
possible to change the semantics of NewConsString to be a low-level
operator, which is only introduced in SimplifiedLowering by looking
at the input types of StringConcat).
4. On top of the before mentioned type and interpreter changes we added
new operators CheckNonEmptyString, CheckNonEmptyOneByteString, and
CheckNonEmptyTwoByteString, which perform the appropriate (dynamic)
checks.
There are several more improvements that are possible based on this, but
since the change was already quite big, we decided not to put everything
into the first change, but do some follow up tweaks to the type system,
and builtin optimizations later.
Tbr: mstarzinger@chromium.org
Bug: v8:8834, v8:8931, v8:8939, v8:8951
Change-Id: Ia24e17c6048bf2b04df966d3cd441f0edda05c93
Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Doc: https://bit.ly/fast-string-concatenation-in-javascript
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1499497
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60318}
2019-03-18 19:33:46 +00:00
|
|
|
72: "EMPTY_STRING_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: "ASM_WASM_DATA_TYPE",
|
|
|
|
159: "ASYNC_GENERATOR_REQUEST_TYPE",
|
|
|
|
160: "CLASS_POSITIONS_TYPE",
|
|
|
|
161: "DEBUG_INFO_TYPE",
|
2019-04-16 19:56:53 +00:00
|
|
|
162: "ENUM_CACHE_TYPE",
|
|
|
|
163: "FUNCTION_TEMPLATE_INFO_TYPE",
|
|
|
|
164: "FUNCTION_TEMPLATE_RARE_DATA_TYPE",
|
|
|
|
165: "INTERCEPTOR_INFO_TYPE",
|
|
|
|
166: "INTERPRETER_DATA_TYPE",
|
|
|
|
167: "MODULE_INFO_ENTRY_TYPE",
|
|
|
|
168: "MODULE_TYPE",
|
|
|
|
169: "OBJECT_TEMPLATE_INFO_TYPE",
|
|
|
|
170: "PROMISE_CAPABILITY_TYPE",
|
|
|
|
171: "PROMISE_REACTION_TYPE",
|
|
|
|
172: "PROTOTYPE_INFO_TYPE",
|
|
|
|
173: "SCRIPT_TYPE",
|
|
|
|
174: "STACK_FRAME_INFO_TYPE",
|
|
|
|
175: "STACK_TRACE_FRAME_TYPE",
|
|
|
|
176: "TUPLE2_TYPE",
|
|
|
|
177: "TUPLE3_TYPE",
|
|
|
|
178: "ARRAY_BOILERPLATE_DESCRIPTION_TYPE",
|
|
|
|
179: "WASM_DEBUG_INFO_TYPE",
|
|
|
|
180: "WASM_EXCEPTION_TAG_TYPE",
|
|
|
|
181: "WASM_EXPORTED_FUNCTION_DATA_TYPE",
|
|
|
|
182: "CALLABLE_TASK_TYPE",
|
|
|
|
183: "CALLBACK_TASK_TYPE",
|
|
|
|
184: "PROMISE_FULFILL_REACTION_JOB_TASK_TYPE",
|
|
|
|
185: "PROMISE_REJECT_REACTION_JOB_TASK_TYPE",
|
|
|
|
186: "PROMISE_RESOLVE_THENABLE_JOB_TASK_TYPE",
|
|
|
|
187: "FINALIZATION_GROUP_CLEANUP_JOB_TASK_TYPE",
|
|
|
|
188: "ALLOCATION_SITE_TYPE",
|
|
|
|
189: "EMBEDDER_DATA_ARRAY_TYPE",
|
|
|
|
190: "FIXED_ARRAY_TYPE",
|
|
|
|
191: "OBJECT_BOILERPLATE_DESCRIPTION_TYPE",
|
|
|
|
192: "CLOSURE_FEEDBACK_CELL_ARRAY_TYPE",
|
|
|
|
193: "HASH_TABLE_TYPE",
|
|
|
|
194: "ORDERED_HASH_MAP_TYPE",
|
|
|
|
195: "ORDERED_HASH_SET_TYPE",
|
|
|
|
196: "ORDERED_NAME_DICTIONARY_TYPE",
|
|
|
|
197: "NAME_DICTIONARY_TYPE",
|
|
|
|
198: "GLOBAL_DICTIONARY_TYPE",
|
|
|
|
199: "NUMBER_DICTIONARY_TYPE",
|
|
|
|
200: "SIMPLE_NUMBER_DICTIONARY_TYPE",
|
|
|
|
201: "STRING_TABLE_TYPE",
|
|
|
|
202: "EPHEMERON_HASH_TABLE_TYPE",
|
|
|
|
203: "SCOPE_INFO_TYPE",
|
|
|
|
204: "SCRIPT_CONTEXT_TABLE_TYPE",
|
|
|
|
205: "AWAIT_CONTEXT_TYPE",
|
|
|
|
206: "BLOCK_CONTEXT_TYPE",
|
|
|
|
207: "CATCH_CONTEXT_TYPE",
|
|
|
|
208: "DEBUG_EVALUATE_CONTEXT_TYPE",
|
|
|
|
209: "EVAL_CONTEXT_TYPE",
|
|
|
|
210: "FUNCTION_CONTEXT_TYPE",
|
|
|
|
211: "MODULE_CONTEXT_TYPE",
|
|
|
|
212: "NATIVE_CONTEXT_TYPE",
|
|
|
|
213: "SCRIPT_CONTEXT_TYPE",
|
|
|
|
214: "WITH_CONTEXT_TYPE",
|
|
|
|
215: "WEAK_FIXED_ARRAY_TYPE",
|
|
|
|
216: "TRANSITION_ARRAY_TYPE",
|
|
|
|
217: "CALL_HANDLER_INFO_TYPE",
|
|
|
|
218: "CELL_TYPE",
|
|
|
|
219: "CODE_DATA_CONTAINER_TYPE",
|
|
|
|
220: "DESCRIPTOR_ARRAY_TYPE",
|
|
|
|
221: "FEEDBACK_CELL_TYPE",
|
|
|
|
222: "FEEDBACK_VECTOR_TYPE",
|
|
|
|
223: "LOAD_HANDLER_TYPE",
|
|
|
|
224: "PREPARSE_DATA_TYPE",
|
|
|
|
225: "PROPERTY_ARRAY_TYPE",
|
|
|
|
226: "PROPERTY_CELL_TYPE",
|
|
|
|
227: "SHARED_FUNCTION_INFO_TYPE",
|
|
|
|
228: "SMALL_ORDERED_HASH_MAP_TYPE",
|
|
|
|
229: "SMALL_ORDERED_HASH_SET_TYPE",
|
|
|
|
230: "SMALL_ORDERED_NAME_DICTIONARY_TYPE",
|
|
|
|
231: "STORE_HANDLER_TYPE",
|
|
|
|
232: "UNCOMPILED_DATA_WITHOUT_PREPARSE_DATA_TYPE",
|
|
|
|
233: "UNCOMPILED_DATA_WITH_PREPARSE_DATA_TYPE",
|
|
|
|
234: "WEAK_ARRAY_LIST_TYPE",
|
|
|
|
235: "WEAK_CELL_TYPE",
|
2017-12-22 17:20:47 +00:00
|
|
|
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",
|
[es2015] Refactor the JSArrayIterator.
This changes the JSArrayIterator to always have only a single instance
type, instead of the zoo of instance types that we had before, and
which became less useful with the specification update to when "next"
is loaded from the iterator now. This greatly simplifies the baseline
implementation of the array iterator, which now only looks at the
iterated object during %ArrayIteratorPrototype%.next invocations.
In TurboFan we introduce a new JSCreateArrayIterator operator, that
holds the IterationKind and get's the iterated object as input. When
optimizing %ArrayIteratorPrototype%.next in the JSCallReducer, we
check whether the receiver is a JSCreateArrayIterator, and if so,
we try to infer maps for the iterated object from there. If we find
any, we speculatively assume that these won't have changed during
iteration (as we did before with the previous approach), and generate
fast code for both JSArray and JSTypedArray iteration.
Drive-by-fix: Drop the fast_array_iteration protector, it's not
necessary anymore since we have the deoptimization guard bit in
the JSCallReducer now.
This addresses the performance cliff noticed in webpack 4. The minimal
repro on the tracking bug goes from
console.timeEnd: mono, 124.773000
console.timeEnd: poly, 670.353000
to
console.timeEnd: mono, 118.709000
console.timeEnd: poly, 141.393000
so that's a 4.7x improvement.
Also make presubmit happy by adding the missing #undef's.
Bug: v8:7510, v7:7514
Change-Id: I79a46bfa2cd0f0710e09365ef72519b1bbb667b5
Reviewed-on: https://chromium-review.googlesource.com/946098
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51725}
2018-03-02 19:31:01 +00:00
|
|
|
1060: "JS_ARRAY_ITERATOR_TYPE",
|
|
|
|
1061: "JS_ARRAY_TYPE",
|
|
|
|
1062: "JS_ASYNC_FROM_SYNC_ITERATOR_TYPE",
|
2018-10-11 08:35:56 +00:00
|
|
|
1063: "JS_ASYNC_FUNCTION_OBJECT_TYPE",
|
|
|
|
1064: "JS_ASYNC_GENERATOR_OBJECT_TYPE",
|
|
|
|
1065: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
|
|
|
|
1066: "JS_DATE_TYPE",
|
|
|
|
1067: "JS_ERROR_TYPE",
|
|
|
|
1068: "JS_GENERATOR_OBJECT_TYPE",
|
|
|
|
1069: "JS_MAP_TYPE",
|
|
|
|
1070: "JS_MAP_KEY_ITERATOR_TYPE",
|
|
|
|
1071: "JS_MAP_KEY_VALUE_ITERATOR_TYPE",
|
|
|
|
1072: "JS_MAP_VALUE_ITERATOR_TYPE",
|
|
|
|
1073: "JS_MESSAGE_OBJECT_TYPE",
|
|
|
|
1074: "JS_PROMISE_TYPE",
|
|
|
|
1075: "JS_REGEXP_TYPE",
|
|
|
|
1076: "JS_REGEXP_STRING_ITERATOR_TYPE",
|
|
|
|
1077: "JS_SET_TYPE",
|
|
|
|
1078: "JS_SET_KEY_VALUE_ITERATOR_TYPE",
|
|
|
|
1079: "JS_SET_VALUE_ITERATOR_TYPE",
|
|
|
|
1080: "JS_STRING_ITERATOR_TYPE",
|
2019-01-30 12:06:32 +00:00
|
|
|
1081: "JS_WEAK_REF_TYPE",
|
|
|
|
1082: "JS_FINALIZATION_GROUP_CLEANUP_ITERATOR_TYPE",
|
|
|
|
1083: "JS_FINALIZATION_GROUP_TYPE",
|
|
|
|
1084: "JS_WEAK_MAP_TYPE",
|
|
|
|
1085: "JS_WEAK_SET_TYPE",
|
|
|
|
1086: "JS_TYPED_ARRAY_TYPE",
|
|
|
|
1087: "JS_DATA_VIEW_TYPE",
|
|
|
|
1088: "JS_INTL_V8_BREAK_ITERATOR_TYPE",
|
|
|
|
1089: "JS_INTL_COLLATOR_TYPE",
|
|
|
|
1090: "JS_INTL_DATE_TIME_FORMAT_TYPE",
|
|
|
|
1091: "JS_INTL_LIST_FORMAT_TYPE",
|
|
|
|
1092: "JS_INTL_LOCALE_TYPE",
|
|
|
|
1093: "JS_INTL_NUMBER_FORMAT_TYPE",
|
|
|
|
1094: "JS_INTL_PLURAL_RULES_TYPE",
|
|
|
|
1095: "JS_INTL_RELATIVE_TIME_FORMAT_TYPE",
|
|
|
|
1096: "JS_INTL_SEGMENT_ITERATOR_TYPE",
|
|
|
|
1097: "JS_INTL_SEGMENTER_TYPE",
|
|
|
|
1098: "WASM_EXCEPTION_TYPE",
|
|
|
|
1099: "WASM_GLOBAL_TYPE",
|
|
|
|
1100: "WASM_INSTANCE_TYPE",
|
|
|
|
1101: "WASM_MEMORY_TYPE",
|
|
|
|
1102: "WASM_MODULE_TYPE",
|
|
|
|
1103: "WASM_TABLE_TYPE",
|
|
|
|
1104: "JS_BOUND_FUNCTION_TYPE",
|
|
|
|
1105: "JS_FUNCTION_TYPE",
|
2013-08-02 09:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# List of known V8 maps.
|
|
|
|
KNOWN_MAPS = {
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x00139): (138, "FreeSpaceMap"),
|
|
|
|
("read_only_space", 0x00189): (132, "MetaMap"),
|
|
|
|
("read_only_space", 0x00209): (131, "NullMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x00271): (220, "DescriptorArrayMap"),
|
|
|
|
("read_only_space", 0x002d1): (215, "WeakFixedArrayMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x00321): (152, "OnePointerFillerMap"),
|
|
|
|
("read_only_space", 0x00371): (152, "TwoPointerFillerMap"),
|
|
|
|
("read_only_space", 0x003f1): (131, "UninitializedMap"),
|
|
|
|
("read_only_space", 0x00461): (8, "OneByteInternalizedStringMap"),
|
|
|
|
("read_only_space", 0x00501): (131, "UndefinedMap"),
|
|
|
|
("read_only_space", 0x00561): (129, "HeapNumberMap"),
|
|
|
|
("read_only_space", 0x005e1): (131, "TheHoleMap"),
|
|
|
|
("read_only_space", 0x00689): (131, "BooleanMap"),
|
|
|
|
("read_only_space", 0x00761): (72, "EmptyStringMap"),
|
|
|
|
("read_only_space", 0x007b1): (136, "ByteArrayMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x00801): (190, "FixedArrayMap"),
|
|
|
|
("read_only_space", 0x00851): (190, "FixedCOWArrayMap"),
|
|
|
|
("read_only_space", 0x008a1): (193, "HashTableMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x008f1): (128, "SymbolMap"),
|
|
|
|
("read_only_space", 0x00941): (40, "OneByteStringMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x00991): (203, "ScopeInfoMap"),
|
|
|
|
("read_only_space", 0x009e1): (227, "SharedFunctionInfoMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x00a31): (133, "CodeMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x00a81): (210, "FunctionContextMap"),
|
|
|
|
("read_only_space", 0x00ad1): (218, "CellMap"),
|
|
|
|
("read_only_space", 0x00b21): (226, "GlobalPropertyCellMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x00b71): (135, "ForeignMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x00bc1): (216, "TransitionArrayMap"),
|
|
|
|
("read_only_space", 0x00c11): (222, "FeedbackVectorMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x00cb1): (131, "ArgumentsMarkerMap"),
|
|
|
|
("read_only_space", 0x00d51): (131, "ExceptionMap"),
|
|
|
|
("read_only_space", 0x00df1): (131, "TerminationExceptionMap"),
|
|
|
|
("read_only_space", 0x00e99): (131, "OptimizedOutMap"),
|
|
|
|
("read_only_space", 0x00f39): (131, "StaleRegisterMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x00fa9): (212, "NativeContextMap"),
|
|
|
|
("read_only_space", 0x00ff9): (211, "ModuleContextMap"),
|
|
|
|
("read_only_space", 0x01049): (209, "EvalContextMap"),
|
|
|
|
("read_only_space", 0x01099): (213, "ScriptContextMap"),
|
|
|
|
("read_only_space", 0x010e9): (205, "AwaitContextMap"),
|
|
|
|
("read_only_space", 0x01139): (206, "BlockContextMap"),
|
|
|
|
("read_only_space", 0x01189): (207, "CatchContextMap"),
|
|
|
|
("read_only_space", 0x011d9): (214, "WithContextMap"),
|
|
|
|
("read_only_space", 0x01229): (208, "DebugEvaluateContextMap"),
|
|
|
|
("read_only_space", 0x01279): (204, "ScriptContextTableMap"),
|
|
|
|
("read_only_space", 0x012c9): (192, "ClosureFeedbackCellArrayMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x01319): (151, "FeedbackMetadataArrayMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x01369): (190, "ArrayListMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x013b9): (130, "BigIntMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x01409): (191, "ObjectBoilerplateDescriptionMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x01459): (137, "BytecodeArrayMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x014a9): (219, "CodeDataContainerMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x014f9): (150, "FixedDoubleArrayMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x01549): (198, "GlobalDictionaryMap"),
|
|
|
|
("read_only_space", 0x01599): (221, "ManyClosuresCellMap"),
|
|
|
|
("read_only_space", 0x015e9): (190, "ModuleInfoMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x01639): (134, "MutableHeapNumberMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x01689): (197, "NameDictionaryMap"),
|
|
|
|
("read_only_space", 0x016d9): (221, "NoClosuresCellMap"),
|
|
|
|
("read_only_space", 0x01729): (199, "NumberDictionaryMap"),
|
|
|
|
("read_only_space", 0x01779): (221, "OneClosureCellMap"),
|
|
|
|
("read_only_space", 0x017c9): (194, "OrderedHashMapMap"),
|
|
|
|
("read_only_space", 0x01819): (195, "OrderedHashSetMap"),
|
|
|
|
("read_only_space", 0x01869): (196, "OrderedNameDictionaryMap"),
|
|
|
|
("read_only_space", 0x018b9): (224, "PreparseDataMap"),
|
|
|
|
("read_only_space", 0x01909): (225, "PropertyArrayMap"),
|
|
|
|
("read_only_space", 0x01959): (217, "SideEffectCallHandlerInfoMap"),
|
|
|
|
("read_only_space", 0x019a9): (217, "SideEffectFreeCallHandlerInfoMap"),
|
|
|
|
("read_only_space", 0x019f9): (217, "NextCallSideEffectFreeCallHandlerInfoMap"),
|
|
|
|
("read_only_space", 0x01a49): (200, "SimpleNumberDictionaryMap"),
|
|
|
|
("read_only_space", 0x01a99): (190, "SloppyArgumentsElementsMap"),
|
|
|
|
("read_only_space", 0x01ae9): (228, "SmallOrderedHashMapMap"),
|
|
|
|
("read_only_space", 0x01b39): (229, "SmallOrderedHashSetMap"),
|
|
|
|
("read_only_space", 0x01b89): (230, "SmallOrderedNameDictionaryMap"),
|
|
|
|
("read_only_space", 0x01bd9): (201, "StringTableMap"),
|
|
|
|
("read_only_space", 0x01c29): (232, "UncompiledDataWithoutPreparseDataMap"),
|
|
|
|
("read_only_space", 0x01c79): (233, "UncompiledDataWithPreparseDataMap"),
|
|
|
|
("read_only_space", 0x01cc9): (234, "WeakArrayListMap"),
|
|
|
|
("read_only_space", 0x01d19): (202, "EphemeronHashTableMap"),
|
|
|
|
("read_only_space", 0x01d69): (189, "EmbedderDataArrayMap"),
|
|
|
|
("read_only_space", 0x01db9): (235, "WeakCellMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x01e09): (58, "NativeSourceStringMap"),
|
|
|
|
("read_only_space", 0x01e59): (32, "StringMap"),
|
|
|
|
("read_only_space", 0x01ea9): (41, "ConsOneByteStringMap"),
|
|
|
|
("read_only_space", 0x01ef9): (33, "ConsStringMap"),
|
|
|
|
("read_only_space", 0x01f49): (45, "ThinOneByteStringMap"),
|
|
|
|
("read_only_space", 0x01f99): (37, "ThinStringMap"),
|
|
|
|
("read_only_space", 0x01fe9): (35, "SlicedStringMap"),
|
|
|
|
("read_only_space", 0x02039): (43, "SlicedOneByteStringMap"),
|
|
|
|
("read_only_space", 0x02089): (34, "ExternalStringMap"),
|
|
|
|
("read_only_space", 0x020d9): (42, "ExternalOneByteStringMap"),
|
|
|
|
("read_only_space", 0x02129): (50, "UncachedExternalStringMap"),
|
|
|
|
("read_only_space", 0x02179): (0, "InternalizedStringMap"),
|
|
|
|
("read_only_space", 0x021c9): (2, "ExternalInternalizedStringMap"),
|
|
|
|
("read_only_space", 0x02219): (10, "ExternalOneByteInternalizedStringMap"),
|
|
|
|
("read_only_space", 0x02269): (18, "UncachedExternalInternalizedStringMap"),
|
|
|
|
("read_only_space", 0x022b9): (26, "UncachedExternalOneByteInternalizedStringMap"),
|
|
|
|
("read_only_space", 0x02309): (58, "UncachedExternalOneByteStringMap"),
|
|
|
|
("read_only_space", 0x02359): (140, "FixedUint8ArrayMap"),
|
|
|
|
("read_only_space", 0x023a9): (139, "FixedInt8ArrayMap"),
|
|
|
|
("read_only_space", 0x023f9): (142, "FixedUint16ArrayMap"),
|
|
|
|
("read_only_space", 0x02449): (141, "FixedInt16ArrayMap"),
|
|
|
|
("read_only_space", 0x02499): (144, "FixedUint32ArrayMap"),
|
|
|
|
("read_only_space", 0x024e9): (143, "FixedInt32ArrayMap"),
|
|
|
|
("read_only_space", 0x02539): (145, "FixedFloat32ArrayMap"),
|
|
|
|
("read_only_space", 0x02589): (146, "FixedFloat64ArrayMap"),
|
|
|
|
("read_only_space", 0x025d9): (147, "FixedUint8ClampedArrayMap"),
|
|
|
|
("read_only_space", 0x02629): (149, "FixedBigUint64ArrayMap"),
|
|
|
|
("read_only_space", 0x02679): (148, "FixedBigInt64ArrayMap"),
|
|
|
|
("read_only_space", 0x026c9): (131, "SelfReferenceMarkerMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x02731): (162, "EnumCacheMap"),
|
|
|
|
("read_only_space", 0x027d1): (178, "ArrayBoilerplateDescriptionMap"),
|
|
|
|
("read_only_space", 0x02b21): (165, "InterceptorInfoMap"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x05109): (153, "AccessCheckInfoMap"),
|
|
|
|
("read_only_space", 0x05159): (154, "AccessorInfoMap"),
|
|
|
|
("read_only_space", 0x051a9): (155, "AccessorPairMap"),
|
|
|
|
("read_only_space", 0x051f9): (156, "AliasedArgumentsEntryMap"),
|
|
|
|
("read_only_space", 0x05249): (157, "AllocationMementoMap"),
|
|
|
|
("read_only_space", 0x05299): (158, "AsmWasmDataMap"),
|
|
|
|
("read_only_space", 0x052e9): (159, "AsyncGeneratorRequestMap"),
|
|
|
|
("read_only_space", 0x05339): (160, "ClassPositionsMap"),
|
|
|
|
("read_only_space", 0x05389): (161, "DebugInfoMap"),
|
2019-04-16 19:56:53 +00:00
|
|
|
("read_only_space", 0x053d9): (163, "FunctionTemplateInfoMap"),
|
|
|
|
("read_only_space", 0x05429): (164, "FunctionTemplateRareDataMap"),
|
|
|
|
("read_only_space", 0x05479): (166, "InterpreterDataMap"),
|
|
|
|
("read_only_space", 0x054c9): (167, "ModuleInfoEntryMap"),
|
|
|
|
("read_only_space", 0x05519): (168, "ModuleMap"),
|
|
|
|
("read_only_space", 0x05569): (169, "ObjectTemplateInfoMap"),
|
|
|
|
("read_only_space", 0x055b9): (170, "PromiseCapabilityMap"),
|
|
|
|
("read_only_space", 0x05609): (171, "PromiseReactionMap"),
|
|
|
|
("read_only_space", 0x05659): (172, "PrototypeInfoMap"),
|
|
|
|
("read_only_space", 0x056a9): (173, "ScriptMap"),
|
|
|
|
("read_only_space", 0x056f9): (174, "StackFrameInfoMap"),
|
|
|
|
("read_only_space", 0x05749): (175, "StackTraceFrameMap"),
|
|
|
|
("read_only_space", 0x05799): (176, "Tuple2Map"),
|
|
|
|
("read_only_space", 0x057e9): (177, "Tuple3Map"),
|
|
|
|
("read_only_space", 0x05839): (179, "WasmDebugInfoMap"),
|
|
|
|
("read_only_space", 0x05889): (180, "WasmExceptionTagMap"),
|
|
|
|
("read_only_space", 0x058d9): (181, "WasmExportedFunctionDataMap"),
|
|
|
|
("read_only_space", 0x05929): (182, "CallableTaskMap"),
|
|
|
|
("read_only_space", 0x05979): (183, "CallbackTaskMap"),
|
|
|
|
("read_only_space", 0x059c9): (184, "PromiseFulfillReactionJobTaskMap"),
|
|
|
|
("read_only_space", 0x05a19): (185, "PromiseRejectReactionJobTaskMap"),
|
|
|
|
("read_only_space", 0x05a69): (186, "PromiseResolveThenableJobTaskMap"),
|
|
|
|
("read_only_space", 0x05ab9): (187, "FinalizationGroupCleanupJobTaskMap"),
|
|
|
|
("read_only_space", 0x05b09): (188, "AllocationSiteWithWeakNextMap"),
|
|
|
|
("read_only_space", 0x05b59): (188, "AllocationSiteWithoutWeakNextMap"),
|
|
|
|
("read_only_space", 0x05ba9): (223, "LoadHandler1Map"),
|
|
|
|
("read_only_space", 0x05bf9): (223, "LoadHandler2Map"),
|
|
|
|
("read_only_space", 0x05c49): (223, "LoadHandler3Map"),
|
|
|
|
("read_only_space", 0x05c99): (231, "StoreHandler0Map"),
|
|
|
|
("read_only_space", 0x05ce9): (231, "StoreHandler1Map"),
|
|
|
|
("read_only_space", 0x05d39): (231, "StoreHandler2Map"),
|
|
|
|
("read_only_space", 0x05d89): (231, "StoreHandler3Map"),
|
2019-04-15 10:34:18 +00:00
|
|
|
("map_space", 0x00139): (1057, "ExternalMap"),
|
|
|
|
("map_space", 0x00189): (1073, "JSMessageObjectMap"),
|
2013-08-02 09:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# List of known V8 objects.
|
|
|
|
KNOWN_OBJECTS = {
|
2019-04-15 10:34:18 +00:00
|
|
|
("read_only_space", 0x001d9): "NullValue",
|
|
|
|
("read_only_space", 0x00259): "EmptyDescriptorArray",
|
|
|
|
("read_only_space", 0x002c1): "EmptyWeakFixedArray",
|
|
|
|
("read_only_space", 0x003c1): "UninitializedValue",
|
|
|
|
("read_only_space", 0x004d1): "UndefinedValue",
|
|
|
|
("read_only_space", 0x00551): "NanValue",
|
|
|
|
("read_only_space", 0x005b1): "TheHoleValue",
|
|
|
|
("read_only_space", 0x00649): "HoleNanValue",
|
|
|
|
("read_only_space", 0x00659): "TrueValue",
|
|
|
|
("read_only_space", 0x00709): "FalseValue",
|
|
|
|
("read_only_space", 0x00751): "empty_string",
|
|
|
|
("read_only_space", 0x00c61): "EmptyScopeInfo",
|
|
|
|
("read_only_space", 0x00c71): "EmptyFixedArray",
|
|
|
|
("read_only_space", 0x00c81): "ArgumentsMarker",
|
|
|
|
("read_only_space", 0x00d21): "Exception",
|
|
|
|
("read_only_space", 0x00dc1): "TerminationException",
|
|
|
|
("read_only_space", 0x00e69): "OptimizedOut",
|
|
|
|
("read_only_space", 0x00f09): "StaleRegister",
|
|
|
|
("read_only_space", 0x02719): "EmptyEnumCache",
|
|
|
|
("read_only_space", 0x02781): "EmptyPropertyArray",
|
|
|
|
("read_only_space", 0x02791): "EmptyByteArray",
|
|
|
|
("read_only_space", 0x027a1): "EmptyObjectBoilerplateDescription",
|
|
|
|
("read_only_space", 0x027b9): "EmptyArrayBoilerplateDescription",
|
|
|
|
("read_only_space", 0x02821): "EmptyClosureFeedbackCellArray",
|
|
|
|
("read_only_space", 0x02831): "EmptyFixedUint8Array",
|
|
|
|
("read_only_space", 0x02851): "EmptyFixedInt8Array",
|
|
|
|
("read_only_space", 0x02871): "EmptyFixedUint16Array",
|
|
|
|
("read_only_space", 0x02891): "EmptyFixedInt16Array",
|
|
|
|
("read_only_space", 0x028b1): "EmptyFixedUint32Array",
|
|
|
|
("read_only_space", 0x028d1): "EmptyFixedInt32Array",
|
|
|
|
("read_only_space", 0x028f1): "EmptyFixedFloat32Array",
|
|
|
|
("read_only_space", 0x02911): "EmptyFixedFloat64Array",
|
|
|
|
("read_only_space", 0x02931): "EmptyFixedUint8ClampedArray",
|
|
|
|
("read_only_space", 0x02951): "EmptyFixedBigUint64Array",
|
|
|
|
("read_only_space", 0x02971): "EmptyFixedBigInt64Array",
|
|
|
|
("read_only_space", 0x02991): "EmptySloppyArgumentsElements",
|
|
|
|
("read_only_space", 0x029b1): "EmptySlowElementDictionary",
|
|
|
|
("read_only_space", 0x029f9): "EmptyOrderedHashMap",
|
|
|
|
("read_only_space", 0x02a21): "EmptyOrderedHashSet",
|
|
|
|
("read_only_space", 0x02a49): "EmptyFeedbackMetadata",
|
|
|
|
("read_only_space", 0x02a59): "EmptyPropertyCell",
|
|
|
|
("read_only_space", 0x02a81): "EmptyPropertyDictionary",
|
|
|
|
("read_only_space", 0x02ad1): "NoOpInterceptorInfo",
|
|
|
|
("read_only_space", 0x02b71): "EmptyWeakArrayList",
|
|
|
|
("read_only_space", 0x02b89): "InfinityValue",
|
|
|
|
("read_only_space", 0x02b99): "MinusZeroValue",
|
|
|
|
("read_only_space", 0x02ba9): "MinusInfinityValue",
|
|
|
|
("read_only_space", 0x02bb9): "SelfReferenceMarker",
|
|
|
|
("read_only_space", 0x02c11): "OffHeapTrampolineRelocationInfo",
|
|
|
|
("read_only_space", 0x02c29): "HashSeed",
|
|
|
|
("old_space", 0x00139): "ArgumentsIteratorAccessor",
|
|
|
|
("old_space", 0x001a9): "ArrayLengthAccessor",
|
|
|
|
("old_space", 0x00219): "BoundFunctionLengthAccessor",
|
|
|
|
("old_space", 0x00289): "BoundFunctionNameAccessor",
|
|
|
|
("old_space", 0x002f9): "ErrorStackAccessor",
|
|
|
|
("old_space", 0x00369): "FunctionArgumentsAccessor",
|
|
|
|
("old_space", 0x003d9): "FunctionCallerAccessor",
|
|
|
|
("old_space", 0x00449): "FunctionNameAccessor",
|
|
|
|
("old_space", 0x004b9): "FunctionLengthAccessor",
|
|
|
|
("old_space", 0x00529): "FunctionPrototypeAccessor",
|
|
|
|
("old_space", 0x00599): "StringLengthAccessor",
|
|
|
|
("old_space", 0x00609): "InvalidPrototypeValidityCell",
|
|
|
|
("old_space", 0x00619): "EmptyScript",
|
|
|
|
("old_space", 0x00699): "ManyClosuresCell",
|
|
|
|
("old_space", 0x006b1): "ArrayConstructorProtector",
|
|
|
|
("old_space", 0x006c1): "NoElementsProtector",
|
|
|
|
("old_space", 0x006e9): "IsConcatSpreadableProtector",
|
|
|
|
("old_space", 0x006f9): "ArraySpeciesProtector",
|
|
|
|
("old_space", 0x00721): "TypedArraySpeciesProtector",
|
|
|
|
("old_space", 0x00749): "RegExpSpeciesProtector",
|
|
|
|
("old_space", 0x00771): "PromiseSpeciesProtector",
|
|
|
|
("old_space", 0x00799): "StringLengthProtector",
|
|
|
|
("old_space", 0x007a9): "ArrayIteratorProtector",
|
|
|
|
("old_space", 0x007d1): "ArrayBufferDetachingProtector",
|
|
|
|
("old_space", 0x007f9): "PromiseHookProtector",
|
|
|
|
("old_space", 0x00821): "PromiseResolveProtector",
|
|
|
|
("old_space", 0x00831): "MapIteratorProtector",
|
|
|
|
("old_space", 0x00859): "PromiseThenProtector",
|
|
|
|
("old_space", 0x00881): "SetIteratorProtector",
|
|
|
|
("old_space", 0x008a9): "StringIteratorProtector",
|
|
|
|
("old_space", 0x008d1): "SingleCharacterStringCache",
|
|
|
|
("old_space", 0x010e1): "StringSplitCache",
|
|
|
|
("old_space", 0x018f1): "RegExpMultipleCache",
|
|
|
|
("old_space", 0x02101): "BuiltinsConstantsTable",
|
2013-08-02 09:02:02 +00:00
|
|
|
}
|
2017-03-30 11:44:00 +00:00
|
|
|
|
|
|
|
# List of known V8 Frame Markers.
|
|
|
|
FRAME_MARKERS = (
|
|
|
|
"ENTRY",
|
2017-08-03 14:30:20 +00:00
|
|
|
"CONSTRUCT_ENTRY",
|
2017-03-30 11:44:00 +00:00
|
|
|
"EXIT",
|
|
|
|
"OPTIMIZED",
|
|
|
|
"WASM_COMPILED",
|
|
|
|
"WASM_TO_JS",
|
|
|
|
"JS_TO_WASM",
|
|
|
|
"WASM_INTERPRETER_ENTRY",
|
2017-08-07 11:40:21 +00:00
|
|
|
"C_WASM_ENTRY",
|
2018-05-29 10:53:23 +00:00
|
|
|
"WASM_COMPILE_LAZY",
|
2017-03-30 11:44:00 +00:00
|
|
|
"INTERPRETED",
|
|
|
|
"STUB",
|
2017-06-07 13:23:33 +00:00
|
|
|
"BUILTIN_CONTINUATION",
|
|
|
|
"JAVA_SCRIPT_BUILTIN_CONTINUATION",
|
2018-04-04 06:31:33 +00:00
|
|
|
"JAVA_SCRIPT_BUILTIN_CONTINUATION_WITH_CATCH",
|
2017-03-30 11:44:00 +00:00
|
|
|
"INTERNAL",
|
|
|
|
"CONSTRUCT",
|
|
|
|
"ARGUMENTS_ADAPTOR",
|
|
|
|
"BUILTIN",
|
|
|
|
"BUILTIN_EXIT",
|
2017-12-12 22:19:44 +00:00
|
|
|
"NATIVE",
|
2017-03-30 11:44:00 +00:00
|
|
|
)
|
2017-04-20 06:14:53 +00:00
|
|
|
|
|
|
|
# This set of constants is generated from a shipping build.
|