2024-06-05 12:56:16 +00:00
|
|
|
# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
2021-09-04 08:06:49 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2023-04-02 15:59:16 +00:00
|
|
|
import("//arkcompiler/ets_frontend/es2panda/es2abc_config.gni")
|
2022-10-24 15:31:14 +00:00
|
|
|
import("//arkcompiler/ets_runtime/js_runtime_config.gni")
|
2023-02-13 07:06:13 +00:00
|
|
|
import("$build_root/toolchain/toolchain.gni")
|
2022-10-24 15:31:14 +00:00
|
|
|
|
|
|
|
group("ark_js_packages") {
|
|
|
|
deps = []
|
2023-12-12 12:27:26 +00:00
|
|
|
|
|
|
|
deps += [
|
2024-11-05 08:37:56 +00:00
|
|
|
":js_type_metadata",
|
2023-12-12 12:27:26 +00:00
|
|
|
":libark_jsruntime",
|
|
|
|
"ecmascript/compiler:stub.an",
|
2024-08-30 09:02:23 +00:00
|
|
|
"ecmascript/dfx/hprof:ark_js_heap_snapshot_tool",
|
2024-11-11 08:18:42 +00:00
|
|
|
"ecmascript/dfx/hprof/rawheap_translate:rawheap_translator",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/js_vm:ark_js_vm",
|
|
|
|
"ecmascript/quick_fix:quick_fix",
|
|
|
|
]
|
|
|
|
if (is_clang && clang_version != "9.0.3" && current_cpu == "arm64" &&
|
|
|
|
is_ohos) {
|
2022-10-24 15:31:14 +00:00
|
|
|
deps += [
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/compiler:ark_aot_compiler",
|
2024-01-10 01:48:32 +00:00
|
|
|
"ecmascript/compiler:libark_jsoptimizer",
|
2022-10-24 15:31:14 +00:00
|
|
|
]
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
2022-10-24 15:31:14 +00:00
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
|
2024-06-19 08:44:32 +00:00
|
|
|
group("ap_viewer_all_host_tools_packages") {
|
|
|
|
if (host_os != "mac" && target_os != "android") {
|
|
|
|
deps = [
|
|
|
|
"tools/ap_file_viewer/native:apViewer($build_root/toolchain/mingw:mingw_x86_64)",
|
|
|
|
"tools/ap_file_viewer/native:apViewer(${host_toolchain})",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-24 15:31:14 +00:00
|
|
|
group("ark_js_host_windows_tools_packages") {
|
|
|
|
deps = []
|
2022-11-10 12:14:53 +00:00
|
|
|
if (host_os != "mac" && target_os != "android") {
|
2022-12-16 03:39:04 +00:00
|
|
|
deps += [
|
2023-07-03 13:20:24 +00:00
|
|
|
"ecmascript/compiler:ark_aot_compiler($build_root/toolchain/mingw:mingw_x86_64)",
|
|
|
|
"ecmascript/js_vm:ark_js_vm($build_root/toolchain/mingw:mingw_x86_64)",
|
2023-02-09 13:47:15 +00:00
|
|
|
"ecmascript/pgo_profiler/prof_dump:profdump($build_root/toolchain/mingw:mingw_x86_64)",
|
2022-12-16 03:39:04 +00:00
|
|
|
]
|
2022-02-26 03:08:37 +00:00
|
|
|
}
|
2022-10-24 15:31:14 +00:00
|
|
|
}
|
2022-02-26 03:08:37 +00:00
|
|
|
|
2022-10-24 15:31:14 +00:00
|
|
|
group("ark_js_host_mac_tools_packages") {
|
|
|
|
deps = []
|
|
|
|
if (host_os == "mac") {
|
|
|
|
if (host_cpu == "arm64") {
|
2023-02-08 09:32:47 +00:00
|
|
|
deps += [
|
|
|
|
"ecmascript/compiler:ark_aot_compiler($build_root/toolchain/mac:clang_arm64)",
|
|
|
|
"ecmascript/js_vm:ark_js_vm($build_root/toolchain/mac:clang_arm64)",
|
2023-02-09 13:47:15 +00:00
|
|
|
"ecmascript/pgo_profiler/prof_dump:profdump($build_root/toolchain/mac:clang_arm64)",
|
2023-02-08 09:32:47 +00:00
|
|
|
]
|
2022-10-24 15:31:14 +00:00
|
|
|
} else {
|
2023-02-08 09:32:47 +00:00
|
|
|
deps += [
|
|
|
|
"ecmascript/compiler:ark_aot_compiler($build_root/toolchain/mac:clang_x64)",
|
|
|
|
"ecmascript/js_vm:ark_js_vm($build_root/toolchain/mac:clang_x64)",
|
2023-02-09 13:47:15 +00:00
|
|
|
"ecmascript/pgo_profiler/prof_dump:profdump($build_root/toolchain/mac:clang_x64)",
|
2023-02-08 09:32:47 +00:00
|
|
|
]
|
2022-05-12 13:57:08 +00:00
|
|
|
}
|
2022-04-28 09:29:17 +00:00
|
|
|
}
|
2022-10-24 15:31:14 +00:00
|
|
|
}
|
2022-04-28 09:29:17 +00:00
|
|
|
|
2024-06-06 07:38:18 +00:00
|
|
|
ohos_static_library("ark_js_host_linux_tools_packages") {
|
2022-10-24 15:31:14 +00:00
|
|
|
deps = []
|
2023-12-12 12:27:26 +00:00
|
|
|
|
|
|
|
deps += [
|
2024-08-30 09:02:23 +00:00
|
|
|
"ecmascript/dfx/hprof:ark_js_heap_snapshot_tool(${host_toolchain})",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/js_vm:ark_js_vm(${host_toolchain})",
|
|
|
|
"ecmascript/quick_fix:quick_fix(${host_toolchain})",
|
|
|
|
]
|
|
|
|
if (is_standard_system) {
|
2022-10-24 15:31:14 +00:00
|
|
|
deps += [
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/compiler:ark_aot_compiler(${host_toolchain})",
|
|
|
|
"ecmascript/compiler:ark_stub_compiler(${host_toolchain})",
|
2024-03-19 06:57:29 +00:00
|
|
|
"ecmascript/compiler:libark_jsoptimizer(${host_toolchain})",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/pgo_profiler/prof_dump:profdump(${host_toolchain})",
|
2022-10-24 15:31:14 +00:00
|
|
|
]
|
2022-04-28 09:29:17 +00:00
|
|
|
}
|
2024-06-06 07:38:18 +00:00
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
2022-10-24 15:31:14 +00:00
|
|
|
}
|
2022-04-28 09:29:17 +00:00
|
|
|
|
2022-10-24 15:31:14 +00:00
|
|
|
group("ark_js_unittest") {
|
|
|
|
testonly = true
|
|
|
|
deps = []
|
2023-12-12 12:27:26 +00:00
|
|
|
|
|
|
|
deps += [
|
|
|
|
"ecmascript/base/tests:unittest",
|
|
|
|
"ecmascript/builtins/tests:unittest",
|
|
|
|
"ecmascript/containers/tests:unittest",
|
|
|
|
"ecmascript/debugger/tests:unittest",
|
2024-09-03 06:18:09 +00:00
|
|
|
"ecmascript/dfx/cpu_profiler/tests:unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/dfx/hprof/tests:unittest",
|
2024-08-14 08:14:29 +00:00
|
|
|
"ecmascript/dfx/stackinfo/tests:unittest",
|
2024-08-10 09:41:08 +00:00
|
|
|
"ecmascript/extractortool/tests:unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/ic/tests:unittest",
|
2024-11-01 13:17:33 +00:00
|
|
|
"ecmascript/jit/tests:unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/jobs/tests:unittest",
|
|
|
|
"ecmascript/jspandafile/tests:unittest",
|
|
|
|
"ecmascript/module/tests:unittest",
|
|
|
|
"ecmascript/napi/test:unittest",
|
2023-12-25 13:35:33 +00:00
|
|
|
"ecmascript/napi/test:workload_test",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/regexp/tests:unittest",
|
|
|
|
"ecmascript/require/tests:unittest",
|
|
|
|
"ecmascript/serializer/tests:unittest",
|
|
|
|
"ecmascript/snapshot/tests:unittest",
|
|
|
|
"ecmascript/tests:unittest",
|
|
|
|
]
|
|
|
|
if (is_ohos && is_standard_system) {
|
|
|
|
deps += [ "test/fuzztest:fuzztest" ]
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
2023-12-23 07:44:22 +00:00
|
|
|
if (current_cpu == "arm64") {
|
|
|
|
deps += [ "ecmascript/pgo_profiler/tests:unittest" ]
|
|
|
|
}
|
2022-10-24 15:31:14 +00:00
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
|
2022-10-24 15:31:14 +00:00
|
|
|
group("ark_js_perform") {
|
|
|
|
testonly = true
|
|
|
|
deps = []
|
|
|
|
deps += [ "//arkcompiler/ets_runtime/test/perform:perform" ]
|
|
|
|
}
|
2022-08-16 03:10:10 +00:00
|
|
|
|
2022-10-24 15:31:14 +00:00
|
|
|
group("ark_unittest") {
|
|
|
|
testonly = true
|
|
|
|
deps = []
|
2023-12-12 12:27:26 +00:00
|
|
|
|
|
|
|
# js unittest
|
2024-08-30 11:18:51 +00:00
|
|
|
deps += [ # Register the executable block name of the unit test script here
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/base/tests:host_unittest",
|
|
|
|
"ecmascript/builtins/tests:host_unittest",
|
2024-08-30 11:18:51 +00:00
|
|
|
"ecmascript/compiler/codegen/maple/test:host_unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/containers/tests:host_unittest",
|
2024-09-03 06:18:09 +00:00
|
|
|
"ecmascript/dfx/cpu_profiler/tests:host_unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/dfx/hprof/tests:host_unittest",
|
2024-08-14 08:14:29 +00:00
|
|
|
"ecmascript/dfx/stackinfo/tests:host_unittest",
|
2024-08-10 09:41:08 +00:00
|
|
|
"ecmascript/extractortool/tests:host_unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/ic/tests:host_unittest",
|
2024-11-01 13:17:33 +00:00
|
|
|
"ecmascript/jit/tests:host_unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/jobs/tests:host_unittest",
|
|
|
|
"ecmascript/jspandafile/tests:host_unittest",
|
|
|
|
"ecmascript/module/tests:host_unittest",
|
|
|
|
"ecmascript/napi/test:host_unittest",
|
|
|
|
"ecmascript/pgo_profiler/tests:host_unittest",
|
|
|
|
"ecmascript/regexp/tests:host_unittest",
|
|
|
|
"ecmascript/require/tests:host_unittest",
|
2024-02-29 13:39:08 +00:00
|
|
|
"ecmascript/serializer/tests:host_unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/snapshot/tests:host_unittest",
|
|
|
|
"ecmascript/tests:host_unittest",
|
|
|
|
]
|
|
|
|
if (!run_with_asan) {
|
|
|
|
if (!(ark_standalone_build && current_os == "ohos")) {
|
|
|
|
deps += [
|
2024-03-15 09:19:20 +00:00
|
|
|
"ecmascript/compiler/tests:host_unittest",
|
2023-12-12 12:27:26 +00:00
|
|
|
"ecmascript/ohos/tests:host_unittest",
|
|
|
|
]
|
2022-09-02 01:17:30 +00:00
|
|
|
}
|
|
|
|
}
|
2022-10-24 15:31:14 +00:00
|
|
|
}
|
2022-09-02 01:17:30 +00:00
|
|
|
|
2024-06-06 07:38:18 +00:00
|
|
|
ohos_static_library("ark_runtime_host_unittest") {
|
2022-10-24 15:31:14 +00:00
|
|
|
testonly = true
|
|
|
|
deps = []
|
2021-09-04 08:06:49 +00:00
|
|
|
|
2023-12-12 12:27:26 +00:00
|
|
|
# js unittest
|
|
|
|
deps += [
|
|
|
|
":ark_unittest",
|
|
|
|
"$js_root/test/pgotypeinfer:ark_pgotypeinfer_test",
|
|
|
|
]
|
2022-03-23 10:33:48 +00:00
|
|
|
|
2023-12-12 12:27:26 +00:00
|
|
|
# js bytecode test
|
|
|
|
deps += [ "$js_root/test/moduletest:ark_js_moduletest" ]
|
2022-10-09 10:01:37 +00:00
|
|
|
|
2023-12-12 12:27:26 +00:00
|
|
|
# quickfix test
|
|
|
|
deps += [ "$js_root/test/quickfix:ark_quickfix_test" ]
|
|
|
|
if (!ark_standalone_build && run_regress_test) {
|
|
|
|
deps += [ "$js_root/test/regresstest:ark_regress_test" ]
|
|
|
|
}
|
2023-09-21 06:22:30 +00:00
|
|
|
|
2023-12-12 12:27:26 +00:00
|
|
|
# execution test
|
|
|
|
deps += [ "$js_root/test/executiontest:ark_execution_test" ]
|
2023-06-10 12:26:53 +00:00
|
|
|
|
2024-04-16 12:12:37 +00:00
|
|
|
# jit test
|
|
|
|
deps += [ "$js_root/test/jittest:ark_jit_test" ]
|
|
|
|
|
2023-12-12 12:27:26 +00:00
|
|
|
# ts aot test and asm test
|
|
|
|
if (!run_with_asan) {
|
|
|
|
deps += [
|
2024-03-10 04:53:01 +00:00
|
|
|
"$js_root/test/aottest:ark_aot_test",
|
2023-12-12 12:27:26 +00:00
|
|
|
|
|
|
|
#"$js_root/test/moduletest:ark_asm_single_step_test",
|
2024-03-10 04:53:01 +00:00
|
|
|
"$js_root/test/deopttest:ark_deopt_test",
|
2023-12-12 12:27:26 +00:00
|
|
|
"$js_root/test/moduletest:ark_asm_test",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
deps -= [ "$js_root/test/moduletest:ark_asm_test" ]
|
2022-04-30 06:22:33 +00:00
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
2024-06-06 07:38:18 +00:00
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
config("ark_jsruntime_public_config") {
|
|
|
|
configs = [
|
|
|
|
"$ark_root/libpandabase:arkbase_public_config",
|
|
|
|
"$ark_root/libpandafile:arkfile_public_config",
|
2022-10-24 15:31:14 +00:00
|
|
|
"$ark_third_party_root/icu/icu4c:icu_config",
|
2021-09-04 08:06:49 +00:00
|
|
|
sdk_libc_secshared_config,
|
|
|
|
]
|
|
|
|
|
|
|
|
include_dirs = [
|
2022-05-12 13:57:08 +00:00
|
|
|
"$js_root",
|
2023-01-26 15:29:36 +00:00
|
|
|
"$js_root/ecmascript/napi/include",
|
2021-09-04 08:06:49 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-03-03 02:59:00 +00:00
|
|
|
intl_sources = []
|
|
|
|
|
|
|
|
if (enable_ark_intl) {
|
|
|
|
intl_sources += [
|
|
|
|
"ecmascript/builtins/builtins_collator.cpp",
|
|
|
|
"ecmascript/builtins/builtins_date_time_format.cpp",
|
|
|
|
"ecmascript/builtins/builtins_displaynames.cpp",
|
|
|
|
"ecmascript/builtins/builtins_intl.cpp",
|
|
|
|
"ecmascript/builtins/builtins_list_format.cpp",
|
|
|
|
"ecmascript/builtins/builtins_locale.cpp",
|
|
|
|
"ecmascript/builtins/builtins_number_format.cpp",
|
|
|
|
"ecmascript/builtins/builtins_plural_rules.cpp",
|
|
|
|
"ecmascript/builtins/builtins_relative_time_format.cpp",
|
2024-01-19 09:05:21 +00:00
|
|
|
"ecmascript/builtins/builtins_segment_iterator.cpp",
|
|
|
|
"ecmascript/builtins/builtins_segmenter.cpp",
|
|
|
|
"ecmascript/builtins/builtins_segments.cpp",
|
2023-03-03 02:59:00 +00:00
|
|
|
"ecmascript/js_collator.cpp",
|
|
|
|
"ecmascript/js_date_time_format.cpp",
|
|
|
|
"ecmascript/js_displaynames.cpp",
|
|
|
|
"ecmascript/js_list_format.cpp",
|
|
|
|
"ecmascript/js_locale.cpp",
|
|
|
|
"ecmascript/js_number_format.cpp",
|
|
|
|
"ecmascript/js_plural_rules.cpp",
|
|
|
|
"ecmascript/js_relative_time_format.cpp",
|
2024-01-19 09:05:21 +00:00
|
|
|
"ecmascript/js_segment_iterator.cpp",
|
|
|
|
"ecmascript/js_segmenter.cpp",
|
|
|
|
"ecmascript/js_segments.cpp",
|
2023-03-03 02:59:00 +00:00
|
|
|
]
|
|
|
|
} else {
|
|
|
|
if (target_os != "android" && target_os != "ios") {
|
|
|
|
intl_sources += [ "ecmascript/intl/global_intl_helper.cpp" ]
|
|
|
|
}
|
2023-02-10 07:38:16 +00:00
|
|
|
}
|
2021-09-07 14:24:16 +00:00
|
|
|
|
2022-03-24 07:04:57 +00:00
|
|
|
config("ark_jsruntime_compiler_config") {
|
2022-05-12 13:57:08 +00:00
|
|
|
configs = [ "$js_root:ark_jsruntime_common_config" ]
|
2022-03-24 07:04:57 +00:00
|
|
|
}
|
|
|
|
|
2023-03-18 11:29:35 +00:00
|
|
|
config("hiviewdfx_config") {
|
|
|
|
defines = []
|
|
|
|
if (enable_dump_in_faultlog) {
|
|
|
|
defines += [ "ENABLE_DUMP_IN_FAULTLOG" ]
|
2023-03-02 02:49:38 +00:00
|
|
|
}
|
2023-03-18 11:29:35 +00:00
|
|
|
if (enable_bytrace) {
|
|
|
|
defines += [ "ENABLE_BYTRACE" ]
|
|
|
|
cflags_cc = [ "-Wno-gnu-zero-variadic-macro-arguments" ]
|
|
|
|
}
|
|
|
|
if (enable_hitrace) {
|
|
|
|
defines += [ "ENABLE_HITRACE" ]
|
|
|
|
}
|
|
|
|
if (enable_hilog) {
|
|
|
|
defines += [ "ENABLE_HILOG" ]
|
|
|
|
}
|
2024-03-27 08:57:09 +00:00
|
|
|
if (enable_hisysevent) {
|
|
|
|
defines += [ "ENABLE_HISYSEVENT" ]
|
|
|
|
}
|
2024-06-05 12:56:16 +00:00
|
|
|
if (enable_unwinder) {
|
|
|
|
defines += [ "ENABLE_UNWINDER" ]
|
|
|
|
}
|
2023-03-18 11:29:35 +00:00
|
|
|
|
|
|
|
include_dirs = [ "$hilog_root/include" ]
|
2022-04-24 08:08:55 +00:00
|
|
|
}
|
|
|
|
|
2021-09-07 14:24:16 +00:00
|
|
|
config("ark_jsruntime_common_config") {
|
2023-03-18 11:29:35 +00:00
|
|
|
configs = [ ":hiviewdfx_config" ]
|
|
|
|
|
2022-03-25 01:31:39 +00:00
|
|
|
defines = [ "PANDA_ENABLE_LTO" ]
|
2024-05-21 13:18:06 +00:00
|
|
|
|
|
|
|
if (ark_standalone_build) {
|
|
|
|
defines += [ "STANDALONE_MODE" ]
|
|
|
|
}
|
|
|
|
|
2022-03-24 07:04:57 +00:00
|
|
|
cflags_cc = [
|
2022-03-25 01:31:39 +00:00
|
|
|
"-Wall",
|
2022-03-24 07:04:57 +00:00
|
|
|
"-Wshadow",
|
|
|
|
"-Werror",
|
|
|
|
"-Wextra",
|
2022-02-26 03:08:37 +00:00
|
|
|
"-pedantic",
|
|
|
|
"-Wno-invalid-offsetof",
|
|
|
|
"-Wno-gnu-statement-expression",
|
|
|
|
"-pipe",
|
|
|
|
"-Wdate-time",
|
2022-08-10 07:29:17 +00:00
|
|
|
"-funwind-tables",
|
2023-04-04 06:50:19 +00:00
|
|
|
"-fno-rtti",
|
2022-08-10 07:29:17 +00:00
|
|
|
"-fasynchronous-unwind-tables",
|
2022-02-26 03:08:37 +00:00
|
|
|
"-Wformat=2",
|
2022-11-02 10:00:23 +00:00
|
|
|
"-std=c++17",
|
2023-02-28 11:03:10 +00:00
|
|
|
"-Wno-unused-but-set-variable",
|
2022-02-26 03:08:37 +00:00
|
|
|
]
|
2022-11-02 10:00:23 +00:00
|
|
|
|
2024-06-26 17:16:19 +00:00
|
|
|
cflags_c = []
|
|
|
|
|
2024-05-09 11:41:02 +00:00
|
|
|
if (is_ohos && is_clang && (target_cpu == "arm" || target_cpu == "arm64")) {
|
2024-05-27 03:13:19 +00:00
|
|
|
if (ets_runtime_feature_enable_pgo) {
|
2024-05-08 07:41:38 +00:00
|
|
|
cflags = [
|
|
|
|
"-fprofile-use=" + rebase_path(
|
2024-05-27 03:13:19 +00:00
|
|
|
"${ets_runtime_feature_pgo_path}/libark_jsruntime.profdata",
|
2024-05-08 07:41:38 +00:00
|
|
|
root_build_dir),
|
|
|
|
"-Wno-error=backend-plugin",
|
|
|
|
"-Wno-profile-instr-out-of-date",
|
|
|
|
"-Wno-profile-instr-unprofiled",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-02 10:00:23 +00:00
|
|
|
if (use_musl) {
|
2023-12-20 09:26:40 +00:00
|
|
|
defines += [ "PANDA_USE_MUSL" ]
|
2022-05-12 13:57:08 +00:00
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
|
2022-02-09 02:26:15 +00:00
|
|
|
if (build_public_version) {
|
|
|
|
defines += [ "IS_PUBLIC_VERSION" ]
|
|
|
|
}
|
|
|
|
|
2024-07-02 09:24:28 +00:00
|
|
|
if (is_arkui_x) {
|
|
|
|
defines += [ "CROSS_PLATFORM" ]
|
|
|
|
}
|
|
|
|
|
2024-06-05 01:42:55 +00:00
|
|
|
if (target_os == "android") {
|
|
|
|
defines += [ "ANDROID_PLATFORM" ]
|
|
|
|
}
|
|
|
|
|
2023-02-20 07:33:01 +00:00
|
|
|
if (ark_compile_mode != "release") {
|
2023-06-09 03:38:39 +00:00
|
|
|
ark_profiler_features = [
|
|
|
|
"ECMASCRIPT_SUPPORT_CPUPROFILER",
|
|
|
|
"ECMASCRIPT_SUPPORT_HEAPPROFILER",
|
|
|
|
"ECMASCRIPT_SUPPORT_HEAPSAMPLING",
|
|
|
|
"ECMASCRIPT_SUPPORT_SNAPSHOT",
|
2023-12-01 02:03:48 +00:00
|
|
|
"ECMASCRIPT_SUPPORT_TRACING",
|
2023-06-09 03:38:39 +00:00
|
|
|
]
|
2023-02-20 07:33:01 +00:00
|
|
|
defines += [ "ECMASCRIPT_SUPPORT_DEBUGGER" ]
|
|
|
|
defines += ark_profiler_features
|
|
|
|
}
|
|
|
|
|
2023-03-18 11:29:35 +00:00
|
|
|
ldflags = []
|
2021-09-04 08:06:49 +00:00
|
|
|
if (is_linux) {
|
|
|
|
defines += [
|
2024-03-04 15:06:45 +00:00
|
|
|
"PANDA_TARGET_PREVIEW",
|
2021-09-04 08:06:49 +00:00
|
|
|
"PANDA_TARGET_UNIX",
|
|
|
|
"PANDA_TARGET_LINUX",
|
|
|
|
"PANDA_USE_FUTEX",
|
|
|
|
]
|
|
|
|
} else if (is_mingw) {
|
2022-02-26 03:08:37 +00:00
|
|
|
cflags_cc += [
|
|
|
|
"-std=c++17",
|
|
|
|
"-Wno-ignored-attributes",
|
|
|
|
]
|
2021-09-04 08:06:49 +00:00
|
|
|
defines += [
|
2024-03-04 15:06:45 +00:00
|
|
|
"PANDA_TARGET_PREVIEW",
|
2021-09-04 08:06:49 +00:00
|
|
|
"PANDA_TARGET_WINDOWS",
|
|
|
|
"_CRTBLD",
|
|
|
|
"__LIBMSVCRT__",
|
|
|
|
]
|
2023-02-20 07:33:01 +00:00
|
|
|
|
2023-03-18 11:29:35 +00:00
|
|
|
ldflags += [ "-lshlwapi" ]
|
|
|
|
|
2023-02-20 07:33:01 +00:00
|
|
|
# not support profiler on Windows yet
|
|
|
|
if (ark_compile_mode != "release") {
|
|
|
|
defines -= ark_profiler_features
|
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
} else if (is_mac) {
|
2023-12-12 12:27:26 +00:00
|
|
|
cflags_cc += [ "-std=c++17" ]
|
2021-09-04 08:06:49 +00:00
|
|
|
defines += [
|
2024-03-04 15:06:45 +00:00
|
|
|
"PANDA_TARGET_PREVIEW",
|
2021-09-04 08:06:49 +00:00
|
|
|
"PANDA_TARGET_UNIX",
|
|
|
|
"PANDA_TARGET_MACOS",
|
|
|
|
]
|
2023-02-20 07:33:01 +00:00
|
|
|
|
|
|
|
# not support profiler on MacOS yet
|
|
|
|
if (ark_compile_mode != "release") {
|
|
|
|
defines -= ark_profiler_features
|
|
|
|
}
|
2022-08-18 07:41:19 +00:00
|
|
|
} else if (target_os == "android") {
|
|
|
|
defines += [
|
|
|
|
"PANDA_TARGET_ANDROID",
|
|
|
|
"PANDA_TARGET_UNIX",
|
|
|
|
"PANDA_USE_FUTEX",
|
|
|
|
]
|
2023-06-06 11:13:53 +00:00
|
|
|
if (current_cpu == "arm64") {
|
|
|
|
defines += [ "EXCLUDE_C_INTERPRETER" ]
|
|
|
|
}
|
2023-04-17 06:59:33 +00:00
|
|
|
if (!ark_standalone_build) {
|
|
|
|
defines += [ "ENABLE_ANLOG" ]
|
|
|
|
}
|
2022-10-10 02:08:43 +00:00
|
|
|
} else if (target_os == "ios") {
|
|
|
|
defines += [
|
|
|
|
"PANDA_TARGET_IOS",
|
|
|
|
"PANDA_TARGET_UNIX",
|
|
|
|
]
|
2023-02-20 07:33:01 +00:00
|
|
|
|
2023-02-21 02:11:29 +00:00
|
|
|
# not support profiler on iOS yet
|
2023-02-20 07:33:01 +00:00
|
|
|
if (ark_compile_mode != "release") {
|
|
|
|
defines -= ark_profiler_features
|
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
} else {
|
|
|
|
defines += [
|
|
|
|
"PANDA_TARGET_UNIX",
|
2021-09-05 15:06:42 +00:00
|
|
|
"PANDA_USE_FUTEX",
|
2021-09-04 08:06:49 +00:00
|
|
|
]
|
2021-09-07 14:24:16 +00:00
|
|
|
if (!is_standard_system && (current_cpu != "arm" || is_wearable_product)) {
|
|
|
|
defines += [ "PANDA_TARGET_MOBILE" ]
|
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
|
|
|
|
2023-11-11 12:58:45 +00:00
|
|
|
if (is_ohos) {
|
|
|
|
defines += [ "PANDA_TARGET_OHOS" ]
|
|
|
|
}
|
|
|
|
|
2023-09-05 02:01:22 +00:00
|
|
|
if (!is_mac && target_os != "ios" && !use_libfuzzer && !enable_lto_O0) {
|
2023-05-17 06:30:14 +00:00
|
|
|
cflags_cc += [ "-flto=thin" ]
|
|
|
|
ldflags += [ "-flto=thin" ]
|
2021-12-17 09:18:10 +00:00
|
|
|
}
|
2021-09-07 14:24:16 +00:00
|
|
|
|
2024-04-06 02:07:00 +00:00
|
|
|
if (use_libfuzzer) {
|
|
|
|
defines += [ "FUZZ_TEST" ]
|
|
|
|
}
|
|
|
|
|
2024-06-26 17:16:19 +00:00
|
|
|
if (is_fastverify) {
|
|
|
|
cflags_cc += [
|
|
|
|
"-O3",
|
|
|
|
"-ggdb3",
|
|
|
|
"-fno-omit-frame-pointer",
|
|
|
|
"-D_GLIBCXX_ASSERTIONS",
|
|
|
|
]
|
|
|
|
cflags_c += [
|
|
|
|
"-O3",
|
|
|
|
"-ggdb3",
|
|
|
|
"-fno-omit-frame-pointer",
|
|
|
|
"-D_GLIBCXX_ASSERTIONS",
|
|
|
|
]
|
|
|
|
} else if (is_debug) {
|
2022-09-01 12:27:59 +00:00
|
|
|
cflags_cc += [
|
|
|
|
"-O0",
|
|
|
|
"-ggdb3",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
defines += [ "NDEBUG" ]
|
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
|
2022-12-02 03:41:58 +00:00
|
|
|
if (enable_asm_assert) {
|
|
|
|
defines += [ "ENABLE_ASM_ASSERT" ]
|
|
|
|
}
|
|
|
|
|
2022-08-04 08:52:20 +00:00
|
|
|
if (run_with_asan) {
|
|
|
|
defines += [ "RUN_WITH_ASAN" ]
|
|
|
|
}
|
|
|
|
|
2022-10-26 02:39:13 +00:00
|
|
|
if (enable_cow_array) {
|
|
|
|
defines += [ "ENABLE_COW_ARRAY" ]
|
|
|
|
}
|
|
|
|
|
2021-09-04 08:06:49 +00:00
|
|
|
if (current_cpu == "arm") {
|
|
|
|
defines += [
|
|
|
|
"PANDA_TARGET_ARM32_ABI_SOFT=1",
|
|
|
|
"PANDA_TARGET_ARM32",
|
2021-12-17 09:18:10 +00:00
|
|
|
"PANDA_TARGET_32",
|
2021-09-04 08:06:49 +00:00
|
|
|
]
|
|
|
|
} else if (current_cpu == "arm64") {
|
|
|
|
defines += [
|
|
|
|
"PANDA_TARGET_ARM64",
|
|
|
|
"PANDA_TARGET_64",
|
|
|
|
"PANDA_ENABLE_GLOBAL_REGISTER_VARIABLES",
|
|
|
|
"PANDA_USE_32_BIT_POINTER",
|
|
|
|
]
|
|
|
|
} else if (current_cpu == "x86") {
|
|
|
|
defines += [ "PANDA_TARGET_X86" ]
|
|
|
|
} else if (current_cpu == "amd64" || current_cpu == "x64" ||
|
|
|
|
current_cpu == "x86_64") {
|
|
|
|
defines += [
|
|
|
|
"PANDA_TARGET_64",
|
|
|
|
"PANDA_TARGET_AMD64",
|
|
|
|
"PANDA_USE_32_BIT_POINTER",
|
|
|
|
]
|
|
|
|
}
|
2023-02-10 07:38:16 +00:00
|
|
|
if (enable_ark_intl) {
|
|
|
|
defines += [ "ARK_SUPPORT_INTL" ]
|
|
|
|
} else {
|
2023-03-03 02:59:00 +00:00
|
|
|
if (target_os == "android" || target_os == "ios") {
|
|
|
|
defines += [ "ARK_NOT_SUPPORT_INTL_GLOBAL" ]
|
|
|
|
} else {
|
2023-03-18 11:29:35 +00:00
|
|
|
configs += [ "$global_root/frameworks/intl:intl_util_config" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-12 14:40:18 +00:00
|
|
|
if (enable_leak_check || enable_gc_dfx_options || is_asan) {
|
2023-03-18 11:29:35 +00:00
|
|
|
defines += [ "ECMASCRIPT_ENABLE_HANDLE_LEAK_CHECK" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_ohos && is_standard_system) {
|
|
|
|
defines += [ "ENABLE_EXCEPTION_BACKTRACE" ]
|
|
|
|
|
|
|
|
if (use_musl && (current_cpu == "arm" || current_cpu == "arm64") &&
|
2023-12-20 09:26:40 +00:00
|
|
|
!is_mac && !is_mingw && target_os != "ios" && !is_asan) {
|
2023-03-18 11:29:35 +00:00
|
|
|
defines += [ "HOOK_ENABLE" ]
|
2023-03-03 02:59:00 +00:00
|
|
|
}
|
2023-02-10 07:38:16 +00:00
|
|
|
}
|
2023-07-06 07:31:12 +00:00
|
|
|
|
|
|
|
# is_asan: skynet config; run_with_asan: est_runtime enable asan config
|
|
|
|
if (is_asan) {
|
2024-08-06 03:13:16 +00:00
|
|
|
defines += [
|
|
|
|
"ECMASCRIPT_ENABLE_ASAN_DFX_CONFIG",
|
|
|
|
"ECMASCRIPT_ENABLE_ASAN_THREAD_CHECK",
|
|
|
|
]
|
2023-07-06 07:31:12 +00:00
|
|
|
}
|
2023-10-31 06:38:13 +00:00
|
|
|
|
|
|
|
code_encrypto_enable = true
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.security_code_crypto_metadata_process)) {
|
|
|
|
code_encrypto_enable = false
|
|
|
|
}
|
2024-06-19 08:44:32 +00:00
|
|
|
if (is_mingw && ark_standalone_build) {
|
|
|
|
code_encrypto_enable = false
|
|
|
|
}
|
2023-10-31 06:38:13 +00:00
|
|
|
if (code_encrypto_enable) {
|
|
|
|
defines += [ "CODE_ENCRYPTION_ENABLE" ]
|
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# ecmascript unit testcase config
|
|
|
|
config("ecma_test_config") {
|
2023-04-12 05:19:04 +00:00
|
|
|
visibility = [
|
|
|
|
"./ecmascript/*",
|
2023-09-21 06:22:30 +00:00
|
|
|
"./test/executiontest/*",
|
2023-04-12 05:19:04 +00:00
|
|
|
"./test/fuzztest/*",
|
2024-06-19 08:44:32 +00:00
|
|
|
"./tools/ap_file_viewer/*",
|
2023-04-12 05:19:04 +00:00
|
|
|
]
|
2021-09-04 08:06:49 +00:00
|
|
|
|
2022-03-25 01:31:39 +00:00
|
|
|
configs = [
|
2022-05-12 13:57:08 +00:00
|
|
|
"$js_root:ark_jsruntime_public_config",
|
|
|
|
"$js_root:ark_jsruntime_common_config",
|
2022-03-25 01:31:39 +00:00
|
|
|
]
|
|
|
|
|
2023-07-06 07:31:12 +00:00
|
|
|
if (enable_leak_check || is_asan) {
|
2023-01-12 07:29:25 +00:00
|
|
|
defines = [ "ECMASCRIPT_ENABLE_HANDLE_LEAK_CHECK" ]
|
2022-09-06 04:55:08 +00:00
|
|
|
}
|
2023-12-20 09:26:40 +00:00
|
|
|
if (!is_mac) {
|
|
|
|
ldflags = [ "-Wl,-rpath=\$ORIGIN/" ]
|
2023-12-22 01:38:13 +00:00
|
|
|
} else {
|
|
|
|
ldflags = [ "-Wl" ]
|
2023-12-20 09:26:40 +00:00
|
|
|
}
|
2023-12-12 12:27:26 +00:00
|
|
|
|
2022-12-27 07:47:21 +00:00
|
|
|
if (!ark_standalone_build) {
|
|
|
|
ldflags += [ "-Wl,--lto-O0" ]
|
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 03:36:54 +00:00
|
|
|
# ecmascript icu path for testcase config
|
|
|
|
config("icu_path_test_config") {
|
|
|
|
icu_data_path = rebase_path("//third_party/icu/ohos_icu4j/data")
|
|
|
|
defines = [ "ICU_PATH=\"${icu_data_path}\"" ]
|
|
|
|
}
|
|
|
|
|
2022-07-05 09:18:30 +00:00
|
|
|
# asm interpreter enable config
|
|
|
|
config("asm_interp_enable_config") {
|
2022-08-04 07:37:10 +00:00
|
|
|
if ((current_cpu == "amd64" || current_cpu == "x64" ||
|
|
|
|
current_cpu == "x86_64" || current_cpu == "arm64") && !is_mingw &&
|
2024-01-19 03:54:05 +00:00
|
|
|
!is_mac && target_os != "ios") {
|
2022-07-05 09:18:30 +00:00
|
|
|
defines = [ "SUPPORT_ENABLE_ASM_INTERP" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-04 08:06:49 +00:00
|
|
|
ecma_source = [
|
|
|
|
"ecmascript/base/array_helper.cpp",
|
2022-05-25 14:03:38 +00:00
|
|
|
"ecmascript/base/atomic_helper.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/base/builtins_base.cpp",
|
2024-03-27 03:49:04 +00:00
|
|
|
"ecmascript/base/dtoa_helper.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/base/error_helper.cpp",
|
2023-09-04 06:53:18 +00:00
|
|
|
"ecmascript/base/fast_json_stringifier.cpp",
|
|
|
|
"ecmascript/base/json_helper.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/base/json_parser.cpp",
|
|
|
|
"ecmascript/base/json_stringifier.cpp",
|
|
|
|
"ecmascript/base/number_helper.cpp",
|
2023-07-12 12:34:30 +00:00
|
|
|
"ecmascript/base/path_helper.cpp",
|
2024-04-16 07:04:52 +00:00
|
|
|
"ecmascript/base/sort_helper.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/base/string_helper.cpp",
|
|
|
|
"ecmascript/base/typed_array_helper.cpp",
|
|
|
|
"ecmascript/base/utf_helper.cpp",
|
2022-08-25 12:47:18 +00:00
|
|
|
"ecmascript/builtins/builtins.cpp",
|
2021-10-19 03:55:00 +00:00
|
|
|
"ecmascript/builtins/builtins_ark_tools.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_array.cpp",
|
2024-03-03 03:08:30 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_array.cpp",
|
2024-04-07 14:06:42 +00:00
|
|
|
"ecmascript/builtins/builtins_sendable_arraybuffer.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_arraybuffer.cpp",
|
2023-01-12 10:49:18 +00:00
|
|
|
"ecmascript/builtins/builtins_async_from_sync_iterator.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_async_function.cpp",
|
2024-07-07 08:14:44 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_async_function.cpp",
|
2022-08-17 08:53:35 +00:00
|
|
|
"ecmascript/builtins/builtins_async_generator.cpp",
|
2022-05-25 14:03:38 +00:00
|
|
|
"ecmascript/builtins/builtins_atomics.cpp",
|
2022-03-10 13:25:06 +00:00
|
|
|
"ecmascript/builtins/builtins_bigint.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_boolean.cpp",
|
|
|
|
"ecmascript/builtins/builtins_dataview.cpp",
|
|
|
|
"ecmascript/builtins/builtins_date.cpp",
|
|
|
|
"ecmascript/builtins/builtins_errors.cpp",
|
2022-05-27 02:26:55 +00:00
|
|
|
"ecmascript/builtins/builtins_finalization_registry.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_function.cpp",
|
2024-06-06 09:21:59 +00:00
|
|
|
"ecmascript/builtins/builtins_gc.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_generator.cpp",
|
|
|
|
"ecmascript/builtins/builtins_global.cpp",
|
|
|
|
"ecmascript/builtins/builtins_iterator.cpp",
|
2022-08-30 08:26:37 +00:00
|
|
|
"ecmascript/builtins/builtins_async_iterator.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_json.cpp",
|
2023-04-24 03:43:21 +00:00
|
|
|
"ecmascript/builtins/builtins_lazy_callback.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_map.cpp",
|
|
|
|
"ecmascript/builtins/builtins_math.cpp",
|
|
|
|
"ecmascript/builtins/builtins_number.cpp",
|
|
|
|
"ecmascript/builtins/builtins_object.cpp",
|
|
|
|
"ecmascript/builtins/builtins_promise.cpp",
|
|
|
|
"ecmascript/builtins/builtins_promise_handler.cpp",
|
|
|
|
"ecmascript/builtins/builtins_promise_job.cpp",
|
|
|
|
"ecmascript/builtins/builtins_proxy.cpp",
|
|
|
|
"ecmascript/builtins/builtins_reflect.cpp",
|
|
|
|
"ecmascript/builtins/builtins_regexp.cpp",
|
|
|
|
"ecmascript/builtins/builtins_set.cpp",
|
2022-03-30 03:35:52 +00:00
|
|
|
"ecmascript/builtins/builtins_sharedarraybuffer.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_string.cpp",
|
2023-12-07 14:41:55 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_function.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_string_iterator.cpp",
|
2023-12-07 14:41:55 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_object.cpp",
|
2024-02-23 03:40:41 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_set.cpp",
|
2024-02-27 08:23:00 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_map.cpp",
|
2024-04-06 06:34:37 +00:00
|
|
|
"ecmascript/builtins/builtins_shared_typedarray.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_symbol.cpp",
|
|
|
|
"ecmascript/builtins/builtins_typedarray.cpp",
|
|
|
|
"ecmascript/builtins/builtins_weak_map.cpp",
|
2022-05-27 02:26:55 +00:00
|
|
|
"ecmascript/builtins/builtins_weak_ref.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/builtins/builtins_weak_set.cpp",
|
2024-01-24 14:28:54 +00:00
|
|
|
"ecmascript/builtins/shared_builtins.cpp",
|
2022-09-28 01:10:46 +00:00
|
|
|
"ecmascript/byte_array.cpp",
|
2023-11-13 06:30:24 +00:00
|
|
|
"ecmascript/ohos/code_decrypt.cpp",
|
2024-01-29 07:34:21 +00:00
|
|
|
"ecmascript/ohos/enable_aot_list_helper.cpp",
|
2023-04-04 07:53:07 +00:00
|
|
|
"ecmascript/compiler/aot_file/elf_builder.cpp",
|
|
|
|
"ecmascript/compiler/aot_file/elf_reader.cpp",
|
2023-12-27 08:14:14 +00:00
|
|
|
"ecmascript/compiler/aot_file/elf_checker.cpp",
|
2023-04-20 08:03:36 +00:00
|
|
|
"ecmascript/compiler/aot_file/an_file_data_manager.cpp",
|
|
|
|
"ecmascript/compiler/aot_file/an_file_info.cpp",
|
|
|
|
"ecmascript/compiler/aot_file/aot_file_info.cpp",
|
|
|
|
"ecmascript/compiler/aot_file/stub_file_info.cpp",
|
2024-05-10 09:24:05 +00:00
|
|
|
"ecmascript/compiler/aot_file/gdb_jit.cpp",
|
2023-04-20 08:03:36 +00:00
|
|
|
"ecmascript/compiler/aot_file/binary_buffer_parser.cpp",
|
|
|
|
"ecmascript/compiler/aot_file/module_section_des.cpp",
|
|
|
|
"ecmascript/compiler/aot_file/aot_file_manager.cpp",
|
2024-07-29 03:29:20 +00:00
|
|
|
"ecmascript/compiler/aot_file/aot_version.cpp",
|
2023-10-31 06:47:29 +00:00
|
|
|
"ecmascript/compiler/aot_snapshot/aot_snapshot.cpp",
|
|
|
|
"ecmascript/compiler/aot_snapshot/snapshot_constantpool_data.cpp",
|
|
|
|
"ecmascript/compiler/aot_snapshot/snapshot_global_data.cpp",
|
2023-07-04 02:50:04 +00:00
|
|
|
"ecmascript/compiler/pgo_bc_info.cpp",
|
2023-10-31 06:47:29 +00:00
|
|
|
"ecmascript/compiler/pgo_type/pgo_hclass_generator.cpp",
|
|
|
|
"ecmascript/compiler/pgo_type/pgo_type_manager.cpp",
|
|
|
|
"ecmascript/compiler/pgo_type/pgo_type_parser.cpp",
|
|
|
|
"ecmascript/compiler/pgo_type/pgo_type_recorder.cpp",
|
2022-01-04 11:30:40 +00:00
|
|
|
"ecmascript/containers/containers_arraylist.cpp",
|
2024-05-17 09:04:07 +00:00
|
|
|
"ecmascript/containers/containers_bitvector.cpp",
|
2022-03-28 03:12:46 +00:00
|
|
|
"ecmascript/containers/containers_deque.cpp",
|
2022-10-11 09:02:37 +00:00
|
|
|
"ecmascript/containers/containers_errors.cpp",
|
2022-07-19 11:09:48 +00:00
|
|
|
"ecmascript/containers/containers_hashmap.cpp",
|
|
|
|
"ecmascript/containers/containers_hashset.cpp",
|
2022-06-21 02:02:29 +00:00
|
|
|
"ecmascript/containers/containers_lightweightmap.cpp",
|
|
|
|
"ecmascript/containers/containers_lightweightset.cpp",
|
2022-06-02 01:11:52 +00:00
|
|
|
"ecmascript/containers/containers_linked_list.cpp",
|
|
|
|
"ecmascript/containers/containers_list.cpp",
|
2022-04-12 01:39:08 +00:00
|
|
|
"ecmascript/containers/containers_plainarray.cpp",
|
2022-01-04 11:30:40 +00:00
|
|
|
"ecmascript/containers/containers_private.cpp",
|
2022-03-05 02:35:02 +00:00
|
|
|
"ecmascript/containers/containers_queue.cpp",
|
2022-03-28 03:12:46 +00:00
|
|
|
"ecmascript/containers/containers_stack.cpp",
|
2022-02-10 03:02:38 +00:00
|
|
|
"ecmascript/containers/containers_treemap.cpp",
|
|
|
|
"ecmascript/containers/containers_treeset.cpp",
|
2022-05-23 01:49:27 +00:00
|
|
|
"ecmascript/containers/containers_vector.cpp",
|
2023-02-01 09:25:26 +00:00
|
|
|
"ecmascript/date_parse.cpp",
|
2023-12-07 13:26:11 +00:00
|
|
|
"ecmascript/debugger/js_debugger_manager.cpp",
|
2022-11-25 06:44:53 +00:00
|
|
|
"ecmascript/deoptimizer/calleeReg.cpp",
|
2022-11-25 08:51:55 +00:00
|
|
|
"ecmascript/deoptimizer/deoptimizer.cpp",
|
2024-05-08 09:09:22 +00:00
|
|
|
"ecmascript/dfx/dump_code/jit_dump_elf.cpp",
|
2024-07-10 06:56:48 +00:00
|
|
|
"ecmascript/dfx/native_module_failure_info.cpp",
|
2022-07-26 03:40:21 +00:00
|
|
|
"ecmascript/dfx/stackinfo/js_stackinfo.cpp",
|
2022-03-03 14:22:54 +00:00
|
|
|
"ecmascript/dfx/vmstat/caller_stat.cpp",
|
2023-06-04 03:04:08 +00:00
|
|
|
"ecmascript/dfx/vmstat/function_call_timer.cpp",
|
2022-12-14 09:07:53 +00:00
|
|
|
"ecmascript/dfx/vmstat/opt_code_profiler.cpp",
|
2022-03-03 14:22:54 +00:00
|
|
|
"ecmascript/dfx/vmstat/runtime_stat.cpp",
|
|
|
|
"ecmascript/dfx/vm_thread_control.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/dump.cpp",
|
2023-04-15 08:03:59 +00:00
|
|
|
"ecmascript/ecma_context.cpp",
|
2023-05-25 13:43:05 +00:00
|
|
|
"ecmascript/ecma_handle_scope.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/ecma_string.cpp",
|
|
|
|
"ecmascript/ecma_string_table.cpp",
|
|
|
|
"ecmascript/ecma_vm.cpp",
|
2023-11-21 08:00:28 +00:00
|
|
|
"ecmascript/element_accessor.cpp",
|
2023-08-02 01:56:06 +00:00
|
|
|
"ecmascript/elements.cpp",
|
2024-02-07 03:00:56 +00:00
|
|
|
"ecmascript/extractortool/src/source_map.cpp",
|
2022-06-11 12:47:30 +00:00
|
|
|
"ecmascript/frames.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/free_object.cpp",
|
|
|
|
"ecmascript/generator_helper.cpp",
|
2022-07-29 03:13:50 +00:00
|
|
|
"ecmascript/async_generator_helper.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/global_env.cpp",
|
|
|
|
"ecmascript/global_env_constants.cpp",
|
|
|
|
"ecmascript/ic/ic_runtime.cpp",
|
2021-12-17 09:18:10 +00:00
|
|
|
"ecmascript/ic/profile_type_info.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/ic/property_box.cpp",
|
|
|
|
"ecmascript/ic/proto_change_details.cpp",
|
|
|
|
"ecmascript/interpreter/frame_handler.cpp",
|
2022-04-06 11:22:08 +00:00
|
|
|
"ecmascript/interpreter/interpreter.cpp",
|
2022-02-19 02:09:52 +00:00
|
|
|
"ecmascript/interpreter/interpreter_assembly.cpp",
|
2024-05-13 01:40:10 +00:00
|
|
|
"ecmascript/interpreter/interpreter-inl.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/interpreter/slow_runtime_stub.cpp",
|
2023-03-03 02:59:00 +00:00
|
|
|
"ecmascript/intl/locale_helper.cpp",
|
2024-11-05 01:27:31 +00:00
|
|
|
"ecmascript/jit/compile_decision.cpp",
|
2023-12-09 01:13:27 +00:00
|
|
|
"ecmascript/jit/jit.cpp",
|
2024-05-11 04:31:04 +00:00
|
|
|
"ecmascript/jit/jit_dfx.cpp",
|
2023-12-09 01:13:27 +00:00
|
|
|
"ecmascript/jit/jit_task.cpp",
|
2024-04-13 06:35:50 +00:00
|
|
|
"ecmascript/jit/jit_thread.cpp",
|
2024-04-15 06:04:51 +00:00
|
|
|
"ecmascript/jit/jit_profiler.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/jobs/micro_job_queue.cpp",
|
2022-02-06 15:16:08 +00:00
|
|
|
"ecmascript/jspandafile/js_pandafile.cpp",
|
|
|
|
"ecmascript/jspandafile/js_pandafile_manager.cpp",
|
2022-01-30 08:01:33 +00:00
|
|
|
"ecmascript/jspandafile/class_info_extractor.cpp",
|
2022-03-24 08:43:08 +00:00
|
|
|
"ecmascript/jspandafile/debug_info_extractor.cpp",
|
2022-01-30 08:01:33 +00:00
|
|
|
"ecmascript/jspandafile/literal_data_extractor.cpp",
|
|
|
|
"ecmascript/jspandafile/accessor/module_data_accessor.cpp",
|
|
|
|
"ecmascript/jspandafile/panda_file_translator.cpp",
|
|
|
|
"ecmascript/jspandafile/js_pandafile_executor.cpp",
|
|
|
|
"ecmascript/jspandafile/scope_info_extractor.cpp",
|
2022-08-16 13:05:02 +00:00
|
|
|
"ecmascript/jspandafile/method_literal.cpp",
|
2022-08-27 16:23:14 +00:00
|
|
|
"ecmascript/jspandafile/program_object.cpp",
|
2022-07-23 07:52:48 +00:00
|
|
|
"ecmascript/js_api/js_api_arraylist.cpp",
|
|
|
|
"ecmascript/js_api/js_api_arraylist_iterator.cpp",
|
2024-05-17 09:04:07 +00:00
|
|
|
"ecmascript/js_api/js_api_bitvector.cpp",
|
|
|
|
"ecmascript/js_api/js_api_bitvector_iterator.cpp",
|
2022-07-23 07:52:48 +00:00
|
|
|
"ecmascript/js_api/js_api_deque.cpp",
|
|
|
|
"ecmascript/js_api/js_api_deque_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_hashmap.cpp",
|
|
|
|
"ecmascript/js_api/js_api_hashmap_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_hashset.cpp",
|
|
|
|
"ecmascript/js_api/js_api_hashset_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_lightweightmap.cpp",
|
|
|
|
"ecmascript/js_api/js_api_lightweightmap_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_lightweightset.cpp",
|
|
|
|
"ecmascript/js_api/js_api_lightweightset_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_linked_list.cpp",
|
|
|
|
"ecmascript/js_api/js_api_linked_list_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_list.cpp",
|
|
|
|
"ecmascript/js_api/js_api_list_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_plain_array.cpp",
|
|
|
|
"ecmascript/js_api/js_api_plain_array_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_queue.cpp",
|
|
|
|
"ecmascript/js_api/js_api_queue_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_stack.cpp",
|
|
|
|
"ecmascript/js_api/js_api_stack_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_tree_map.cpp",
|
|
|
|
"ecmascript/js_api/js_api_tree_map_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_tree_set.cpp",
|
|
|
|
"ecmascript/js_api/js_api_tree_set_iterator.cpp",
|
|
|
|
"ecmascript/js_api/js_api_vector.cpp",
|
|
|
|
"ecmascript/js_api/js_api_vector_iterator.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_arguments.cpp",
|
|
|
|
"ecmascript/js_array.cpp",
|
2024-03-24 14:17:08 +00:00
|
|
|
"ecmascript/shared_objects/js_shared_array.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_array_iterator.cpp",
|
2024-03-24 14:17:08 +00:00
|
|
|
"ecmascript/shared_objects/js_shared_array_iterator.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_arraybuffer.cpp",
|
2023-01-12 10:49:18 +00:00
|
|
|
"ecmascript/js_async_from_sync_iterator.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_async_function.cpp",
|
2022-03-10 13:25:06 +00:00
|
|
|
"ecmascript/js_bigint.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_dataview.cpp",
|
|
|
|
"ecmascript/js_date.cpp",
|
|
|
|
"ecmascript/js_for_in_iterator.cpp",
|
2022-05-27 02:26:55 +00:00
|
|
|
"ecmascript/js_finalization_registry.cpp",
|
2022-12-05 14:55:52 +00:00
|
|
|
"ecmascript/js_file_path.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_function.cpp",
|
|
|
|
"ecmascript/js_generator_object.cpp",
|
2022-07-29 03:13:50 +00:00
|
|
|
"ecmascript/js_async_generator_object.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_hclass.cpp",
|
|
|
|
"ecmascript/js_iterator.cpp",
|
|
|
|
"ecmascript/js_map.cpp",
|
|
|
|
"ecmascript/js_map_iterator.cpp",
|
2024-03-22 12:02:22 +00:00
|
|
|
"ecmascript/jsnapi_sendable.cpp",
|
2022-08-23 01:56:32 +00:00
|
|
|
"ecmascript/method.cpp",
|
2024-07-11 13:21:48 +00:00
|
|
|
"ecmascript/js_native_pointer.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_object.cpp",
|
|
|
|
"ecmascript/js_primitive_ref.cpp",
|
|
|
|
"ecmascript/js_promise.cpp",
|
|
|
|
"ecmascript/js_proxy.cpp",
|
2022-05-16 04:21:50 +00:00
|
|
|
"ecmascript/js_regexp_iterator.cpp",
|
2022-09-20 08:00:16 +00:00
|
|
|
"ecmascript/js_runtime_options.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/js_set.cpp",
|
|
|
|
"ecmascript/js_set_iterator.cpp",
|
|
|
|
"ecmascript/js_stable_array.cpp",
|
|
|
|
"ecmascript/js_string_iterator.cpp",
|
|
|
|
"ecmascript/js_tagged_value.cpp",
|
|
|
|
"ecmascript/js_thread.cpp",
|
|
|
|
"ecmascript/js_typed_array.cpp",
|
|
|
|
"ecmascript/js_weak_container.cpp",
|
|
|
|
"ecmascript/linked_hash_table.cpp",
|
2022-08-08 08:20:33 +00:00
|
|
|
"ecmascript/log.cpp",
|
2021-09-07 14:24:16 +00:00
|
|
|
"ecmascript/message_string.cpp",
|
2024-05-31 07:27:52 +00:00
|
|
|
"ecmascript/mem/assert_scope.cpp",
|
2022-04-20 08:17:00 +00:00
|
|
|
"ecmascript/mem/barriers.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/c_string.cpp",
|
|
|
|
"ecmascript/mem/chunk.cpp",
|
2022-04-11 09:49:34 +00:00
|
|
|
"ecmascript/mem/dyn_chunk.cpp",
|
2022-02-16 07:34:31 +00:00
|
|
|
"ecmascript/mem/full_gc.cpp",
|
2021-12-17 09:18:10 +00:00
|
|
|
"ecmascript/mem/concurrent_marker.cpp",
|
2021-09-24 06:31:54 +00:00
|
|
|
"ecmascript/mem/concurrent_sweeper.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/free_object_list.cpp",
|
2022-02-09 08:48:39 +00:00
|
|
|
"ecmascript/mem/free_object_set.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/gc_stats.cpp",
|
2024-09-05 07:32:14 +00:00
|
|
|
"ecmascript/mem/idle_gc_trigger.cpp",
|
2024-03-27 08:57:09 +00:00
|
|
|
"ecmascript/mem/gc_key_stats.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/heap.cpp",
|
2022-02-17 07:11:23 +00:00
|
|
|
"ecmascript/mem/heap_region_allocator.cpp",
|
2023-04-23 01:52:14 +00:00
|
|
|
"ecmascript/mem/incremental_marker.cpp",
|
2022-02-22 12:16:40 +00:00
|
|
|
"ecmascript/mem/linear_space.cpp",
|
2023-12-09 01:13:27 +00:00
|
|
|
"ecmascript/mem/machine_code.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/mem_controller.cpp",
|
2024-09-05 07:32:14 +00:00
|
|
|
"ecmascript/mem/shared_mem_controller.cpp",
|
2024-07-29 07:43:15 +00:00
|
|
|
"ecmascript/mem/mem_controller_utils.cpp",
|
2022-04-16 10:00:17 +00:00
|
|
|
"ecmascript/mem/mem_map_allocator.cpp",
|
2022-02-17 07:11:23 +00:00
|
|
|
"ecmascript/mem/native_area_allocator.cpp",
|
2022-04-25 11:18:14 +00:00
|
|
|
"ecmascript/mem/parallel_evacuator.cpp",
|
2021-12-17 09:18:10 +00:00
|
|
|
"ecmascript/mem/parallel_marker.cpp",
|
2022-04-25 14:03:36 +00:00
|
|
|
"ecmascript/mem/partial_gc.cpp",
|
2023-09-20 07:26:49 +00:00
|
|
|
"ecmascript/mem/regexp_cached_chunk.cpp",
|
2024-04-02 07:34:31 +00:00
|
|
|
"ecmascript/mem/shared_heap/shared_concurrent_marker.cpp",
|
2024-02-02 11:36:16 +00:00
|
|
|
"ecmascript/mem/shared_heap/shared_concurrent_sweeper.cpp",
|
2024-02-08 03:57:15 +00:00
|
|
|
"ecmascript/mem/shared_heap/shared_gc.cpp",
|
2024-07-28 15:34:53 +00:00
|
|
|
"ecmascript/mem/shared_heap/shared_full_gc.cpp",
|
2024-02-08 03:57:15 +00:00
|
|
|
"ecmascript/mem/shared_heap/shared_gc_marker.cpp",
|
2024-02-02 11:36:16 +00:00
|
|
|
"ecmascript/mem/shared_heap/shared_space.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/space.cpp",
|
2022-02-22 12:16:40 +00:00
|
|
|
"ecmascript/mem/sparse_space.cpp",
|
2024-04-20 10:37:13 +00:00
|
|
|
"ecmascript/mem/thread_local_allocation_buffer.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/mem/verification.cpp",
|
2024-01-23 13:17:23 +00:00
|
|
|
"ecmascript/mem/work_space_chunk.cpp",
|
2022-04-26 05:59:49 +00:00
|
|
|
"ecmascript/mem/work_manager.cpp",
|
2023-05-19 07:54:22 +00:00
|
|
|
"ecmascript/mem/allocation_inspector.cpp",
|
2024-07-09 22:52:07 +00:00
|
|
|
"ecmascript/mem/jit_fort.cpp",
|
2022-01-30 08:01:33 +00:00
|
|
|
"ecmascript/module/js_module_manager.cpp",
|
2023-06-01 11:30:08 +00:00
|
|
|
"ecmascript/module/js_dynamic_import.cpp",
|
2022-01-30 08:01:33 +00:00
|
|
|
"ecmascript/module/js_module_namespace.cpp",
|
|
|
|
"ecmascript/module/js_module_source_text.cpp",
|
2023-07-09 06:49:22 +00:00
|
|
|
"ecmascript/module/js_module_deregister.cpp",
|
2024-02-19 07:30:31 +00:00
|
|
|
"ecmascript/module/js_shared_module.cpp",
|
|
|
|
"ecmascript/module/js_shared_module_manager.cpp",
|
2023-03-05 10:05:15 +00:00
|
|
|
"ecmascript/module/module_data_extractor.cpp",
|
2024-07-21 15:10:15 +00:00
|
|
|
"ecmascript/module/module_logger.cpp",
|
2024-04-15 04:08:11 +00:00
|
|
|
"ecmascript/module/module_manager_helper.cpp",
|
2023-07-12 12:34:30 +00:00
|
|
|
"ecmascript/module/module_path_helper.cpp",
|
2024-07-21 15:10:15 +00:00
|
|
|
"ecmascript/module/module_tools.cpp",
|
2024-03-06 11:02:41 +00:00
|
|
|
"ecmascript/module/napi_module_loader.cpp",
|
2024-10-28 06:19:04 +00:00
|
|
|
"ecmascript/module/module_resolver.cpp",
|
2024-01-30 13:49:51 +00:00
|
|
|
"ecmascript/mutator_lock.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/napi/jsnapi.cpp",
|
2023-12-04 11:34:23 +00:00
|
|
|
"ecmascript/napi/jsnapi_expo.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/object_factory.cpp",
|
|
|
|
"ecmascript/object_operator.cpp",
|
2022-11-29 06:28:34 +00:00
|
|
|
"ecmascript/patch/patch_loader.cpp",
|
|
|
|
"ecmascript/patch/quick_fix_manager.cpp",
|
2024-05-10 06:40:22 +00:00
|
|
|
"ecmascript/patch/quick_fix_helper.cpp",
|
2023-08-31 08:51:47 +00:00
|
|
|
"ecmascript/pgo_profiler/ap_file/pgo_file_info.cpp",
|
2023-02-09 13:47:15 +00:00
|
|
|
"ecmascript/pgo_profiler/pgo_profiler.cpp",
|
2023-05-15 08:48:14 +00:00
|
|
|
"ecmascript/pgo_profiler/pgo_profiler_decoder.cpp",
|
|
|
|
"ecmascript/pgo_profiler/pgo_profiler_encoder.cpp",
|
2023-02-09 13:47:15 +00:00
|
|
|
"ecmascript/pgo_profiler/pgo_profiler_info.cpp",
|
2023-06-01 08:27:41 +00:00
|
|
|
"ecmascript/pgo_profiler/pgo_profiler_layout.cpp",
|
2023-07-05 15:18:05 +00:00
|
|
|
"ecmascript/pgo_profiler/pgo_profiler_manager.cpp",
|
2023-08-31 08:51:47 +00:00
|
|
|
"ecmascript/pgo_profiler/pgo_utils.cpp",
|
|
|
|
"ecmascript/pgo_profiler/ap_file/pgo_method_type_set.cpp",
|
|
|
|
"ecmascript/pgo_profiler/types/pgo_profile_type.cpp",
|
2023-09-28 09:02:15 +00:00
|
|
|
"ecmascript/property_accessor.cpp",
|
2023-11-16 07:12:09 +00:00
|
|
|
"ecmascript/serializer/base_deserializer.cpp",
|
|
|
|
"ecmascript/serializer/base_serializer.cpp",
|
|
|
|
"ecmascript/serializer/value_serializer.cpp",
|
2024-01-24 14:28:54 +00:00
|
|
|
"ecmascript/shared_object_factory.cpp",
|
2024-02-27 08:23:00 +00:00
|
|
|
"ecmascript/shared_objects/js_shared_map.cpp",
|
|
|
|
"ecmascript/shared_objects/js_shared_map_iterator.cpp",
|
2024-02-23 03:40:41 +00:00
|
|
|
"ecmascript/shared_objects/js_shared_set.cpp",
|
|
|
|
"ecmascript/shared_objects/js_shared_set_iterator.cpp",
|
2024-04-07 14:06:42 +00:00
|
|
|
"ecmascript/shared_objects/js_sendable_arraybuffer.cpp",
|
2022-11-28 04:30:50 +00:00
|
|
|
"ecmascript/stackmap/ark_stackmap_builder.cpp",
|
|
|
|
"ecmascript/stackmap/ark_stackmap_parser.cpp",
|
2024-02-22 02:48:59 +00:00
|
|
|
"ecmascript/stackmap/litecg/litecg_stackmap_type.cpp",
|
|
|
|
"ecmascript/stackmap/llvm/llvm_stackmap_parser.cpp",
|
|
|
|
"ecmascript/stackmap/llvm/llvm_stackmap_type.cpp",
|
2024-04-12 10:32:58 +00:00
|
|
|
"ecmascript/sustaining_js_handle.cpp",
|
2022-03-23 07:43:38 +00:00
|
|
|
"ecmascript/taskpool/taskpool.cpp",
|
|
|
|
"ecmascript/taskpool/runner.cpp",
|
|
|
|
"ecmascript/taskpool/task_queue.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/layout_info.cpp",
|
|
|
|
"ecmascript/regexp/regexp_executor.cpp",
|
|
|
|
"ecmascript/regexp/regexp_opcode.cpp",
|
|
|
|
"ecmascript/regexp/regexp_parser.cpp",
|
|
|
|
"ecmascript/regexp/regexp_parser_cache.cpp",
|
2024-04-02 07:34:31 +00:00
|
|
|
"ecmascript/daemon/daemon_thread.cpp",
|
2024-01-26 10:30:47 +00:00
|
|
|
"ecmascript/runtime.cpp",
|
2024-01-24 13:24:07 +00:00
|
|
|
"ecmascript/runtime_lock.cpp",
|
2023-11-17 01:53:05 +00:00
|
|
|
"ecmascript/global_index_map.cpp",
|
2022-04-13 03:53:13 +00:00
|
|
|
"ecmascript/shared_mm/shared_mm.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/tagged_dictionary.cpp",
|
2022-07-19 11:09:48 +00:00
|
|
|
"ecmascript/tagged_hash_array.cpp",
|
2022-06-02 01:11:52 +00:00
|
|
|
"ecmascript/tagged_list.cpp",
|
2022-07-19 11:09:48 +00:00
|
|
|
"ecmascript/tagged_node.cpp",
|
2024-07-11 13:21:48 +00:00
|
|
|
"ecmascript/tagged_array.cpp",
|
2022-02-10 03:02:38 +00:00
|
|
|
"ecmascript/tagged_tree.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/template_string.cpp",
|
2023-03-08 02:22:03 +00:00
|
|
|
"ecmascript/vtable.cpp",
|
2022-05-25 14:03:38 +00:00
|
|
|
"ecmascript/waiter_list.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
"ecmascript/weak_vector.cpp",
|
2022-03-16 10:12:15 +00:00
|
|
|
"ecmascript/stubs/runtime_stubs.cpp",
|
2022-05-17 01:48:13 +00:00
|
|
|
"ecmascript/stubs/test_runtime_stubs.cpp",
|
2022-07-07 09:29:10 +00:00
|
|
|
"ecmascript/builtins/builtins_cjs_module.cpp",
|
|
|
|
"ecmascript/builtins/builtins_cjs_require.cpp",
|
|
|
|
"ecmascript/builtins/builtins_cjs_exports.cpp",
|
2022-06-08 02:59:06 +00:00
|
|
|
"ecmascript/require/js_cjs_module_cache.cpp",
|
|
|
|
"ecmascript/require/js_cjs_module.cpp",
|
|
|
|
"ecmascript/require/js_require_manager.cpp",
|
2021-09-04 08:06:49 +00:00
|
|
|
]
|
|
|
|
|
2022-06-25 08:10:35 +00:00
|
|
|
hitrace_scope_source = []
|
|
|
|
if (is_ohos && is_standard_system && enable_hitrace) {
|
|
|
|
hitrace_scope_source += [ "ecmascript/jobs/hitrace_scope.cpp" ]
|
|
|
|
}
|
|
|
|
|
2022-08-13 09:02:10 +00:00
|
|
|
ecma_debugger_source = [
|
2022-09-20 11:25:15 +00:00
|
|
|
"ecmascript/debugger/debugger_api.cpp",
|
|
|
|
"ecmascript/debugger/js_debugger.cpp",
|
2023-07-21 08:46:11 +00:00
|
|
|
"ecmascript/debugger/dropframe_manager.cpp",
|
2022-09-27 14:47:24 +00:00
|
|
|
"ecmascript/debugger/hot_reload_manager.cpp",
|
2022-08-13 09:02:10 +00:00
|
|
|
]
|
2022-02-26 03:08:37 +00:00
|
|
|
|
2023-02-15 09:17:18 +00:00
|
|
|
ecma_profiler_source = [ "ecmascript/napi/dfx_jsnapi.cpp" ]
|
2023-12-20 09:26:40 +00:00
|
|
|
if (!is_mingw && !is_mac && target_os != "ios") {
|
2023-02-15 09:17:18 +00:00
|
|
|
if (ark_compile_mode == "debug") {
|
|
|
|
ecma_profiler_source += [
|
|
|
|
"ecmascript/dfx/cpu_profiler/cpu_profiler.cpp",
|
|
|
|
"ecmascript/dfx/cpu_profiler/sampling_processor.cpp",
|
|
|
|
"ecmascript/dfx/cpu_profiler/samples_record.cpp",
|
|
|
|
"ecmascript/dfx/hprof/file_stream.cpp",
|
|
|
|
"ecmascript/dfx/hprof/heap_profiler.cpp",
|
|
|
|
"ecmascript/dfx/hprof/heap_profiler_interface.cpp",
|
|
|
|
"ecmascript/dfx/hprof/heap_root_visitor.cpp",
|
2023-03-25 19:16:05 +00:00
|
|
|
"ecmascript/dfx/hprof/heap_sampling.cpp",
|
2023-02-15 09:17:18 +00:00
|
|
|
"ecmascript/dfx/hprof/heap_snapshot.cpp",
|
|
|
|
"ecmascript/dfx/hprof/heap_snapshot_json_serializer.cpp",
|
|
|
|
"ecmascript/dfx/hprof/heap_tracker.cpp",
|
|
|
|
"ecmascript/dfx/hprof/string_hashmap.cpp",
|
2023-03-25 19:16:05 +00:00
|
|
|
"ecmascript/dfx/stackinfo/js_stackgetter.cpp",
|
2023-02-15 09:17:18 +00:00
|
|
|
"ecmascript/base/block_hook_scope.cpp",
|
2023-12-01 02:03:48 +00:00
|
|
|
"ecmascript/dfx/tracing/tracing.cpp",
|
2023-02-15 09:17:18 +00:00
|
|
|
]
|
|
|
|
}
|
2022-02-26 03:08:37 +00:00
|
|
|
}
|
2021-09-27 01:22:23 +00:00
|
|
|
|
2023-02-08 09:32:47 +00:00
|
|
|
ecma_profiler_source += [
|
|
|
|
"ecmascript/snapshot/mem/snapshot.cpp",
|
|
|
|
"ecmascript/snapshot/mem/snapshot_env.cpp",
|
|
|
|
"ecmascript/snapshot/mem/snapshot_processor.cpp",
|
|
|
|
]
|
2022-12-16 03:39:04 +00:00
|
|
|
|
2023-11-11 12:58:45 +00:00
|
|
|
ecma_stackinfo_source = []
|
|
|
|
|
|
|
|
ecma_stackinfo_source = [
|
|
|
|
"ecmascript/extractortool/src/extractor.cpp",
|
|
|
|
"ecmascript/extractortool/src/file_mapper.cpp",
|
|
|
|
"ecmascript/extractortool/src/file_path_utils.cpp",
|
|
|
|
"ecmascript/extractortool/src/zip_file_reader_io.cpp",
|
|
|
|
"ecmascript/extractortool/src/zip_file_reader_mem.cpp",
|
|
|
|
"ecmascript/extractortool/src/zip_file_reader.cpp",
|
|
|
|
"ecmascript/extractortool/src/zip_file.cpp",
|
|
|
|
]
|
|
|
|
|
2022-11-12 10:20:06 +00:00
|
|
|
ecma_platform_source = []
|
2023-02-13 07:06:13 +00:00
|
|
|
|
2023-09-27 07:07:10 +00:00
|
|
|
ecma_platform_source += [
|
|
|
|
"ecmascript/platform/common/map.cpp",
|
|
|
|
"ecmascript/platform/common/mutex.cpp",
|
2024-06-06 09:04:16 +00:00
|
|
|
"ecmascript/platform/common/filesystem.cpp",
|
2024-10-21 01:28:52 +00:00
|
|
|
"ecmascript/platform/common/ffrt.cpp",
|
2023-09-27 07:07:10 +00:00
|
|
|
]
|
2023-04-04 07:53:07 +00:00
|
|
|
|
|
|
|
config("include_llvm") {
|
|
|
|
if (compile_llvm_online) {
|
|
|
|
include_dirs = [
|
|
|
|
"//third_party/third_party_llvm-project/build/include",
|
|
|
|
"//third_party/third_party_llvm-project/llvm/include/",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
if (is_mingw) {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_windows/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_windows/build/include",
|
|
|
|
]
|
2023-04-18 03:06:55 +00:00
|
|
|
} else if (is_mac || is_ios) {
|
2023-04-04 07:53:07 +00:00
|
|
|
if (host_cpu == "arm64") {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_darwin_arm64/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_darwin_arm64/build/include",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_darwin_x64/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_darwin_x64/build/include",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
} else {
|
2024-07-09 02:59:57 +00:00
|
|
|
if (host_cpu == "arm64" && host_os == "linux") {
|
2024-10-21 11:59:09 +00:00
|
|
|
if (current_os == "ohos") {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_aarch64/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_aarch64/build/include",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_linux_aarch64/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_linux_aarch64/build/include",
|
|
|
|
]
|
|
|
|
}
|
2023-04-04 07:53:07 +00:00
|
|
|
} else {
|
2024-06-13 03:05:25 +00:00
|
|
|
if (current_cpu == "arm64") {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_aarch64/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts_aarch64/build/include",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
include_dirs = [
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts/llvm/include",
|
|
|
|
"//prebuilts/ark_tools/ark_js_prebuilts/llvm_prebuilts/build/include",
|
|
|
|
]
|
|
|
|
}
|
2023-04-04 07:53:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-08 08:15:24 +00:00
|
|
|
cflags_cc = [ "-DARK_GC_SUPPORT" ]
|
2023-04-04 07:53:07 +00:00
|
|
|
}
|
|
|
|
|
2022-11-12 10:20:06 +00:00
|
|
|
if (is_mingw) {
|
|
|
|
ecma_platform_source += [
|
2023-01-12 07:29:25 +00:00
|
|
|
"ecmascript/platform/windows/backtrace.cpp",
|
2022-11-12 10:20:06 +00:00
|
|
|
"ecmascript/platform/windows/map.cpp",
|
|
|
|
"ecmascript/platform/windows/file.cpp",
|
|
|
|
"ecmascript/platform/windows/os.cpp",
|
|
|
|
"ecmascript/platform/windows/time.cpp",
|
2023-09-25 13:01:50 +00:00
|
|
|
"ecmascript/platform/windows/log.cpp",
|
2024-07-08 14:10:37 +00:00
|
|
|
"ecmascript/platform/windows/aot_crash_info.cpp",
|
2022-11-12 10:20:06 +00:00
|
|
|
]
|
|
|
|
} else {
|
|
|
|
ecma_platform_source += [
|
|
|
|
"ecmascript/platform/unix/file.cpp",
|
|
|
|
"ecmascript/platform/unix/map.cpp",
|
|
|
|
"ecmascript/platform/unix/time.cpp",
|
2024-07-08 14:10:37 +00:00
|
|
|
"ecmascript/platform/unix/aot_crash_info.cpp",
|
2022-11-12 10:20:06 +00:00
|
|
|
]
|
2023-09-25 13:01:50 +00:00
|
|
|
if (is_mac) {
|
2023-01-12 07:29:25 +00:00
|
|
|
ecma_platform_source += [
|
|
|
|
"ecmascript/platform/unix/mac/os.cpp",
|
|
|
|
"ecmascript/platform/unix/mac/backtrace.cpp",
|
2023-09-25 13:01:50 +00:00
|
|
|
"ecmascript/platform/unix/mac/log.cpp",
|
|
|
|
]
|
|
|
|
} else if (target_os == "ios") {
|
|
|
|
ecma_platform_source += [
|
|
|
|
"ecmascript/platform/unix/mac/os.cpp",
|
|
|
|
"ecmascript/platform/unix/mac/backtrace.cpp",
|
|
|
|
"ecmascript/platform/common/log.cpp",
|
2023-01-12 07:29:25 +00:00
|
|
|
]
|
2023-02-27 02:24:16 +00:00
|
|
|
} else if (is_ohos || target_os == "android") {
|
2023-02-06 03:15:03 +00:00
|
|
|
ecma_platform_source += [
|
|
|
|
"ecmascript/platform/unix/linux/os.cpp",
|
|
|
|
"ecmascript/platform/unix/ohos/backtrace.cpp",
|
2023-09-25 13:01:50 +00:00
|
|
|
"ecmascript/platform/common/log.cpp",
|
2023-02-06 03:15:03 +00:00
|
|
|
]
|
|
|
|
} else if (is_linux) {
|
|
|
|
ecma_platform_source += [
|
|
|
|
"ecmascript/platform/unix/linux/os.cpp",
|
|
|
|
"ecmascript/platform/unix/linux/backtrace.cpp",
|
2023-09-25 13:01:50 +00:00
|
|
|
"ecmascript/platform/common/log.cpp",
|
2023-02-06 03:15:03 +00:00
|
|
|
]
|
2022-11-12 10:20:06 +00:00
|
|
|
} else {
|
2023-02-06 03:15:03 +00:00
|
|
|
print("Invalid os!")
|
|
|
|
assert(false)
|
2022-11-12 10:20:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-31 09:59:11 +00:00
|
|
|
if (enable_target_compilation) {
|
|
|
|
ecma_platform_source += [ "ecmascript/platform/unix/ohos/directory.cpp" ]
|
|
|
|
} else if (is_mingw) {
|
|
|
|
ecma_platform_source += [ "ecmascript/platform/windows/directory.cpp" ]
|
|
|
|
} else {
|
|
|
|
ecma_platform_source += [ "ecmascript/platform/unix/directory.cpp" ]
|
|
|
|
}
|
|
|
|
|
2024-02-06 07:55:27 +00:00
|
|
|
libark_jsruntime_common_set("libark_jsruntime_set") {
|
|
|
|
}
|
2023-05-27 13:42:14 +00:00
|
|
|
|
2024-02-06 07:55:27 +00:00
|
|
|
libark_jsruntime_common_set("libark_jsruntime_arm_set") {
|
2024-10-08 08:15:24 +00:00
|
|
|
if (enable_sanitize) {
|
2024-02-06 07:55:27 +00:00
|
|
|
sanitize = {
|
|
|
|
ubsan = true
|
|
|
|
}
|
2023-06-17 13:22:29 +00:00
|
|
|
}
|
2021-09-04 08:06:49 +00:00
|
|
|
}
|
|
|
|
|
2024-02-06 07:55:27 +00:00
|
|
|
libark_jsruntime_intl_common_set("libark_js_intl_set") {
|
|
|
|
}
|
2023-03-18 11:29:35 +00:00
|
|
|
|
2024-02-06 07:55:27 +00:00
|
|
|
libark_jsruntime_intl_common_set("libark_js_intl_arm_set") {
|
2024-10-08 08:15:24 +00:00
|
|
|
if (enable_sanitize) {
|
2024-02-06 07:55:27 +00:00
|
|
|
sanitize = {
|
|
|
|
ubsan = true
|
|
|
|
}
|
2023-06-11 08:32:32 +00:00
|
|
|
}
|
2022-04-13 02:56:16 +00:00
|
|
|
}
|
|
|
|
|
2023-03-30 01:41:55 +00:00
|
|
|
config("ark_jsruntime_test_nolto") {
|
|
|
|
cflags_cc = [ "-fno-lto" ]
|
|
|
|
}
|
|
|
|
|
2023-01-26 15:29:36 +00:00
|
|
|
ohos_source_set("libark_jsruntime_test_set") {
|
2024-03-14 01:20:39 +00:00
|
|
|
stack_protector_ret = false
|
2021-09-27 01:22:23 +00:00
|
|
|
sources = ecma_source
|
|
|
|
sources += intl_sources
|
2022-02-26 03:08:37 +00:00
|
|
|
sources += ecma_profiler_source
|
|
|
|
sources += ecma_debugger_source
|
2023-03-18 11:29:35 +00:00
|
|
|
sources += hitrace_scope_source
|
2022-11-12 10:20:06 +00:00
|
|
|
sources += ecma_platform_source
|
2021-09-27 01:22:23 +00:00
|
|
|
|
2022-11-02 05:54:29 +00:00
|
|
|
defines = [ "OHOS_UNIT_TEST" ]
|
2023-11-11 12:58:45 +00:00
|
|
|
|
|
|
|
if (is_ohos) {
|
|
|
|
sources += ecma_stackinfo_source
|
|
|
|
}
|
|
|
|
|
2023-04-18 03:50:29 +00:00
|
|
|
if (is_ohos && is_standard_system) {
|
2024-09-20 06:51:35 +00:00
|
|
|
stub_an_file_path =
|
|
|
|
"${arkcompiler_lib64_path}/${arkcompiler_relative_lib_path}/stub.an"
|
2023-04-18 03:50:29 +00:00
|
|
|
} else {
|
|
|
|
stub_an_file_path =
|
|
|
|
rebase_path("$root_gen_dir/arkcompiler/ets_runtime/stub.an")
|
|
|
|
}
|
|
|
|
defines += [ "STUB_AN_FILE=\"${stub_an_file_path}\"" ]
|
2023-05-30 12:38:41 +00:00
|
|
|
|
2024-03-19 06:59:49 +00:00
|
|
|
deps = []
|
2024-03-29 11:24:01 +00:00
|
|
|
external_deps = [ "zlib:libz" ]
|
2024-04-15 03:30:49 +00:00
|
|
|
if (enable_hilog) {
|
|
|
|
external_deps += [ "hilog:libhilog" ]
|
|
|
|
}
|
|
|
|
|
2024-02-01 08:59:42 +00:00
|
|
|
if (defined(is_arkui_x) && is_arkui_x) {
|
2024-03-19 06:59:49 +00:00
|
|
|
deps += [
|
2024-02-01 08:59:42 +00:00
|
|
|
"$ark_third_party_root/icu/icu4c:static_icui18n",
|
|
|
|
"$ark_third_party_root/icu/icu4c:static_icuuc",
|
|
|
|
]
|
|
|
|
} else {
|
2024-03-19 06:59:49 +00:00
|
|
|
external_deps += [
|
|
|
|
"icu:shared_icui18n",
|
|
|
|
"icu:shared_icuuc",
|
2024-02-01 08:59:42 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2024-01-15 03:36:18 +00:00
|
|
|
if (enable_dump_in_faultlog) {
|
|
|
|
external_deps += [ "libuv:uv" ]
|
|
|
|
}
|
|
|
|
|
2023-11-03 08:50:37 +00:00
|
|
|
if (!is_arkui_x) {
|
2023-06-11 08:32:32 +00:00
|
|
|
external_deps += [ "runtime_core:arkfile_header_deps" ]
|
|
|
|
} else {
|
|
|
|
deps += [ "$ark_root/libpandafile:arkfile_header_deps" ]
|
|
|
|
}
|
2021-09-27 01:22:23 +00:00
|
|
|
|
2022-10-31 12:31:21 +00:00
|
|
|
if (enable_coverage) {
|
|
|
|
ldflags = [ "--coverage" ]
|
|
|
|
cflags_cc = [ "--coverage" ]
|
|
|
|
}
|
|
|
|
|
2022-08-04 07:37:10 +00:00
|
|
|
if ((current_cpu == "amd64" || current_cpu == "x64" ||
|
|
|
|
current_cpu == "x86_64" || current_cpu == "arm64") && !is_mingw &&
|
2023-12-24 07:22:32 +00:00
|
|
|
!is_mac && target_os != "ios") {
|
2023-05-27 13:42:14 +00:00
|
|
|
deps += [ "ecmascript/compiler:libark_stub_set" ]
|
2022-06-25 12:22:10 +00:00
|
|
|
} else {
|
|
|
|
deps += [ "$js_root/ecmascript/compiler:libark_mock_stub_set" ]
|
|
|
|
}
|
|
|
|
|
2023-07-06 07:31:12 +00:00
|
|
|
if (enable_leak_check || is_asan) {
|
2023-01-12 07:29:25 +00:00
|
|
|
defines += [ "ECMASCRIPT_ENABLE_HANDLE_LEAK_CHECK" ]
|
2022-09-06 04:55:08 +00:00
|
|
|
}
|
|
|
|
|
2023-01-26 15:29:36 +00:00
|
|
|
public_configs = [ "$js_root:ark_jsruntime_public_config" ]
|
2023-04-04 07:53:07 +00:00
|
|
|
public_configs += [ ":include_llvm" ]
|
2023-01-26 15:29:36 +00:00
|
|
|
|
|
|
|
configs = [
|
2022-05-12 13:57:08 +00:00
|
|
|
"$js_root:ark_jsruntime_common_config",
|
2022-07-05 09:18:30 +00:00
|
|
|
"$js_root:asm_interp_enable_config",
|
2022-09-22 08:43:30 +00:00
|
|
|
"$js_root:icu_path_test_config",
|
2023-03-30 01:41:55 +00:00
|
|
|
"$js_root:ark_jsruntime_test_nolto",
|
2021-09-27 01:22:23 +00:00
|
|
|
]
|
2023-03-18 11:29:35 +00:00
|
|
|
|
2023-05-31 09:59:11 +00:00
|
|
|
if (enable_target_compilation) {
|
|
|
|
external_deps += [ "c_utils:utils" ]
|
|
|
|
}
|
|
|
|
|
2023-03-18 11:29:35 +00:00
|
|
|
# hiviewdfx libraries
|
2023-05-27 13:42:14 +00:00
|
|
|
external_deps += hiviewdfx_ext_deps
|
2023-03-18 11:29:35 +00:00
|
|
|
deps += hiviewdfx_deps
|
2023-06-21 02:53:26 +00:00
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
2021-09-27 01:22:23 +00:00
|
|
|
}
|
|
|
|
|
2023-01-26 15:29:36 +00:00
|
|
|
ohos_source_set("libark_jsruntime_static") {
|
2024-03-14 01:20:39 +00:00
|
|
|
stack_protector_ret = false
|
2024-10-08 08:15:24 +00:00
|
|
|
if (enable_sanitize) {
|
2024-02-06 07:55:27 +00:00
|
|
|
sanitize = {
|
|
|
|
ubsan = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-13 20:11:47 +00:00
|
|
|
if (is_ohos && is_standard_system) {
|
|
|
|
deps = [
|
|
|
|
":libark_js_intl_arm_set",
|
|
|
|
":libark_jsruntime_arm_set",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
# in this case libark_jsruntime_arm_set and libark_jsruntime_set are identical
|
|
|
|
deps = [
|
|
|
|
":libark_js_intl_set",
|
|
|
|
":libark_jsruntime_set",
|
|
|
|
]
|
|
|
|
}
|
2023-06-11 08:32:32 +00:00
|
|
|
external_deps = []
|
2023-11-03 08:50:37 +00:00
|
|
|
if (!is_arkui_x) {
|
2023-06-11 08:32:32 +00:00
|
|
|
external_deps += [ "runtime_core:arkfile_header_deps" ]
|
|
|
|
} else {
|
|
|
|
deps += [ "$ark_root/libpandafile:arkfile_header_deps" ]
|
2024-01-09 07:35:53 +00:00
|
|
|
all_dependent_configs = [ ":ark_jsruntime_public_config" ]
|
2023-06-11 08:32:32 +00:00
|
|
|
}
|
2022-05-12 13:57:08 +00:00
|
|
|
|
2023-01-26 15:29:36 +00:00
|
|
|
public_configs = [ "$js_root:ark_jsruntime_public_config" ]
|
|
|
|
|
2024-06-04 06:49:36 +00:00
|
|
|
if (!is_ohos) {
|
|
|
|
if ((current_cpu == "amd64" || current_cpu == "x64" ||
|
|
|
|
current_cpu == "x86_64" || current_cpu == "arm64") && !is_mingw &&
|
|
|
|
!is_mac && target_os != "ios") {
|
|
|
|
deps += [ "ecmascript/compiler:libark_stub_set" ]
|
|
|
|
} else {
|
|
|
|
deps += [ "$js_root/ecmascript/compiler:libark_mock_stub_set" ]
|
|
|
|
}
|
2022-06-25 12:22:10 +00:00
|
|
|
}
|
2023-05-27 13:42:14 +00:00
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
2022-10-10 02:08:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_shared_library("libark_jsruntime") {
|
2024-03-14 01:20:39 +00:00
|
|
|
stack_protector_ret = false
|
2024-10-08 08:15:24 +00:00
|
|
|
if (enable_sanitize) {
|
2024-02-06 07:55:27 +00:00
|
|
|
sanitize = {
|
|
|
|
ubsan = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-29 07:00:16 +00:00
|
|
|
deps = [ ":libark_jsruntime_static" ]
|
2023-06-11 08:32:32 +00:00
|
|
|
external_deps = []
|
2024-10-14 11:48:29 +00:00
|
|
|
if (is_arkui_x && target_os == "ios") {
|
2024-03-29 07:00:16 +00:00
|
|
|
deps += [ "$ark_third_party_root/bounds_checking_function:libsec_static" ]
|
|
|
|
} else {
|
|
|
|
external_deps += [ "bounds_checking_function:libsec_shared" ]
|
|
|
|
}
|
|
|
|
|
2023-11-03 08:50:37 +00:00
|
|
|
if (!is_arkui_x) {
|
2024-09-22 12:18:06 +00:00
|
|
|
external_deps += [ "runtime_core:libarkfile_runtime_static" ]
|
2023-06-11 08:32:32 +00:00
|
|
|
} else {
|
2024-09-22 12:18:06 +00:00
|
|
|
deps += [ "$ark_root/libpandafile:libarkfile_runtime_static" ]
|
2023-06-11 08:32:32 +00:00
|
|
|
}
|
2022-08-18 07:41:19 +00:00
|
|
|
|
2023-11-22 08:53:30 +00:00
|
|
|
all_dependent_configs = [ ":ark_jsruntime_public_config" ]
|
2024-03-19 06:59:49 +00:00
|
|
|
public_configs = [ ":ark_jsruntime_public_config" ]
|
2023-01-26 15:29:36 +00:00
|
|
|
|
2023-03-18 11:29:35 +00:00
|
|
|
if (is_ohos && is_standard_system && !is_debug) {
|
|
|
|
version_script = "libark_jsruntime.map"
|
2022-01-20 11:11:24 +00:00
|
|
|
}
|
|
|
|
|
2023-03-18 11:29:35 +00:00
|
|
|
# hiviewdfx libraries
|
2023-05-27 13:42:14 +00:00
|
|
|
external_deps += hiviewdfx_ext_deps
|
2023-03-18 11:29:35 +00:00
|
|
|
deps += hiviewdfx_deps
|
|
|
|
|
2023-02-10 07:38:16 +00:00
|
|
|
if (!enable_ark_intl) {
|
|
|
|
external_deps += [ "i18n:intl_util" ]
|
|
|
|
}
|
|
|
|
|
2022-06-20 09:59:16 +00:00
|
|
|
install_enable = true
|
|
|
|
|
|
|
|
if (!is_mingw && !is_mac) {
|
|
|
|
output_extension = "so"
|
|
|
|
}
|
|
|
|
if (!is_standard_system) {
|
|
|
|
relative_install_dir = "ark"
|
|
|
|
}
|
2022-10-15 11:24:00 +00:00
|
|
|
|
2023-04-17 06:59:33 +00:00
|
|
|
if (target_os == "android" && !ark_standalone_build) {
|
2023-03-24 06:40:20 +00:00
|
|
|
libs = [ "log" ]
|
2023-02-15 09:17:18 +00:00
|
|
|
version_script = "libark_jsruntime.map"
|
2022-10-15 11:24:00 +00:00
|
|
|
}
|
2024-02-01 08:59:42 +00:00
|
|
|
if (ark_standalone_build || (defined(is_arkui_x) && is_arkui_x)) {
|
2022-10-24 15:31:14 +00:00
|
|
|
deps += [
|
|
|
|
"$ark_third_party_root/icu/icu4c:static_icui18n",
|
|
|
|
"$ark_third_party_root/icu/icu4c:static_icuuc",
|
|
|
|
]
|
|
|
|
} else {
|
2024-03-19 06:59:49 +00:00
|
|
|
external_deps += [
|
|
|
|
"icu:shared_icui18n",
|
|
|
|
"icu:shared_icuuc",
|
2022-10-24 15:31:14 +00:00
|
|
|
]
|
|
|
|
}
|
2023-05-16 02:53:32 +00:00
|
|
|
innerapi_tags = [ "platformsdk_indirect" ]
|
2022-10-13 08:09:55 +00:00
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
2022-06-20 09:59:16 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 07:35:19 +00:00
|
|
|
ohos_shared_library("libark_jsruntime_test") {
|
2024-03-14 01:20:39 +00:00
|
|
|
stack_protector_ret = false
|
2024-03-19 06:59:49 +00:00
|
|
|
deps = [ ":libark_jsruntime_test_set" ]
|
2023-04-04 07:53:07 +00:00
|
|
|
public_configs = [ "$js_root:ark_jsruntime_public_config" ]
|
|
|
|
public_configs += [ ":include_llvm" ]
|
|
|
|
|
2024-03-29 11:24:01 +00:00
|
|
|
if (!ark_standalone_build) {
|
2024-04-15 03:30:49 +00:00
|
|
|
public_external_deps = [
|
2024-09-22 12:18:06 +00:00
|
|
|
"runtime_core:libarkfile_runtime_static",
|
2024-04-15 03:30:49 +00:00
|
|
|
"zlib:libz",
|
|
|
|
]
|
2024-03-29 11:24:01 +00:00
|
|
|
} else {
|
2024-04-15 03:30:49 +00:00
|
|
|
external_deps = [
|
2024-09-22 12:18:06 +00:00
|
|
|
"runtime_core:libarkfile_runtime_static",
|
2024-04-15 03:30:49 +00:00
|
|
|
"zlib:libz",
|
|
|
|
]
|
2024-03-29 11:24:01 +00:00
|
|
|
}
|
2024-03-29 06:16:00 +00:00
|
|
|
|
2022-10-31 12:31:21 +00:00
|
|
|
ldflags = []
|
|
|
|
if (enable_coverage) {
|
|
|
|
ldflags += [ "--coverage" ]
|
|
|
|
cflags_cc = [ "--coverage" ]
|
|
|
|
}
|
2022-10-24 15:31:14 +00:00
|
|
|
if (!ark_standalone_build) {
|
2022-10-31 12:31:21 +00:00
|
|
|
ldflags += [ "-Wl,--lto-O0" ]
|
2022-08-03 09:01:08 +00:00
|
|
|
}
|
2022-07-29 13:47:57 +00:00
|
|
|
|
2022-07-28 07:35:19 +00:00
|
|
|
install_enable = false
|
|
|
|
if (!is_mingw && !is_mac) {
|
|
|
|
output_extension = "so"
|
2022-04-28 09:29:17 +00:00
|
|
|
}
|
2024-03-19 06:59:49 +00:00
|
|
|
|
2024-10-30 07:40:46 +00:00
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
2021-10-12 03:50:58 +00:00
|
|
|
}
|
2023-10-11 00:14:10 +00:00
|
|
|
|
2024-06-07 08:36:24 +00:00
|
|
|
ohos_prebuilt_etc("app_aot_jit_enable_list") {
|
2023-10-11 00:14:10 +00:00
|
|
|
relative_install_dir = "ark"
|
2024-07-23 03:12:34 +00:00
|
|
|
if (ets_runtime_feature_enable_list) {
|
2024-06-07 08:36:24 +00:00
|
|
|
source = "$js_root/ecmascript/ohos/app_aot_jit_enable_list.conf"
|
2024-05-30 03:26:49 +00:00
|
|
|
} else {
|
2024-06-07 08:36:24 +00:00
|
|
|
source = "$js_root/ecmascript/ohos/app_aot_jit_enable_list_default.conf"
|
2024-05-30 03:26:49 +00:00
|
|
|
}
|
2024-04-10 07:45:41 +00:00
|
|
|
|
|
|
|
# Set the subsystem name
|
|
|
|
part_name = "ets_runtime"
|
|
|
|
subsystem_name = "arkcompiler"
|
|
|
|
}
|
2024-11-05 08:37:56 +00:00
|
|
|
|
|
|
|
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",
|
2024-11-11 08:18:42 +00:00
|
|
|
"ecmascript/js_type_metadata/js_async_generator_resume_next.json",
|
2024-11-05 08:37:56 +00:00
|
|
|
"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"
|
|
|
|
}
|