Commit 9c6bc7af authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

Leave spaces between instance types.

We used to frequently break the ABI when we introduced new instance
types because some instance types are hard-coded in v8.h.

Now that we have more instance types available, we can leave some
room to anticipate future new instance types.

Also take this opportunity to reorder some instance types.

Also see: https://github.com/nodejs/node/issues/17754

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I9b59eeab9dfcdf11d779f0b700fc5dce30d3eebe
Reviewed-on: https://chromium-review.googlesource.com/833874Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50223}
parent 50cb6751
......@@ -9089,9 +9089,9 @@ class Internals {
static const int kFirstNonstringType = 0x80;
static const int kOddballType = 0x83;
static const int kForeignType = 0x87;
static const int kJSSpecialApiObjectType = 0xbe;
static const int kJSApiObjectType = 0xc2;
static const int kJSObjectType = 0xc3;
static const int kJSSpecialApiObjectType = 0x8100;
static const int kJSApiObjectType = 0x8200;
static const int kJSObjectType = 0x8201;
static const int kUndefinedOddballKind = 5;
static const int kNullOddballKind = 3;
......
......@@ -297,6 +297,9 @@ bool HeapObject::IsJSProxy() const { return map()->IsJSProxyMap(); }
bool HeapObject::IsJSMapIterator() const {
InstanceType instance_type = map()->instance_type();
STATIC_ASSERT(JS_MAP_KEY_ITERATOR_TYPE + 1 == JS_MAP_KEY_VALUE_ITERATOR_TYPE);
STATIC_ASSERT(JS_MAP_KEY_VALUE_ITERATOR_TYPE + 1 ==
JS_MAP_VALUE_ITERATOR_TYPE);
return (instance_type >= JS_MAP_KEY_ITERATOR_TYPE &&
instance_type <= JS_MAP_VALUE_ITERATOR_TYPE);
}
......
......@@ -349,42 +349,44 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
V(FIXED_DOUBLE_ARRAY_TYPE) \
V(FILLER_TYPE) \
\
V(ACCESS_CHECK_INFO_TYPE) \
V(ACCESSOR_INFO_TYPE) \
V(ACCESSOR_PAIR_TYPE) \
V(ACCESS_CHECK_INFO_TYPE) \
V(INTERCEPTOR_INFO_TYPE) \
V(ALIASED_ARGUMENTS_ENTRY_TYPE) \
V(ALLOCATION_MEMENTO_TYPE) \
V(ALLOCATION_SITE_TYPE) \
V(ASYNC_GENERATOR_REQUEST_TYPE) \
V(CONTEXT_EXTENSION_TYPE) \
V(DEBUG_INFO_TYPE) \
V(FUNCTION_TEMPLATE_INFO_TYPE) \
V(INTERCEPTOR_INFO_TYPE) \
V(MODULE_INFO_ENTRY_TYPE) \
V(MODULE_TYPE) \
V(OBJECT_TEMPLATE_INFO_TYPE) \
V(ALLOCATION_SITE_TYPE) \
V(ALLOCATION_MEMENTO_TYPE) \
V(SCRIPT_TYPE) \
V(ALIASED_ARGUMENTS_ENTRY_TYPE) \
V(PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE) \
V(PROMISE_REACTION_JOB_INFO_TYPE) \
V(DEBUG_INFO_TYPE) \
V(STACK_FRAME_INFO_TYPE) \
V(PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE) \
V(PROTOTYPE_INFO_TYPE) \
V(SCRIPT_TYPE) \
V(STACK_FRAME_INFO_TYPE) \
V(TUPLE2_TYPE) \
V(TUPLE3_TYPE) \
V(CONTEXT_EXTENSION_TYPE) \
V(MODULE_TYPE) \
V(MODULE_INFO_ENTRY_TYPE) \
V(ASYNC_GENERATOR_REQUEST_TYPE) \
V(LOAD_HANDLER_TYPE) \
V(STORE_HANDLER_TYPE) \
\
V(FIXED_ARRAY_TYPE) \
V(HASH_TABLE_TYPE) \
V(DESCRIPTOR_ARRAY_TYPE) \
V(HASH_TABLE_TYPE) \
V(TRANSITION_ARRAY_TYPE) \
\
V(CELL_TYPE) \
V(CODE_DATA_CONTAINER_TYPE) \
V(FEEDBACK_VECTOR_TYPE) \
V(LOAD_HANDLER_TYPE) \
V(PROPERTY_ARRAY_TYPE) \
V(SHARED_FUNCTION_INFO_TYPE) \
V(CELL_TYPE) \
V(WEAK_CELL_TYPE) \
V(PROPERTY_CELL_TYPE) \
V(SHARED_FUNCTION_INFO_TYPE) \
V(SMALL_ORDERED_HASH_MAP_TYPE) \
V(SMALL_ORDERED_HASH_SET_TYPE) \
V(CODE_DATA_CONTAINER_TYPE) \
V(STORE_HANDLER_TYPE) \
V(WEAK_CELL_TYPE) \
\
V(JS_PROXY_TYPE) \
V(JS_GLOBAL_OBJECT_TYPE) \
......@@ -392,32 +394,34 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
V(JS_MODULE_NAMESPACE_TYPE) \
V(JS_SPECIAL_API_OBJECT_TYPE) \
V(JS_VALUE_TYPE) \
V(JS_MESSAGE_OBJECT_TYPE) \
V(JS_DATE_TYPE) \
V(JS_API_OBJECT_TYPE) \
V(JS_OBJECT_TYPE) \
\
V(JS_ARGUMENTS_TYPE) \
V(JS_ARRAY_BUFFER_TYPE) \
V(JS_ARRAY_TYPE) \
V(JS_ASYNC_FROM_SYNC_ITERATOR_TYPE) \
V(JS_ASYNC_GENERATOR_OBJECT_TYPE) \
V(JS_CONTEXT_EXTENSION_OBJECT_TYPE) \
V(JS_DATE_TYPE) \
V(JS_ERROR_TYPE) \
V(JS_GENERATOR_OBJECT_TYPE) \
V(JS_ASYNC_GENERATOR_OBJECT_TYPE) \
V(JS_ARRAY_TYPE) \
V(JS_ARRAY_BUFFER_TYPE) \
V(JS_TYPED_ARRAY_TYPE) \
V(JS_DATA_VIEW_TYPE) \
V(JS_SET_TYPE) \
V(JS_MAP_TYPE) \
V(JS_SET_KEY_VALUE_ITERATOR_TYPE) \
V(JS_SET_VALUE_ITERATOR_TYPE) \
V(JS_MAP_KEY_ITERATOR_TYPE) \
V(JS_MAP_KEY_VALUE_ITERATOR_TYPE) \
V(JS_MAP_VALUE_ITERATOR_TYPE) \
V(JS_WEAK_MAP_TYPE) \
V(JS_WEAK_SET_TYPE) \
V(JS_MESSAGE_OBJECT_TYPE) \
V(JS_PROMISE_TYPE) \
V(JS_REGEXP_TYPE) \
V(JS_ERROR_TYPE) \
V(JS_ASYNC_FROM_SYNC_ITERATOR_TYPE) \
V(JS_SET_TYPE) \
V(JS_SET_KEY_VALUE_ITERATOR_TYPE) \
V(JS_SET_VALUE_ITERATOR_TYPE) \
V(JS_STRING_ITERATOR_TYPE) \
V(JS_WEAK_MAP_TYPE) \
V(JS_WEAK_SET_TYPE) \
\
V(JS_TYPED_ARRAY_TYPE) \
V(JS_DATA_VIEW_TYPE) \
\
ARRAY_ITERATOR_TYPE_LIST(V) \
\
......@@ -533,29 +537,29 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
// type tags, elements in this list have to be added to the INSTANCE_TYPE_LIST
// manually.
#define STRUCT_LIST(V) \
V(ACCESS_CHECK_INFO, AccessCheckInfo, access_check_info) \
V(ACCESSOR_INFO, AccessorInfo, accessor_info) \
V(ACCESSOR_PAIR, AccessorPair, accessor_pair) \
V(ACCESS_CHECK_INFO, AccessCheckInfo, access_check_info) \
V(INTERCEPTOR_INFO, InterceptorInfo, interceptor_info) \
V(ALIASED_ARGUMENTS_ENTRY, AliasedArgumentsEntry, aliased_arguments_entry) \
V(ALLOCATION_MEMENTO, AllocationMemento, allocation_memento) \
V(ALLOCATION_SITE, AllocationSite, allocation_site) \
V(ASYNC_GENERATOR_REQUEST, AsyncGeneratorRequest, async_generator_request) \
V(CONTEXT_EXTENSION, ContextExtension, context_extension) \
V(DEBUG_INFO, DebugInfo, debug_info) \
V(FUNCTION_TEMPLATE_INFO, FunctionTemplateInfo, function_template_info) \
V(INTERCEPTOR_INFO, InterceptorInfo, interceptor_info) \
V(MODULE_INFO_ENTRY, ModuleInfoEntry, module_info_entry) \
V(MODULE, Module, module) \
V(OBJECT_TEMPLATE_INFO, ObjectTemplateInfo, object_template_info) \
V(ALLOCATION_SITE, AllocationSite, allocation_site) \
V(ALLOCATION_MEMENTO, AllocationMemento, allocation_memento) \
V(SCRIPT, Script, script) \
V(ALIASED_ARGUMENTS_ENTRY, AliasedArgumentsEntry, aliased_arguments_entry) \
V(PROMISE_RESOLVE_THENABLE_JOB_INFO, PromiseResolveThenableJobInfo, \
promise_resolve_thenable_job_info) \
V(PROMISE_REACTION_JOB_INFO, PromiseReactionJobInfo, \
promise_reaction_job_info) \
V(DEBUG_INFO, DebugInfo, debug_info) \
V(STACK_FRAME_INFO, StackFrameInfo, stack_frame_info) \
V(PROMISE_RESOLVE_THENABLE_JOB_INFO, PromiseResolveThenableJobInfo, \
promise_resolve_thenable_job_info) \
V(PROTOTYPE_INFO, PrototypeInfo, prototype_info) \
V(SCRIPT, Script, script) \
V(STACK_FRAME_INFO, StackFrameInfo, stack_frame_info) \
V(TUPLE2, Tuple2, tuple2) \
V(TUPLE3, Tuple3, tuple3) \
V(CONTEXT_EXTENSION, ContextExtension, context_extension) \
V(MODULE, Module, module) \
V(MODULE_INFO_ENTRY, ModuleInfoEntry, module_info_entry) \
V(ASYNC_GENERATOR_REQUEST, AsyncGeneratorRequest, async_generator_request)
V(TUPLE3, Tuple3, tuple3)
#define DATA_HANDLER_LIST(V) \
V(LOAD_HANDLER, LoadHandler, 1, load_handler1) \
......@@ -715,82 +719,90 @@ enum InstanceType : uint16_t {
FILLER_TYPE, // LAST_DATA_TYPE
// Structs.
ACCESS_CHECK_INFO_TYPE,
ACCESSOR_INFO_TYPE,
ACCESSOR_PAIR_TYPE,
ACCESS_CHECK_INFO_TYPE,
INTERCEPTOR_INFO_TYPE,
ALIASED_ARGUMENTS_ENTRY_TYPE,
ALLOCATION_MEMENTO_TYPE,
ALLOCATION_SITE_TYPE,
ASYNC_GENERATOR_REQUEST_TYPE,
CONTEXT_EXTENSION_TYPE,
DEBUG_INFO_TYPE,
FUNCTION_TEMPLATE_INFO_TYPE,
INTERCEPTOR_INFO_TYPE,
MODULE_INFO_ENTRY_TYPE,
MODULE_TYPE,
OBJECT_TEMPLATE_INFO_TYPE,
ALLOCATION_SITE_TYPE,
ALLOCATION_MEMENTO_TYPE,
SCRIPT_TYPE,
ALIASED_ARGUMENTS_ENTRY_TYPE,
PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE,
PROMISE_REACTION_JOB_INFO_TYPE,
DEBUG_INFO_TYPE,
STACK_FRAME_INFO_TYPE,
PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE,
PROTOTYPE_INFO_TYPE,
SCRIPT_TYPE,
STACK_FRAME_INFO_TYPE,
TUPLE2_TYPE,
TUPLE3_TYPE,
CONTEXT_EXTENSION_TYPE,
MODULE_TYPE,
MODULE_INFO_ENTRY_TYPE,
ASYNC_GENERATOR_REQUEST_TYPE,
LOAD_HANDLER_TYPE,
STORE_HANDLER_TYPE,
// FixedArrays.
FIXED_ARRAY_TYPE, // FIRST_FIXED_ARRAY_TYPE
HASH_TABLE_TYPE,
DESCRIPTOR_ARRAY_TYPE,
HASH_TABLE_TYPE,
TRANSITION_ARRAY_TYPE, // LAST_FIXED_ARRAY_TYPE
// Misc.
CELL_TYPE,
CODE_DATA_CONTAINER_TYPE,
FEEDBACK_VECTOR_TYPE,
LOAD_HANDLER_TYPE,
PROPERTY_ARRAY_TYPE,
SHARED_FUNCTION_INFO_TYPE,
CELL_TYPE,
WEAK_CELL_TYPE,
PROPERTY_CELL_TYPE,
SHARED_FUNCTION_INFO_TYPE,
SMALL_ORDERED_HASH_MAP_TYPE,
SMALL_ORDERED_HASH_SET_TYPE,
CODE_DATA_CONTAINER_TYPE,
STORE_HANDLER_TYPE,
WEAK_CELL_TYPE,
// All the following types are subtypes of JSReceiver, which corresponds to
// objects in the JS sense. The first and the last type in this range are
// the two forms of function. This organization enables using the same
// compares for checking the JS_RECEIVER and the NONCALLABLE_JS_OBJECT range.
JS_PROXY_TYPE, // FIRST_JS_RECEIVER_TYPE
// Some of the following instance types are exposed in v8.h, so to not
// unnecessarily change the ABI when we introduce new instance types in the
// future, we leave some space between instance types.
JS_PROXY_TYPE = 0x8000, // FIRST_JS_RECEIVER_TYPE
JS_GLOBAL_OBJECT_TYPE, // FIRST_JS_OBJECT_TYPE
JS_GLOBAL_PROXY_TYPE,
JS_MODULE_NAMESPACE_TYPE,
// Like JS_API_OBJECT_TYPE, but requires access checks and/or has
// interceptors.
JS_SPECIAL_API_OBJECT_TYPE, // LAST_SPECIAL_RECEIVER_TYPE
JS_SPECIAL_API_OBJECT_TYPE = 0x8100, // LAST_SPECIAL_RECEIVER_TYPE
JS_VALUE_TYPE, // LAST_CUSTOM_ELEMENTS_RECEIVER
JS_MESSAGE_OBJECT_TYPE,
JS_DATE_TYPE,
// Like JS_OBJECT_TYPE, but created from API function.
JS_API_OBJECT_TYPE,
JS_API_OBJECT_TYPE = 0x8200,
JS_OBJECT_TYPE,
JS_ARGUMENTS_TYPE,
JS_ARRAY_BUFFER_TYPE,
JS_ARRAY_TYPE,
JS_ASYNC_FROM_SYNC_ITERATOR_TYPE,
JS_ASYNC_GENERATOR_OBJECT_TYPE,
JS_CONTEXT_EXTENSION_OBJECT_TYPE,
JS_DATE_TYPE,
JS_ERROR_TYPE,
JS_GENERATOR_OBJECT_TYPE,
JS_ASYNC_GENERATOR_OBJECT_TYPE,
JS_ARRAY_TYPE,
JS_ARRAY_BUFFER_TYPE,
JS_TYPED_ARRAY_TYPE,
JS_DATA_VIEW_TYPE,
JS_SET_TYPE,
JS_MAP_TYPE,
JS_SET_KEY_VALUE_ITERATOR_TYPE,
JS_SET_VALUE_ITERATOR_TYPE,
JS_MAP_KEY_ITERATOR_TYPE,
JS_MAP_KEY_VALUE_ITERATOR_TYPE,
JS_MAP_VALUE_ITERATOR_TYPE,
JS_WEAK_MAP_TYPE,
JS_WEAK_SET_TYPE,
JS_MESSAGE_OBJECT_TYPE,
JS_PROMISE_TYPE,
JS_REGEXP_TYPE,
JS_ERROR_TYPE,
JS_ASYNC_FROM_SYNC_ITERATOR_TYPE,
JS_SET_TYPE,
JS_SET_KEY_VALUE_ITERATOR_TYPE,
JS_SET_VALUE_ITERATOR_TYPE,
JS_STRING_ITERATOR_TYPE,
JS_WEAK_MAP_TYPE,
JS_WEAK_SET_TYPE,
JS_TYPED_ARRAY_TYPE,
JS_DATA_VIEW_TYPE,
#define ARRAY_ITERATOR_TYPE(type) type,
ARRAY_ITERATOR_TYPE_LIST(ARRAY_ITERATOR_TYPE)
......
......@@ -61,7 +61,7 @@ TEST(Object, InstanceTypeListOrder) {
current_type = InstanceType::type; \
current = static_cast<int>(current_type); \
if (current > static_cast<int>(LAST_NAME_TYPE)) { \
EXPECT_EQ(last + 1, current); \
EXPECT_LE(last + 1, current); \
} \
EXPECT_LT(last, current) << " INSTANCE_TYPE_LIST is not ordered: " \
<< "last = " << static_cast<InstanceType>(last) \
......@@ -73,7 +73,7 @@ TEST(Object, InstanceTypeListOrder) {
}
TEST(Object, StructListOrder) {
int current = static_cast<int>(InstanceType::ACCESSOR_INFO_TYPE);
int current = static_cast<int>(InstanceType::ACCESS_CHECK_INFO_TYPE);
int last = current - 1;
ASSERT_LT(0, last);
InstanceType current_type = static_cast<InstanceType>(current);
......
......@@ -51,115 +51,115 @@ INSTANCE_TYPES = {
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: "DEBUG_INFO_TYPE",
163: "STACK_FRAME_INFO_TYPE",
164: "PROTOTYPE_INFO_TYPE",
165: "TUPLE2_TYPE",
166: "TUPLE3_TYPE",
167: "CONTEXT_EXTENSION_TYPE",
168: "MODULE_TYPE",
169: "MODULE_INFO_ENTRY_TYPE",
170: "ASYNC_GENERATOR_REQUEST_TYPE",
171: "LOAD_HANDLER_TYPE",
172: "STORE_HANDLER_TYPE",
173: "FIXED_ARRAY_TYPE",
174: "HASH_TABLE_TYPE",
175: "DESCRIPTOR_ARRAY_TYPE",
176: "TRANSITION_ARRAY_TYPE",
150: "ACCESS_CHECK_INFO_TYPE",
151: "ACCESSOR_INFO_TYPE",
152: "ACCESSOR_PAIR_TYPE",
153: "ALIASED_ARGUMENTS_ENTRY_TYPE",
154: "ALLOCATION_MEMENTO_TYPE",
155: "ALLOCATION_SITE_TYPE",
156: "ASYNC_GENERATOR_REQUEST_TYPE",
157: "CONTEXT_EXTENSION_TYPE",
158: "DEBUG_INFO_TYPE",
159: "FUNCTION_TEMPLATE_INFO_TYPE",
160: "INTERCEPTOR_INFO_TYPE",
161: "MODULE_INFO_ENTRY_TYPE",
162: "MODULE_TYPE",
163: "OBJECT_TEMPLATE_INFO_TYPE",
164: "PROMISE_REACTION_JOB_INFO_TYPE",
165: "PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE",
166: "PROTOTYPE_INFO_TYPE",
167: "SCRIPT_TYPE",
168: "STACK_FRAME_INFO_TYPE",
169: "TUPLE2_TYPE",
170: "TUPLE3_TYPE",
171: "FIXED_ARRAY_TYPE",
172: "DESCRIPTOR_ARRAY_TYPE",
173: "HASH_TABLE_TYPE",
174: "TRANSITION_ARRAY_TYPE",
175: "CELL_TYPE",
176: "CODE_DATA_CONTAINER_TYPE",
177: "FEEDBACK_VECTOR_TYPE",
178: "PROPERTY_ARRAY_TYPE",
179: "SHARED_FUNCTION_INFO_TYPE",
180: "CELL_TYPE",
181: "WEAK_CELL_TYPE",
182: "PROPERTY_CELL_TYPE",
183: "SMALL_ORDERED_HASH_MAP_TYPE",
184: "SMALL_ORDERED_HASH_SET_TYPE",
185: "CODE_DATA_CONTAINER_TYPE",
186: "JS_PROXY_TYPE",
187: "JS_GLOBAL_OBJECT_TYPE",
188: "JS_GLOBAL_PROXY_TYPE",
189: "JS_MODULE_NAMESPACE_TYPE",
190: "JS_SPECIAL_API_OBJECT_TYPE",
191: "JS_VALUE_TYPE",
192: "JS_MESSAGE_OBJECT_TYPE",
193: "JS_DATE_TYPE",
194: "JS_API_OBJECT_TYPE",
195: "JS_OBJECT_TYPE",
196: "JS_ARGUMENTS_TYPE",
197: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
198: "JS_GENERATOR_OBJECT_TYPE",
199: "JS_ASYNC_GENERATOR_OBJECT_TYPE",
200: "JS_ARRAY_TYPE",
201: "JS_ARRAY_BUFFER_TYPE",
202: "JS_TYPED_ARRAY_TYPE",
203: "JS_DATA_VIEW_TYPE",
204: "JS_SET_TYPE",
205: "JS_MAP_TYPE",
206: "JS_SET_KEY_VALUE_ITERATOR_TYPE",
207: "JS_SET_VALUE_ITERATOR_TYPE",
208: "JS_MAP_KEY_ITERATOR_TYPE",
209: "JS_MAP_KEY_VALUE_ITERATOR_TYPE",
210: "JS_MAP_VALUE_ITERATOR_TYPE",
211: "JS_WEAK_MAP_TYPE",
212: "JS_WEAK_SET_TYPE",
213: "JS_PROMISE_TYPE",
214: "JS_REGEXP_TYPE",
215: "JS_ERROR_TYPE",
216: "JS_ASYNC_FROM_SYNC_ITERATOR_TYPE",
217: "JS_STRING_ITERATOR_TYPE",
218: "JS_TYPED_ARRAY_KEY_ITERATOR_TYPE",
219: "JS_FAST_ARRAY_KEY_ITERATOR_TYPE",
220: "JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE",
221: "JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
222: "JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
223: "JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
224: "JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
225: "JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
226: "JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
227: "JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
228: "JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE",
229: "JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE",
230: "JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
231: "JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
232: "JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE",
233: "JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE",
234: "JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
235: "JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
236: "JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE",
237: "JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE",
238: "JS_INT8_ARRAY_VALUE_ITERATOR_TYPE",
239: "JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE",
240: "JS_INT16_ARRAY_VALUE_ITERATOR_TYPE",
241: "JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE",
242: "JS_INT32_ARRAY_VALUE_ITERATOR_TYPE",
243: "JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE",
244: "JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE",
245: "JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE",
246: "JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE",
247: "JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE",
248: "JS_FAST_ARRAY_VALUE_ITERATOR_TYPE",
249: "JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE",
250: "JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
251: "JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
252: "JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE",
253: "WASM_INSTANCE_TYPE",
254: "WASM_MEMORY_TYPE",
255: "WASM_MODULE_TYPE",
256: "WASM_TABLE_TYPE",
257: "JS_BOUND_FUNCTION_TYPE",
258: "JS_FUNCTION_TYPE",
178: "LOAD_HANDLER_TYPE",
179: "PROPERTY_ARRAY_TYPE",
180: "PROPERTY_CELL_TYPE",
181: "SHARED_FUNCTION_INFO_TYPE",
182: "SMALL_ORDERED_HASH_MAP_TYPE",
183: "SMALL_ORDERED_HASH_SET_TYPE",
184: "STORE_HANDLER_TYPE",
185: "WEAK_CELL_TYPE",
32768: "JS_PROXY_TYPE",
32769: "JS_GLOBAL_OBJECT_TYPE",
32770: "JS_GLOBAL_PROXY_TYPE",
32771: "JS_MODULE_NAMESPACE_TYPE",
33024: "JS_SPECIAL_API_OBJECT_TYPE",
33025: "JS_VALUE_TYPE",
33280: "JS_API_OBJECT_TYPE",
33281: "JS_OBJECT_TYPE",
33282: "JS_ARGUMENTS_TYPE",
33283: "JS_ARRAY_BUFFER_TYPE",
33284: "JS_ARRAY_TYPE",
33285: "JS_ASYNC_FROM_SYNC_ITERATOR_TYPE",
33286: "JS_ASYNC_GENERATOR_OBJECT_TYPE",
33287: "JS_CONTEXT_EXTENSION_OBJECT_TYPE",
33288: "JS_DATE_TYPE",
33289: "JS_ERROR_TYPE",
33290: "JS_GENERATOR_OBJECT_TYPE",
33291: "JS_MAP_TYPE",
33292: "JS_MAP_KEY_ITERATOR_TYPE",
33293: "JS_MAP_KEY_VALUE_ITERATOR_TYPE",
33294: "JS_MAP_VALUE_ITERATOR_TYPE",
33295: "JS_MESSAGE_OBJECT_TYPE",
33296: "JS_PROMISE_TYPE",
33297: "JS_REGEXP_TYPE",
33298: "JS_SET_TYPE",
33299: "JS_SET_KEY_VALUE_ITERATOR_TYPE",
33300: "JS_SET_VALUE_ITERATOR_TYPE",
33301: "JS_STRING_ITERATOR_TYPE",
33302: "JS_WEAK_MAP_TYPE",
33303: "JS_WEAK_SET_TYPE",
33304: "JS_TYPED_ARRAY_TYPE",
33305: "JS_DATA_VIEW_TYPE",
33306: "JS_TYPED_ARRAY_KEY_ITERATOR_TYPE",
33307: "JS_FAST_ARRAY_KEY_ITERATOR_TYPE",
33308: "JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE",
33309: "JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33310: "JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33311: "JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33312: "JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33313: "JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33314: "JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33315: "JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33316: "JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33317: "JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33318: "JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33319: "JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33320: "JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33321: "JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33322: "JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33323: "JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33324: "JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE",
33325: "JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE",
33326: "JS_INT8_ARRAY_VALUE_ITERATOR_TYPE",
33327: "JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE",
33328: "JS_INT16_ARRAY_VALUE_ITERATOR_TYPE",
33329: "JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE",
33330: "JS_INT32_ARRAY_VALUE_ITERATOR_TYPE",
33331: "JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE",
33332: "JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE",
33333: "JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE",
33334: "JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE",
33335: "JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE",
33336: "JS_FAST_ARRAY_VALUE_ITERATOR_TYPE",
33337: "JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE",
33338: "JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
33339: "JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE",
33340: "JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE",
33341: "WASM_INSTANCE_TYPE",
33342: "WASM_MEMORY_TYPE",
33343: "WASM_MODULE_TYPE",
33344: "WASM_TABLE_TYPE",
33345: "JS_BOUND_FUNCTION_TYPE",
33346: "JS_FUNCTION_TYPE",
}
# List of known V8 maps.
......@@ -167,8 +167,8 @@ KNOWN_MAPS = {
0x02201: (138, "FreeSpaceMap"),
0x02251: (132, "MetaMap"),
0x022a1: (131, "NullMap"),
0x022f1: (175, "DescriptorArrayMap"),
0x02341: (173, "FixedArrayMap"),
0x022f1: (172, "DescriptorArrayMap"),
0x02341: (171, "FixedArrayMap"),
0x02391: (149, "OnePointerFillerMap"),
0x023e1: (149, "TwoPointerFillerMap"),
0x02431: (131, "UninitializedMap"),
......@@ -178,55 +178,55 @@ KNOWN_MAPS = {
0x02571: (131, "TheHoleMap"),
0x025c1: (131, "BooleanMap"),
0x02611: (136, "ByteArrayMap"),
0x02661: (173, "FixedCOWArrayMap"),
0x026b1: (174, "HashTableMap"),
0x02661: (171, "FixedCOWArrayMap"),
0x026b1: (173, "HashTableMap"),
0x02701: (128, "SymbolMap"),
0x02751: (72, "OneByteStringMap"),
0x027a1: (173, "ScopeInfoMap"),
0x027f1: (179, "SharedFunctionInfoMap"),
0x027a1: (171, "ScopeInfoMap"),
0x027f1: (181, "SharedFunctionInfoMap"),
0x02841: (133, "CodeMap"),
0x02891: (173, "FunctionContextMap"),
0x028e1: (180, "CellMap"),
0x02931: (181, "WeakCellMap"),
0x02981: (182, "GlobalPropertyCellMap"),
0x02891: (171, "FunctionContextMap"),
0x028e1: (175, "CellMap"),
0x02931: (185, "WeakCellMap"),
0x02981: (180, "GlobalPropertyCellMap"),
0x029d1: (135, "ForeignMap"),
0x02a21: (176, "TransitionArrayMap"),
0x02a21: (174, "TransitionArrayMap"),
0x02a71: (177, "FeedbackVectorMap"),
0x02ac1: (131, "ArgumentsMarkerMap"),
0x02b11: (131, "ExceptionMap"),
0x02b61: (131, "TerminationExceptionMap"),
0x02bb1: (131, "OptimizedOutMap"),
0x02c01: (131, "StaleRegisterMap"),
0x02c51: (173, "NativeContextMap"),
0x02ca1: (173, "ModuleContextMap"),
0x02cf1: (173, "EvalContextMap"),
0x02d41: (173, "ScriptContextMap"),
0x02d91: (173, "BlockContextMap"),
0x02de1: (173, "CatchContextMap"),
0x02e31: (173, "WithContextMap"),
0x02e81: (173, "DebugEvaluateContextMap"),
0x02ed1: (173, "ScriptContextTableMap"),
0x02c51: (171, "NativeContextMap"),
0x02ca1: (171, "ModuleContextMap"),
0x02cf1: (171, "EvalContextMap"),
0x02d41: (171, "ScriptContextMap"),
0x02d91: (171, "BlockContextMap"),
0x02de1: (171, "CatchContextMap"),
0x02e31: (171, "WithContextMap"),
0x02e81: (171, "DebugEvaluateContextMap"),
0x02ed1: (171, "ScriptContextTableMap"),
0x02f21: (148, "FixedDoubleArrayMap"),
0x02f71: (134, "MutableHeapNumberMap"),
0x02fc1: (174, "OrderedHashMapMap"),
0x03011: (174, "OrderedHashSetMap"),
0x03061: (174, "NameDictionaryMap"),
0x030b1: (174, "GlobalDictionaryMap"),
0x03101: (174, "NumberDictionaryMap"),
0x03151: (174, "StringTableMap"),
0x031a1: (174, "WeakHashTableMap"),
0x031f1: (173, "SloppyArgumentsElementsMap"),
0x03241: (183, "SmallOrderedHashMapMap"),
0x03291: (184, "SmallOrderedHashSetMap"),
0x032e1: (185, "CodeDataContainerMap"),
0x03331: (192, "JSMessageObjectMap"),
0x03381: (195, "ExternalMap"),
0x02fc1: (173, "OrderedHashMapMap"),
0x03011: (173, "OrderedHashSetMap"),
0x03061: (173, "NameDictionaryMap"),
0x030b1: (173, "GlobalDictionaryMap"),
0x03101: (173, "NumberDictionaryMap"),
0x03151: (173, "StringTableMap"),
0x031a1: (173, "WeakHashTableMap"),
0x031f1: (171, "SloppyArgumentsElementsMap"),
0x03241: (182, "SmallOrderedHashMapMap"),
0x03291: (183, "SmallOrderedHashSetMap"),
0x032e1: (176, "CodeDataContainerMap"),
0x03331: (33295, "JSMessageObjectMap"),
0x03381: (33281, "ExternalMap"),
0x033d1: (137, "BytecodeArrayMap"),
0x03421: (173, "ModuleInfoMap"),
0x03471: (180, "NoClosuresCellMap"),
0x034c1: (180, "OneClosureCellMap"),
0x03511: (180, "ManyClosuresCellMap"),
0x03561: (178, "PropertyArrayMap"),
0x03421: (171, "ModuleInfoMap"),
0x03471: (175, "NoClosuresCellMap"),
0x034c1: (175, "OneClosureCellMap"),
0x03511: (175, "ManyClosuresCellMap"),
0x03561: (179, "PropertyArrayMap"),
0x035b1: (130, "BigIntMap"),
0x03601: (106, "NativeSourceStringMap"),
0x03651: (64, "StringMap"),
......@@ -258,27 +258,27 @@ KNOWN_MAPS = {
0x03e71: (145, "FixedFloat32ArrayMap"),
0x03ec1: (146, "FixedFloat64ArrayMap"),
0x03f11: (147, "FixedUint8ClampedArrayMap"),
0x03f61: (165, "Tuple2Map"),
0x03fb1: (158, "ScriptMap"),
0x04001: (153, "InterceptorInfoMap"),
0x04051: (150, "AccessorInfoMap"),
0x040a1: (151, "AccessorPairMap"),
0x040f1: (152, "AccessCheckInfoMap"),
0x04141: (154, "FunctionTemplateInfoMap"),
0x04191: (155, "ObjectTemplateInfoMap"),
0x041e1: (156, "AllocationSiteMap"),
0x04231: (157, "AllocationMementoMap"),
0x04281: (159, "AliasedArgumentsEntryMap"),
0x042d1: (160, "PromiseResolveThenableJobInfoMap"),
0x04321: (161, "PromiseReactionJobInfoMap"),
0x04371: (162, "DebugInfoMap"),
0x043c1: (163, "StackFrameInfoMap"),
0x04411: (164, "PrototypeInfoMap"),
0x04461: (166, "Tuple3Map"),
0x044b1: (167, "ContextExtensionMap"),
0x04501: (168, "ModuleMap"),
0x04551: (169, "ModuleInfoEntryMap"),
0x045a1: (170, "AsyncGeneratorRequestMap"),
0x03f61: (169, "Tuple2Map"),
0x03fb1: (167, "ScriptMap"),
0x04001: (160, "InterceptorInfoMap"),
0x04051: (151, "AccessorInfoMap"),
0x040a1: (150, "AccessCheckInfoMap"),
0x040f1: (152, "AccessorPairMap"),
0x04141: (153, "AliasedArgumentsEntryMap"),
0x04191: (154, "AllocationMementoMap"),
0x041e1: (155, "AllocationSiteMap"),
0x04231: (156, "AsyncGeneratorRequestMap"),
0x04281: (157, "ContextExtensionMap"),
0x042d1: (158, "DebugInfoMap"),
0x04321: (159, "FunctionTemplateInfoMap"),
0x04371: (161, "ModuleInfoEntryMap"),
0x043c1: (162, "ModuleMap"),
0x04411: (163, "ObjectTemplateInfoMap"),
0x04461: (164, "PromiseReactionJobInfoMap"),
0x044b1: (165, "PromiseResolveThenableJobInfoMap"),
0x04501: (166, "PrototypeInfoMap"),
0x04551: (168, "StackFrameInfoMap"),
0x045a1: (170, "Tuple3Map"),
}
# List of known V8 objects.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment