Heapdump offline metadata part

1.generate metadata.json
2.adding related ut

Issue:            #IAXUPR
Signed-off-by: huangtianzhi <huangtianzhi1@huawei.com>
This commit is contained in:
huangtianzhi 2024-11-05 16:37:56 +08:00
parent d469c5d3e4
commit 950620bd57
223 changed files with 8870 additions and 0 deletions

251
BUILD.gn
View File

@ -19,6 +19,7 @@ group("ark_js_packages") {
deps = []
deps += [
":js_type_metadata",
":libark_jsruntime",
"ecmascript/compiler:stub.an",
"ecmascript/dfx/hprof:ark_js_heap_snapshot_tool",
@ -1385,3 +1386,253 @@ ohos_prebuilt_etc("app_aot_jit_enable_list") {
part_name = "ets_runtime"
subsystem_name = "arkcompiler"
}
js_type_metadata_sources = [
"ecmascript/js_type_metadata/accessor_data.json",
"ecmascript/js_type_metadata/aot_literal_info.json",
"ecmascript/js_type_metadata/async_generator_request.json",
"ecmascript/js_type_metadata/async_iterator_record.json",
"ecmascript/js_type_metadata/bigint.json",
"ecmascript/js_type_metadata/byte_array.json",
"ecmascript/js_type_metadata/cell_record.json",
"ecmascript/js_type_metadata/class_info_extractor.json",
"ecmascript/js_type_metadata/class_literal.json",
"ecmascript/js_type_metadata/completion_record.json",
"ecmascript/js_type_metadata/constant_pool.json",
"ecmascript/js_type_metadata/constant_string.json",
"ecmascript/js_type_metadata/cow_mutant_tagged_array.json",
"ecmascript/js_type_metadata/cow_tagged_array.json",
"ecmascript/js_type_metadata/dictionary_layout.json",
"ecmascript/js_type_metadata/ecma_object.json",
"ecmascript/js_type_metadata/ecma_string.json",
"ecmascript/js_type_metadata/extra_profile_type_info.json",
"ecmascript/js_type_metadata/function_template.json",
"ecmascript/js_type_metadata/global_env.json",
"ecmascript/js_type_metadata/hclass.json",
"ecmascript/js_type_metadata/importentry_record.json",
"ecmascript/js_type_metadata/indirect_exportentry_record.json",
"ecmascript/js_type_metadata/internal_accessor.json",
"ecmascript/js_type_metadata/js_aggregate_error.json",
"ecmascript/js_type_metadata/js_api_array_list.json",
"ecmascript/js_type_metadata/js_api_arraylist_iterator.json",
"ecmascript/js_type_metadata/js_api_bitvector.json",
"ecmascript/js_type_metadata/js_api_bitvector_iterator.json",
"ecmascript/js_type_metadata/js_api_deque.json",
"ecmascript/js_type_metadata/js_api_deque_iterator.json",
"ecmascript/js_type_metadata/js_api_hash_map.json",
"ecmascript/js_type_metadata/js_api_hash_set.json",
"ecmascript/js_type_metadata/js_api_hashmap_iterator.json",
"ecmascript/js_type_metadata/js_api_hashset_iterator.json",
"ecmascript/js_type_metadata/js_api_light_weight_map.json",
"ecmascript/js_type_metadata/js_api_light_weight_map_iterator.json",
"ecmascript/js_type_metadata/js_api_light_weight_set.json",
"ecmascript/js_type_metadata/js_api_light_weight_set_iterator.json",
"ecmascript/js_type_metadata/js_api_linked_list.json",
"ecmascript/js_type_metadata/js_api_linked_list_iterator.json",
"ecmascript/js_type_metadata/js_api_list.json",
"ecmascript/js_type_metadata/js_api_list_iterator.json",
"ecmascript/js_type_metadata/js_api_plain_array.json",
"ecmascript/js_type_metadata/js_api_plain_array_iterator.json",
"ecmascript/js_type_metadata/js_api_queue.json",
"ecmascript/js_type_metadata/js_api_queue_iterator.json",
"ecmascript/js_type_metadata/js_api_stack.json",
"ecmascript/js_type_metadata/js_api_stack_iterator.json",
"ecmascript/js_type_metadata/js_api_tree_map.json",
"ecmascript/js_type_metadata/js_api_tree_set.json",
"ecmascript/js_type_metadata/js_api_treemap_iterator.json",
"ecmascript/js_type_metadata/js_api_treeset_iterator.json",
"ecmascript/js_type_metadata/js_api_vector.json",
"ecmascript/js_type_metadata/js_api_vector_iterator.json",
"ecmascript/js_type_metadata/js_arguments.json",
"ecmascript/js_type_metadata/js_array.json",
"ecmascript/js_type_metadata/js_array_buffer.json",
"ecmascript/js_type_metadata/js_array_iterator.json",
"ecmascript/js_type_metadata/js_async_await_status_function.json",
"ecmascript/js_type_metadata/js_async_from_sync_iter_unwarp_function.json",
"ecmascript/js_type_metadata/js_async_from_sync_iterator.json",
"ecmascript/js_type_metadata/js_async_func_object.json",
"ecmascript/js_type_metadata/js_async_function.json",
"ecmascript/js_type_metadata/js_async_generator_function.json",
"ecmascript/js_type_metadata/js_async_generator_object.json",
"ecmascript/js_type_metadata/js_async_generator_resume_next_return_processor_rst_ftn.json",
"ecmascript/js_type_metadata/js_async_module_fulfilled_function.json",
"ecmascript/js_type_metadata/js_async_module_rejected_function.json",
"ecmascript/js_type_metadata/js_asynciterator.json",
"ecmascript/js_type_metadata/js_bigint64_array.json",
"ecmascript/js_type_metadata/js_biguint64_array.json",
"ecmascript/js_type_metadata/js_bound_function.json",
"ecmascript/js_type_metadata/js_cjs_exports.json",
"ecmascript/js_type_metadata/js_cjs_module.json",
"ecmascript/js_type_metadata/js_cjs_require.json",
"ecmascript/js_type_metadata/js_collator.json",
"ecmascript/js_type_metadata/js_data_view.json",
"ecmascript/js_type_metadata/js_date.json",
"ecmascript/js_type_metadata/js_date_time_format.json",
"ecmascript/js_type_metadata/js_displaynames.json",
"ecmascript/js_type_metadata/js_error.json",
"ecmascript/js_type_metadata/js_eval_error.json",
"ecmascript/js_type_metadata/js_finalization_registry.json",
"ecmascript/js_type_metadata/js_float32_array.json",
"ecmascript/js_type_metadata/js_float64_array.json",
"ecmascript/js_type_metadata/js_forin_iterator.json",
"ecmascript/js_type_metadata/js_function.json",
"ecmascript/js_type_metadata/js_function_base.json",
"ecmascript/js_type_metadata/js_generator_context.json",
"ecmascript/js_type_metadata/js_generator_function.json",
"ecmascript/js_type_metadata/js_generator_object.json",
"ecmascript/js_type_metadata/js_global_object.json",
"ecmascript/js_type_metadata/js_int16_array.json",
"ecmascript/js_type_metadata/js_int32_array.json",
"ecmascript/js_type_metadata/js_int8_array.json",
"ecmascript/js_type_metadata/js_intl.json",
"ecmascript/js_type_metadata/js_intl_bound_function.json",
"ecmascript/js_type_metadata/js_iterator.json",
"ecmascript/js_type_metadata/js_list_format.json",
"ecmascript/js_type_metadata/js_locale.json",
"ecmascript/js_type_metadata/js_map.json",
"ecmascript/js_type_metadata/js_map_iterator.json",
"ecmascript/js_type_metadata/js_module_namespace.json",
"ecmascript/js_type_metadata/js_native_pointer.json",
"ecmascript/js_type_metadata/js_number_format.json",
"ecmascript/js_type_metadata/js_object.json",
"ecmascript/js_type_metadata/js_oom_error.json",
"ecmascript/js_type_metadata/js_plural_rules.json",
"ecmascript/js_type_metadata/js_primitive_ref.json",
"ecmascript/js_type_metadata/js_promise.json",
"ecmascript/js_type_metadata/js_promise_all_resolve_element_function.json",
"ecmascript/js_type_metadata/js_promise_all_settled_element_function.json",
"ecmascript/js_type_metadata/js_promise_any_reject_element_function.json",
"ecmascript/js_type_metadata/js_promise_executor_function.json",
"ecmascript/js_type_metadata/js_promise_finally_function.json",
"ecmascript/js_type_metadata/js_promise_reactions_function.json",
"ecmascript/js_type_metadata/js_promise_value_thunk_or_thrower_function.json",
"ecmascript/js_type_metadata/js_proxy.json",
"ecmascript/js_type_metadata/js_proxy_revoc_function.json",
"ecmascript/js_type_metadata/js_range_error.json",
"ecmascript/js_type_metadata/js_realm.json",
"ecmascript/js_type_metadata/js_reference_error.json",
"ecmascript/js_type_metadata/js_reg_exp.json",
"ecmascript/js_type_metadata/js_reg_exp_iterator.json",
"ecmascript/js_type_metadata/js_relative_time_format.json",
"ecmascript/js_type_metadata/js_segment_iterator.json",
"ecmascript/js_type_metadata/js_segmenter.json",
"ecmascript/js_type_metadata/js_segments.json",
"ecmascript/js_type_metadata/js_sendable_array_buffer.json",
"ecmascript/js_type_metadata/js_set.json",
"ecmascript/js_type_metadata/js_set_iterator.json",
"ecmascript/js_type_metadata/js_shared_array.json",
"ecmascript/js_type_metadata/js_shared_array_buffer.json",
"ecmascript/js_type_metadata/js_shared_array_iterator.json",
"ecmascript/js_type_metadata/js_shared_async_function.json",
"ecmascript/js_type_metadata/js_shared_bigint64_array.json",
"ecmascript/js_type_metadata/js_shared_biguint64_array.json",
"ecmascript/js_type_metadata/js_shared_float32_array.json",
"ecmascript/js_type_metadata/js_shared_float64_array.json",
"ecmascript/js_type_metadata/js_shared_function.json",
"ecmascript/js_type_metadata/js_shared_int16_array.json",
"ecmascript/js_type_metadata/js_shared_int32_array.json",
"ecmascript/js_type_metadata/js_shared_int8_array.json",
"ecmascript/js_type_metadata/js_shared_map.json",
"ecmascript/js_type_metadata/js_shared_map_iterator.json",
"ecmascript/js_type_metadata/js_shared_object.json",
"ecmascript/js_type_metadata/js_shared_set.json",
"ecmascript/js_type_metadata/js_shared_set_iterator.json",
"ecmascript/js_type_metadata/js_shared_typed_array.json",
"ecmascript/js_type_metadata/js_shared_uint16_array.json",
"ecmascript/js_type_metadata/js_shared_uint32_array.json",
"ecmascript/js_type_metadata/js_shared_uint8_array.json",
"ecmascript/js_type_metadata/js_shared_uint8_clamped_array.json",
"ecmascript/js_type_metadata/js_string_iterator.json",
"ecmascript/js_type_metadata/js_syntax_error.json",
"ecmascript/js_type_metadata/js_termination_error.json",
"ecmascript/js_type_metadata/js_type_error.json",
"ecmascript/js_type_metadata/js_typed_array.json",
"ecmascript/js_type_metadata/js_uint16_array.json",
"ecmascript/js_type_metadata/js_uint32_array.json",
"ecmascript/js_type_metadata/js_uint8_array.json",
"ecmascript/js_type_metadata/js_uint8_clamped_array.json",
"ecmascript/js_type_metadata/js_uri_error.json",
"ecmascript/js_type_metadata/js_weak_map.json",
"ecmascript/js_type_metadata/js_weak_ref.json",
"ecmascript/js_type_metadata/js_weak_set.json",
"ecmascript/js_type_metadata/lexical_env.json",
"ecmascript/js_type_metadata/line_string.json",
"ecmascript/js_type_metadata/linked_node.json",
"ecmascript/js_type_metadata/local_exportentry_record.json",
"ecmascript/js_type_metadata/machine_code_object.json",
"ecmascript/js_type_metadata/marker_cell.json",
"ecmascript/js_type_metadata/method.json",
"ecmascript/js_type_metadata/micro_job_queue.json",
"ecmascript/js_type_metadata/module_record.json",
"ecmascript/js_type_metadata/mutant_tagged_array.json",
"ecmascript/js_type_metadata/native_module_failure_info.json",
"ecmascript/js_type_metadata/pending_job.json",
"ecmascript/js_type_metadata/profile_type_info.json",
"ecmascript/js_type_metadata/profile_type_info_cell_0.json",
"ecmascript/js_type_metadata/profile_type_info_cell_1.json",
"ecmascript/js_type_metadata/profile_type_info_cell_n.json",
"ecmascript/js_type_metadata/program.json",
"ecmascript/js_type_metadata/promise_capability.json",
"ecmascript/js_type_metadata/promise_iterator_record.json",
"ecmascript/js_type_metadata/promise_reactions.json",
"ecmascript/js_type_metadata/promise_record.json",
"ecmascript/js_type_metadata/property_box.json",
"ecmascript/js_type_metadata/proto_change_marker.json",
"ecmascript/js_type_metadata/prototype_handler.json",
"ecmascript/js_type_metadata/prototype_info.json",
"ecmascript/js_type_metadata/rb_treenode.json",
"ecmascript/js_type_metadata/record.json",
"ecmascript/js_type_metadata/resolvedbinding_record.json",
"ecmascript/js_type_metadata/resolvedindexbinding_record.json",
"ecmascript/js_type_metadata/resolvedrecordbinding_record.json",
"ecmascript/js_type_metadata/resolvedrecordindexbinding_record.json",
"ecmascript/js_type_metadata/resolving_functions_record.json",
"ecmascript/js_type_metadata/sendable_env.json",
"ecmascript/js_type_metadata/sliced_string.json",
"ecmascript/js_type_metadata/source_text_module_record.json",
"ecmascript/js_type_metadata/star_exportentry_record.json",
"ecmascript/js_type_metadata/store_ts_handler.json",
"ecmascript/js_type_metadata/symbol.json",
"ecmascript/js_type_metadata/tagged_array.json",
"ecmascript/js_type_metadata/tagged_dictionary.json",
"ecmascript/js_type_metadata/tagged_node.json",
"ecmascript/js_type_metadata/tagged_object.json",
"ecmascript/js_type_metadata/template_map.json",
"ecmascript/js_type_metadata/track_info.json",
"ecmascript/js_type_metadata/trans_with_proto_handler.json",
"ecmascript/js_type_metadata/transition_handler.json",
"ecmascript/js_type_metadata/tree_string.json",
"ecmascript/js_type_metadata/type_enums.json",
"ecmascript/js_type_metadata/type_range.json",
"ecmascript/js_type_metadata/vtable.json",
]
action("gen_js_type_metadata") {
inputs = js_type_metadata_sources
script = "$js_root/script/metadata_generate.py"
metadata_file_gen_dir = "$root_gen_dir/arkcompiler/ets_runtime"
args = [
"--enum",
rebase_path("$js_root/ecmascript/js_type_metadata/type_enums.json"),
"--metadata",
rebase_path("$js_root/ecmascript/js_type_metadata"),
"--output",
rebase_path("$metadata_file_gen_dir/metadata.json"),
"--version",
"1.0.0",
]
outputs = [ "$metadata_file_gen_dir/metadata.json" ]
}
ohos_prebuilt_shared_library("js_type_metadata") {
deps = [ ":gen_js_type_metadata" ]
source = "$root_gen_dir/arkcompiler/ets_runtime/metadata.json"
relative_install_dir = arkcompiler_relative_lib_path
part_name = "ets_runtime"
subsystem_name = "arkcompiler"
}

View File

@ -16,6 +16,8 @@ import("//arkcompiler/ets_runtime/test/test_helper.gni")
module_output_path = "arkcompiler/ets_runtime"
metadata_file_path = "//arkcompiler/ets_runtime/ecmascript/js_type_metadata/"
test_js_path = "//arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/js_files/"
test_js_files = [
@ -228,6 +230,49 @@ host_unittest_action("HeapSamplingTest") {
deps += hiviewdfx_deps
}
action("copy_metadata_for_test") {
script = "$js_root/script/metadata_copy_for_test.py"
target_path = rebase_path(target_out_dir) + "/metadata/"
args = [
"--metadata",
rebase_path("$js_root/ecmascript/js_type_metadata"),
"--outputs",
rebase_path("$target_path"),
]
outputs = [ "$root_gen_dir/arkcompiler/ets_runtime/metadata_copy_dummy.txt" ]
}
host_unittest_action("JSMetadataTest") {
module_out_path = module_output_path
sources = [ "js_metadata_test.cpp" ]
configs = [ "../../../../:ecma_test_config" ]
deps = [
":copy_metadata_for_test",
"$ark_third_party_root/icu/icu4c:shared_icui18n",
"$ark_third_party_root/icu/icu4c:shared_icuuc",
"../../../../:libark_jsruntime_test",
sdk_libc_secshared_dep,
]
if (is_ohos && is_standard_system) {
metadata_file_path = "/data/test/"
}
metadata_file_path = rebase_path(metadata_file_path)
defines = [ "METADATA_SOURCE_FILE_DIR=\"${metadata_file_path}\"" ]
# hiviewdfx libraries
external_deps = hiviewdfx_ext_deps
external_deps += [ "cJSON:cjson_static" ]
deps += hiviewdfx_deps
}
group("unittest") {
testonly = true
deps = [
@ -238,6 +283,7 @@ group("unittest") {
":HeapTrackerFirstTest",
":HeapTrackerSecondTest",
":HeapTrackerThirdTest",
":JSMetadataTest",
]
}
@ -251,6 +297,7 @@ group("host_unittest") {
":HeapTrackerFirstTestAction",
":HeapTrackerSecondTestAction",
":HeapTrackerThirdTestAction",
":JSMetadataTestAction",
]
if (is_mac) {
deps -= [
@ -261,6 +308,7 @@ group("host_unittest") {
":HeapTrackerFirstTestAction",
":HeapTrackerSecondTestAction",
":HeapTrackerThirdTestAction",
":JSMetadataTestAction",
]
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,19 @@
{
"name": "ACCESSOR_DATA",
"offsets": [
{
"name": "Getter",
"offset": 0,
"size": 8
},
{
"name": "Setter",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1 @@
{"name": "AOT_LITERAL_INFO", "offsets": [], "end_offset": 8, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1,19 @@
{
"name": "ASYNC_GENERATOR_REQUEST",
"offsets": [
{
"name": "Completion",
"offset": 0,
"size": 8
},
{
"name": "Capability",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "ASYNC_ITERATOR_RECORD",
"offsets": [
{
"name": "Iterator",
"offset": 0,
"size": 8
},
{
"name": "NextMethod",
"offset": 8,
"size": 8
}
],
"end_offset": 24,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1 @@
{"name": "BIGINT", "offsets": [], "end_offset": 8, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1 @@
{"name": "BYTE_ARRAY", "offsets": [], "end_offset": 8, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1,19 @@
{
"name": "CELL_RECORD",
"offsets": [
{
"name": "WeakRefTarget",
"offset": 0,
"size": 8
},
{
"name": "HeldValue",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1,44 @@
{
"name": "CLASS_INFO_EXTRACTOR",
"offsets": [
{
"name": "NonStaticKeys",
"offset": 0,
"size": 8
},
{
"name": "NonStaticProperties",
"offset": 8,
"size": 8
},
{
"name": "NonStaticElements",
"offset": 16,
"size": 8
},
{
"name": "StaticKeys",
"offset": 24,
"size": 8
},
{
"name": "StaticProperties",
"offset": 32,
"size": 8
},
{
"name": "StaticElements",
"offset": 40,
"size": 8
},
{
"name": "ConstructorMethod",
"offset": 48,
"size": 8
}
],
"end_offset": 60,
"parents": [
"TAGGED_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "CLASS_LITERAL",
"offsets": [
{
"name": "Array",
"offset": 0,
"size": 8
}
],
"end_offset": 9,
"parents": [
"TAGGED_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "COMPLETION_RECORD",
"offsets": [
{
"name": "Value",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1 @@
{"name": "CONSTANT_POOL", "offsets": [], "end_offset": 0, "parents": ["TAGGED_ARRAY"]}

View File

@ -0,0 +1,14 @@
{
"name": "CONSTANT_STRING",
"offsets": [
{
"name": "RelocatedData",
"offset": 0,
"size": 8
}
],
"end_offset": 24,
"parents": [
"ECMA_STRING"
]
}

View File

@ -0,0 +1 @@
{"name": "COW_MUTANT_TAGGED_ARRAY", "offsets": [], "end_offset": 0, "parents": ["MUTANT_TAGGED_ARRAY"]}

View File

@ -0,0 +1 @@
{"name": "COW_TAGGED_ARRAY", "offsets": [], "end_offset": 0, "parents": ["TAGGED_ARRAY"]}

View File

@ -0,0 +1,8 @@
{
"name": "Dictionary",
"key_index": 0,
"value_index": 1,
"detail_index": 2,
"entry_size": 3,
"header_size": 4
}

View File

@ -0,0 +1 @@
{"name": "ECMA_OBJECT", "offsets": [], "end_offset": 8, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1 @@
{"name": "ECMA_STRING", "offsets": [], "end_offset": 8, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1,19 @@
{
"name": "EXTRA_PROFILE_TYPE_INFO",
"offsets": [
{
"name": "ReceiverObject",
"offset": 0,
"size": 8
},
{
"name": "HolderObject",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"TAGGED_OBJECT"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "FUNCTION_TEMPLATE",
"offsets": [
{
"name": "Method",
"offset": 0,
"size": 8
},
{
"name": "Module",
"offset": 8,
"size": 8
},
{
"name": "RawProfileTypeInfo",
"offset": 16,
"size": 8
}
],
"end_offset": 28,
"parents": [
"TAGGED_OBJECT"
]
}

View File

@ -0,0 +1 @@
{"name": "GLOBAL_ENV", "offsets": [], "end_offset": 2360, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1 @@
{"name": "HCLASS", "offsets": [{"name": "Proto", "offset": 0, "size": 8}, {"name": "Layout", "offset": 8, "size": 8}, {"name": "Transitions", "offset": 16, "size": 8}, {"name": "Parent", "offset": 24, "size": 8}, {"name": "ProtoChangeMarker", "offset": 32, "size": 8}, {"name": "ProtoChangeDetails", "offset": 40, "size": 8}, {"name": "EnumCache", "offset": 48, "size": 8}, {"name": "ProfilerType", "offset": 56, "size": 8}, {"name": "BitField", "offset": 64, "size": 4}, {"name": "BitField1", "offset": 68, "size": 4}], "end_offset": 72, "parents": ["TAGGED_OBJECT"]}

View File

@ -0,0 +1,24 @@
{
"name": "IMPORTENTRY_RECORD",
"offsets": [
{
"name": "ModuleRequest",
"offset": 0,
"size": 8
},
{
"name": "ImportName",
"offset": 8,
"size": 8
},
{
"name": "LocalName",
"offset": 16,
"size": 8
}
],
"end_offset": 24,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "INDIRECT_EXPORTENTRY_RECORD",
"offsets": [
{
"name": "ExportName",
"offset": 0,
"size": 8
},
{
"name": "ModuleRequest",
"offset": 8,
"size": 8
},
{
"name": "ImportName",
"offset": 16,
"size": 8
}
],
"end_offset": 24,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "INTERNAL_ACCESSOR",
"offsets": [
{
"name": "Getter",
"offset": 0,
"size": 8
},
{
"name": "Setter",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"RECORD"
]
}

View File

@ -0,0 +1,17 @@
{
"name": "JS_AGGREGATE_ERROR",
"offsets": [
{
"name": "Properties",
"offset": 0,
"size": 8
},
{
"name": "Elements",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": ["ECMA_OBJECT"]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_ARRAY_LIST",
"offsets": [
{
"name": "Length",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_ARRAYLIST_ITERATOR",
"offsets": [
{
"name": "IteratedArrayList",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_BITVECTOR",
"offsets": [
{
"name": "NativePointer",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_BITVECTOR_ITERATOR",
"offsets": [
{
"name": "IteratedBitVector",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1 @@
{"name": "JS_API_DEQUE", "offsets": [], "end_offset": 8, "parents": ["JS_OBJECT"]}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_DEQUE_ITERATOR",
"offsets": [
{
"name": "IteratedDeque",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_HASH_MAP",
"offsets": [
{
"name": "Table",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_HASH_SET",
"offsets": [
{
"name": "Table",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "JS_API_HASHMAP_ITERATOR",
"offsets": [
{
"name": "IteratedHashMap",
"offset": 0,
"size": 8
},
{
"name": "TaggedQueue",
"offset": 8,
"size": 8
},
{
"name": "CurrentNodeResult",
"offset": 16,
"size": 8
}
],
"end_offset": 32,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "JS_API_HASHSET_ITERATOR",
"offsets": [
{
"name": "IteratedHashSet",
"offset": 0,
"size": 8
},
{
"name": "TaggedQueue",
"offset": 8,
"size": 8
},
{
"name": "CurrentNodeResult",
"offset": 16,
"size": 8
}
],
"end_offset": 36,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "JS_API_LIGHT_WEIGHT_MAP",
"offsets": [
{
"name": "Hashes",
"offset": 0,
"size": 8
},
{
"name": "Keys",
"offset": 8,
"size": 8
},
{
"name": "Values",
"offset": 16,
"size": 8
}
],
"end_offset": 28,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_LIGHT_WEIGHT_MAP_ITERATOR",
"offsets": [
{
"name": "IteratedLightWeightMap",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_API_LIGHT_WEIGHT_SET",
"offsets": [
{
"name": "Hashes",
"offset": 0,
"size": 8
},
{
"name": "Values",
"offset": 8,
"size": 8
}
],
"end_offset": 20,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_LIGHT_WEIGHT_SET_ITERATOR",
"offsets": [
{
"name": "IteratedLightWeightSet",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_LINKED_LIST",
"offsets": [
{
"name": "DoubleList",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_LINKED_LIST_ITERATOR",
"offsets": [
{
"name": "IteratedLinkedList",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_LIST",
"offsets": [
{
"name": "SingleList",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_LIST_ITERATOR",
"offsets": [
{
"name": "IteratedList",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_API_PLAIN_ARRAY",
"offsets": [
{
"name": "Keys",
"offset": 0,
"size": 8
},
{
"name": "Values",
"offset": 8,
"size": 8
}
],
"end_offset": 20,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_PLAIN_ARRAY_ITERATOR",
"offsets": [
{
"name": "IteratedPlainArray",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_QUEUE",
"offsets": [
{
"name": "Length",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_QUEUE_ITERATOR",
"offsets": [
{
"name": "IteratedQueue",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1 @@
{"name": "JS_API_STACK", "offsets": [], "end_offset": 4, "parents": ["JS_OBJECT"]}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_STACK_ITERATOR",
"offsets": [
{
"name": "IteratedStack",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_TREE_MAP",
"offsets": [
{
"name": "TreeMap",
"offset": 0,
"size":8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_TREE_SET",
"offsets": [
{
"name": "TreeSet",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_API_TREEMAP_ITERATOR",
"offsets": [
{
"name": "IteratedMap",
"offset": 0,
"size": 8
},
{
"name": "Entries",
"offset": 8,
"size": 8
}
],
"end_offset": 24,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_API_TREESET_ITERATOR",
"offsets": [
{
"name": "IteratedSet",
"offset": 0,
"size": 8
},
{
"name": "Entries",
"offset": 8,
"size": 8
}
],
"end_offset": 24,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1 @@
{"name": "JS_API_VECTOR", "offsets": [], "end_offset": 4, "parents": ["JS_OBJECT"]}

View File

@ -0,0 +1,14 @@
{
"name": "JS_API_VECTOR_ITERATOR",
"offsets": [
{
"name": "IteratedVector",
"offset": 0,
"size": 8
}
],
"end_offset": 12,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1 @@
{"name": "JS_ARGUMENTS", "offsets": [], "end_offset": 0, "parents": ["JS_OBJECT"]}

View File

@ -0,0 +1,19 @@
{
"name": "JS_ARRAY",
"offsets": [
{
"name": "Length",
"offset": 0,
"size": 4
},
{
"name": "TrackInfo",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ARRAY_BUFFER",
"offsets": [
{
"name": "ArrayBufferData",
"offset": 0,
"size":8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ARRAY_ITERATOR",
"offsets": [
{
"name": "IteratedArray",
"offset": 0,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ASYNC_AWAIT_STATUS_FUNCTION",
"offsets": [
{
"name": "AsyncContext",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ASYNC_FROM_SYNC_ITER_UNWARP_FUNCTION",
"offsets": [
{
"name": "Done",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ASYNC_FROM_SYNC_ITERATOR",
"offsets": [
{
"name": "SyncIteratorRecord",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ASYNC_FUNC_OBJECT",
"offsets": [
{
"name": "Promise",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_GENERATOR_OBJECT"
]
}

View File

@ -0,0 +1,8 @@
{
"name": "JS_ASYNC_FUNCTION",
"offsets": [],
"end_offset": 0,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,8 @@
{
"name": "JS_ASYNC_GENERATOR_FUNCTION",
"offsets": [],
"end_offset": 0,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,29 @@
{
"name": "JS_ASYNC_GENERATOR_OBJECT",
"offsets": [
{
"name": "GeneratorContext",
"offset": 0,
"size": 8
},
{
"name": "AsyncGeneratorQueue",
"offset": 8,
"size": 8
},
{
"name": "GeneratorBrand",
"offset": 16,
"size": 8
},
{
"name": "ResumeResult",
"offset": 24,
"size": 8
}
],
"end_offset": 36,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_ASYNC_GENERATOR_RESUME_NEXT_RETURN_PROCESSOR_RST_FTN",
"offsets": [
{
"name": "AsyncGeneratorObject",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,8 @@
{
"name": "JS_ASYNC_MODULE_FULFILLED_FUNCTION",
"offsets": [],
"end_offset": 0,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,8 @@
{
"name": "JS_ASYNC_MODULE_REJECTED_FUNCTION",
"offsets": [],
"end_offset": 0,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,17 @@
{
"name": "JS_ASYNCITERATOR",
"offsets": [
{
"name": "Properties",
"offset": 0,
"size": 8
},
{
"name": "Elements",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": ["ECMA_OBJECT"]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_BIGINT64_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_BIGUINT64_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "JS_BOUND_FUNCTION",
"offsets": [
{
"name": "BoundTarget",
"offset": 0,
"size": 8
},
{
"name": "BoundThis",
"offset": 8,
"size": 8
},
{
"name": "BoundArguments",
"offset": 16,
"size": 8
}
],
"end_offset": 24,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_CJS_EXPORTS",
"offsets": [
{
"name": "Exports",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,29 @@
{
"name": "JS_CJS_MODULE",
"offsets": [
{
"name": "Id",
"offset": 0,
"size": 8
},
{
"name": "Path",
"offset": 8,
"size": 8
},
{
"name": "Exports",
"offset": 16,
"size": 8
},
{
"name": "Filename",
"offset": 24,
"size": 8
}
],
"end_offset": 36,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_CJS_REQUIRE",
"offsets": [
{
"name": "Cache",
"offset": 0,
"size": 8
},
{
"name": "Parent",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,29 @@
{
"name": "JS_COLLATOR",
"offsets": [
{
"name": "IcuFiled",
"offset": 0,
"size": 8
},
{
"name": "Locale",
"offset": 8,
"size": 8
},
{
"name": "Collation",
"offset": 16,
"size": 8
},
{
"name": "BoundCompare",
"offset": 24,
"size": 8
}
],
"end_offset": 36,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_DATA_VIEW",
"offsets": [
{
"name": "DataView",
"offset": 0,
"size": 8
},
{
"name": "ViewedArrayBuffer",
"offset": 8,
"size": 8
}
],
"end_offset": 24,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_DATE",
"offsets": [
{
"name": "TimeValue",
"offset": 0,
"size": 8
},
{
"name": "LocalOffset",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,49 @@
{
"name": "JS_DATE_TIME_FORMAT",
"offsets": [
{
"name": "Locale",
"offset": 0,
"size": 8
},
{
"name": "Calendar",
"offset": 8,
"size": 8
},
{
"name": "NumberingSystem",
"offset": 16,
"size": 8
},
{
"name": "TimeZone",
"offset": 24,
"size": 8
},
{
"name": "LocaleIcu",
"offset": 32,
"size": 8
},
{
"name": "SimpleDateTimeFormatIcu",
"offset": 40,
"size": 8
},
{
"name": "Iso8601",
"offset": 48,
"size": 8
},
{
"name": "BoundFormat",
"offset": 56,
"size": 8
}
],
"end_offset": 68,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_DISPLAYNAMES",
"offsets": [
{
"name": "Locale",
"offset": 0,
"size": 8
},
{
"name": "IcuLDN",
"offset": 8,
"size": 8
}
],
"end_offset": 20,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,17 @@
{
"name": "JS_ERROR",
"offsets": [
{
"name": "Properties",
"offset": 0,
"size": 8
},
{
"name": "Elements",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": ["ECMA_OBJECT"]
}

View File

@ -0,0 +1,17 @@
{
"name": "JS_EVAL_ERROR",
"offsets": [
{
"name": "Properties",
"offset": 0,
"size": 8
},
{
"name": "Elements",
"offset": 8,
"size": 8
}
],
"end_offset": 16,
"parents": ["ECMA_OBJECT"]
}

View File

@ -0,0 +1,34 @@
{
"name": "JS_FINALIZATION_REGISTRY",
"offsets": [
{
"name": "CleanupCallback",
"offset": 0,
"size": 8
},
{
"name": "NoUnregister",
"offset": 8,
"size": 8
},
{
"name": "MaybeUnregister",
"offset": 16,
"size": 8
},
{
"name": "Next",
"offset": 24,
"size": 8
},
{
"name": "Prev",
"offset": 32,
"size": 8
}
],
"end_offset": 40,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_FLOAT32_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_FLOAT64_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "JS_FORIN_ITERATOR",
"offsets": [
{
"name": "Object",
"offset": 0,
"size": 8
},
{
"name": "CachedHclass",
"offset": 8,
"size": 8
},
{
"name": "Keys",
"offset": 16,
"size": 8
}
],
"end_offset": 32,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,49 @@
{
"name": "JS_FUNCTION",
"offsets": [
{
"name": "ProtoOrHClass",
"offset": 0,
"size": 8
},
{
"name": "LexicalEnv",
"offset": 8,
"size": 8
},
{
"name": "MachineCode",
"offset": 16,
"size": 8
},
{
"name": "BaselineCode",
"offset": 24,
"size": 8
},
{
"name": "RawProfileTypeInfo",
"offset": 32,
"size": 8
},
{
"name": "HomeObject",
"offset": 40,
"size": 8
},
{
"name": "Module",
"offset": 48,
"size": 8
},
{
"name": "ProtoTransRootHClass",
"offset": 56,
"size": 8
}
],
"end_offset": 72,
"parents": [
"JS_FUNCTION_BASE"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_FUNCTION_BASE",
"offsets": [
{
"name": "Method",
"offset": 0,
"size": 8
}
],
"end_offset": 24,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,39 @@
{
"name": "JS_GENERATOR_CONTEXT",
"offsets": [
{
"name": "RegsArray",
"offset": 0,
"size": 8
},
{
"name": "Method",
"offset": 8,
"size": 8
},
{
"name": "This",
"offset": 16,
"size": 8
},
{
"name": "Acc",
"offset": 24,
"size": 8
},
{
"name": "GeneratorObject",
"offset": 32,
"size": 8
},
{
"name": "LexicalEnv",
"offset": 40,
"size": 8
}
],
"end_offset": 56,
"parents": [
"TAGGED_OBJECT"
]
}

View File

@ -0,0 +1,8 @@
{
"name": "JS_GENERATOR_FUNCTION",
"offsets": [],
"end_offset": 0,
"parents": [
"JS_FUNCTION"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_GENERATOR_OBJECT",
"offsets": [
{
"name": "GeneratorContext",
"offset": 0,
"size": 8
},
{
"name": "ResumeResult",
"offset": 8,
"size": 8
}
],
"end_offset": 28,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,8 @@
{
"name": "JS_GLOBAL_OBJECT",
"offsets": [],
"end_offset": 0,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_INT16_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_INT32_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,19 @@
{
"name": "JS_INT8_ARRAY",
"offsets": [
{
"name": "ViewedArrayBufferOrByteArray",
"offset": 0,
"size": 8
},
{
"name": "TypedArrayName",
"offset": 8,
"size": 8
}
],
"end_offset": 29,
"parents": [
"JS_OBJECT"
]
}

View File

@ -0,0 +1,14 @@
{
"name": "JS_INTL",
"offsets": [
{
"name": "FallbackSymbol",
"offset": 0,
"size": 8
}
],
"end_offset": 8,
"parents": [
"JS_OBJECT"
]
}

Some files were not shown because too many files have changed in this diff Show More