11cb0ef41Sopenharmony_ci# Copyright 2014 The Chromium Authors. All rights reserved.
21cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_ci# found in the LICENSE file.
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciimport("//build/config/android/config.gni")
61cb0ef41Sopenharmony_ciimport("//build/config/arm.gni")
71cb0ef41Sopenharmony_ciimport("//build/config/dcheck_always_on.gni")
81cb0ef41Sopenharmony_ciimport("//build/config/host_byteorder.gni")
91cb0ef41Sopenharmony_ciimport("//build/config/mips.gni")
101cb0ef41Sopenharmony_ciimport("//build/config/sanitizers/sanitizers.gni")
111cb0ef41Sopenharmony_ciimport("//build_overrides/build.gni")
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciif (is_android) {
141cb0ef41Sopenharmony_ci  import("//build/config/android/rules.gni")
151cb0ef41Sopenharmony_ci}
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ciimport("gni/snapshot_toolchain.gni")
181cb0ef41Sopenharmony_ciimport("gni/v8.gni")
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ci# Specifies if the target build is a simulator build. Comparing target cpu
211cb0ef41Sopenharmony_ci# with v8 target cpu to not affect simulator builds for making cross-compile
221cb0ef41Sopenharmony_ci# snapshots.
231cb0ef41Sopenharmony_citarget_is_simulator = (target_cpu != v8_target_cpu && !v8_multi_arch_build) ||
241cb0ef41Sopenharmony_ci                      (current_cpu != v8_current_cpu && v8_multi_arch_build)
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci# For faster Windows builds. See https://crbug.com/v8/8475.
271cb0ef41Sopenharmony_ciemit_builtins_as_inline_asm = is_win && is_clang
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_cideclare_args() {
301cb0ef41Sopenharmony_ci  # Print to stdout on Android.
311cb0ef41Sopenharmony_ci  v8_android_log_stdout = false
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ci  # Dynamically set an additional dependency from v8/custom_deps.
341cb0ef41Sopenharmony_ci  v8_custom_deps = ""
351cb0ef41Sopenharmony_ci
361cb0ef41Sopenharmony_ci  # Turns on all V8 debug features. Enables running V8 in a pseudo debug mode
371cb0ef41Sopenharmony_ci  # within a release Chrome.
381cb0ef41Sopenharmony_ci  v8_enable_debugging_features = is_debug
391cb0ef41Sopenharmony_ci
401cb0ef41Sopenharmony_ci  # Sets -DV8_ENABLE_FUTURE.
411cb0ef41Sopenharmony_ci  v8_enable_future = false
421cb0ef41Sopenharmony_ci
431cb0ef41Sopenharmony_ci  # Sets -DSYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing
441cb0ef41Sopenharmony_ci  v8_enable_system_instrumentation = (is_win || is_mac) && !v8_use_perfetto
451cb0ef41Sopenharmony_ci
461cb0ef41Sopenharmony_ci  # Sets the GUID for the ETW provider
471cb0ef41Sopenharmony_ci  v8_etw_guid = ""
481cb0ef41Sopenharmony_ci
491cb0ef41Sopenharmony_ci  # Sets -DVERIFY_HEAP.
501cb0ef41Sopenharmony_ci  v8_enable_verify_heap = ""
511cb0ef41Sopenharmony_ci
521cb0ef41Sopenharmony_ci  # Sets -DVERIFY_PREDICTABLE
531cb0ef41Sopenharmony_ci  v8_enable_verify_predictable = false
541cb0ef41Sopenharmony_ci
551cb0ef41Sopenharmony_ci  # Enable compiler warnings when using V8_DEPRECATED apis.
561cb0ef41Sopenharmony_ci  v8_deprecation_warnings = true
571cb0ef41Sopenharmony_ci
581cb0ef41Sopenharmony_ci  # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
591cb0ef41Sopenharmony_ci  v8_imminent_deprecation_warnings = true
601cb0ef41Sopenharmony_ci
611cb0ef41Sopenharmony_ci  # Embeds the given script into the snapshot.
621cb0ef41Sopenharmony_ci  v8_embed_script = ""
631cb0ef41Sopenharmony_ci
641cb0ef41Sopenharmony_ci  # Allows the embedder to add a custom suffix to the version string.
651cb0ef41Sopenharmony_ci  v8_embedder_string = ""
661cb0ef41Sopenharmony_ci
671cb0ef41Sopenharmony_ci  # Sets -dENABLE_DISASSEMBLER.
681cb0ef41Sopenharmony_ci  v8_enable_disassembler = ""
691cb0ef41Sopenharmony_ci
701cb0ef41Sopenharmony_ci  # Sets the number of internal fields on promise objects.
711cb0ef41Sopenharmony_ci  v8_promise_internal_field_count = 0
721cb0ef41Sopenharmony_ci
731cb0ef41Sopenharmony_ci  # Sets -dENABLE_GDB_JIT_INTERFACE.
741cb0ef41Sopenharmony_ci  v8_enable_gdbjit = ""
751cb0ef41Sopenharmony_ci
761cb0ef41Sopenharmony_ci  # Sets -dENABLE_VTUNE_JIT_INTERFACE.
771cb0ef41Sopenharmony_ci  v8_enable_vtunejit = false
781cb0ef41Sopenharmony_ci
791cb0ef41Sopenharmony_ci  # Sets -dENABLE_VTUNE_TRACEMARK.
801cb0ef41Sopenharmony_ci  v8_enable_vtunetracemark = false
811cb0ef41Sopenharmony_ci
821cb0ef41Sopenharmony_ci  # Sets -dENABLE_HUGEPAGE
831cb0ef41Sopenharmony_ci  v8_enable_hugepage = false
841cb0ef41Sopenharmony_ci
851cb0ef41Sopenharmony_ci  # Sets -dV8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION.
861cb0ef41Sopenharmony_ci  #
871cb0ef41Sopenharmony_ci  # This flag speeds up the performance of fork/execve on Linux systems for
881cb0ef41Sopenharmony_ci  # embedders which use it (like Node.js). It works by marking the pages that
891cb0ef41Sopenharmony_ci  # V8 allocates as MADV_DONTFORK. Without MADV_DONTFORK, the Linux kernel
901cb0ef41Sopenharmony_ci  # spends a long time manipulating page mappings on fork and exec which the
911cb0ef41Sopenharmony_ci  # child process doesn't generally need to access.
921cb0ef41Sopenharmony_ci  #
931cb0ef41Sopenharmony_ci  # See v8:7381 for more details.
941cb0ef41Sopenharmony_ci  v8_enable_private_mapping_fork_optimization = false
951cb0ef41Sopenharmony_ci
961cb0ef41Sopenharmony_ci  # Sets -dENABLE_HANDLE_ZAPPING.
971cb0ef41Sopenharmony_ci  v8_enable_handle_zapping = !is_on_release_branch || is_debug
981cb0ef41Sopenharmony_ci
991cb0ef41Sopenharmony_ci  # Enable slow dchecks.
1001cb0ef41Sopenharmony_ci  v8_enable_slow_dchecks = false
1011cb0ef41Sopenharmony_ci
1021cb0ef41Sopenharmony_ci  # Enable fast mksnapshot runs.
1031cb0ef41Sopenharmony_ci  v8_enable_fast_mksnapshot = false
1041cb0ef41Sopenharmony_ci
1051cb0ef41Sopenharmony_ci  # Optimize code for Torque executable, even during a debug build.
1061cb0ef41Sopenharmony_ci  v8_enable_fast_torque = ""
1071cb0ef41Sopenharmony_ci
1081cb0ef41Sopenharmony_ci  # Enable the registration of unwinding info for Windows x64 and ARM64.
1091cb0ef41Sopenharmony_ci  v8_win64_unwinding_info = true
1101cb0ef41Sopenharmony_ci
1111cb0ef41Sopenharmony_ci  # Enable code comments for builtins in the snapshot (impacts performance).
1121cb0ef41Sopenharmony_ci  # This also enables v8_code_comments.
1131cb0ef41Sopenharmony_ci  v8_enable_snapshot_code_comments = false
1141cb0ef41Sopenharmony_ci
1151cb0ef41Sopenharmony_ci  # Allow runtime-enabled code comments (with --code-comments). Enabled by
1161cb0ef41Sopenharmony_ci  # default in debug builds.
1171cb0ef41Sopenharmony_ci  # Sets -dV8_CODE_COMMENTS
1181cb0ef41Sopenharmony_ci  v8_code_comments = ""
1191cb0ef41Sopenharmony_ci
1201cb0ef41Sopenharmony_ci  # Allow runtime-enabled debug code (with --debug-code). Enabled by default in
1211cb0ef41Sopenharmony_ci  # debug builds.
1221cb0ef41Sopenharmony_ci  # Sets -dV8_ENABLE_DEBUG_CODE
1231cb0ef41Sopenharmony_ci  v8_enable_debug_code = ""
1241cb0ef41Sopenharmony_ci
1251cb0ef41Sopenharmony_ci  # Enable native counters from the snapshot (impacts performance, sets
1261cb0ef41Sopenharmony_ci  # -dV8_SNAPSHOT_NATIVE_CODE_COUNTERS).
1271cb0ef41Sopenharmony_ci  # This option will generate extra code in the snapshot to increment counters,
1281cb0ef41Sopenharmony_ci  # as per the --native-code-counters flag.
1291cb0ef41Sopenharmony_ci  v8_enable_snapshot_native_code_counters = ""
1301cb0ef41Sopenharmony_ci
1311cb0ef41Sopenharmony_ci  # Enable code-generation-time checking of types in the CodeStubAssembler.
1321cb0ef41Sopenharmony_ci  v8_enable_verify_csa = false
1331cb0ef41Sopenharmony_ci
1341cb0ef41Sopenharmony_ci  # Enable pointer compression (sets -dV8_COMPRESS_POINTERS).
1351cb0ef41Sopenharmony_ci  v8_enable_pointer_compression = ""
1361cb0ef41Sopenharmony_ci  v8_enable_pointer_compression_shared_cage = ""
1371cb0ef41Sopenharmony_ci  v8_enable_31bit_smis_on_64bit_arch = false
1381cb0ef41Sopenharmony_ci
1391cb0ef41Sopenharmony_ci  # Sets -dOBJECT_PRINT.
1401cb0ef41Sopenharmony_ci  v8_enable_object_print = ""
1411cb0ef41Sopenharmony_ci
1421cb0ef41Sopenharmony_ci  # Sets -dV8_TRACE_MAPS.
1431cb0ef41Sopenharmony_ci  v8_enable_trace_maps = ""
1441cb0ef41Sopenharmony_ci
1451cb0ef41Sopenharmony_ci  # Sets -dV8_ENABLE_CHECKS.
1461cb0ef41Sopenharmony_ci  v8_enable_v8_checks = ""
1471cb0ef41Sopenharmony_ci
1481cb0ef41Sopenharmony_ci  # Sets -dV8_TRACE_UNOPTIMIZED.
1491cb0ef41Sopenharmony_ci  v8_enable_trace_unoptimized = ""
1501cb0ef41Sopenharmony_ci  v8_enable_trace_ignition = false
1511cb0ef41Sopenharmony_ci  v8_enable_trace_baseline_exec = false
1521cb0ef41Sopenharmony_ci
1531cb0ef41Sopenharmony_ci  # Sets -dV8_TRACE_FEEDBACK_UPDATES.
1541cb0ef41Sopenharmony_ci  v8_enable_trace_feedback_updates = false
1551cb0ef41Sopenharmony_ci
1561cb0ef41Sopenharmony_ci  # Sets -dV8_ATOMIC_OBJECT_FIELD_WRITES and turns all field write operations
1571cb0ef41Sopenharmony_ci  # into relaxed atomic operations.
1581cb0ef41Sopenharmony_ci  v8_enable_atomic_object_field_writes = ""
1591cb0ef41Sopenharmony_ci
1601cb0ef41Sopenharmony_ci  # Controls the default value of v8_enable_concurrent_marking_state. See the
1611cb0ef41Sopenharmony_ci  # default setting code below.
1621cb0ef41Sopenharmony_ci  v8_enable_concurrent_marking = true
1631cb0ef41Sopenharmony_ci
1641cb0ef41Sopenharmony_ci  # Sets -dV8_IGNITION_DISPATCH_COUNTING.
1651cb0ef41Sopenharmony_ci  # Enables counting frequencies of bytecode dispatches. After building in this
1661cb0ef41Sopenharmony_ci  # configuration, subsequent runs of d8 can output frequencies for each pair
1671cb0ef41Sopenharmony_ci  # of (current, next) bytecode instructions executed if you specify
1681cb0ef41Sopenharmony_ci  # --trace-ignition-dispatches-output-file, or can generate a JS object with
1691cb0ef41Sopenharmony_ci  # those frequencies if you run with --expose-ignition-statistics and call the
1701cb0ef41Sopenharmony_ci  # extension function getIgnitionDispatchCounters().
1711cb0ef41Sopenharmony_ci  v8_enable_ignition_dispatch_counting = false
1721cb0ef41Sopenharmony_ci
1731cb0ef41Sopenharmony_ci  # Runs mksnapshot with --turbo-profiling. After building in this
1741cb0ef41Sopenharmony_ci  # configuration, any subsequent run of d8 will output information about usage
1751cb0ef41Sopenharmony_ci  # of basic blocks in builtins.
1761cb0ef41Sopenharmony_ci  v8_enable_builtins_profiling = false
1771cb0ef41Sopenharmony_ci
1781cb0ef41Sopenharmony_ci  # Runs mksnapshot with --turbo-profiling-verbose. After building in this
1791cb0ef41Sopenharmony_ci  # configuration, any subsequent run of d8 will output information about usage
1801cb0ef41Sopenharmony_ci  # of basic blocks in builtins, including the schedule and disassembly of all
1811cb0ef41Sopenharmony_ci  # used builtins.
1821cb0ef41Sopenharmony_ci  v8_enable_builtins_profiling_verbose = false
1831cb0ef41Sopenharmony_ci
1841cb0ef41Sopenharmony_ci  # Provides the given V8 log file as an input to mksnapshot, where it can be
1851cb0ef41Sopenharmony_ci  # used for profile-guided optimization of builtins.
1861cb0ef41Sopenharmony_ci  #
1871cb0ef41Sopenharmony_ci  # To do profile-guided optimizations of builtins:
1881cb0ef41Sopenharmony_ci  # 1. Build with v8_enable_builtins_profiling = true
1891cb0ef41Sopenharmony_ci  # 2. Run your chosen workload with the --turbo-profiling-log-builtins flag.
1901cb0ef41Sopenharmony_ci  #    For Chrome, the invocation might look like this:
1911cb0ef41Sopenharmony_ci  #      chrome --no-sandbox --disable-extensions
1921cb0ef41Sopenharmony_ci  #        --js-flags="--turbo-profiling-log-builtins --logfile=path/to/v8.log"
1931cb0ef41Sopenharmony_ci  #        "http://localhost/test-suite"
1941cb0ef41Sopenharmony_ci  # 3. Optionally repeat step 2 for additional workloads, and concatenate all of
1951cb0ef41Sopenharmony_ci  #    the resulting log files into a single file.
1961cb0ef41Sopenharmony_ci  # 4. Build again with v8_builtins_profiling_log_file set to the file created
1971cb0ef41Sopenharmony_ci  #    in steps 2-3.
1981cb0ef41Sopenharmony_ci  v8_builtins_profiling_log_file = ""
1991cb0ef41Sopenharmony_ci
2001cb0ef41Sopenharmony_ci  # Enables various testing features.
2011cb0ef41Sopenharmony_ci  v8_enable_test_features = ""
2021cb0ef41Sopenharmony_ci
2031cb0ef41Sopenharmony_ci  # Enable short builtins call instruction sequences by un-embedding builtins.
2041cb0ef41Sopenharmony_ci  # Sets -dV8_SHORT_BUILTIN_CALLS
2051cb0ef41Sopenharmony_ci  v8_enable_short_builtin_calls = ""
2061cb0ef41Sopenharmony_ci
2071cb0ef41Sopenharmony_ci  # Enable support for external code range relative to the pointer compression
2081cb0ef41Sopenharmony_ci  # cage.
2091cb0ef41Sopenharmony_ci  # Sets -dV8_EXTERNAL_CODE_SPACE
2101cb0ef41Sopenharmony_ci  v8_enable_external_code_space = ""
2111cb0ef41Sopenharmony_ci
2121cb0ef41Sopenharmony_ci  # Enable the Maglev compiler.
2131cb0ef41Sopenharmony_ci  # Sets -dV8_ENABLE_MAGLEV
2141cb0ef41Sopenharmony_ci  v8_enable_maglev = ""
2151cb0ef41Sopenharmony_ci
2161cb0ef41Sopenharmony_ci  # With post mortem support enabled, metadata is embedded into libv8 that
2171cb0ef41Sopenharmony_ci  # describes various parameters of the VM for use by debuggers. See
2181cb0ef41Sopenharmony_ci  # tools/gen-postmortem-metadata.py for details.
2191cb0ef41Sopenharmony_ci  v8_postmortem_support = false
2201cb0ef41Sopenharmony_ci
2211cb0ef41Sopenharmony_ci  # Use Siphash as added protection against hash flooding attacks.
2221cb0ef41Sopenharmony_ci  v8_use_siphash = false
2231cb0ef41Sopenharmony_ci
2241cb0ef41Sopenharmony_ci  # Switches off inlining in V8.
2251cb0ef41Sopenharmony_ci  v8_no_inline = false
2261cb0ef41Sopenharmony_ci
2271cb0ef41Sopenharmony_ci  # Override OS page size when generating snapshot
2281cb0ef41Sopenharmony_ci  v8_os_page_size = "0"
2291cb0ef41Sopenharmony_ci
2301cb0ef41Sopenharmony_ci  # Similar to vfp but on MIPS.
2311cb0ef41Sopenharmony_ci  v8_can_use_fpu_instructions = true
2321cb0ef41Sopenharmony_ci
2331cb0ef41Sopenharmony_ci  # Similar to the ARM hard float ABI but on MIPS.
2341cb0ef41Sopenharmony_ci  v8_use_mips_abi_hardfloat = true
2351cb0ef41Sopenharmony_ci
2361cb0ef41Sopenharmony_ci  # Controls the threshold for on-heap/off-heap Typed Arrays.
2371cb0ef41Sopenharmony_ci  v8_typed_array_max_size_in_heap = 64
2381cb0ef41Sopenharmony_ci
2391cb0ef41Sopenharmony_ci  v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64") &&
2401cb0ef41Sopenharmony_ci                      (is_linux || is_chromeos || is_mac)) ||
2411cb0ef41Sopenharmony_ci                     (v8_current_cpu == "ppc64" && (is_linux || is_chromeos))
2421cb0ef41Sopenharmony_ci
2431cb0ef41Sopenharmony_ci  # Check that each header can be included in isolation (requires also
2441cb0ef41Sopenharmony_ci  # setting the "check_v8_header_includes" gclient variable to run a
2451cb0ef41Sopenharmony_ci  # specific hook).
2461cb0ef41Sopenharmony_ci  v8_check_header_includes = false
2471cb0ef41Sopenharmony_ci
2481cb0ef41Sopenharmony_ci  # Enable sharing read-only space across isolates.
2491cb0ef41Sopenharmony_ci  # Sets -DV8_SHARED_RO_HEAP.
2501cb0ef41Sopenharmony_ci  v8_enable_shared_ro_heap = ""
2511cb0ef41Sopenharmony_ci
2521cb0ef41Sopenharmony_ci  # Enable lazy source positions by default.
2531cb0ef41Sopenharmony_ci  v8_enable_lazy_source_positions = true
2541cb0ef41Sopenharmony_ci
2551cb0ef41Sopenharmony_ci  # Enable third party HEAP library
2561cb0ef41Sopenharmony_ci  v8_enable_third_party_heap = false
2571cb0ef41Sopenharmony_ci
2581cb0ef41Sopenharmony_ci  # Libaries used by third party heap
2591cb0ef41Sopenharmony_ci  v8_third_party_heap_libs = []
2601cb0ef41Sopenharmony_ci
2611cb0ef41Sopenharmony_ci  # Source code used by third party heap
2621cb0ef41Sopenharmony_ci  v8_third_party_heap_files = []
2631cb0ef41Sopenharmony_ci
2641cb0ef41Sopenharmony_ci  # Disable write barriers when GCs are non-incremental and
2651cb0ef41Sopenharmony_ci  # heap has single generation.
2661cb0ef41Sopenharmony_ci  v8_disable_write_barriers = false
2671cb0ef41Sopenharmony_ci
2681cb0ef41Sopenharmony_ci  # Ensure that write barriers are always used.
2691cb0ef41Sopenharmony_ci  # Useful for debugging purposes.
2701cb0ef41Sopenharmony_ci  v8_enable_unconditional_write_barriers = false
2711cb0ef41Sopenharmony_ci
2721cb0ef41Sopenharmony_ci  # Redirect allocation in young generation so that there will be
2731cb0ef41Sopenharmony_ci  # only one single generation.
2741cb0ef41Sopenharmony_ci  v8_enable_single_generation = ""
2751cb0ef41Sopenharmony_ci
2761cb0ef41Sopenharmony_ci  # Use token threaded dispatch for the regular expression interpreter.
2771cb0ef41Sopenharmony_ci  # Use switch-based dispatch if this is false
2781cb0ef41Sopenharmony_ci  v8_enable_regexp_interpreter_threaded_dispatch = true
2791cb0ef41Sopenharmony_ci
2801cb0ef41Sopenharmony_ci  # Enable additional targets necessary for verification of torque
2811cb0ef41Sopenharmony_ci  # file generation
2821cb0ef41Sopenharmony_ci  v8_verify_torque_generation_invariance = false
2831cb0ef41Sopenharmony_ci
2841cb0ef41Sopenharmony_ci  # Generate comments describing the Torque intermediate representation.
2851cb0ef41Sopenharmony_ci  v8_annotate_torque_ir = false
2861cb0ef41Sopenharmony_ci
2871cb0ef41Sopenharmony_ci  # Enable snapshot compression (enabled by default for desktop) devices.
2881cb0ef41Sopenharmony_ci  v8_enable_snapshot_compression =
2891cb0ef41Sopenharmony_ci      target_os == "android" || target_os == "chromeos" ||
2901cb0ef41Sopenharmony_ci      target_os == "fuchsia"
2911cb0ef41Sopenharmony_ci
2921cb0ef41Sopenharmony_ci  # Enable control-flow integrity features, such as pointer authentication for
2931cb0ef41Sopenharmony_ci  # ARM64.
2941cb0ef41Sopenharmony_ci  v8_control_flow_integrity = false
2951cb0ef41Sopenharmony_ci
2961cb0ef41Sopenharmony_ci  # Enable heap reservation of size 4GB. Only possible for 64bit archs.
2971cb0ef41Sopenharmony_ci  cppgc_enable_caged_heap =
2981cb0ef41Sopenharmony_ci      v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
2991cb0ef41Sopenharmony_ci      v8_current_cpu == "loong64"
3001cb0ef41Sopenharmony_ci
3011cb0ef41Sopenharmony_ci  # Enables additional heap verification phases and checks.
3021cb0ef41Sopenharmony_ci  cppgc_enable_verify_heap = ""
3031cb0ef41Sopenharmony_ci
3041cb0ef41Sopenharmony_ci  # Enable allocations during prefinalizer invocations.
3051cb0ef41Sopenharmony_ci  cppgc_allow_allocations_in_prefinalizers = false
3061cb0ef41Sopenharmony_ci
3071cb0ef41Sopenharmony_ci  # Enable V8 zone compression experimental feature.
3081cb0ef41Sopenharmony_ci  # Sets -DV8_COMPRESS_ZONES.
3091cb0ef41Sopenharmony_ci  v8_enable_zone_compression = ""
3101cb0ef41Sopenharmony_ci
3111cb0ef41Sopenharmony_ci  # Enable the experimental V8 sandbox.
3121cb0ef41Sopenharmony_ci  # Sets -DV8_SANDBOX.
3131cb0ef41Sopenharmony_ci  v8_enable_sandbox = ""
3141cb0ef41Sopenharmony_ci
3151cb0ef41Sopenharmony_ci  # Enable external pointer sandboxing. Requires v8_enable_sandbox.
3161cb0ef41Sopenharmony_ci  # Sets -DV8_SANDBOXED_EXTERNAL_POINRTERS.
3171cb0ef41Sopenharmony_ci  v8_enable_sandboxed_external_pointers = false
3181cb0ef41Sopenharmony_ci
3191cb0ef41Sopenharmony_ci  # Enable sandboxed pointers. Requires v8_enable_sandbox.
3201cb0ef41Sopenharmony_ci  # Sets -DV8_SANDBOXED_POINTERS.
3211cb0ef41Sopenharmony_ci  v8_enable_sandboxed_pointers = false
3221cb0ef41Sopenharmony_ci
3231cb0ef41Sopenharmony_ci  # Enable all available sandbox features. Implies v8_enable_sandbox.
3241cb0ef41Sopenharmony_ci  v8_enable_sandbox_future = false
3251cb0ef41Sopenharmony_ci
3261cb0ef41Sopenharmony_ci  # Experimental feature for collecting per-class zone memory stats.
3271cb0ef41Sopenharmony_ci  # Requires use_rtti = true
3281cb0ef41Sopenharmony_ci  v8_enable_precise_zone_stats = false
3291cb0ef41Sopenharmony_ci
3301cb0ef41Sopenharmony_ci  # Experimental feature that uses SwissNameDictionary instead of NameDictionary
3311cb0ef41Sopenharmony_ci  # as the backing store for all dictionary mode objects.
3321cb0ef41Sopenharmony_ci  v8_enable_swiss_name_dictionary = false
3331cb0ef41Sopenharmony_ci
3341cb0ef41Sopenharmony_ci  # If enabled then macro definitions that are used in externally visible
3351cb0ef41Sopenharmony_ci  # header files are placed in a separate header file v8-gn.h.
3361cb0ef41Sopenharmony_ci  v8_generate_external_defines_header = false
3371cb0ef41Sopenharmony_ci
3381cb0ef41Sopenharmony_ci  # Experimental feature for tracking constness of properties in non-global
3391cb0ef41Sopenharmony_ci  # dictionaries. Enabling this also always keeps prototypes in dict mode,
3401cb0ef41Sopenharmony_ci  # meaning that they are not switched to fast mode.
3411cb0ef41Sopenharmony_ci  # Sets -DV8_DICT_PROPERTY_CONST_TRACKING
3421cb0ef41Sopenharmony_ci  v8_dict_property_const_tracking = false
3431cb0ef41Sopenharmony_ci
3441cb0ef41Sopenharmony_ci  # Enable map packing & unpacking (sets -dV8_MAP_PACKING).
3451cb0ef41Sopenharmony_ci  v8_enable_map_packing = false
3461cb0ef41Sopenharmony_ci
3471cb0ef41Sopenharmony_ci  # Allow for JS promise hooks (instead of just C++).
3481cb0ef41Sopenharmony_ci  v8_enable_javascript_promise_hooks = false
3491cb0ef41Sopenharmony_ci
3501cb0ef41Sopenharmony_ci  # Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING).
3511cb0ef41Sopenharmony_ci  # When it's disabled, the --turbo-allocation-folding runtime flag will be ignored.
3521cb0ef41Sopenharmony_ci  v8_enable_allocation_folding = true
3531cb0ef41Sopenharmony_ci
3541cb0ef41Sopenharmony_ci  # Enable runtime verification of heap snapshots produced for devtools.
3551cb0ef41Sopenharmony_ci  v8_enable_heap_snapshot_verify = ""
3561cb0ef41Sopenharmony_ci
3571cb0ef41Sopenharmony_ci  # Enable global allocation site tracking.
3581cb0ef41Sopenharmony_ci  v8_allocation_site_tracking = true
3591cb0ef41Sopenharmony_ci
3601cb0ef41Sopenharmony_ci  # TODO(cbruni, v8:12302): Remove once API is migrated
3611cb0ef41Sopenharmony_ci  # Enable legacy mode for ScriptOrModule's lifetime. By default it's a
3621cb0ef41Sopenharmony_ci  # temporary object, if enabled it will be kept alive by the parent Script.
3631cb0ef41Sopenharmony_ci  # This is only used by nodejs.
3641cb0ef41Sopenharmony_ci  v8_scriptormodule_legacy_lifetime = false
3651cb0ef41Sopenharmony_ci
3661cb0ef41Sopenharmony_ci  # Change code emission and runtime features to be CET shadow-stack compliant
3671cb0ef41Sopenharmony_ci  # (incomplete and experimental).
3681cb0ef41Sopenharmony_ci  v8_enable_cet_shadow_stack = false
3691cb0ef41Sopenharmony_ci
3701cb0ef41Sopenharmony_ci  # Get VMEX priviledge at startup.
3711cb0ef41Sopenharmony_ci  # It allows to run V8 without "deprecated-ambient-replace-as-executable".
3721cb0ef41Sopenharmony_ci  # Sets -DV8_USE_VMEX_RESOURCE.
3731cb0ef41Sopenharmony_ci  # TODO(victorgomes): Remove this flag once Chormium no longer needs
3741cb0ef41Sopenharmony_ci  # the deprecated feature.
3751cb0ef41Sopenharmony_ci  v8_fuchsia_use_vmex_resource = is_fuchsia && !build_with_chromium
3761cb0ef41Sopenharmony_ci}
3771cb0ef41Sopenharmony_ci
3781cb0ef41Sopenharmony_ci# Derived defaults.
3791cb0ef41Sopenharmony_ciif (cppgc_enable_verify_heap == "") {
3801cb0ef41Sopenharmony_ci  cppgc_enable_verify_heap = v8_enable_debugging_features || dcheck_always_on
3811cb0ef41Sopenharmony_ci}
3821cb0ef41Sopenharmony_ciif (v8_enable_verify_heap == "") {
3831cb0ef41Sopenharmony_ci  v8_enable_verify_heap = v8_enable_debugging_features
3841cb0ef41Sopenharmony_ci}
3851cb0ef41Sopenharmony_ciif (v8_enable_object_print == "") {
3861cb0ef41Sopenharmony_ci  v8_enable_object_print = v8_enable_debugging_features
3871cb0ef41Sopenharmony_ci}
3881cb0ef41Sopenharmony_ciif (v8_enable_disassembler == "") {
3891cb0ef41Sopenharmony_ci  v8_enable_disassembler = v8_enable_debugging_features
3901cb0ef41Sopenharmony_ci}
3911cb0ef41Sopenharmony_ciif (v8_enable_trace_maps == "") {
3921cb0ef41Sopenharmony_ci  v8_enable_trace_maps = v8_enable_debugging_features
3931cb0ef41Sopenharmony_ci}
3941cb0ef41Sopenharmony_ciif (v8_enable_test_features == "") {
3951cb0ef41Sopenharmony_ci  v8_enable_test_features = v8_enable_debugging_features || dcheck_always_on
3961cb0ef41Sopenharmony_ci}
3971cb0ef41Sopenharmony_ciif (v8_enable_v8_checks == "") {
3981cb0ef41Sopenharmony_ci  v8_enable_v8_checks = v8_enable_debugging_features
3991cb0ef41Sopenharmony_ci}
4001cb0ef41Sopenharmony_ciif (v8_enable_heap_snapshot_verify == "") {
4011cb0ef41Sopenharmony_ci  v8_enable_heap_snapshot_verify =
4021cb0ef41Sopenharmony_ci      v8_enable_debugging_features || dcheck_always_on
4031cb0ef41Sopenharmony_ci}
4041cb0ef41Sopenharmony_ciif (v8_enable_snapshot_code_comments) {
4051cb0ef41Sopenharmony_ci  assert(v8_code_comments == true || v8_code_comments == "",
4061cb0ef41Sopenharmony_ci         "v8_enable_snapshot_code_comments conflicts with v8_code_comments.")
4071cb0ef41Sopenharmony_ci  v8_code_comments = true
4081cb0ef41Sopenharmony_ci} else if (v8_code_comments == "") {
4091cb0ef41Sopenharmony_ci  v8_code_comments = v8_enable_debugging_features
4101cb0ef41Sopenharmony_ci}
4111cb0ef41Sopenharmony_ciif (v8_enable_debug_code == "") {
4121cb0ef41Sopenharmony_ci  v8_enable_debug_code = v8_enable_debugging_features
4131cb0ef41Sopenharmony_ci}
4141cb0ef41Sopenharmony_ciif (v8_enable_snapshot_native_code_counters == "") {
4151cb0ef41Sopenharmony_ci  v8_enable_snapshot_native_code_counters = v8_enable_debugging_features
4161cb0ef41Sopenharmony_ci}
4171cb0ef41Sopenharmony_ciif (v8_enable_pointer_compression == "") {
4181cb0ef41Sopenharmony_ci  v8_enable_pointer_compression =
4191cb0ef41Sopenharmony_ci      v8_current_cpu == "arm64" || v8_current_cpu == "x64"
4201cb0ef41Sopenharmony_ci}
4211cb0ef41Sopenharmony_ciif (v8_enable_pointer_compression_shared_cage == "") {
4221cb0ef41Sopenharmony_ci  v8_enable_pointer_compression_shared_cage = v8_enable_pointer_compression
4231cb0ef41Sopenharmony_ci}
4241cb0ef41Sopenharmony_ciif (v8_enable_fast_torque == "") {
4251cb0ef41Sopenharmony_ci  v8_enable_fast_torque = v8_enable_fast_mksnapshot
4261cb0ef41Sopenharmony_ci}
4271cb0ef41Sopenharmony_ciif (v8_enable_zone_compression == "") {
4281cb0ef41Sopenharmony_ci  v8_enable_zone_compression = false
4291cb0ef41Sopenharmony_ci}
4301cb0ef41Sopenharmony_ciif (v8_enable_short_builtin_calls == "") {
4311cb0ef41Sopenharmony_ci  v8_enable_short_builtin_calls =
4321cb0ef41Sopenharmony_ci      v8_current_cpu == "x64" || (!is_android && v8_current_cpu == "arm64")
4331cb0ef41Sopenharmony_ci}
4341cb0ef41Sopenharmony_ciif (v8_enable_external_code_space == "") {
4351cb0ef41Sopenharmony_ci  v8_enable_external_code_space =
4361cb0ef41Sopenharmony_ci      v8_enable_pointer_compression &&
4371cb0ef41Sopenharmony_ci      (v8_current_cpu == "x64" ||
4381cb0ef41Sopenharmony_ci       (target_os != "fuchsia" && v8_current_cpu == "arm64"))
4391cb0ef41Sopenharmony_ci}
4401cb0ef41Sopenharmony_ciif (v8_enable_maglev == "") {
4411cb0ef41Sopenharmony_ci  v8_enable_maglev = v8_current_cpu == "x64" && v8_enable_pointer_compression
4421cb0ef41Sopenharmony_ci}
4431cb0ef41Sopenharmony_ciif (v8_enable_single_generation == "") {
4441cb0ef41Sopenharmony_ci  v8_enable_single_generation = v8_disable_write_barriers
4451cb0ef41Sopenharmony_ci}
4461cb0ef41Sopenharmony_ciif (v8_enable_atomic_object_field_writes == "") {
4471cb0ef41Sopenharmony_ci  v8_enable_atomic_object_field_writes = v8_enable_concurrent_marking
4481cb0ef41Sopenharmony_ci}
4491cb0ef41Sopenharmony_ciif (v8_enable_third_party_heap) {
4501cb0ef41Sopenharmony_ci  v8_disable_write_barriers = true
4511cb0ef41Sopenharmony_ci  v8_enable_single_generation = true
4521cb0ef41Sopenharmony_ci  v8_enable_shared_ro_heap = false
4531cb0ef41Sopenharmony_ci  v8_enable_pointer_compression = false
4541cb0ef41Sopenharmony_ci  v8_enable_pointer_compression_shared_cage = false
4551cb0ef41Sopenharmony_ci  v8_enable_allocation_folding = false
4561cb0ef41Sopenharmony_ci}
4571cb0ef41Sopenharmony_ciif (v8_enable_single_generation) {
4581cb0ef41Sopenharmony_ci  v8_allocation_site_tracking = false
4591cb0ef41Sopenharmony_ci}
4601cb0ef41Sopenharmony_ciassert(!v8_enable_concurrent_marking || v8_enable_atomic_object_field_writes,
4611cb0ef41Sopenharmony_ci       "Concurrent marking requires atomic object field writes.")
4621cb0ef41Sopenharmony_ciif (v8_enable_trace_unoptimized == "") {
4631cb0ef41Sopenharmony_ci  v8_enable_trace_unoptimized =
4641cb0ef41Sopenharmony_ci      v8_enable_trace_ignition || v8_enable_trace_baseline_exec
4651cb0ef41Sopenharmony_ci}
4661cb0ef41Sopenharmony_ciassert(!v8_enable_trace_ignition || v8_enable_trace_unoptimized,
4671cb0ef41Sopenharmony_ci       "Ignition tracing requires unoptimized tracing to be enabled.")
4681cb0ef41Sopenharmony_ciassert(!v8_enable_trace_baseline_exec || v8_enable_trace_unoptimized,
4691cb0ef41Sopenharmony_ci       "Baseline tracing requires unoptimized tracing to be enabled.")
4701cb0ef41Sopenharmony_ci
4711cb0ef41Sopenharmony_ci# Toggle pointer compression for correctness fuzzing when building the
4721cb0ef41Sopenharmony_ci# clang_x64_pointer_compression toolchain. We'll correctness-compare the
4731cb0ef41Sopenharmony_ci# default build with the clang_x64_pointer_compression build.
4741cb0ef41Sopenharmony_ciif (v8_multi_arch_build &&
4751cb0ef41Sopenharmony_ci    rebase_path(get_label_info(":d8", "root_out_dir"), root_build_dir) ==
4761cb0ef41Sopenharmony_ci    "clang_x64_pointer_compression") {
4771cb0ef41Sopenharmony_ci  v8_enable_pointer_compression = !v8_enable_pointer_compression
4781cb0ef41Sopenharmony_ci  v8_enable_pointer_compression_shared_cage = v8_enable_pointer_compression
4791cb0ef41Sopenharmony_ci  v8_enable_external_code_space = v8_enable_pointer_compression
4801cb0ef41Sopenharmony_ci}
4811cb0ef41Sopenharmony_ci
4821cb0ef41Sopenharmony_ci# Check if it is a Chromium build and activate PAC/BTI if needed.
4831cb0ef41Sopenharmony_ci# TODO(cavalcantii): have a single point of integration with PAC/BTI flags.
4841cb0ef41Sopenharmony_ciif (build_with_chromium && v8_current_cpu == "arm64" &&
4851cb0ef41Sopenharmony_ci    (arm_control_flow_integrity == "standard" ||
4861cb0ef41Sopenharmony_ci     arm_control_flow_integrity == "pac")) {
4871cb0ef41Sopenharmony_ci  v8_control_flow_integrity = true
4881cb0ef41Sopenharmony_ci}
4891cb0ef41Sopenharmony_ci
4901cb0ef41Sopenharmony_ciif (v8_enable_short_builtin_calls &&
4911cb0ef41Sopenharmony_ci    ((!v8_enable_pointer_compression && v8_current_cpu != "x64") ||
4921cb0ef41Sopenharmony_ci     v8_control_flow_integrity)) {
4931cb0ef41Sopenharmony_ci  # Disable short calls when pointer compression is not enabled.
4941cb0ef41Sopenharmony_ci  # Or when CFI is enabled (until the CFI-related issues are fixed), except x64,
4951cb0ef41Sopenharmony_ci  # where short builtin calls can still be enabled if the code range is
4961cb0ef41Sopenharmony_ci  # guaranteed to be close enough to embedded builtins.
4971cb0ef41Sopenharmony_ci  v8_enable_short_builtin_calls = false
4981cb0ef41Sopenharmony_ci}
4991cb0ef41Sopenharmony_ciif (v8_enable_shared_ro_heap == "") {
5001cb0ef41Sopenharmony_ci  v8_enable_shared_ro_heap = !v8_enable_pointer_compression ||
5011cb0ef41Sopenharmony_ci                             v8_enable_pointer_compression_shared_cage
5021cb0ef41Sopenharmony_ci}
5031cb0ef41Sopenharmony_ci
5041cb0ef41Sopenharmony_ciif (v8_enable_sandbox == "") {
5051cb0ef41Sopenharmony_ci  # TODO(saelo, v8:11880) remove dependency on v8_enable_external_code_space
5061cb0ef41Sopenharmony_ci  # once that is enabled everywhere by default.
5071cb0ef41Sopenharmony_ci  v8_enable_sandbox =
5081cb0ef41Sopenharmony_ci      build_with_chromium && v8_enable_pointer_compression_shared_cage &&
5091cb0ef41Sopenharmony_ci      v8_enable_external_code_space
5101cb0ef41Sopenharmony_ci}
5111cb0ef41Sopenharmony_ci
5121cb0ef41Sopenharmony_ci# Enable all available sandbox features if sandbox future is enabled.
5131cb0ef41Sopenharmony_ciif (v8_enable_sandbox_future) {
5141cb0ef41Sopenharmony_ci  v8_enable_sandboxed_pointers = true
5151cb0ef41Sopenharmony_ci  v8_enable_sandboxed_external_pointers = true
5161cb0ef41Sopenharmony_ci  v8_enable_sandbox = true
5171cb0ef41Sopenharmony_ci}
5181cb0ef41Sopenharmony_ci
5191cb0ef41Sopenharmony_ciassert(!v8_disable_write_barriers || v8_enable_single_generation,
5201cb0ef41Sopenharmony_ci       "Disabling write barriers works only with single generation")
5211cb0ef41Sopenharmony_ci
5221cb0ef41Sopenharmony_ciassert(v8_current_cpu == "arm64" || !v8_control_flow_integrity,
5231cb0ef41Sopenharmony_ci       "Control-flow integrity is only supported on arm64")
5241cb0ef41Sopenharmony_ci
5251cb0ef41Sopenharmony_ciif (v8_enable_shared_ro_heap && v8_enable_pointer_compression &&
5261cb0ef41Sopenharmony_ci    !v8_enable_pointer_compression_shared_cage) {
5271cb0ef41Sopenharmony_ci  assert(
5281cb0ef41Sopenharmony_ci      is_linux || is_chromeos || is_android,
5291cb0ef41Sopenharmony_ci      "Sharing read-only heap with pointer compression is only supported on Linux or Android")
5301cb0ef41Sopenharmony_ci}
5311cb0ef41Sopenharmony_ci
5321cb0ef41Sopenharmony_ciassert(!v8_enable_map_packing || !v8_enable_pointer_compression,
5331cb0ef41Sopenharmony_ci       "Map packing does not support pointer compression")
5341cb0ef41Sopenharmony_ci
5351cb0ef41Sopenharmony_ciassert(!v8_enable_map_packing || v8_current_cpu == "x64",
5361cb0ef41Sopenharmony_ci       "Map packing is only supported on x64")
5371cb0ef41Sopenharmony_ci
5381cb0ef41Sopenharmony_ciassert(!v8_enable_external_code_space || v8_enable_pointer_compression,
5391cb0ef41Sopenharmony_ci       "External code space feature requires pointer compression")
5401cb0ef41Sopenharmony_ci
5411cb0ef41Sopenharmony_ciassert(!v8_enable_sandbox || v8_enable_pointer_compression_shared_cage,
5421cb0ef41Sopenharmony_ci       "The sandbox requires the shared pointer compression cage")
5431cb0ef41Sopenharmony_ci
5441cb0ef41Sopenharmony_ciassert(!v8_enable_sandbox || v8_enable_external_code_space,
5451cb0ef41Sopenharmony_ci       "The sandbox requires the external code space")
5461cb0ef41Sopenharmony_ci
5471cb0ef41Sopenharmony_ciassert(!v8_enable_sandboxed_pointers || v8_enable_sandbox,
5481cb0ef41Sopenharmony_ci       "Sandboxed pointers require the sandbox")
5491cb0ef41Sopenharmony_ci
5501cb0ef41Sopenharmony_ciassert(!v8_enable_sandboxed_external_pointers || v8_enable_sandbox,
5511cb0ef41Sopenharmony_ci       "Sandboxed external pointers require the sandbox")
5521cb0ef41Sopenharmony_ci
5531cb0ef41Sopenharmony_ciassert(
5541cb0ef41Sopenharmony_ci    !v8_enable_pointer_compression_shared_cage || v8_enable_pointer_compression,
5551cb0ef41Sopenharmony_ci    "Can't share a pointer compression cage if pointers aren't compressed")
5561cb0ef41Sopenharmony_ci
5571cb0ef41Sopenharmony_ciassert(
5581cb0ef41Sopenharmony_ci    !v8_enable_pointer_compression_shared_cage || v8_current_cpu == "x64" ||
5591cb0ef41Sopenharmony_ci        v8_current_cpu == "arm64" || v8_current_cpu == "riscv64",
5601cb0ef41Sopenharmony_ci    "Sharing a pointer compression cage is only supported on x64,arm64 and riscv64")
5611cb0ef41Sopenharmony_ci
5621cb0ef41Sopenharmony_ciassert(!v8_enable_unconditional_write_barriers || !v8_disable_write_barriers,
5631cb0ef41Sopenharmony_ci       "Write barriers can't be both enabled and disabled")
5641cb0ef41Sopenharmony_ci
5651cb0ef41Sopenharmony_ciassert(!cppgc_enable_caged_heap || v8_current_cpu == "x64" ||
5661cb0ef41Sopenharmony_ci           v8_current_cpu == "arm64" || v8_current_cpu == "loong64",
5671cb0ef41Sopenharmony_ci       "CppGC caged heap requires 64bit platforms")
5681cb0ef41Sopenharmony_ci
5691cb0ef41Sopenharmony_ciassert(!cppgc_enable_young_generation || cppgc_enable_caged_heap,
5701cb0ef41Sopenharmony_ci       "Young generation in CppGC requires caged heap")
5711cb0ef41Sopenharmony_ci
5721cb0ef41Sopenharmony_ciif (v8_enable_single_generation == true) {
5731cb0ef41Sopenharmony_ci  assert(
5741cb0ef41Sopenharmony_ci      v8_enable_unconditional_write_barriers || v8_disable_write_barriers,
5751cb0ef41Sopenharmony_ci      "Requires unconditional write barriers or none (which disables incremental marking)")
5761cb0ef41Sopenharmony_ci}
5771cb0ef41Sopenharmony_ci
5781cb0ef41Sopenharmony_ciassert(!v8_enable_conservative_stack_scanning || v8_enable_single_generation,
5791cb0ef41Sopenharmony_ci       "Conservative stack scanning requires single generation")
5801cb0ef41Sopenharmony_ci
5811cb0ef41Sopenharmony_ciif (v8_fuchsia_use_vmex_resource) {
5821cb0ef41Sopenharmony_ci  assert(target_os == "fuchsia", "VMEX resource only available on Fuchsia")
5831cb0ef41Sopenharmony_ci}
5841cb0ef41Sopenharmony_ci
5851cb0ef41Sopenharmony_civ8_random_seed = "314159265"
5861cb0ef41Sopenharmony_civ8_toolset_for_shell = "host"
5871cb0ef41Sopenharmony_ci
5881cb0ef41Sopenharmony_ci###############################################################################
5891cb0ef41Sopenharmony_ci# Configurations
5901cb0ef41Sopenharmony_ci#
5911cb0ef41Sopenharmony_ci
5921cb0ef41Sopenharmony_ciconfig("internal_config_base") {
5931cb0ef41Sopenharmony_ci  # Only targets in this file and its subdirs can depend on this.
5941cb0ef41Sopenharmony_ci  visibility = [ "./*" ]
5951cb0ef41Sopenharmony_ci
5961cb0ef41Sopenharmony_ci  configs = [ ":v8_tracing_config" ]
5971cb0ef41Sopenharmony_ci
5981cb0ef41Sopenharmony_ci  include_dirs = [
5991cb0ef41Sopenharmony_ci    ".",
6001cb0ef41Sopenharmony_ci    "include",
6011cb0ef41Sopenharmony_ci    "$target_gen_dir",
6021cb0ef41Sopenharmony_ci    "$target_gen_dir/include",
6031cb0ef41Sopenharmony_ci  ]
6041cb0ef41Sopenharmony_ci}
6051cb0ef41Sopenharmony_ci
6061cb0ef41Sopenharmony_ciconfig("internal_config") {
6071cb0ef41Sopenharmony_ci  defines = []
6081cb0ef41Sopenharmony_ci
6091cb0ef41Sopenharmony_ci  # Only targets in this file and its subdirs can depend on this.
6101cb0ef41Sopenharmony_ci  visibility = [ "./*" ]
6111cb0ef41Sopenharmony_ci
6121cb0ef41Sopenharmony_ci  configs = [
6131cb0ef41Sopenharmony_ci    "//build/config/compiler:wexit_time_destructors",
6141cb0ef41Sopenharmony_ci    ":internal_config_base",
6151cb0ef41Sopenharmony_ci    ":v8_header_features",
6161cb0ef41Sopenharmony_ci    ":cppgc_header_features",
6171cb0ef41Sopenharmony_ci  ]
6181cb0ef41Sopenharmony_ci
6191cb0ef41Sopenharmony_ci  if (is_component_build) {
6201cb0ef41Sopenharmony_ci    defines += [ "BUILDING_V8_SHARED" ]
6211cb0ef41Sopenharmony_ci  }
6221cb0ef41Sopenharmony_ci
6231cb0ef41Sopenharmony_ci  if (v8_current_cpu == "riscv64") {
6241cb0ef41Sopenharmony_ci    libs = [ "atomic" ]
6251cb0ef41Sopenharmony_ci  }
6261cb0ef41Sopenharmony_ci}
6271cb0ef41Sopenharmony_ci
6281cb0ef41Sopenharmony_ci# Should be applied to all targets that write trace events.
6291cb0ef41Sopenharmony_ciconfig("v8_tracing_config") {
6301cb0ef41Sopenharmony_ci  if (v8_use_perfetto) {
6311cb0ef41Sopenharmony_ci    include_dirs = [
6321cb0ef41Sopenharmony_ci      "third_party/perfetto/include",
6331cb0ef41Sopenharmony_ci      "$root_gen_dir/third_party/perfetto",
6341cb0ef41Sopenharmony_ci      "$root_gen_dir/third_party/perfetto/build_config",
6351cb0ef41Sopenharmony_ci    ]
6361cb0ef41Sopenharmony_ci  }
6371cb0ef41Sopenharmony_ci}
6381cb0ef41Sopenharmony_ci
6391cb0ef41Sopenharmony_ci# This config should be applied to code using the libplatform.
6401cb0ef41Sopenharmony_ciconfig("libplatform_config") {
6411cb0ef41Sopenharmony_ci  include_dirs = [ "include" ]
6421cb0ef41Sopenharmony_ci  if (is_component_build) {
6431cb0ef41Sopenharmony_ci    defines = [ "USING_V8_PLATFORM_SHARED" ]
6441cb0ef41Sopenharmony_ci  }
6451cb0ef41Sopenharmony_ci}
6461cb0ef41Sopenharmony_ci
6471cb0ef41Sopenharmony_ci# This config should be applied to code using the libbase.
6481cb0ef41Sopenharmony_ciconfig("libbase_config") {
6491cb0ef41Sopenharmony_ci  if (is_component_build) {
6501cb0ef41Sopenharmony_ci    defines = [ "USING_V8_BASE_SHARED" ]
6511cb0ef41Sopenharmony_ci  }
6521cb0ef41Sopenharmony_ci  libs = []
6531cb0ef41Sopenharmony_ci  if (is_android && current_toolchain != host_toolchain) {
6541cb0ef41Sopenharmony_ci    libs += [ "log" ]
6551cb0ef41Sopenharmony_ci  }
6561cb0ef41Sopenharmony_ci  include_dirs = [ "$target_gen_dir/include" ]
6571cb0ef41Sopenharmony_ci}
6581cb0ef41Sopenharmony_ci
6591cb0ef41Sopenharmony_ci# Standalone cppgc cannot be built within chrome or with perfetto.
6601cb0ef41Sopenharmony_ciassert(!cppgc_is_standalone || !build_with_chromium)
6611cb0ef41Sopenharmony_ciassert(!cppgc_is_standalone || !v8_use_perfetto)
6621cb0ef41Sopenharmony_ci
6631cb0ef41Sopenharmony_ci# This config should be applied to code using the cppgc_base.
6641cb0ef41Sopenharmony_ciconfig("cppgc_base_config") {
6651cb0ef41Sopenharmony_ci  defines = []
6661cb0ef41Sopenharmony_ci  if (cppgc_is_standalone) {
6671cb0ef41Sopenharmony_ci    defines += [ "CPPGC_IS_STANDALONE" ]
6681cb0ef41Sopenharmony_ci  }
6691cb0ef41Sopenharmony_ci}
6701cb0ef41Sopenharmony_ci
6711cb0ef41Sopenharmony_ci# This config is only applied to v8_headers and is the basis for external_config
6721cb0ef41Sopenharmony_ci# but without setting the USING_V8_SHARED define, which means v8_headers can be
6731cb0ef41Sopenharmony_ci# used inside v8 itself.
6741cb0ef41Sopenharmony_ciconfig("headers_config") {
6751cb0ef41Sopenharmony_ci  defines = []
6761cb0ef41Sopenharmony_ci  configs = [
6771cb0ef41Sopenharmony_ci    ":v8_header_features",
6781cb0ef41Sopenharmony_ci    ":cppgc_header_features",
6791cb0ef41Sopenharmony_ci  ]
6801cb0ef41Sopenharmony_ci  include_dirs = [
6811cb0ef41Sopenharmony_ci    "include",
6821cb0ef41Sopenharmony_ci    "$target_gen_dir/include",
6831cb0ef41Sopenharmony_ci  ]
6841cb0ef41Sopenharmony_ci}
6851cb0ef41Sopenharmony_ci
6861cb0ef41Sopenharmony_ci# This config should only be applied to code using V8 and not any V8 code
6871cb0ef41Sopenharmony_ci# itself.
6881cb0ef41Sopenharmony_ciconfig("external_config") {
6891cb0ef41Sopenharmony_ci  configs = [ ":headers_config" ]
6901cb0ef41Sopenharmony_ci  defines = []
6911cb0ef41Sopenharmony_ci  if (is_component_build) {
6921cb0ef41Sopenharmony_ci    defines += [ "USING_V8_SHARED" ]
6931cb0ef41Sopenharmony_ci  }
6941cb0ef41Sopenharmony_ci
6951cb0ef41Sopenharmony_ci  if (current_cpu == "riscv64") {
6961cb0ef41Sopenharmony_ci    libs = [ "atomic" ]
6971cb0ef41Sopenharmony_ci  }
6981cb0ef41Sopenharmony_ci}
6991cb0ef41Sopenharmony_ci
7001cb0ef41Sopenharmony_ci# This config should only be applied to code that needs to be explicitly
7011cb0ef41Sopenharmony_ci# aware of whether we are using startup data or not.
7021cb0ef41Sopenharmony_ciconfig("external_startup_data") {
7031cb0ef41Sopenharmony_ci  if (v8_use_external_startup_data) {
7041cb0ef41Sopenharmony_ci    defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
7051cb0ef41Sopenharmony_ci  }
7061cb0ef41Sopenharmony_ci}
7071cb0ef41Sopenharmony_ci
7081cb0ef41Sopenharmony_ci# List of defines that can appear in externally visible header files and that
7091cb0ef41Sopenharmony_ci# are controlled by args.gn.
7101cb0ef41Sopenharmony_ciexternal_v8_defines = [
7111cb0ef41Sopenharmony_ci  "V8_ENABLE_CHECKS",
7121cb0ef41Sopenharmony_ci  "V8_COMPRESS_POINTERS",
7131cb0ef41Sopenharmony_ci  "V8_COMPRESS_POINTERS_IN_SHARED_CAGE",
7141cb0ef41Sopenharmony_ci  "V8_COMPRESS_POINTERS_IN_ISOLATE_CAGE",
7151cb0ef41Sopenharmony_ci  "V8_31BIT_SMIS_ON_64BIT_ARCH",
7161cb0ef41Sopenharmony_ci  "V8_COMPRESS_ZONES",
7171cb0ef41Sopenharmony_ci  "V8_SANDBOX",
7181cb0ef41Sopenharmony_ci  "V8_SANDBOXED_POINTERS",
7191cb0ef41Sopenharmony_ci  "V8_SANDBOXED_EXTERNAL_POINTERS",
7201cb0ef41Sopenharmony_ci  "V8_DEPRECATION_WARNINGS",
7211cb0ef41Sopenharmony_ci  "V8_IMMINENT_DEPRECATION_WARNINGS",
7221cb0ef41Sopenharmony_ci  "V8_NO_ARGUMENTS_ADAPTOR",
7231cb0ef41Sopenharmony_ci  "V8_USE_PERFETTO",
7241cb0ef41Sopenharmony_ci  "V8_MAP_PACKING",
7251cb0ef41Sopenharmony_ci  "V8_IS_TSAN",
7261cb0ef41Sopenharmony_ci]
7271cb0ef41Sopenharmony_ci
7281cb0ef41Sopenharmony_cienabled_external_v8_defines = []
7291cb0ef41Sopenharmony_ci
7301cb0ef41Sopenharmony_ciif (v8_enable_v8_checks) {
7311cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_ENABLE_CHECKS" ]
7321cb0ef41Sopenharmony_ci}
7331cb0ef41Sopenharmony_ciif (v8_enable_pointer_compression) {
7341cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_COMPRESS_POINTERS" ]
7351cb0ef41Sopenharmony_ci  if (v8_enable_pointer_compression_shared_cage) {
7361cb0ef41Sopenharmony_ci    enabled_external_v8_defines += [ "V8_COMPRESS_POINTERS_IN_SHARED_CAGE" ]
7371cb0ef41Sopenharmony_ci  } else {
7381cb0ef41Sopenharmony_ci    enabled_external_v8_defines += [ "V8_COMPRESS_POINTERS_IN_ISOLATE_CAGE" ]
7391cb0ef41Sopenharmony_ci  }
7401cb0ef41Sopenharmony_ci}
7411cb0ef41Sopenharmony_ciif (v8_enable_pointer_compression || v8_enable_31bit_smis_on_64bit_arch) {
7421cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_31BIT_SMIS_ON_64BIT_ARCH" ]
7431cb0ef41Sopenharmony_ci}
7441cb0ef41Sopenharmony_ciif (v8_enable_zone_compression) {
7451cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_COMPRESS_ZONES" ]
7461cb0ef41Sopenharmony_ci}
7471cb0ef41Sopenharmony_ciif (v8_enable_sandbox) {
7481cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_SANDBOX" ]
7491cb0ef41Sopenharmony_ci}
7501cb0ef41Sopenharmony_ciif (v8_enable_sandboxed_pointers) {
7511cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_SANDBOXED_POINTERS" ]
7521cb0ef41Sopenharmony_ci}
7531cb0ef41Sopenharmony_ciif (v8_enable_sandboxed_external_pointers) {
7541cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_SANDBOXED_EXTERNAL_POINTERS" ]
7551cb0ef41Sopenharmony_ci}
7561cb0ef41Sopenharmony_ciif (v8_deprecation_warnings) {
7571cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_DEPRECATION_WARNINGS" ]
7581cb0ef41Sopenharmony_ci}
7591cb0ef41Sopenharmony_ciif (v8_imminent_deprecation_warnings) {
7601cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_IMMINENT_DEPRECATION_WARNINGS" ]
7611cb0ef41Sopenharmony_ci}
7621cb0ef41Sopenharmony_ciif (v8_use_perfetto) {
7631cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_USE_PERFETTO" ]
7641cb0ef41Sopenharmony_ci}
7651cb0ef41Sopenharmony_ciif (v8_enable_map_packing) {
7661cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_MAP_PACKING" ]
7671cb0ef41Sopenharmony_ci}
7681cb0ef41Sopenharmony_ciif (is_tsan) {
7691cb0ef41Sopenharmony_ci  enabled_external_v8_defines += [ "V8_IS_TSAN" ]
7701cb0ef41Sopenharmony_ci}
7711cb0ef41Sopenharmony_ci
7721cb0ef41Sopenharmony_cidisabled_external_v8_defines = external_v8_defines - enabled_external_v8_defines
7731cb0ef41Sopenharmony_ci
7741cb0ef41Sopenharmony_ci# Put defines that are used in public headers here; public headers are
7751cb0ef41Sopenharmony_ci# defined in "v8_headers" and are included by embedders of V8.
7761cb0ef41Sopenharmony_ciconfig("v8_header_features") {
7771cb0ef41Sopenharmony_ci  visibility = [ ":*" ]
7781cb0ef41Sopenharmony_ci
7791cb0ef41Sopenharmony_ci  if (v8_generate_external_defines_header) {
7801cb0ef41Sopenharmony_ci    defines = [ "V8_GN_HEADER" ]
7811cb0ef41Sopenharmony_ci  } else {
7821cb0ef41Sopenharmony_ci    defines = enabled_external_v8_defines
7831cb0ef41Sopenharmony_ci  }
7841cb0ef41Sopenharmony_ci}
7851cb0ef41Sopenharmony_ci
7861cb0ef41Sopenharmony_ci# List of defines that can appear in externally visible cppgc header files and
7871cb0ef41Sopenharmony_ci# that are controlled by args.gn.
7881cb0ef41Sopenharmony_ciexternal_cppgc_defines = [
7891cb0ef41Sopenharmony_ci  "CPPGC_SUPPORTS_OBJECT_NAMES",
7901cb0ef41Sopenharmony_ci  "CPPGC_CAGED_HEAP",
7911cb0ef41Sopenharmony_ci  "CPPGC_YOUNG_GENERATION",
7921cb0ef41Sopenharmony_ci]
7931cb0ef41Sopenharmony_ci
7941cb0ef41Sopenharmony_cienabled_external_cppgc_defines = []
7951cb0ef41Sopenharmony_ci
7961cb0ef41Sopenharmony_ciif (cppgc_enable_object_names) {
7971cb0ef41Sopenharmony_ci  enabled_external_cppgc_defines += [ "CPPGC_SUPPORTS_OBJECT_NAMES" ]
7981cb0ef41Sopenharmony_ci}
7991cb0ef41Sopenharmony_ciif (cppgc_enable_caged_heap) {
8001cb0ef41Sopenharmony_ci  enabled_external_cppgc_defines += [ "CPPGC_CAGED_HEAP" ]
8011cb0ef41Sopenharmony_ci}
8021cb0ef41Sopenharmony_ciif (cppgc_enable_young_generation) {
8031cb0ef41Sopenharmony_ci  enabled_external_cppgc_defines += [ "CPPGC_YOUNG_GENERATION" ]
8041cb0ef41Sopenharmony_ci}
8051cb0ef41Sopenharmony_ci
8061cb0ef41Sopenharmony_cidisabled_external_cppgc_defines =
8071cb0ef41Sopenharmony_ci    external_cppgc_defines - enabled_external_cppgc_defines
8081cb0ef41Sopenharmony_ci
8091cb0ef41Sopenharmony_ciconfig("cppgc_header_features") {
8101cb0ef41Sopenharmony_ci  visibility = [ ":*" ]
8111cb0ef41Sopenharmony_ci
8121cb0ef41Sopenharmony_ci  if (v8_generate_external_defines_header) {
8131cb0ef41Sopenharmony_ci    defines = [ "V8_GN_HEADER" ]
8141cb0ef41Sopenharmony_ci  } else {
8151cb0ef41Sopenharmony_ci    defines = enabled_external_cppgc_defines
8161cb0ef41Sopenharmony_ci  }
8171cb0ef41Sopenharmony_ci}
8181cb0ef41Sopenharmony_ci
8191cb0ef41Sopenharmony_cienabled_external_defines =
8201cb0ef41Sopenharmony_ci    enabled_external_v8_defines + enabled_external_cppgc_defines
8211cb0ef41Sopenharmony_cidisabled_external_defines =
8221cb0ef41Sopenharmony_ci    disabled_external_v8_defines + disabled_external_cppgc_defines
8231cb0ef41Sopenharmony_ci
8241cb0ef41Sopenharmony_ci# Put defines here that are only used in our internal files and NEVER in
8251cb0ef41Sopenharmony_ci# external headers that embedders (such as chromium and node) might include.
8261cb0ef41Sopenharmony_ciconfig("features") {
8271cb0ef41Sopenharmony_ci  # Only targets in this file and its subdirs can depend on this.
8281cb0ef41Sopenharmony_ci  visibility = [ "./*" ]
8291cb0ef41Sopenharmony_ci
8301cb0ef41Sopenharmony_ci  defines = []
8311cb0ef41Sopenharmony_ci
8321cb0ef41Sopenharmony_ci  configs = [
8331cb0ef41Sopenharmony_ci    ":v8_header_features",
8341cb0ef41Sopenharmony_ci    ":cppgc_header_features",
8351cb0ef41Sopenharmony_ci  ]
8361cb0ef41Sopenharmony_ci
8371cb0ef41Sopenharmony_ci  if (cppgc_enable_verify_heap) {
8381cb0ef41Sopenharmony_ci    defines += [ "CPPGC_VERIFY_HEAP" ]
8391cb0ef41Sopenharmony_ci  }
8401cb0ef41Sopenharmony_ci
8411cb0ef41Sopenharmony_ci  if (cppgc_allow_allocations_in_prefinalizers) {
8421cb0ef41Sopenharmony_ci    defines += [ "CPPGC_ALLOW_ALLOCATIONS_IN_PREFINALIZERS" ]
8431cb0ef41Sopenharmony_ci  }
8441cb0ef41Sopenharmony_ci
8451cb0ef41Sopenharmony_ci  if (v8_embedder_string != "") {
8461cb0ef41Sopenharmony_ci    defines += [ "V8_EMBEDDER_STRING=\"$v8_embedder_string\"" ]
8471cb0ef41Sopenharmony_ci  }
8481cb0ef41Sopenharmony_ci  if (v8_enable_disassembler) {
8491cb0ef41Sopenharmony_ci    defines += [ "ENABLE_DISASSEMBLER" ]
8501cb0ef41Sopenharmony_ci  }
8511cb0ef41Sopenharmony_ci  if (v8_promise_internal_field_count != 0) {
8521cb0ef41Sopenharmony_ci    defines +=
8531cb0ef41Sopenharmony_ci        [ "V8_PROMISE_INTERNAL_FIELD_COUNT=${v8_promise_internal_field_count}" ]
8541cb0ef41Sopenharmony_ci  }
8551cb0ef41Sopenharmony_ci  defines +=
8561cb0ef41Sopenharmony_ci      [ "V8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=${v8_typed_array_max_size_in_heap}" ]
8571cb0ef41Sopenharmony_ci
8581cb0ef41Sopenharmony_ci  if (v8_enable_future) {
8591cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_FUTURE" ]
8601cb0ef41Sopenharmony_ci  }
8611cb0ef41Sopenharmony_ci  if (v8_enable_lite_mode) {
8621cb0ef41Sopenharmony_ci    defines += [ "V8_LITE_MODE" ]
8631cb0ef41Sopenharmony_ci  }
8641cb0ef41Sopenharmony_ci  if (v8_enable_gdbjit) {
8651cb0ef41Sopenharmony_ci    defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
8661cb0ef41Sopenharmony_ci  }
8671cb0ef41Sopenharmony_ci  if (v8_enable_vtunejit) {
8681cb0ef41Sopenharmony_ci    defines += [ "ENABLE_VTUNE_JIT_INTERFACE" ]
8691cb0ef41Sopenharmony_ci  }
8701cb0ef41Sopenharmony_ci  if (v8_enable_vtunetracemark) {
8711cb0ef41Sopenharmony_ci    defines += [ "ENABLE_VTUNE_TRACEMARK" ]
8721cb0ef41Sopenharmony_ci  }
8731cb0ef41Sopenharmony_ci  if (v8_enable_hugepage) {
8741cb0ef41Sopenharmony_ci    defines += [ "ENABLE_HUGEPAGE" ]
8751cb0ef41Sopenharmony_ci  }
8761cb0ef41Sopenharmony_ci  if (v8_enable_private_mapping_fork_optimization) {
8771cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION" ]
8781cb0ef41Sopenharmony_ci  }
8791cb0ef41Sopenharmony_ci  if (v8_enable_object_print) {
8801cb0ef41Sopenharmony_ci    defines += [ "OBJECT_PRINT" ]
8811cb0ef41Sopenharmony_ci  }
8821cb0ef41Sopenharmony_ci  if (v8_enable_verify_heap) {
8831cb0ef41Sopenharmony_ci    defines += [ "VERIFY_HEAP" ]
8841cb0ef41Sopenharmony_ci  }
8851cb0ef41Sopenharmony_ci  if (v8_enable_verify_predictable) {
8861cb0ef41Sopenharmony_ci    defines += [ "VERIFY_PREDICTABLE" ]
8871cb0ef41Sopenharmony_ci  }
8881cb0ef41Sopenharmony_ci  if (v8_enable_trace_maps) {
8891cb0ef41Sopenharmony_ci    defines += [ "V8_TRACE_MAPS" ]
8901cb0ef41Sopenharmony_ci  }
8911cb0ef41Sopenharmony_ci  if (v8_enable_trace_unoptimized) {
8921cb0ef41Sopenharmony_ci    defines += [ "V8_TRACE_UNOPTIMIZED" ]
8931cb0ef41Sopenharmony_ci  }
8941cb0ef41Sopenharmony_ci  if (v8_enable_trace_feedback_updates) {
8951cb0ef41Sopenharmony_ci    defines += [ "V8_TRACE_FEEDBACK_UPDATES" ]
8961cb0ef41Sopenharmony_ci  }
8971cb0ef41Sopenharmony_ci  if (v8_enable_test_features) {
8981cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_ALLOCATION_TIMEOUT" ]
8991cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_FORCE_SLOW_PATH" ]
9001cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_DOUBLE_CONST_STORE_CHECK" ]
9011cb0ef41Sopenharmony_ci  }
9021cb0ef41Sopenharmony_ci  if (v8_enable_i18n_support) {
9031cb0ef41Sopenharmony_ci    defines += [ "V8_INTL_SUPPORT" ]
9041cb0ef41Sopenharmony_ci  }
9051cb0ef41Sopenharmony_ci  if (v8_enable_handle_zapping) {
9061cb0ef41Sopenharmony_ci    defines += [ "ENABLE_HANDLE_ZAPPING" ]
9071cb0ef41Sopenharmony_ci  }
9081cb0ef41Sopenharmony_ci  if (v8_code_comments == true) {
9091cb0ef41Sopenharmony_ci    defines += [ "V8_CODE_COMMENTS" ]
9101cb0ef41Sopenharmony_ci  }
9111cb0ef41Sopenharmony_ci  if (v8_enable_debug_code) {
9121cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_DEBUG_CODE" ]
9131cb0ef41Sopenharmony_ci  }
9141cb0ef41Sopenharmony_ci  if (v8_enable_heap_snapshot_verify) {
9151cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_HEAP_SNAPSHOT_VERIFY" ]
9161cb0ef41Sopenharmony_ci  }
9171cb0ef41Sopenharmony_ci  if (v8_enable_snapshot_native_code_counters) {
9181cb0ef41Sopenharmony_ci    defines += [ "V8_SNAPSHOT_NATIVE_CODE_COUNTERS" ]
9191cb0ef41Sopenharmony_ci  }
9201cb0ef41Sopenharmony_ci  if (v8_enable_single_generation) {
9211cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_SINGLE_GENERATION" ]
9221cb0ef41Sopenharmony_ci  }
9231cb0ef41Sopenharmony_ci  if (v8_enable_conservative_stack_scanning) {
9241cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_CONSERVATIVE_STACK_SCANNING" ]
9251cb0ef41Sopenharmony_ci  }
9261cb0ef41Sopenharmony_ci  if (v8_disable_write_barriers) {
9271cb0ef41Sopenharmony_ci    defines += [ "V8_DISABLE_WRITE_BARRIERS" ]
9281cb0ef41Sopenharmony_ci  }
9291cb0ef41Sopenharmony_ci  if (v8_enable_third_party_heap) {
9301cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_THIRD_PARTY_HEAP" ]
9311cb0ef41Sopenharmony_ci  }
9321cb0ef41Sopenharmony_ci  if (v8_use_external_startup_data) {
9331cb0ef41Sopenharmony_ci    defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
9341cb0ef41Sopenharmony_ci  }
9351cb0ef41Sopenharmony_ci  if (v8_enable_atomic_object_field_writes) {
9361cb0ef41Sopenharmony_ci    defines += [ "V8_ATOMIC_OBJECT_FIELD_WRITES" ]
9371cb0ef41Sopenharmony_ci  }
9381cb0ef41Sopenharmony_ci  if (v8_enable_ignition_dispatch_counting) {
9391cb0ef41Sopenharmony_ci    defines += [ "V8_IGNITION_DISPATCH_COUNTING" ]
9401cb0ef41Sopenharmony_ci  }
9411cb0ef41Sopenharmony_ci  if (v8_enable_lazy_source_positions) {
9421cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_LAZY_SOURCE_POSITIONS" ]
9431cb0ef41Sopenharmony_ci  }
9441cb0ef41Sopenharmony_ci  if (v8_use_siphash) {
9451cb0ef41Sopenharmony_ci    defines += [ "V8_USE_SIPHASH" ]
9461cb0ef41Sopenharmony_ci  }
9471cb0ef41Sopenharmony_ci  if (v8_enable_shared_ro_heap) {
9481cb0ef41Sopenharmony_ci    defines += [ "V8_SHARED_RO_HEAP" ]
9491cb0ef41Sopenharmony_ci  }
9501cb0ef41Sopenharmony_ci  if (v8_win64_unwinding_info) {
9511cb0ef41Sopenharmony_ci    defines += [ "V8_WIN64_UNWINDING_INFO" ]
9521cb0ef41Sopenharmony_ci  }
9531cb0ef41Sopenharmony_ci  if (v8_enable_regexp_interpreter_threaded_dispatch) {
9541cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH" ]
9551cb0ef41Sopenharmony_ci  }
9561cb0ef41Sopenharmony_ci  if (v8_enable_snapshot_compression) {
9571cb0ef41Sopenharmony_ci    defines += [ "V8_SNAPSHOT_COMPRESSION" ]
9581cb0ef41Sopenharmony_ci  }
9591cb0ef41Sopenharmony_ci  if (v8_control_flow_integrity) {
9601cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_CONTROL_FLOW_INTEGRITY" ]
9611cb0ef41Sopenharmony_ci  }
9621cb0ef41Sopenharmony_ci  if (v8_enable_cet_shadow_stack) {
9631cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_CET_SHADOW_STACK" ]
9641cb0ef41Sopenharmony_ci  }
9651cb0ef41Sopenharmony_ci  if (v8_enable_wasm_gdb_remote_debugging) {
9661cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_WASM_GDB_REMOTE_DEBUGGING" ]
9671cb0ef41Sopenharmony_ci  }
9681cb0ef41Sopenharmony_ci  if (v8_enable_precise_zone_stats) {
9691cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_PRECISE_ZONE_STATS" ]
9701cb0ef41Sopenharmony_ci  }
9711cb0ef41Sopenharmony_ci  if (v8_fuzzilli) {
9721cb0ef41Sopenharmony_ci    defines += [ "V8_FUZZILLI" ]
9731cb0ef41Sopenharmony_ci  }
9741cb0ef41Sopenharmony_ci  if (v8_enable_short_builtin_calls) {
9751cb0ef41Sopenharmony_ci    defines += [ "V8_SHORT_BUILTIN_CALLS" ]
9761cb0ef41Sopenharmony_ci  }
9771cb0ef41Sopenharmony_ci  if (v8_enable_external_code_space) {
9781cb0ef41Sopenharmony_ci    defines += [ "V8_EXTERNAL_CODE_SPACE" ]
9791cb0ef41Sopenharmony_ci  }
9801cb0ef41Sopenharmony_ci  if (v8_enable_maglev) {
9811cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_MAGLEV" ]
9821cb0ef41Sopenharmony_ci  }
9831cb0ef41Sopenharmony_ci  if (v8_enable_swiss_name_dictionary) {
9841cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_SWISS_NAME_DICTIONARY" ]
9851cb0ef41Sopenharmony_ci  }
9861cb0ef41Sopenharmony_ci  if (v8_enable_system_instrumentation) {
9871cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_SYSTEM_INSTRUMENTATION" ]
9881cb0ef41Sopenharmony_ci  }
9891cb0ef41Sopenharmony_ci  if (v8_etw_guid != "") {
9901cb0ef41Sopenharmony_ci    defines += [ "V8_ETW_GUID=\"$v8_etw_guid\"" ]
9911cb0ef41Sopenharmony_ci  }
9921cb0ef41Sopenharmony_ci  if (v8_enable_webassembly) {
9931cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_WEBASSEMBLY" ]
9941cb0ef41Sopenharmony_ci  }
9951cb0ef41Sopenharmony_ci  if (v8_dict_property_const_tracking) {
9961cb0ef41Sopenharmony_ci    defines += [ "V8_DICT_PROPERTY_CONST_TRACKING" ]
9971cb0ef41Sopenharmony_ci  }
9981cb0ef41Sopenharmony_ci  if (v8_enable_javascript_promise_hooks) {
9991cb0ef41Sopenharmony_ci    defines += [ "V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS" ]
10001cb0ef41Sopenharmony_ci  }
10011cb0ef41Sopenharmony_ci  if (v8_enable_allocation_folding) {
10021cb0ef41Sopenharmony_ci    defines += [ "V8_ALLOCATION_FOLDING" ]
10031cb0ef41Sopenharmony_ci  }
10041cb0ef41Sopenharmony_ci  if (v8_allocation_site_tracking) {
10051cb0ef41Sopenharmony_ci    defines += [ "V8_ALLOCATION_SITE_TRACKING" ]
10061cb0ef41Sopenharmony_ci  }
10071cb0ef41Sopenharmony_ci  if (v8_scriptormodule_legacy_lifetime) {
10081cb0ef41Sopenharmony_ci    defines += [ "V8_SCRIPTORMODULE_LEGACY_LIFETIME" ]
10091cb0ef41Sopenharmony_ci  }
10101cb0ef41Sopenharmony_ci  if (v8_advanced_bigint_algorithms) {
10111cb0ef41Sopenharmony_ci    defines += [ "V8_ADVANCED_BIGINT_ALGORITHMS" ]
10121cb0ef41Sopenharmony_ci  }
10131cb0ef41Sopenharmony_ci  if (v8_fuchsia_use_vmex_resource) {
10141cb0ef41Sopenharmony_ci    defines += [ "V8_USE_VMEX_RESOURCE" ]
10151cb0ef41Sopenharmony_ci  }
10161cb0ef41Sopenharmony_ci}
10171cb0ef41Sopenharmony_ci
10181cb0ef41Sopenharmony_ciconfig("toolchain") {
10191cb0ef41Sopenharmony_ci  # Only targets in this file and its subdirs can depend on this.
10201cb0ef41Sopenharmony_ci  visibility = [ "./*" ]
10211cb0ef41Sopenharmony_ci
10221cb0ef41Sopenharmony_ci  defines = []
10231cb0ef41Sopenharmony_ci  cflags = []
10241cb0ef41Sopenharmony_ci  ldflags = []
10251cb0ef41Sopenharmony_ci
10261cb0ef41Sopenharmony_ci  if (v8_current_cpu == "arm") {
10271cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_ARM" ]
10281cb0ef41Sopenharmony_ci    if (arm_version >= 7) {
10291cb0ef41Sopenharmony_ci      defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
10301cb0ef41Sopenharmony_ci    }
10311cb0ef41Sopenharmony_ci    if (arm_fpu == "vfpv3-d16") {
10321cb0ef41Sopenharmony_ci      defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
10331cb0ef41Sopenharmony_ci    } else if (arm_fpu == "vfpv3") {
10341cb0ef41Sopenharmony_ci      defines += [
10351cb0ef41Sopenharmony_ci        "CAN_USE_VFP3_INSTRUCTIONS",
10361cb0ef41Sopenharmony_ci        "CAN_USE_VFP32DREGS",
10371cb0ef41Sopenharmony_ci      ]
10381cb0ef41Sopenharmony_ci    } else if (arm_fpu == "neon") {
10391cb0ef41Sopenharmony_ci      defines += [
10401cb0ef41Sopenharmony_ci        "CAN_USE_VFP3_INSTRUCTIONS",
10411cb0ef41Sopenharmony_ci        "CAN_USE_VFP32DREGS",
10421cb0ef41Sopenharmony_ci        "CAN_USE_NEON",
10431cb0ef41Sopenharmony_ci      ]
10441cb0ef41Sopenharmony_ci    }
10451cb0ef41Sopenharmony_ci
10461cb0ef41Sopenharmony_ci    # TODO(infra): Add support for arm_test_noprobe.
10471cb0ef41Sopenharmony_ci
10481cb0ef41Sopenharmony_ci    if (current_cpu != "arm") {
10491cb0ef41Sopenharmony_ci      # These defines ares used for the ARM simulator.
10501cb0ef41Sopenharmony_ci      if (arm_float_abi == "hard") {
10511cb0ef41Sopenharmony_ci        defines += [ "USE_EABI_HARDFLOAT=1" ]
10521cb0ef41Sopenharmony_ci      } else if (arm_float_abi == "softfp") {
10531cb0ef41Sopenharmony_ci        defines += [ "USE_EABI_HARDFLOAT=0" ]
10541cb0ef41Sopenharmony_ci      }
10551cb0ef41Sopenharmony_ci    }
10561cb0ef41Sopenharmony_ci  }
10571cb0ef41Sopenharmony_ci  if (v8_current_cpu == "arm64") {
10581cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_ARM64" ]
10591cb0ef41Sopenharmony_ci    if (current_cpu == "arm64") {
10601cb0ef41Sopenharmony_ci      # This will enable PAC+BTI in code generation and static code.
10611cb0ef41Sopenharmony_ci      if (v8_control_flow_integrity &&
10621cb0ef41Sopenharmony_ci          (!build_with_chromium || arm_control_flow_integrity == "standard")) {
10631cb0ef41Sopenharmony_ci        cflags += [ "-mbranch-protection=standard" ]
10641cb0ef41Sopenharmony_ci        asmflags = [ "-mmark-bti-property" ]
10651cb0ef41Sopenharmony_ci      } else if (build_with_chromium && arm_control_flow_integrity == "pac") {
10661cb0ef41Sopenharmony_ci        # This should enable PAC only in C++ code (and no CFI in runtime
10671cb0ef41Sopenharmony_ci        # generated code). For details, see crbug.com/919548.
10681cb0ef41Sopenharmony_ci        cflags += [ "-mbranch-protection=pac-ret" ]
10691cb0ef41Sopenharmony_ci        asmflags = [ "-mbranch-protection=pac-ret" ]
10701cb0ef41Sopenharmony_ci      }
10711cb0ef41Sopenharmony_ci    }
10721cb0ef41Sopenharmony_ci  }
10731cb0ef41Sopenharmony_ci
10741cb0ef41Sopenharmony_ci  # Mips64el/mipsel simulators.
10751cb0ef41Sopenharmony_ci  if (target_is_simulator &&
10761cb0ef41Sopenharmony_ci      (v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) {
10771cb0ef41Sopenharmony_ci    defines += [ "_MIPS_TARGET_SIMULATOR" ]
10781cb0ef41Sopenharmony_ci  }
10791cb0ef41Sopenharmony_ci
10801cb0ef41Sopenharmony_ci  if (v8_current_cpu == "mipsel" || v8_current_cpu == "mips") {
10811cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_MIPS" ]
10821cb0ef41Sopenharmony_ci    if (v8_can_use_fpu_instructions) {
10831cb0ef41Sopenharmony_ci      defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
10841cb0ef41Sopenharmony_ci    }
10851cb0ef41Sopenharmony_ci    if (v8_use_mips_abi_hardfloat) {
10861cb0ef41Sopenharmony_ci      defines += [
10871cb0ef41Sopenharmony_ci        "__mips_hard_float=1",
10881cb0ef41Sopenharmony_ci        "CAN_USE_FPU_INSTRUCTIONS",
10891cb0ef41Sopenharmony_ci      ]
10901cb0ef41Sopenharmony_ci    } else {
10911cb0ef41Sopenharmony_ci      defines += [ "__mips_soft_float=1" ]
10921cb0ef41Sopenharmony_ci    }
10931cb0ef41Sopenharmony_ci    if (mips_arch_variant == "r6") {
10941cb0ef41Sopenharmony_ci      defines += [
10951cb0ef41Sopenharmony_ci        "_MIPS_ARCH_MIPS32R6",
10961cb0ef41Sopenharmony_ci        "FPU_MODE_FP64",
10971cb0ef41Sopenharmony_ci      ]
10981cb0ef41Sopenharmony_ci      if (mips_use_msa) {
10991cb0ef41Sopenharmony_ci        defines += [ "_MIPS_MSA" ]
11001cb0ef41Sopenharmony_ci      }
11011cb0ef41Sopenharmony_ci    } else if (mips_arch_variant == "r2") {
11021cb0ef41Sopenharmony_ci      defines += [ "_MIPS_ARCH_MIPS32R2" ]
11031cb0ef41Sopenharmony_ci      if (mips_fpu_mode == "fp64") {
11041cb0ef41Sopenharmony_ci        defines += [ "FPU_MODE_FP64" ]
11051cb0ef41Sopenharmony_ci      } else if (mips_fpu_mode == "fpxx") {
11061cb0ef41Sopenharmony_ci        defines += [ "FPU_MODE_FPXX" ]
11071cb0ef41Sopenharmony_ci      } else if (mips_fpu_mode == "fp32") {
11081cb0ef41Sopenharmony_ci        defines += [ "FPU_MODE_FP32" ]
11091cb0ef41Sopenharmony_ci      }
11101cb0ef41Sopenharmony_ci    } else if (mips_arch_variant == "r1") {
11111cb0ef41Sopenharmony_ci      defines += [ "FPU_MODE_FP32" ]
11121cb0ef41Sopenharmony_ci    }
11131cb0ef41Sopenharmony_ci
11141cb0ef41Sopenharmony_ci    # TODO(infra): Add support for mips_arch_variant rx and loongson.
11151cb0ef41Sopenharmony_ci  }
11161cb0ef41Sopenharmony_ci
11171cb0ef41Sopenharmony_ci  if (v8_current_cpu == "mips64el" || v8_current_cpu == "mips64") {
11181cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_MIPS64" ]
11191cb0ef41Sopenharmony_ci    if (v8_can_use_fpu_instructions) {
11201cb0ef41Sopenharmony_ci      defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
11211cb0ef41Sopenharmony_ci    }
11221cb0ef41Sopenharmony_ci    if (mips_use_msa) {
11231cb0ef41Sopenharmony_ci      defines += [ "_MIPS_MSA" ]
11241cb0ef41Sopenharmony_ci    }
11251cb0ef41Sopenharmony_ci    if (host_byteorder == "little") {
11261cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_MIPS64_LE" ]
11271cb0ef41Sopenharmony_ci    } else if (host_byteorder == "big") {
11281cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_MIPS64_BE" ]
11291cb0ef41Sopenharmony_ci    }
11301cb0ef41Sopenharmony_ci    if (v8_use_mips_abi_hardfloat) {
11311cb0ef41Sopenharmony_ci      defines += [
11321cb0ef41Sopenharmony_ci        "__mips_hard_float=1",
11331cb0ef41Sopenharmony_ci        "CAN_USE_FPU_INSTRUCTIONS",
11341cb0ef41Sopenharmony_ci      ]
11351cb0ef41Sopenharmony_ci    } else {
11361cb0ef41Sopenharmony_ci      defines += [ "__mips_soft_float=1" ]
11371cb0ef41Sopenharmony_ci    }
11381cb0ef41Sopenharmony_ci    if (mips_arch_variant == "r6") {
11391cb0ef41Sopenharmony_ci      defines += [ "_MIPS_ARCH_MIPS64R6" ]
11401cb0ef41Sopenharmony_ci    } else if (mips_arch_variant == "r2") {
11411cb0ef41Sopenharmony_ci      defines += [ "_MIPS_ARCH_MIPS64R2" ]
11421cb0ef41Sopenharmony_ci    }
11431cb0ef41Sopenharmony_ci  }
11441cb0ef41Sopenharmony_ci
11451cb0ef41Sopenharmony_ci  # loong64 simulators.
11461cb0ef41Sopenharmony_ci  if (target_is_simulator && v8_current_cpu == "loong64") {
11471cb0ef41Sopenharmony_ci    defines += [ "_LOONG64_TARGET_SIMULATOR" ]
11481cb0ef41Sopenharmony_ci  }
11491cb0ef41Sopenharmony_ci  if (v8_current_cpu == "loong64") {
11501cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_LOONG64" ]
11511cb0ef41Sopenharmony_ci  }
11521cb0ef41Sopenharmony_ci
11531cb0ef41Sopenharmony_ci  if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
11541cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_S390" ]
11551cb0ef41Sopenharmony_ci    cflags += [ "-ffp-contract=off" ]
11561cb0ef41Sopenharmony_ci    if (v8_current_cpu == "s390x") {
11571cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_S390X" ]
11581cb0ef41Sopenharmony_ci    }
11591cb0ef41Sopenharmony_ci    if (host_byteorder == "little") {
11601cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_S390_LE_SIM" ]
11611cb0ef41Sopenharmony_ci    } else {
11621cb0ef41Sopenharmony_ci      cflags += [ "-march=z196" ]
11631cb0ef41Sopenharmony_ci    }
11641cb0ef41Sopenharmony_ci  }
11651cb0ef41Sopenharmony_ci  if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
11661cb0ef41Sopenharmony_ci    if (v8_current_cpu == "ppc") {
11671cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_PPC" ]
11681cb0ef41Sopenharmony_ci    } else if (v8_current_cpu == "ppc64") {
11691cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_PPC64" ]
11701cb0ef41Sopenharmony_ci      cflags += [ "-ffp-contract=off" ]
11711cb0ef41Sopenharmony_ci    }
11721cb0ef41Sopenharmony_ci    if (host_byteorder == "little") {
11731cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_PPC_LE" ]
11741cb0ef41Sopenharmony_ci    } else if (host_byteorder == "big") {
11751cb0ef41Sopenharmony_ci      defines += [ "V8_TARGET_ARCH_PPC_BE" ]
11761cb0ef41Sopenharmony_ci      if (current_os == "aix") {
11771cb0ef41Sopenharmony_ci        cflags += [
11781cb0ef41Sopenharmony_ci          # Work around AIX ceil, trunc and round oddities.
11791cb0ef41Sopenharmony_ci          "-mcpu=power5+",
11801cb0ef41Sopenharmony_ci          "-mfprnd",
11811cb0ef41Sopenharmony_ci
11821cb0ef41Sopenharmony_ci          # Work around AIX assembler popcntb bug.
11831cb0ef41Sopenharmony_ci          "-mno-popcntb",
11841cb0ef41Sopenharmony_ci        ]
11851cb0ef41Sopenharmony_ci      }
11861cb0ef41Sopenharmony_ci    }
11871cb0ef41Sopenharmony_ci  }
11881cb0ef41Sopenharmony_ci
11891cb0ef41Sopenharmony_ci  # Under simulator build, compiler will not provide __riscv_xlen. Define here
11901cb0ef41Sopenharmony_ci  if (v8_current_cpu == "riscv64") {
11911cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_RISCV64" ]
11921cb0ef41Sopenharmony_ci    defines += [ "__riscv_xlen=64" ]
11931cb0ef41Sopenharmony_ci
11941cb0ef41Sopenharmony_ci    #FIXME: Temporarily use MIPS macro for the building.
11951cb0ef41Sopenharmony_ci    defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
11961cb0ef41Sopenharmony_ci    if (target_is_simulator) {
11971cb0ef41Sopenharmony_ci      defines += [ "CAN_USE_RVV_INSTRUCTIONS" ]
11981cb0ef41Sopenharmony_ci    }
11991cb0ef41Sopenharmony_ci  }
12001cb0ef41Sopenharmony_ci
12011cb0ef41Sopenharmony_ci  if (v8_current_cpu == "x86") {
12021cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_IA32" ]
12031cb0ef41Sopenharmony_ci    if (is_win) {
12041cb0ef41Sopenharmony_ci      # Ensure no surprising artifacts from 80bit double math with x86.
12051cb0ef41Sopenharmony_ci      cflags += [ "/arch:SSE2" ]
12061cb0ef41Sopenharmony_ci    }
12071cb0ef41Sopenharmony_ci  }
12081cb0ef41Sopenharmony_ci  if (v8_current_cpu == "x64") {
12091cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_ARCH_X64" ]
12101cb0ef41Sopenharmony_ci    if (is_win) {
12111cb0ef41Sopenharmony_ci      # Increase the initial stack size. The default is 1MB, this is 2MB. This
12121cb0ef41Sopenharmony_ci      # applies only to executables and shared libraries produced by V8 since
12131cb0ef41Sopenharmony_ci      # ldflags are not pushed to dependants.
12141cb0ef41Sopenharmony_ci      ldflags += [ "/STACK:2097152" ]
12151cb0ef41Sopenharmony_ci    }
12161cb0ef41Sopenharmony_ci  }
12171cb0ef41Sopenharmony_ci  if (is_android && v8_android_log_stdout) {
12181cb0ef41Sopenharmony_ci    defines += [ "V8_ANDROID_LOG_STDOUT" ]
12191cb0ef41Sopenharmony_ci  }
12201cb0ef41Sopenharmony_ci
12211cb0ef41Sopenharmony_ci  # V8_TARGET_OS_ defines. The target OS may differ from host OS e.g. in
12221cb0ef41Sopenharmony_ci  # mksnapshot. We additionally set V8_HAVE_TARGET_OS to determine that a
12231cb0ef41Sopenharmony_ci  # target OS has in fact been set; otherwise we internally assume that target
12241cb0ef41Sopenharmony_ci  # OS == host OS (see v8config.h).
12251cb0ef41Sopenharmony_ci  if (target_os == "android") {
12261cb0ef41Sopenharmony_ci    defines += [ "V8_HAVE_TARGET_OS" ]
12271cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_OS_ANDROID" ]
12281cb0ef41Sopenharmony_ci  } else if (target_os == "fuchsia") {
12291cb0ef41Sopenharmony_ci    defines += [ "V8_HAVE_TARGET_OS" ]
12301cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_OS_FUCHSIA" ]
12311cb0ef41Sopenharmony_ci  } else if (target_os == "ios") {
12321cb0ef41Sopenharmony_ci    defines += [ "V8_HAVE_TARGET_OS" ]
12331cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_OS_IOS" ]
12341cb0ef41Sopenharmony_ci  } else if (target_os == "linux") {
12351cb0ef41Sopenharmony_ci    defines += [ "V8_HAVE_TARGET_OS" ]
12361cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_OS_LINUX" ]
12371cb0ef41Sopenharmony_ci  } else if (target_os == "mac") {
12381cb0ef41Sopenharmony_ci    defines += [ "V8_HAVE_TARGET_OS" ]
12391cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_OS_MACOS" ]
12401cb0ef41Sopenharmony_ci  } else if (target_os == "win") {
12411cb0ef41Sopenharmony_ci    defines += [ "V8_HAVE_TARGET_OS" ]
12421cb0ef41Sopenharmony_ci    defines += [ "V8_TARGET_OS_WIN" ]
12431cb0ef41Sopenharmony_ci  }
12441cb0ef41Sopenharmony_ci
12451cb0ef41Sopenharmony_ci  # TODO(infra): Support v8_enable_prof on Windows.
12461cb0ef41Sopenharmony_ci  # TODO(infra): Add support for compiling with simulators.
12471cb0ef41Sopenharmony_ci
12481cb0ef41Sopenharmony_ci  if (v8_enable_debugging_features) {
12491cb0ef41Sopenharmony_ci    if ((is_linux || is_chromeos) && v8_enable_backtrace) {
12501cb0ef41Sopenharmony_ci      ldflags += [ "-rdynamic" ]
12511cb0ef41Sopenharmony_ci    }
12521cb0ef41Sopenharmony_ci
12531cb0ef41Sopenharmony_ci    defines += [ "DEBUG" ]
12541cb0ef41Sopenharmony_ci    if (v8_enable_slow_dchecks) {
12551cb0ef41Sopenharmony_ci      defines += [ "ENABLE_SLOW_DCHECKS" ]
12561cb0ef41Sopenharmony_ci    }
12571cb0ef41Sopenharmony_ci  } else if (dcheck_always_on) {
12581cb0ef41Sopenharmony_ci    defines += [ "DEBUG" ]
12591cb0ef41Sopenharmony_ci  }
12601cb0ef41Sopenharmony_ci
12611cb0ef41Sopenharmony_ci  if (v8_enable_verify_csa) {
12621cb0ef41Sopenharmony_ci    defines += [ "ENABLE_VERIFY_CSA" ]
12631cb0ef41Sopenharmony_ci  }
12641cb0ef41Sopenharmony_ci
12651cb0ef41Sopenharmony_ci  if (v8_enable_runtime_call_stats) {
12661cb0ef41Sopenharmony_ci    defines += [ "V8_RUNTIME_CALL_STATS" ]
12671cb0ef41Sopenharmony_ci  }
12681cb0ef41Sopenharmony_ci
12691cb0ef41Sopenharmony_ci  if (v8_no_inline) {
12701cb0ef41Sopenharmony_ci    if (is_win) {
12711cb0ef41Sopenharmony_ci      cflags += [ "/Ob0" ]
12721cb0ef41Sopenharmony_ci    } else {
12731cb0ef41Sopenharmony_ci      cflags += [
12741cb0ef41Sopenharmony_ci        "-fno-inline-functions",
12751cb0ef41Sopenharmony_ci        "-fno-inline",
12761cb0ef41Sopenharmony_ci      ]
12771cb0ef41Sopenharmony_ci    }
12781cb0ef41Sopenharmony_ci  }
12791cb0ef41Sopenharmony_ci
12801cb0ef41Sopenharmony_ci  if (is_clang) {
12811cb0ef41Sopenharmony_ci    cflags += [
12821cb0ef41Sopenharmony_ci      "-Wmissing-field-initializers",
12831cb0ef41Sopenharmony_ci
12841cb0ef41Sopenharmony_ci      # TODO(v8:12245): Fix shadowing instances and remove.
12851cb0ef41Sopenharmony_ci      "-Wno-shadow",
12861cb0ef41Sopenharmony_ci    ]
12871cb0ef41Sopenharmony_ci
12881cb0ef41Sopenharmony_ci    if (v8_current_cpu != "mips" && v8_current_cpu != "mipsel") {
12891cb0ef41Sopenharmony_ci      # We exclude MIPS because the IsMipsArchVariant macro causes trouble.
12901cb0ef41Sopenharmony_ci      cflags += [ "-Wunreachable-code" ]
12911cb0ef41Sopenharmony_ci    }
12921cb0ef41Sopenharmony_ci
12931cb0ef41Sopenharmony_ci    if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
12941cb0ef41Sopenharmony_ci        v8_current_cpu == "mips64el" || v8_current_cpu == "riscv64") {
12951cb0ef41Sopenharmony_ci      cflags += [ "-Wshorten-64-to-32" ]
12961cb0ef41Sopenharmony_ci    }
12971cb0ef41Sopenharmony_ci  }
12981cb0ef41Sopenharmony_ci
12991cb0ef41Sopenharmony_ci  if (is_win) {
13001cb0ef41Sopenharmony_ci    cflags += [
13011cb0ef41Sopenharmony_ci      "/wd4245",  # Conversion with signed/unsigned mismatch.
13021cb0ef41Sopenharmony_ci      "/wd4267",  # Conversion with possible loss of data.
13031cb0ef41Sopenharmony_ci      "/wd4324",  # Padding structure due to alignment.
13041cb0ef41Sopenharmony_ci      "/wd4701",  # Potentially uninitialized local variable.
13051cb0ef41Sopenharmony_ci      "/wd4702",  # Unreachable code.
13061cb0ef41Sopenharmony_ci      "/wd4703",  # Potentially uninitialized local pointer variable.
13071cb0ef41Sopenharmony_ci      "/wd4709",  # Comma operator within array index expr (bugged).
13081cb0ef41Sopenharmony_ci      "/wd4714",  # Function marked forceinline not inlined.
13091cb0ef41Sopenharmony_ci
13101cb0ef41Sopenharmony_ci      # MSVC assumes that control can get past an exhaustive switch and then
13111cb0ef41Sopenharmony_ci      # warns if there's no return there (see https://crbug.com/v8/7658)
13121cb0ef41Sopenharmony_ci      "/wd4715",  # Not all control paths return a value.
13131cb0ef41Sopenharmony_ci
13141cb0ef41Sopenharmony_ci      "/wd4718",  # Recursive call has no side-effect.
13151cb0ef41Sopenharmony_ci      "/wd4723",  # https://crbug.com/v8/7771
13161cb0ef41Sopenharmony_ci      "/wd4724",  # https://crbug.com/v8/7771
13171cb0ef41Sopenharmony_ci      "/wd4800",  # Forcing value to bool.
13181cb0ef41Sopenharmony_ci    ]
13191cb0ef41Sopenharmony_ci  }
13201cb0ef41Sopenharmony_ci
13211cb0ef41Sopenharmony_ci  if (!is_clang && is_win) {
13221cb0ef41Sopenharmony_ci    cflags += [
13231cb0ef41Sopenharmony_ci      "/wd4506",  # Benign "no definition for inline function"
13241cb0ef41Sopenharmony_ci
13251cb0ef41Sopenharmony_ci      # Warnings permanently disabled:
13261cb0ef41Sopenharmony_ci
13271cb0ef41Sopenharmony_ci      # C4091: 'typedef ': ignored on left of 'X' when no variable is
13281cb0ef41Sopenharmony_ci      #                    declared.
13291cb0ef41Sopenharmony_ci      # This happens in a number of Windows headers. Dumb.
13301cb0ef41Sopenharmony_ci      "/wd4091",
13311cb0ef41Sopenharmony_ci
13321cb0ef41Sopenharmony_ci      # C4127: conditional expression is constant
13331cb0ef41Sopenharmony_ci      # This warning can in theory catch dead code and other problems, but
13341cb0ef41Sopenharmony_ci      # triggers in far too many desirable cases where the conditional
13351cb0ef41Sopenharmony_ci      # expression is either set by macros or corresponds some legitimate
13361cb0ef41Sopenharmony_ci      # compile-time constant expression (due to constant template args,
13371cb0ef41Sopenharmony_ci      # conditionals comparing the sizes of different types, etc.).  Some of
13381cb0ef41Sopenharmony_ci      # these can be worked around, but it's not worth it.
13391cb0ef41Sopenharmony_ci      "/wd4127",
13401cb0ef41Sopenharmony_ci
13411cb0ef41Sopenharmony_ci      # C4251: 'identifier' : class 'type' needs to have dll-interface to be
13421cb0ef41Sopenharmony_ci      #        used by clients of class 'type2'
13431cb0ef41Sopenharmony_ci      # This is necessary for the shared library build.
13441cb0ef41Sopenharmony_ci      "/wd4251",
13451cb0ef41Sopenharmony_ci
13461cb0ef41Sopenharmony_ci      # C4275:  non dll-interface class used as base for dll-interface class
13471cb0ef41Sopenharmony_ci      # This points out a potential (but rare) problem with referencing static
13481cb0ef41Sopenharmony_ci      # fields of a non-exported base, through the base's non-exported inline
13491cb0ef41Sopenharmony_ci      # functions, or directly. The warning is subtle enough that people just
13501cb0ef41Sopenharmony_ci      # suppressed it when they saw it, so it's not worth it.
13511cb0ef41Sopenharmony_ci      "/wd4275",
13521cb0ef41Sopenharmony_ci
13531cb0ef41Sopenharmony_ci      # C4312 is a VS 2015 64-bit warning for integer to larger pointer.
13541cb0ef41Sopenharmony_ci      # TODO(brucedawson): fix warnings, crbug.com/554200
13551cb0ef41Sopenharmony_ci      "/wd4312",
13561cb0ef41Sopenharmony_ci
13571cb0ef41Sopenharmony_ci      # C4324 warns when padding is added to fulfill alignas requirements,
13581cb0ef41Sopenharmony_ci      # but can trigger in benign cases that are difficult to individually
13591cb0ef41Sopenharmony_ci      # suppress.
13601cb0ef41Sopenharmony_ci      "/wd4324",
13611cb0ef41Sopenharmony_ci
13621cb0ef41Sopenharmony_ci      # C4351: new behavior: elements of array 'array' will be default
13631cb0ef41Sopenharmony_ci      #        initialized
13641cb0ef41Sopenharmony_ci      # This is a silly "warning" that basically just alerts you that the
13651cb0ef41Sopenharmony_ci      # compiler is going to actually follow the language spec like it's
13661cb0ef41Sopenharmony_ci      # supposed to, instead of not following it like old buggy versions did.
13671cb0ef41Sopenharmony_ci      # There's absolutely no reason to turn this on.
13681cb0ef41Sopenharmony_ci      "/wd4351",
13691cb0ef41Sopenharmony_ci
13701cb0ef41Sopenharmony_ci      # C4355: 'this': used in base member initializer list
13711cb0ef41Sopenharmony_ci      # It's commonly useful to pass |this| to objects in a class' initializer
13721cb0ef41Sopenharmony_ci      # list.  While this warning can catch real bugs, most of the time the
13731cb0ef41Sopenharmony_ci      # constructors in question don't attempt to call methods on the passed-in
13741cb0ef41Sopenharmony_ci      # pointer (until later), and annotating every legit usage of this is
13751cb0ef41Sopenharmony_ci      # simply more hassle than the warning is worth.
13761cb0ef41Sopenharmony_ci      "/wd4355",
13771cb0ef41Sopenharmony_ci
13781cb0ef41Sopenharmony_ci      # C4503: 'identifier': decorated name length exceeded, name was
13791cb0ef41Sopenharmony_ci      #        truncated
13801cb0ef41Sopenharmony_ci      # This only means that some long error messages might have truncated
13811cb0ef41Sopenharmony_ci      # identifiers in the presence of lots of templates.  It has no effect on
13821cb0ef41Sopenharmony_ci      # program correctness and there's no real reason to waste time trying to
13831cb0ef41Sopenharmony_ci      # prevent it.
13841cb0ef41Sopenharmony_ci      "/wd4503",
13851cb0ef41Sopenharmony_ci
13861cb0ef41Sopenharmony_ci      # Warning C4589 says: "Constructor of abstract class ignores
13871cb0ef41Sopenharmony_ci      # initializer for virtual base class." Disable this warning because it
13881cb0ef41Sopenharmony_ci      # is flaky in VS 2015 RTM. It triggers on compiler generated
13891cb0ef41Sopenharmony_ci      # copy-constructors in some cases.
13901cb0ef41Sopenharmony_ci      "/wd4589",
13911cb0ef41Sopenharmony_ci
13921cb0ef41Sopenharmony_ci      # C4611: interaction between 'function' and C++ object destruction is
13931cb0ef41Sopenharmony_ci      #        non-portable
13941cb0ef41Sopenharmony_ci      # This warning is unavoidable when using e.g. setjmp/longjmp.  MSDN
13951cb0ef41Sopenharmony_ci      # suggests using exceptions instead of setjmp/longjmp for C++, but
13961cb0ef41Sopenharmony_ci      # Chromium code compiles without exception support.  We therefore have to
13971cb0ef41Sopenharmony_ci      # use setjmp/longjmp for e.g. JPEG decode error handling, which means we
13981cb0ef41Sopenharmony_ci      # have to turn off this warning (and be careful about how object
13991cb0ef41Sopenharmony_ci      # destruction happens in such cases).
14001cb0ef41Sopenharmony_ci      "/wd4611",
14011cb0ef41Sopenharmony_ci
14021cb0ef41Sopenharmony_ci      # Warnings to evaluate and possibly fix/reenable later:
14031cb0ef41Sopenharmony_ci
14041cb0ef41Sopenharmony_ci      "/wd4100",  # Unreferenced formal function parameter.
14051cb0ef41Sopenharmony_ci      "/wd4121",  # Alignment of a member was sensitive to packing.
14061cb0ef41Sopenharmony_ci      "/wd4244",  # Conversion: possible loss of data.
14071cb0ef41Sopenharmony_ci      "/wd4505",  # Unreferenced local function has been removed.
14081cb0ef41Sopenharmony_ci      "/wd4510",  # Default constructor could not be generated.
14091cb0ef41Sopenharmony_ci      "/wd4512",  # Assignment operator could not be generated.
14101cb0ef41Sopenharmony_ci      "/wd4610",  # Class can never be instantiated, constructor required.
14111cb0ef41Sopenharmony_ci      "/wd4838",  # Narrowing conversion. Doesn't seem to be very useful.
14121cb0ef41Sopenharmony_ci      "/wd4995",  # 'X': name was marked as #pragma deprecated
14131cb0ef41Sopenharmony_ci      "/wd4996",  # Deprecated function warning.
14141cb0ef41Sopenharmony_ci
14151cb0ef41Sopenharmony_ci      # These are variable shadowing warnings that are new in VS2015. We
14161cb0ef41Sopenharmony_ci      # should work through these at some point -- they may be removed from
14171cb0ef41Sopenharmony_ci      # the RTM release in the /W4 set.
14181cb0ef41Sopenharmony_ci      "/wd4456",
14191cb0ef41Sopenharmony_ci      "/wd4457",
14201cb0ef41Sopenharmony_ci      "/wd4458",
14211cb0ef41Sopenharmony_ci      "/wd4459",
14221cb0ef41Sopenharmony_ci
14231cb0ef41Sopenharmony_ci      # All of our compilers support the extensions below.
14241cb0ef41Sopenharmony_ci      "/wd4200",  # nonstandard extension used: zero-sized array in struct/union
14251cb0ef41Sopenharmony_ci      "/wd4201",  # nonstandard extension used: nameless struct/union
14261cb0ef41Sopenharmony_ci      "/wd4204",  # nonstandard extension used : non-constant aggregate
14271cb0ef41Sopenharmony_ci                  # initializer
14281cb0ef41Sopenharmony_ci
14291cb0ef41Sopenharmony_ci      "/wd4221",  # nonstandard extension used : 'identifier' : cannot be
14301cb0ef41Sopenharmony_ci                  # initialized using address of automatic variable
14311cb0ef41Sopenharmony_ci
14321cb0ef41Sopenharmony_ci      # http://crbug.com/588506 - Conversion suppressions waiting on Clang
14331cb0ef41Sopenharmony_ci      # -Wconversion.
14341cb0ef41Sopenharmony_ci      "/wd4245",  # 'conversion' : conversion from 'type1' to 'type2',
14351cb0ef41Sopenharmony_ci                  # signed/unsigned mismatch
14361cb0ef41Sopenharmony_ci
14371cb0ef41Sopenharmony_ci      "/wd4267",  # 'var' : conversion from 'size_t' to 'type', possible loss of
14381cb0ef41Sopenharmony_ci                  # data
14391cb0ef41Sopenharmony_ci
14401cb0ef41Sopenharmony_ci      "/wd4305",  # 'identifier' : truncation from 'type1' to 'type2'
14411cb0ef41Sopenharmony_ci      "/wd4389",  # 'operator' : signed/unsigned mismatch
14421cb0ef41Sopenharmony_ci
14431cb0ef41Sopenharmony_ci      "/wd4702",  # unreachable code
14441cb0ef41Sopenharmony_ci
14451cb0ef41Sopenharmony_ci      # http://crbug.com/848979 - MSVC is more conservative than Clang with
14461cb0ef41Sopenharmony_ci      # regards to variables initialized and consumed in different branches.
14471cb0ef41Sopenharmony_ci      "/wd4701",  # Potentially uninitialized local variable 'name' used
14481cb0ef41Sopenharmony_ci      "/wd4703",  # Potentially uninitialized local pointer variable 'name' used
14491cb0ef41Sopenharmony_ci
14501cb0ef41Sopenharmony_ci      # http://crbug.com/848979 - Remaining Clang permitted warnings.
14511cb0ef41Sopenharmony_ci      "/wd4661",  # 'identifier' : no suitable definition provided for explicit
14521cb0ef41Sopenharmony_ci                  # template instantiation request
14531cb0ef41Sopenharmony_ci
14541cb0ef41Sopenharmony_ci      "/wd4706",  # assignment within conditional expression
14551cb0ef41Sopenharmony_ci                  # MSVC is stricter and requires a boolean expression.
14561cb0ef41Sopenharmony_ci
14571cb0ef41Sopenharmony_ci      "/wd4715",  # 'function' : not all control paths return a value'
14581cb0ef41Sopenharmony_ci                  # MSVC does not analyze switch (enum) for completeness.
14591cb0ef41Sopenharmony_ci    ]
14601cb0ef41Sopenharmony_ci  }
14611cb0ef41Sopenharmony_ci
14621cb0ef41Sopenharmony_ci  if (!is_clang && !is_win) {
14631cb0ef41Sopenharmony_ci    cflags += [
14641cb0ef41Sopenharmony_ci      # Disable gcc warnings for optimizations based on the assumption that
14651cb0ef41Sopenharmony_ci      # signed overflow does not occur. Generates false positives (see
14661cb0ef41Sopenharmony_ci      # http://crbug.com/v8/6341).
14671cb0ef41Sopenharmony_ci      "-Wno-strict-overflow",
14681cb0ef41Sopenharmony_ci
14691cb0ef41Sopenharmony_ci      # GCC assumes that control can get past an exhaustive switch and then
14701cb0ef41Sopenharmony_ci      # warns if there's no return there (see https://crbug.com/v8/7658).
14711cb0ef41Sopenharmony_ci      "-Wno-return-type",
14721cb0ef41Sopenharmony_ci
14731cb0ef41Sopenharmony_ci      # Disable gcc warnings for using enum constant in boolean context.
14741cb0ef41Sopenharmony_ci      # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97266
14751cb0ef41Sopenharmony_ci      "-Wno-int-in-bool-context",
14761cb0ef41Sopenharmony_ci    ]
14771cb0ef41Sopenharmony_ci  }
14781cb0ef41Sopenharmony_ci
14791cb0ef41Sopenharmony_ci  # Chromium uses a hand-picked subset of UBSan coverage. We want everything.
14801cb0ef41Sopenharmony_ci  if (is_ubsan) {
14811cb0ef41Sopenharmony_ci    cflags += [ "-fsanitize=undefined" ]
14821cb0ef41Sopenharmony_ci  }
14831cb0ef41Sopenharmony_ci}
14841cb0ef41Sopenharmony_ci
14851cb0ef41Sopenharmony_ci# For code that is hot during mksnapshot. In fast-mksnapshot builds, we
14861cb0ef41Sopenharmony_ci# optimize some files even in debug builds to speed up mksnapshot times.
14871cb0ef41Sopenharmony_ciconfig("always_optimize") {
14881cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
14891cb0ef41Sopenharmony_ci
14901cb0ef41Sopenharmony_ci  # TODO(crbug.com/621335) Rework this so that we don't have the confusion
14911cb0ef41Sopenharmony_ci  # between "optimize_speed" and "optimize_max".
14921cb0ef41Sopenharmony_ci  if (((is_posix && !is_android) || is_fuchsia) && !using_sanitizer) {
14931cb0ef41Sopenharmony_ci    configs += [ "//build/config/compiler:optimize_speed" ]
14941cb0ef41Sopenharmony_ci  } else {
14951cb0ef41Sopenharmony_ci    configs += [ "//build/config/compiler:optimize_max" ]
14961cb0ef41Sopenharmony_ci  }
14971cb0ef41Sopenharmony_ci}
14981cb0ef41Sopenharmony_ci
14991cb0ef41Sopenharmony_ci# Configs for code coverage with gcov. Separate configs for cflags and ldflags
15001cb0ef41Sopenharmony_ci# to selectively influde cflags in non-test targets only.
15011cb0ef41Sopenharmony_ciconfig("v8_gcov_coverage_cflags") {
15021cb0ef41Sopenharmony_ci  cflags = [
15031cb0ef41Sopenharmony_ci    "-fprofile-arcs",
15041cb0ef41Sopenharmony_ci    "-ftest-coverage",
15051cb0ef41Sopenharmony_ci  ]
15061cb0ef41Sopenharmony_ci}
15071cb0ef41Sopenharmony_ci
15081cb0ef41Sopenharmony_ciconfig("v8_gcov_coverage_ldflags") {
15091cb0ef41Sopenharmony_ci  ldflags = [ "-fprofile-arcs" ]
15101cb0ef41Sopenharmony_ci}
15111cb0ef41Sopenharmony_ci
15121cb0ef41Sopenharmony_ci###############################################################################
15131cb0ef41Sopenharmony_ci# Actions
15141cb0ef41Sopenharmony_ci#
15151cb0ef41Sopenharmony_ci
15161cb0ef41Sopenharmony_ci# Only for Windows clang builds. Converts the embedded.S file produced by
15171cb0ef41Sopenharmony_ci# mksnapshot into an embedded.cc file with corresponding inline assembly.
15181cb0ef41Sopenharmony_citemplate("asm_to_inline_asm") {
15191cb0ef41Sopenharmony_ci  name = target_name
15201cb0ef41Sopenharmony_ci  if (name == "default") {
15211cb0ef41Sopenharmony_ci    suffix = ""
15221cb0ef41Sopenharmony_ci  } else {
15231cb0ef41Sopenharmony_ci    suffix = "_$name"
15241cb0ef41Sopenharmony_ci  }
15251cb0ef41Sopenharmony_ci
15261cb0ef41Sopenharmony_ci  action("asm_to_inline_asm_" + name) {
15271cb0ef41Sopenharmony_ci    visibility = [ ":*" ]  # Only targets in this file can depend on this.
15281cb0ef41Sopenharmony_ci
15291cb0ef41Sopenharmony_ci    assert(emit_builtins_as_inline_asm)
15301cb0ef41Sopenharmony_ci
15311cb0ef41Sopenharmony_ci    script = "tools/snapshot/asm_to_inline_asm.py"
15321cb0ef41Sopenharmony_ci    deps = [ ":run_mksnapshot_" + name ]
15331cb0ef41Sopenharmony_ci    sources = [ "$target_gen_dir/embedded${suffix}.S" ]
15341cb0ef41Sopenharmony_ci    outputs = [ "$target_gen_dir/embedded${suffix}.cc" ]
15351cb0ef41Sopenharmony_ci    args = invoker.args
15361cb0ef41Sopenharmony_ci    args += [
15371cb0ef41Sopenharmony_ci      rebase_path("$target_gen_dir/embedded${suffix}.S", root_build_dir),
15381cb0ef41Sopenharmony_ci      rebase_path("$target_gen_dir/embedded${suffix}.cc", root_build_dir),
15391cb0ef41Sopenharmony_ci    ]
15401cb0ef41Sopenharmony_ci  }
15411cb0ef41Sopenharmony_ci}
15421cb0ef41Sopenharmony_ci
15431cb0ef41Sopenharmony_ciif (is_android && enable_java_templates) {
15441cb0ef41Sopenharmony_ci  android_assets("v8_external_startup_data_assets") {
15451cb0ef41Sopenharmony_ci    if (v8_use_external_startup_data) {
15461cb0ef41Sopenharmony_ci      deps = [ "//v8" ]
15471cb0ef41Sopenharmony_ci      renaming_sources = [ "$root_out_dir/snapshot_blob.bin" ]
15481cb0ef41Sopenharmony_ci      if (current_cpu == "arm" || current_cpu == "x86" ||
15491cb0ef41Sopenharmony_ci          current_cpu == "mipsel") {
15501cb0ef41Sopenharmony_ci        renaming_destinations = [ "snapshot_blob_32.bin" ]
15511cb0ef41Sopenharmony_ci      } else {
15521cb0ef41Sopenharmony_ci        renaming_destinations = [ "snapshot_blob_64.bin" ]
15531cb0ef41Sopenharmony_ci      }
15541cb0ef41Sopenharmony_ci      disable_compression = true
15551cb0ef41Sopenharmony_ci    }
15561cb0ef41Sopenharmony_ci  }
15571cb0ef41Sopenharmony_ci}
15581cb0ef41Sopenharmony_ci
15591cb0ef41Sopenharmony_ciaction("postmortem-metadata") {
15601cb0ef41Sopenharmony_ci  # Only targets in this file and the top-level visibility target can
15611cb0ef41Sopenharmony_ci  # depend on this.
15621cb0ef41Sopenharmony_ci  visibility = [
15631cb0ef41Sopenharmony_ci    ":*",
15641cb0ef41Sopenharmony_ci    "//:gn_visibility",
15651cb0ef41Sopenharmony_ci  ]
15661cb0ef41Sopenharmony_ci
15671cb0ef41Sopenharmony_ci  script = "tools/gen-postmortem-metadata.py"
15681cb0ef41Sopenharmony_ci
15691cb0ef41Sopenharmony_ci  # NOSORT
15701cb0ef41Sopenharmony_ci  sources = [
15711cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/instance-types.h",
15721cb0ef41Sopenharmony_ci    "src/objects/allocation-site.h",
15731cb0ef41Sopenharmony_ci    "src/objects/allocation-site-inl.h",
15741cb0ef41Sopenharmony_ci    "src/objects/cell.h",
15751cb0ef41Sopenharmony_ci    "src/objects/cell-inl.h",
15761cb0ef41Sopenharmony_ci    "src/objects/code.h",
15771cb0ef41Sopenharmony_ci    "src/objects/code-inl.h",
15781cb0ef41Sopenharmony_ci    "src/objects/data-handler.h",
15791cb0ef41Sopenharmony_ci    "src/objects/data-handler-inl.h",
15801cb0ef41Sopenharmony_ci    "src/objects/descriptor-array.h",
15811cb0ef41Sopenharmony_ci    "src/objects/descriptor-array-inl.h",
15821cb0ef41Sopenharmony_ci    "src/objects/feedback-cell.h",
15831cb0ef41Sopenharmony_ci    "src/objects/feedback-cell-inl.h",
15841cb0ef41Sopenharmony_ci    "src/objects/fixed-array.h",
15851cb0ef41Sopenharmony_ci    "src/objects/fixed-array-inl.h",
15861cb0ef41Sopenharmony_ci    "src/objects/heap-number.h",
15871cb0ef41Sopenharmony_ci    "src/objects/heap-number-inl.h",
15881cb0ef41Sopenharmony_ci    "src/objects/heap-object.h",
15891cb0ef41Sopenharmony_ci    "src/objects/heap-object-inl.h",
15901cb0ef41Sopenharmony_ci    "src/objects/instance-type.h",
15911cb0ef41Sopenharmony_ci    "src/objects/js-array-buffer.h",
15921cb0ef41Sopenharmony_ci    "src/objects/js-array-buffer-inl.h",
15931cb0ef41Sopenharmony_ci    "src/objects/js-array.h",
15941cb0ef41Sopenharmony_ci    "src/objects/js-array-inl.h",
15951cb0ef41Sopenharmony_ci    "src/objects/js-function-inl.h",
15961cb0ef41Sopenharmony_ci    "src/objects/js-function.cc",
15971cb0ef41Sopenharmony_ci    "src/objects/js-function.h",
15981cb0ef41Sopenharmony_ci    "src/objects/js-objects.cc",
15991cb0ef41Sopenharmony_ci    "src/objects/js-objects.h",
16001cb0ef41Sopenharmony_ci    "src/objects/js-objects-inl.h",
16011cb0ef41Sopenharmony_ci    "src/objects/js-promise.h",
16021cb0ef41Sopenharmony_ci    "src/objects/js-promise-inl.h",
16031cb0ef41Sopenharmony_ci    "src/objects/js-regexp.cc",
16041cb0ef41Sopenharmony_ci    "src/objects/js-regexp.h",
16051cb0ef41Sopenharmony_ci    "src/objects/js-regexp-inl.h",
16061cb0ef41Sopenharmony_ci    "src/objects/js-regexp-string-iterator.h",
16071cb0ef41Sopenharmony_ci    "src/objects/js-regexp-string-iterator-inl.h",
16081cb0ef41Sopenharmony_ci    "src/objects/map.cc",
16091cb0ef41Sopenharmony_ci    "src/objects/map.h",
16101cb0ef41Sopenharmony_ci    "src/objects/map-inl.h",
16111cb0ef41Sopenharmony_ci    "src/objects/megadom-handler.h",
16121cb0ef41Sopenharmony_ci    "src/objects/megadom-handler-inl.h",
16131cb0ef41Sopenharmony_ci    "src/objects/name.h",
16141cb0ef41Sopenharmony_ci    "src/objects/name-inl.h",
16151cb0ef41Sopenharmony_ci    "src/objects/objects.h",
16161cb0ef41Sopenharmony_ci    "src/objects/objects-inl.h",
16171cb0ef41Sopenharmony_ci    "src/objects/oddball.h",
16181cb0ef41Sopenharmony_ci    "src/objects/oddball-inl.h",
16191cb0ef41Sopenharmony_ci    "src/objects/primitive-heap-object.h",
16201cb0ef41Sopenharmony_ci    "src/objects/primitive-heap-object-inl.h",
16211cb0ef41Sopenharmony_ci    "src/objects/scope-info.h",
16221cb0ef41Sopenharmony_ci    "src/objects/scope-info-inl.h",
16231cb0ef41Sopenharmony_ci    "src/objects/script.h",
16241cb0ef41Sopenharmony_ci    "src/objects/script-inl.h",
16251cb0ef41Sopenharmony_ci    "src/objects/shared-function-info.cc",
16261cb0ef41Sopenharmony_ci    "src/objects/shared-function-info.h",
16271cb0ef41Sopenharmony_ci    "src/objects/shared-function-info-inl.h",
16281cb0ef41Sopenharmony_ci    "src/objects/string.cc",
16291cb0ef41Sopenharmony_ci    "src/objects/string-comparator.cc",
16301cb0ef41Sopenharmony_ci    "src/objects/string-comparator.h",
16311cb0ef41Sopenharmony_ci    "src/objects/string.h",
16321cb0ef41Sopenharmony_ci    "src/objects/string-inl.h",
16331cb0ef41Sopenharmony_ci    "src/objects/struct.h",
16341cb0ef41Sopenharmony_ci    "src/objects/struct-inl.h",
16351cb0ef41Sopenharmony_ci  ]
16361cb0ef41Sopenharmony_ci
16371cb0ef41Sopenharmony_ci  outputs = [ "$target_gen_dir/debug-support.cc" ]
16381cb0ef41Sopenharmony_ci
16391cb0ef41Sopenharmony_ci  args = rebase_path(outputs, root_build_dir) +
16401cb0ef41Sopenharmony_ci         rebase_path(sources, root_build_dir)
16411cb0ef41Sopenharmony_ci
16421cb0ef41Sopenharmony_ci  deps = [ ":run_torque" ]
16431cb0ef41Sopenharmony_ci}
16441cb0ef41Sopenharmony_ci
16451cb0ef41Sopenharmony_citorque_files = [
16461cb0ef41Sopenharmony_ci  "src/builtins/aggregate-error.tq",
16471cb0ef41Sopenharmony_ci  "src/builtins/array-at.tq",
16481cb0ef41Sopenharmony_ci  "src/builtins/array-concat.tq",
16491cb0ef41Sopenharmony_ci  "src/builtins/array-copywithin.tq",
16501cb0ef41Sopenharmony_ci  "src/builtins/array-every.tq",
16511cb0ef41Sopenharmony_ci  "src/builtins/array-filter.tq",
16521cb0ef41Sopenharmony_ci  "src/builtins/array-find.tq",
16531cb0ef41Sopenharmony_ci  "src/builtins/array-findindex.tq",
16541cb0ef41Sopenharmony_ci  "src/builtins/array-findlast.tq",
16551cb0ef41Sopenharmony_ci  "src/builtins/array-findlastindex.tq",
16561cb0ef41Sopenharmony_ci  "src/builtins/array-foreach.tq",
16571cb0ef41Sopenharmony_ci  "src/builtins/array-from.tq",
16581cb0ef41Sopenharmony_ci  "src/builtins/array-isarray.tq",
16591cb0ef41Sopenharmony_ci  "src/builtins/array-join.tq",
16601cb0ef41Sopenharmony_ci  "src/builtins/array-lastindexof.tq",
16611cb0ef41Sopenharmony_ci  "src/builtins/array-map.tq",
16621cb0ef41Sopenharmony_ci  "src/builtins/array-of.tq",
16631cb0ef41Sopenharmony_ci  "src/builtins/array-reduce-right.tq",
16641cb0ef41Sopenharmony_ci  "src/builtins/array-reduce.tq",
16651cb0ef41Sopenharmony_ci  "src/builtins/array-reverse.tq",
16661cb0ef41Sopenharmony_ci  "src/builtins/array-shift.tq",
16671cb0ef41Sopenharmony_ci  "src/builtins/array-slice.tq",
16681cb0ef41Sopenharmony_ci  "src/builtins/array-some.tq",
16691cb0ef41Sopenharmony_ci  "src/builtins/array-splice.tq",
16701cb0ef41Sopenharmony_ci  "src/builtins/array-unshift.tq",
16711cb0ef41Sopenharmony_ci  "src/builtins/array.tq",
16721cb0ef41Sopenharmony_ci  "src/builtins/arraybuffer.tq",
16731cb0ef41Sopenharmony_ci  "src/builtins/base.tq",
16741cb0ef41Sopenharmony_ci  "src/builtins/boolean.tq",
16751cb0ef41Sopenharmony_ci  "src/builtins/builtins-bigint.tq",
16761cb0ef41Sopenharmony_ci  "src/builtins/builtins-string.tq",
16771cb0ef41Sopenharmony_ci  "src/builtins/cast.tq",
16781cb0ef41Sopenharmony_ci  "src/builtins/collections.tq",
16791cb0ef41Sopenharmony_ci  "src/builtins/constructor.tq",
16801cb0ef41Sopenharmony_ci  "src/builtins/conversion.tq",
16811cb0ef41Sopenharmony_ci  "src/builtins/convert.tq",
16821cb0ef41Sopenharmony_ci  "src/builtins/console.tq",
16831cb0ef41Sopenharmony_ci  "src/builtins/data-view.tq",
16841cb0ef41Sopenharmony_ci  "src/builtins/finalization-registry.tq",
16851cb0ef41Sopenharmony_ci  "src/builtins/frames.tq",
16861cb0ef41Sopenharmony_ci  "src/builtins/frame-arguments.tq",
16871cb0ef41Sopenharmony_ci  "src/builtins/function.tq",
16881cb0ef41Sopenharmony_ci  "src/builtins/growable-fixed-array.tq",
16891cb0ef41Sopenharmony_ci  "src/builtins/ic-callable.tq",
16901cb0ef41Sopenharmony_ci  "src/builtins/ic.tq",
16911cb0ef41Sopenharmony_ci  "src/builtins/internal-coverage.tq",
16921cb0ef41Sopenharmony_ci  "src/builtins/internal.tq",
16931cb0ef41Sopenharmony_ci  "src/builtins/iterator.tq",
16941cb0ef41Sopenharmony_ci  "src/builtins/math.tq",
16951cb0ef41Sopenharmony_ci  "src/builtins/number.tq",
16961cb0ef41Sopenharmony_ci  "src/builtins/object-fromentries.tq",
16971cb0ef41Sopenharmony_ci  "src/builtins/object.tq",
16981cb0ef41Sopenharmony_ci  "src/builtins/promise-abstract-operations.tq",
16991cb0ef41Sopenharmony_ci  "src/builtins/promise-all.tq",
17001cb0ef41Sopenharmony_ci  "src/builtins/promise-all-element-closure.tq",
17011cb0ef41Sopenharmony_ci  "src/builtins/promise-any.tq",
17021cb0ef41Sopenharmony_ci  "src/builtins/promise-constructor.tq",
17031cb0ef41Sopenharmony_ci  "src/builtins/promise-finally.tq",
17041cb0ef41Sopenharmony_ci  "src/builtins/promise-misc.tq",
17051cb0ef41Sopenharmony_ci  "src/builtins/promise-race.tq",
17061cb0ef41Sopenharmony_ci  "src/builtins/promise-reaction-job.tq",
17071cb0ef41Sopenharmony_ci  "src/builtins/promise-resolve.tq",
17081cb0ef41Sopenharmony_ci  "src/builtins/promise-then.tq",
17091cb0ef41Sopenharmony_ci  "src/builtins/promise-jobs.tq",
17101cb0ef41Sopenharmony_ci  "src/builtins/proxy-constructor.tq",
17111cb0ef41Sopenharmony_ci  "src/builtins/proxy-delete-property.tq",
17121cb0ef41Sopenharmony_ci  "src/builtins/proxy-get-property.tq",
17131cb0ef41Sopenharmony_ci  "src/builtins/proxy-get-prototype-of.tq",
17141cb0ef41Sopenharmony_ci  "src/builtins/proxy-has-property.tq",
17151cb0ef41Sopenharmony_ci  "src/builtins/proxy-is-extensible.tq",
17161cb0ef41Sopenharmony_ci  "src/builtins/proxy-prevent-extensions.tq",
17171cb0ef41Sopenharmony_ci  "src/builtins/proxy-revocable.tq",
17181cb0ef41Sopenharmony_ci  "src/builtins/proxy-revoke.tq",
17191cb0ef41Sopenharmony_ci  "src/builtins/proxy-set-property.tq",
17201cb0ef41Sopenharmony_ci  "src/builtins/proxy-set-prototype-of.tq",
17211cb0ef41Sopenharmony_ci  "src/builtins/proxy.tq",
17221cb0ef41Sopenharmony_ci  "src/builtins/reflect.tq",
17231cb0ef41Sopenharmony_ci  "src/builtins/regexp-exec.tq",
17241cb0ef41Sopenharmony_ci  "src/builtins/regexp-match-all.tq",
17251cb0ef41Sopenharmony_ci  "src/builtins/regexp-match.tq",
17261cb0ef41Sopenharmony_ci  "src/builtins/regexp-replace.tq",
17271cb0ef41Sopenharmony_ci  "src/builtins/regexp-search.tq",
17281cb0ef41Sopenharmony_ci  "src/builtins/regexp-source.tq",
17291cb0ef41Sopenharmony_ci  "src/builtins/regexp-split.tq",
17301cb0ef41Sopenharmony_ci  "src/builtins/regexp-test.tq",
17311cb0ef41Sopenharmony_ci  "src/builtins/regexp.tq",
17321cb0ef41Sopenharmony_ci  "src/builtins/string-at.tq",
17331cb0ef41Sopenharmony_ci  "src/builtins/string-endswith.tq",
17341cb0ef41Sopenharmony_ci  "src/builtins/string-html.tq",
17351cb0ef41Sopenharmony_ci  "src/builtins/string-includes.tq",
17361cb0ef41Sopenharmony_ci  "src/builtins/string-indexof.tq",
17371cb0ef41Sopenharmony_ci  "src/builtins/string-iterator.tq",
17381cb0ef41Sopenharmony_ci  "src/builtins/string-match-search.tq",
17391cb0ef41Sopenharmony_ci  "src/builtins/string-pad.tq",
17401cb0ef41Sopenharmony_ci  "src/builtins/string-repeat.tq",
17411cb0ef41Sopenharmony_ci  "src/builtins/string-replaceall.tq",
17421cb0ef41Sopenharmony_ci  "src/builtins/string-slice.tq",
17431cb0ef41Sopenharmony_ci  "src/builtins/string-startswith.tq",
17441cb0ef41Sopenharmony_ci  "src/builtins/string-substr.tq",
17451cb0ef41Sopenharmony_ci  "src/builtins/string-substring.tq",
17461cb0ef41Sopenharmony_ci  "src/builtins/string-trim.tq",
17471cb0ef41Sopenharmony_ci  "src/builtins/symbol.tq",
17481cb0ef41Sopenharmony_ci  "src/builtins/torque-internal.tq",
17491cb0ef41Sopenharmony_ci  "src/builtins/typed-array-at.tq",
17501cb0ef41Sopenharmony_ci  "src/builtins/typed-array-createtypedarray.tq",
17511cb0ef41Sopenharmony_ci  "src/builtins/typed-array-every.tq",
17521cb0ef41Sopenharmony_ci  "src/builtins/typed-array-entries.tq",
17531cb0ef41Sopenharmony_ci  "src/builtins/typed-array-filter.tq",
17541cb0ef41Sopenharmony_ci  "src/builtins/typed-array-find.tq",
17551cb0ef41Sopenharmony_ci  "src/builtins/typed-array-findindex.tq",
17561cb0ef41Sopenharmony_ci  "src/builtins/typed-array-findlast.tq",
17571cb0ef41Sopenharmony_ci  "src/builtins/typed-array-findlastindex.tq",
17581cb0ef41Sopenharmony_ci  "src/builtins/typed-array-foreach.tq",
17591cb0ef41Sopenharmony_ci  "src/builtins/typed-array-from.tq",
17601cb0ef41Sopenharmony_ci  "src/builtins/typed-array-keys.tq",
17611cb0ef41Sopenharmony_ci  "src/builtins/typed-array-of.tq",
17621cb0ef41Sopenharmony_ci  "src/builtins/typed-array-reduce.tq",
17631cb0ef41Sopenharmony_ci  "src/builtins/typed-array-reduceright.tq",
17641cb0ef41Sopenharmony_ci  "src/builtins/typed-array-set.tq",
17651cb0ef41Sopenharmony_ci  "src/builtins/typed-array-slice.tq",
17661cb0ef41Sopenharmony_ci  "src/builtins/typed-array-some.tq",
17671cb0ef41Sopenharmony_ci  "src/builtins/typed-array-sort.tq",
17681cb0ef41Sopenharmony_ci  "src/builtins/typed-array-subarray.tq",
17691cb0ef41Sopenharmony_ci  "src/builtins/typed-array-values.tq",
17701cb0ef41Sopenharmony_ci  "src/builtins/typed-array.tq",
17711cb0ef41Sopenharmony_ci  "src/builtins/weak-ref.tq",
17721cb0ef41Sopenharmony_ci  "src/ic/handler-configuration.tq",
17731cb0ef41Sopenharmony_ci  "src/objects/allocation-site.tq",
17741cb0ef41Sopenharmony_ci  "src/objects/api-callbacks.tq",
17751cb0ef41Sopenharmony_ci  "src/objects/arguments.tq",
17761cb0ef41Sopenharmony_ci  "src/objects/bigint.tq",
17771cb0ef41Sopenharmony_ci  "src/objects/call-site-info.tq",
17781cb0ef41Sopenharmony_ci  "src/objects/cell.tq",
17791cb0ef41Sopenharmony_ci  "src/objects/code.tq",
17801cb0ef41Sopenharmony_ci  "src/objects/contexts.tq",
17811cb0ef41Sopenharmony_ci  "src/objects/data-handler.tq",
17821cb0ef41Sopenharmony_ci  "src/objects/debug-objects.tq",
17831cb0ef41Sopenharmony_ci  "src/objects/descriptor-array.tq",
17841cb0ef41Sopenharmony_ci  "src/objects/embedder-data-array.tq",
17851cb0ef41Sopenharmony_ci  "src/objects/feedback-cell.tq",
17861cb0ef41Sopenharmony_ci  "src/objects/feedback-vector.tq",
17871cb0ef41Sopenharmony_ci  "src/objects/fixed-array.tq",
17881cb0ef41Sopenharmony_ci  "src/objects/foreign.tq",
17891cb0ef41Sopenharmony_ci  "src/objects/free-space.tq",
17901cb0ef41Sopenharmony_ci  "src/objects/heap-number.tq",
17911cb0ef41Sopenharmony_ci  "src/objects/heap-object.tq",
17921cb0ef41Sopenharmony_ci  "src/objects/js-array-buffer.tq",
17931cb0ef41Sopenharmony_ci  "src/objects/js-array.tq",
17941cb0ef41Sopenharmony_ci  "src/objects/js-collection-iterator.tq",
17951cb0ef41Sopenharmony_ci  "src/objects/js-collection.tq",
17961cb0ef41Sopenharmony_ci  "src/objects/js-function.tq",
17971cb0ef41Sopenharmony_ci  "src/objects/js-generator.tq",
17981cb0ef41Sopenharmony_ci  "src/objects/js-objects.tq",
17991cb0ef41Sopenharmony_ci  "src/objects/js-promise.tq",
18001cb0ef41Sopenharmony_ci  "src/objects/js-proxy.tq",
18011cb0ef41Sopenharmony_ci  "src/objects/js-regexp-string-iterator.tq",
18021cb0ef41Sopenharmony_ci  "src/objects/js-regexp.tq",
18031cb0ef41Sopenharmony_ci  "src/objects/js-shadow-realms.tq",
18041cb0ef41Sopenharmony_ci  "src/objects/js-struct.tq",
18051cb0ef41Sopenharmony_ci  "src/objects/js-temporal-objects.tq",
18061cb0ef41Sopenharmony_ci  "src/objects/js-weak-refs.tq",
18071cb0ef41Sopenharmony_ci  "src/objects/literal-objects.tq",
18081cb0ef41Sopenharmony_ci  "src/objects/map.tq",
18091cb0ef41Sopenharmony_ci  "src/objects/megadom-handler.tq",
18101cb0ef41Sopenharmony_ci  "src/objects/microtask.tq",
18111cb0ef41Sopenharmony_ci  "src/objects/module.tq",
18121cb0ef41Sopenharmony_ci  "src/objects/name.tq",
18131cb0ef41Sopenharmony_ci  "src/objects/oddball.tq",
18141cb0ef41Sopenharmony_ci  "src/objects/ordered-hash-table.tq",
18151cb0ef41Sopenharmony_ci  "src/objects/primitive-heap-object.tq",
18161cb0ef41Sopenharmony_ci  "src/objects/promise.tq",
18171cb0ef41Sopenharmony_ci  "src/objects/property-array.tq",
18181cb0ef41Sopenharmony_ci  "src/objects/property-cell.tq",
18191cb0ef41Sopenharmony_ci  "src/objects/property-descriptor-object.tq",
18201cb0ef41Sopenharmony_ci  "src/objects/prototype-info.tq",
18211cb0ef41Sopenharmony_ci  "src/objects/regexp-match-info.tq",
18221cb0ef41Sopenharmony_ci  "src/objects/scope-info.tq",
18231cb0ef41Sopenharmony_ci  "src/objects/script.tq",
18241cb0ef41Sopenharmony_ci  "src/objects/shared-function-info.tq",
18251cb0ef41Sopenharmony_ci  "src/objects/source-text-module.tq",
18261cb0ef41Sopenharmony_ci  "src/objects/string.tq",
18271cb0ef41Sopenharmony_ci  "src/objects/struct.tq",
18281cb0ef41Sopenharmony_ci  "src/objects/swiss-hash-table-helpers.tq",
18291cb0ef41Sopenharmony_ci  "src/objects/swiss-name-dictionary.tq",
18301cb0ef41Sopenharmony_ci  "src/objects/synthetic-module.tq",
18311cb0ef41Sopenharmony_ci  "src/objects/template-objects.tq",
18321cb0ef41Sopenharmony_ci  "src/objects/templates.tq",
18331cb0ef41Sopenharmony_ci  "src/objects/torque-defined-classes.tq",
18341cb0ef41Sopenharmony_ci  "src/objects/turbofan-types.tq",
18351cb0ef41Sopenharmony_ci  "test/torque/test-torque.tq",
18361cb0ef41Sopenharmony_ci  "third_party/v8/builtins/array-sort.tq",
18371cb0ef41Sopenharmony_ci]
18381cb0ef41Sopenharmony_ci
18391cb0ef41Sopenharmony_ciif (v8_enable_i18n_support) {
18401cb0ef41Sopenharmony_ci  torque_files += [
18411cb0ef41Sopenharmony_ci    "src/objects/intl-objects.tq",
18421cb0ef41Sopenharmony_ci    "src/objects/js-break-iterator.tq",
18431cb0ef41Sopenharmony_ci    "src/objects/js-collator.tq",
18441cb0ef41Sopenharmony_ci    "src/objects/js-date-time-format.tq",
18451cb0ef41Sopenharmony_ci    "src/objects/js-display-names.tq",
18461cb0ef41Sopenharmony_ci    "src/objects/js-list-format.tq",
18471cb0ef41Sopenharmony_ci    "src/objects/js-locale.tq",
18481cb0ef41Sopenharmony_ci    "src/objects/js-number-format.tq",
18491cb0ef41Sopenharmony_ci    "src/objects/js-plural-rules.tq",
18501cb0ef41Sopenharmony_ci    "src/objects/js-relative-time-format.tq",
18511cb0ef41Sopenharmony_ci    "src/objects/js-segment-iterator.tq",
18521cb0ef41Sopenharmony_ci    "src/objects/js-segmenter.tq",
18531cb0ef41Sopenharmony_ci    "src/objects/js-segments.tq",
18541cb0ef41Sopenharmony_ci  ]
18551cb0ef41Sopenharmony_ci}
18561cb0ef41Sopenharmony_ci
18571cb0ef41Sopenharmony_ciif (v8_enable_webassembly) {
18581cb0ef41Sopenharmony_ci  torque_files += [
18591cb0ef41Sopenharmony_ci    "src/builtins/wasm.tq",
18601cb0ef41Sopenharmony_ci    "src/debug/debug-wasm-objects.tq",
18611cb0ef41Sopenharmony_ci    "src/wasm/wasm-objects.tq",
18621cb0ef41Sopenharmony_ci  ]
18631cb0ef41Sopenharmony_ci}
18641cb0ef41Sopenharmony_ci
18651cb0ef41Sopenharmony_ci# Template for running torque
18661cb0ef41Sopenharmony_ci# When building with v8_verify_torque_generation_invariance=true we need
18671cb0ef41Sopenharmony_ci# to be able to run torque for both 32 and 64 bits in the same build
18681cb0ef41Sopenharmony_citemplate("run_torque") {
18691cb0ef41Sopenharmony_ci  if (target_name == "") {
18701cb0ef41Sopenharmony_ci    suffix = ""
18711cb0ef41Sopenharmony_ci  } else {
18721cb0ef41Sopenharmony_ci    suffix = "_$target_name"
18731cb0ef41Sopenharmony_ci  }
18741cb0ef41Sopenharmony_ci
18751cb0ef41Sopenharmony_ci  toolchain = invoker.toolchain
18761cb0ef41Sopenharmony_ci
18771cb0ef41Sopenharmony_ci  action("run_torque" + suffix) {
18781cb0ef41Sopenharmony_ci    visibility = [
18791cb0ef41Sopenharmony_ci      ":*",
18801cb0ef41Sopenharmony_ci      "test/cctest/:*",
18811cb0ef41Sopenharmony_ci      "tools/debug_helper/:*",
18821cb0ef41Sopenharmony_ci      "tools/gcmole/:*",
18831cb0ef41Sopenharmony_ci    ]
18841cb0ef41Sopenharmony_ci
18851cb0ef41Sopenharmony_ci    deps = [ ":torque($toolchain)" ]
18861cb0ef41Sopenharmony_ci
18871cb0ef41Sopenharmony_ci    script = "tools/run.py"
18881cb0ef41Sopenharmony_ci
18891cb0ef41Sopenharmony_ci    sources = torque_files
18901cb0ef41Sopenharmony_ci
18911cb0ef41Sopenharmony_ci    destination_folder = "$target_gen_dir/torque-generated$suffix"
18921cb0ef41Sopenharmony_ci
18931cb0ef41Sopenharmony_ci    outputs = [
18941cb0ef41Sopenharmony_ci      "$destination_folder/bit-fields.h",
18951cb0ef41Sopenharmony_ci      "$destination_folder/builtin-definitions.h",
18961cb0ef41Sopenharmony_ci      "$destination_folder/class-debug-readers.cc",
18971cb0ef41Sopenharmony_ci      "$destination_folder/class-debug-readers.h",
18981cb0ef41Sopenharmony_ci      "$destination_folder/class-forward-declarations.h",
18991cb0ef41Sopenharmony_ci      "$destination_folder/class-verifiers.cc",
19001cb0ef41Sopenharmony_ci      "$destination_folder/class-verifiers.h",
19011cb0ef41Sopenharmony_ci      "$destination_folder/csa-types.h",
19021cb0ef41Sopenharmony_ci      "$destination_folder/debug-macros.cc",
19031cb0ef41Sopenharmony_ci      "$destination_folder/debug-macros.h",
19041cb0ef41Sopenharmony_ci      "$destination_folder/enum-verifiers.cc",
19051cb0ef41Sopenharmony_ci      "$destination_folder/exported-macros-assembler.cc",
19061cb0ef41Sopenharmony_ci      "$destination_folder/exported-macros-assembler.h",
19071cb0ef41Sopenharmony_ci      "$destination_folder/factory.cc",
19081cb0ef41Sopenharmony_ci      "$destination_folder/factory.inc",
19091cb0ef41Sopenharmony_ci      "$destination_folder/instance-types.h",
19101cb0ef41Sopenharmony_ci      "$destination_folder/interface-descriptors.inc",
19111cb0ef41Sopenharmony_ci      "$destination_folder/objects-body-descriptors-inl.inc",
19121cb0ef41Sopenharmony_ci      "$destination_folder/objects-printer.cc",
19131cb0ef41Sopenharmony_ci      "$destination_folder/visitor-lists.h",
19141cb0ef41Sopenharmony_ci    ]
19151cb0ef41Sopenharmony_ci
19161cb0ef41Sopenharmony_ci    foreach(file, torque_files) {
19171cb0ef41Sopenharmony_ci      filetq = string_replace(file, ".tq", "-tq")
19181cb0ef41Sopenharmony_ci      outputs += [
19191cb0ef41Sopenharmony_ci        "$destination_folder/$filetq-csa.cc",
19201cb0ef41Sopenharmony_ci        "$destination_folder/$filetq-csa.h",
19211cb0ef41Sopenharmony_ci        "$destination_folder/$filetq-inl.inc",
19221cb0ef41Sopenharmony_ci        "$destination_folder/$filetq.cc",
19231cb0ef41Sopenharmony_ci        "$destination_folder/$filetq.inc",
19241cb0ef41Sopenharmony_ci      ]
19251cb0ef41Sopenharmony_ci    }
19261cb0ef41Sopenharmony_ci
19271cb0ef41Sopenharmony_ci    args = [
19281cb0ef41Sopenharmony_ci      "./" + rebase_path(
19291cb0ef41Sopenharmony_ci              get_label_info(":torque($toolchain)", "root_out_dir") + "/torque",
19301cb0ef41Sopenharmony_ci              root_build_dir),
19311cb0ef41Sopenharmony_ci      "-o",
19321cb0ef41Sopenharmony_ci      rebase_path("$destination_folder", root_build_dir),
19331cb0ef41Sopenharmony_ci      "-v8-root",
19341cb0ef41Sopenharmony_ci      rebase_path(".", root_build_dir),
19351cb0ef41Sopenharmony_ci    ]
19361cb0ef41Sopenharmony_ci    if (v8_annotate_torque_ir) {
19371cb0ef41Sopenharmony_ci      args += [ "-annotate-ir" ]
19381cb0ef41Sopenharmony_ci    }
19391cb0ef41Sopenharmony_ci    if (defined(invoker.args)) {
19401cb0ef41Sopenharmony_ci      args += invoker.args
19411cb0ef41Sopenharmony_ci    }
19421cb0ef41Sopenharmony_ci    args += torque_files
19431cb0ef41Sopenharmony_ci  }
19441cb0ef41Sopenharmony_ci}
19451cb0ef41Sopenharmony_ci
19461cb0ef41Sopenharmony_ci# Default run_torque action
19471cb0ef41Sopenharmony_cirun_torque("") {
19481cb0ef41Sopenharmony_ci  toolchain = v8_generator_toolchain
19491cb0ef41Sopenharmony_ci}
19501cb0ef41Sopenharmony_ci
19511cb0ef41Sopenharmony_ciif (v8_verify_torque_generation_invariance) {
19521cb0ef41Sopenharmony_ci  run_torque("x86") {
19531cb0ef41Sopenharmony_ci    toolchain = "//build/toolchain/linux:clang_x86"
19541cb0ef41Sopenharmony_ci  }
19551cb0ef41Sopenharmony_ci
19561cb0ef41Sopenharmony_ci  run_torque("x64") {
19571cb0ef41Sopenharmony_ci    args = [ "-m32" ]
19581cb0ef41Sopenharmony_ci    toolchain = "//build/toolchain/linux:clang_x64"
19591cb0ef41Sopenharmony_ci  }
19601cb0ef41Sopenharmony_ci
19611cb0ef41Sopenharmony_ci  action("compare_torque_runs") {
19621cb0ef41Sopenharmony_ci    deps = [
19631cb0ef41Sopenharmony_ci      ":run_torque_x64",
19641cb0ef41Sopenharmony_ci      ":run_torque_x86",
19651cb0ef41Sopenharmony_ci    ]
19661cb0ef41Sopenharmony_ci    report_file = "$target_gen_dir/torque_comparison_results.txt"
19671cb0ef41Sopenharmony_ci    script = "tools/compare_torque_output.py"
19681cb0ef41Sopenharmony_ci    args = [
19691cb0ef41Sopenharmony_ci      rebase_path("$target_gen_dir/torque-generated_x64", root_build_dir),
19701cb0ef41Sopenharmony_ci      rebase_path("$target_gen_dir/torque-generated_x86", root_build_dir),
19711cb0ef41Sopenharmony_ci      rebase_path(report_file, root_build_dir),
19721cb0ef41Sopenharmony_ci    ]
19731cb0ef41Sopenharmony_ci    outputs = [ report_file ]
19741cb0ef41Sopenharmony_ci  }
19751cb0ef41Sopenharmony_ci}
19761cb0ef41Sopenharmony_ci
19771cb0ef41Sopenharmony_cigroup("v8_maybe_icu") {
19781cb0ef41Sopenharmony_ci  if (v8_enable_i18n_support) {
19791cb0ef41Sopenharmony_ci    public_deps = [ "//third_party/icu" ]
19801cb0ef41Sopenharmony_ci  }
19811cb0ef41Sopenharmony_ci}
19821cb0ef41Sopenharmony_ci
19831cb0ef41Sopenharmony_civ8_header_set("torque_runtime_support") {
19841cb0ef41Sopenharmony_ci  visibility = [ ":*" ]
19851cb0ef41Sopenharmony_ci
19861cb0ef41Sopenharmony_ci  sources = [ "src/torque/runtime-support.h" ]
19871cb0ef41Sopenharmony_ci
19881cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
19891cb0ef41Sopenharmony_ci}
19901cb0ef41Sopenharmony_ci
19911cb0ef41Sopenharmony_civ8_source_set("torque_generated_initializers") {
19921cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
19931cb0ef41Sopenharmony_ci
19941cb0ef41Sopenharmony_ci  deps = [
19951cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
19961cb0ef41Sopenharmony_ci    ":run_torque",
19971cb0ef41Sopenharmony_ci    ":v8_base_without_compiler",
19981cb0ef41Sopenharmony_ci    ":v8_tracing",
19991cb0ef41Sopenharmony_ci  ]
20001cb0ef41Sopenharmony_ci
20011cb0ef41Sopenharmony_ci  public_deps = [
20021cb0ef41Sopenharmony_ci    ":torque_runtime_support",
20031cb0ef41Sopenharmony_ci    ":v8_maybe_icu",
20041cb0ef41Sopenharmony_ci  ]
20051cb0ef41Sopenharmony_ci
20061cb0ef41Sopenharmony_ci  sources = [
20071cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/csa-types.h",
20081cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/enum-verifiers.cc",
20091cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/exported-macros-assembler.cc",
20101cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/exported-macros-assembler.h",
20111cb0ef41Sopenharmony_ci  ]
20121cb0ef41Sopenharmony_ci  foreach(file, torque_files) {
20131cb0ef41Sopenharmony_ci    filetq = string_replace(file, ".tq", "-tq")
20141cb0ef41Sopenharmony_ci    sources += [
20151cb0ef41Sopenharmony_ci      "$target_gen_dir/torque-generated/$filetq-csa.cc",
20161cb0ef41Sopenharmony_ci      "$target_gen_dir/torque-generated/$filetq-csa.h",
20171cb0ef41Sopenharmony_ci    ]
20181cb0ef41Sopenharmony_ci  }
20191cb0ef41Sopenharmony_ci
20201cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
20211cb0ef41Sopenharmony_ci}
20221cb0ef41Sopenharmony_ci
20231cb0ef41Sopenharmony_civ8_source_set("torque_generated_definitions") {
20241cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
20251cb0ef41Sopenharmony_ci
20261cb0ef41Sopenharmony_ci  deps = [
20271cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
20281cb0ef41Sopenharmony_ci    ":run_torque",
20291cb0ef41Sopenharmony_ci    ":v8_internal_headers",
20301cb0ef41Sopenharmony_ci    ":v8_libbase",
20311cb0ef41Sopenharmony_ci    ":v8_tracing",
20321cb0ef41Sopenharmony_ci  ]
20331cb0ef41Sopenharmony_ci
20341cb0ef41Sopenharmony_ci  public_deps = [ ":v8_maybe_icu" ]
20351cb0ef41Sopenharmony_ci
20361cb0ef41Sopenharmony_ci  sources = [
20371cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/class-forward-declarations.h",
20381cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/class-verifiers.cc",
20391cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/class-verifiers.h",
20401cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/factory.cc",
20411cb0ef41Sopenharmony_ci    "$target_gen_dir/torque-generated/objects-printer.cc",
20421cb0ef41Sopenharmony_ci  ]
20431cb0ef41Sopenharmony_ci  foreach(file, torque_files) {
20441cb0ef41Sopenharmony_ci    filetq = string_replace(file, ".tq", "-tq")
20451cb0ef41Sopenharmony_ci    sources += [
20461cb0ef41Sopenharmony_ci      "$target_gen_dir/torque-generated/$filetq-inl.inc",
20471cb0ef41Sopenharmony_ci      "$target_gen_dir/torque-generated/$filetq.cc",
20481cb0ef41Sopenharmony_ci      "$target_gen_dir/torque-generated/$filetq.inc",
20491cb0ef41Sopenharmony_ci    ]
20501cb0ef41Sopenharmony_ci  }
20511cb0ef41Sopenharmony_ci
20521cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
20531cb0ef41Sopenharmony_ci}
20541cb0ef41Sopenharmony_ci
20551cb0ef41Sopenharmony_ciaction("generate_bytecode_builtins_list") {
20561cb0ef41Sopenharmony_ci  script = "tools/run.py"
20571cb0ef41Sopenharmony_ci  outputs = [ "$target_gen_dir/builtins-generated/bytecodes-builtins-list.h" ]
20581cb0ef41Sopenharmony_ci  deps = [ ":bytecode_builtins_list_generator($v8_generator_toolchain)" ]
20591cb0ef41Sopenharmony_ci  args = [
20601cb0ef41Sopenharmony_ci    "./" + rebase_path(
20611cb0ef41Sopenharmony_ci            get_label_info(
20621cb0ef41Sopenharmony_ci                    ":bytecode_builtins_list_generator($v8_generator_toolchain)",
20631cb0ef41Sopenharmony_ci                    "root_out_dir") + "/bytecode_builtins_list_generator",
20641cb0ef41Sopenharmony_ci            root_build_dir),
20651cb0ef41Sopenharmony_ci    rebase_path("$target_gen_dir/builtins-generated/bytecodes-builtins-list.h",
20661cb0ef41Sopenharmony_ci                root_build_dir),
20671cb0ef41Sopenharmony_ci  ]
20681cb0ef41Sopenharmony_ci}
20691cb0ef41Sopenharmony_ci
20701cb0ef41Sopenharmony_ci# Template to generate different V8 snapshots based on different runtime flags.
20711cb0ef41Sopenharmony_ci# Can be invoked with run_mksnapshot(<name>). The target will resolve to
20721cb0ef41Sopenharmony_ci# run_mksnapshot_<name>. If <name> is "default", no file suffixes will be used.
20731cb0ef41Sopenharmony_ci# Otherwise files are suffixed, e.g. embedded_<name>.S and
20741cb0ef41Sopenharmony_ci# snapshot_blob_<name>.bin.
20751cb0ef41Sopenharmony_ci#
20761cb0ef41Sopenharmony_ci# The template exposes the variables:
20771cb0ef41Sopenharmony_ci#   args: additional flags for mksnapshots
20781cb0ef41Sopenharmony_ci#   embedded_suffix: a camel case suffix for method names in the embedded
20791cb0ef41Sopenharmony_ci#       snapshot.
20801cb0ef41Sopenharmony_citemplate("run_mksnapshot") {
20811cb0ef41Sopenharmony_ci  name = target_name
20821cb0ef41Sopenharmony_ci  if (name == "default") {
20831cb0ef41Sopenharmony_ci    suffix = ""
20841cb0ef41Sopenharmony_ci  } else {
20851cb0ef41Sopenharmony_ci    suffix = "_$name"
20861cb0ef41Sopenharmony_ci  }
20871cb0ef41Sopenharmony_ci  action("run_mksnapshot_" + name) {
20881cb0ef41Sopenharmony_ci    # Only targets in this file and running mkgrokdump can depend on this.
20891cb0ef41Sopenharmony_ci    visibility = [
20901cb0ef41Sopenharmony_ci      ":*",
20911cb0ef41Sopenharmony_ci      "tools/debug_helper:run_mkgrokdump",
20921cb0ef41Sopenharmony_ci    ]
20931cb0ef41Sopenharmony_ci
20941cb0ef41Sopenharmony_ci    deps = [ ":mksnapshot($v8_snapshot_toolchain)" ]
20951cb0ef41Sopenharmony_ci
20961cb0ef41Sopenharmony_ci    script = "tools/run.py"
20971cb0ef41Sopenharmony_ci
20981cb0ef41Sopenharmony_ci    sources = []
20991cb0ef41Sopenharmony_ci
21001cb0ef41Sopenharmony_ci    outputs = []
21011cb0ef41Sopenharmony_ci
21021cb0ef41Sopenharmony_ci    data = []
21031cb0ef41Sopenharmony_ci
21041cb0ef41Sopenharmony_ci    args = [
21051cb0ef41Sopenharmony_ci      "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
21061cb0ef41Sopenharmony_ci                                        "root_out_dir") + "/mksnapshot",
21071cb0ef41Sopenharmony_ci                         root_build_dir),
21081cb0ef41Sopenharmony_ci      "--turbo_instruction_scheduling",
21091cb0ef41Sopenharmony_ci
21101cb0ef41Sopenharmony_ci      # In cross builds, the snapshot may be generated for both the host and
21111cb0ef41Sopenharmony_ci      # target toolchains.  The same host binary is used to generate both, so
21121cb0ef41Sopenharmony_ci      # mksnapshot needs to know which target OS to use at runtime.  It's weird,
21131cb0ef41Sopenharmony_ci      # but the target OS is really |current_os|.
21141cb0ef41Sopenharmony_ci      "--target_os=$current_os",
21151cb0ef41Sopenharmony_ci      "--target_arch=$current_cpu",
21161cb0ef41Sopenharmony_ci
21171cb0ef41Sopenharmony_ci      "--embedded_src",
21181cb0ef41Sopenharmony_ci      rebase_path("$target_gen_dir/embedded${suffix}.S", root_build_dir),
21191cb0ef41Sopenharmony_ci    ]
21201cb0ef41Sopenharmony_ci
21211cb0ef41Sopenharmony_ci    if (v8_enable_builtins_profiling) {
21221cb0ef41Sopenharmony_ci      args += [ "--turbo-profiling" ]
21231cb0ef41Sopenharmony_ci    }
21241cb0ef41Sopenharmony_ci    if (v8_enable_builtins_profiling_verbose) {
21251cb0ef41Sopenharmony_ci      args += [ "--turbo-profiling-verbose" ]
21261cb0ef41Sopenharmony_ci    }
21271cb0ef41Sopenharmony_ci    if (v8_builtins_profiling_log_file != "") {
21281cb0ef41Sopenharmony_ci      sources += [ v8_builtins_profiling_log_file ]
21291cb0ef41Sopenharmony_ci      args += [
21301cb0ef41Sopenharmony_ci        "--turbo-profiling-log-file",
21311cb0ef41Sopenharmony_ci        rebase_path(v8_builtins_profiling_log_file, root_build_dir),
21321cb0ef41Sopenharmony_ci      ]
21331cb0ef41Sopenharmony_ci    }
21341cb0ef41Sopenharmony_ci
21351cb0ef41Sopenharmony_ci    # This is needed to distinguish between generating code for the simulator
21361cb0ef41Sopenharmony_ci    # and cross-compiling. The latter may need to run code on the host with the
21371cb0ef41Sopenharmony_ci    # simulator but cannot use simulator-specific instructions.
21381cb0ef41Sopenharmony_ci    if (target_is_simulator) {
21391cb0ef41Sopenharmony_ci      args += [ "--target_is_simulator" ]
21401cb0ef41Sopenharmony_ci    }
21411cb0ef41Sopenharmony_ci
21421cb0ef41Sopenharmony_ci    args += invoker.args
21431cb0ef41Sopenharmony_ci
21441cb0ef41Sopenharmony_ci    outputs += [ "$target_gen_dir/embedded${suffix}.S" ]
21451cb0ef41Sopenharmony_ci    if (invoker.embedded_variant != "") {
21461cb0ef41Sopenharmony_ci      args += [
21471cb0ef41Sopenharmony_ci        "--embedded_variant",
21481cb0ef41Sopenharmony_ci        invoker.embedded_variant,
21491cb0ef41Sopenharmony_ci      ]
21501cb0ef41Sopenharmony_ci    }
21511cb0ef41Sopenharmony_ci
21521cb0ef41Sopenharmony_ci    if (v8_random_seed != "0") {
21531cb0ef41Sopenharmony_ci      args += [
21541cb0ef41Sopenharmony_ci        "--random-seed",
21551cb0ef41Sopenharmony_ci        v8_random_seed,
21561cb0ef41Sopenharmony_ci      ]
21571cb0ef41Sopenharmony_ci    }
21581cb0ef41Sopenharmony_ci
21591cb0ef41Sopenharmony_ci    if (v8_os_page_size != "0") {
21601cb0ef41Sopenharmony_ci      args += [
21611cb0ef41Sopenharmony_ci        "--v8_os_page_size",
21621cb0ef41Sopenharmony_ci        v8_os_page_size,
21631cb0ef41Sopenharmony_ci      ]
21641cb0ef41Sopenharmony_ci    }
21651cb0ef41Sopenharmony_ci
21661cb0ef41Sopenharmony_ci    if (v8_use_external_startup_data) {
21671cb0ef41Sopenharmony_ci      outputs += [ "$root_out_dir/snapshot_blob${suffix}.bin" ]
21681cb0ef41Sopenharmony_ci      data += [ "$root_out_dir/snapshot_blob${suffix}.bin" ]
21691cb0ef41Sopenharmony_ci      args += [
21701cb0ef41Sopenharmony_ci        "--startup_blob",
21711cb0ef41Sopenharmony_ci        rebase_path("$root_out_dir/snapshot_blob${suffix}.bin", root_build_dir),
21721cb0ef41Sopenharmony_ci      ]
21731cb0ef41Sopenharmony_ci    } else {
21741cb0ef41Sopenharmony_ci      outputs += [ "$target_gen_dir/snapshot${suffix}.cc" ]
21751cb0ef41Sopenharmony_ci      args += [
21761cb0ef41Sopenharmony_ci        "--startup_src",
21771cb0ef41Sopenharmony_ci        rebase_path("$target_gen_dir/snapshot${suffix}.cc", root_build_dir),
21781cb0ef41Sopenharmony_ci      ]
21791cb0ef41Sopenharmony_ci    }
21801cb0ef41Sopenharmony_ci
21811cb0ef41Sopenharmony_ci    if (v8_embed_script != "") {
21821cb0ef41Sopenharmony_ci      sources += [ v8_embed_script ]
21831cb0ef41Sopenharmony_ci      args += [ rebase_path(v8_embed_script, root_build_dir) ]
21841cb0ef41Sopenharmony_ci    }
21851cb0ef41Sopenharmony_ci
21861cb0ef41Sopenharmony_ci    if (v8_enable_snapshot_code_comments) {
21871cb0ef41Sopenharmony_ci      args += [ "--code-comments" ]
21881cb0ef41Sopenharmony_ci    }
21891cb0ef41Sopenharmony_ci
21901cb0ef41Sopenharmony_ci    if (v8_enable_snapshot_native_code_counters) {
21911cb0ef41Sopenharmony_ci      args += [ "--native-code-counters" ]
21921cb0ef41Sopenharmony_ci    } else {
21931cb0ef41Sopenharmony_ci      # --native-code-counters is the default in debug mode so make sure we can
21941cb0ef41Sopenharmony_ci      # unset it.
21951cb0ef41Sopenharmony_ci      args += [ "--no-native-code-counters" ]
21961cb0ef41Sopenharmony_ci    }
21971cb0ef41Sopenharmony_ci
21981cb0ef41Sopenharmony_ci    if (v8_enable_fast_mksnapshot) {
21991cb0ef41Sopenharmony_ci      args += [
22001cb0ef41Sopenharmony_ci        "--no-turbo-rewrite-far-jumps",
22011cb0ef41Sopenharmony_ci        "--no-turbo-verify-allocation",
22021cb0ef41Sopenharmony_ci      ]
22031cb0ef41Sopenharmony_ci
22041cb0ef41Sopenharmony_ci      if (v8_enable_debugging_features && v8_enable_slow_dchecks) {
22051cb0ef41Sopenharmony_ci        # mksnapshot only accepts this flag if ENABLE_SLOW_DCHECKS is defined.
22061cb0ef41Sopenharmony_ci        args += [ "--no-enable-slow-asserts" ]
22071cb0ef41Sopenharmony_ci      }
22081cb0ef41Sopenharmony_ci    }
22091cb0ef41Sopenharmony_ci
22101cb0ef41Sopenharmony_ci    if (v8_enable_verify_heap) {
22111cb0ef41Sopenharmony_ci      args += [ "--verify-heap" ]
22121cb0ef41Sopenharmony_ci    }
22131cb0ef41Sopenharmony_ci  }
22141cb0ef41Sopenharmony_ci}
22151cb0ef41Sopenharmony_ci
22161cb0ef41Sopenharmony_cirun_mksnapshot("default") {
22171cb0ef41Sopenharmony_ci  args = []
22181cb0ef41Sopenharmony_ci  embedded_variant = "Default"
22191cb0ef41Sopenharmony_ci}
22201cb0ef41Sopenharmony_ciif (emit_builtins_as_inline_asm) {
22211cb0ef41Sopenharmony_ci  asm_to_inline_asm("default") {
22221cb0ef41Sopenharmony_ci    args = []
22231cb0ef41Sopenharmony_ci  }
22241cb0ef41Sopenharmony_ci}
22251cb0ef41Sopenharmony_ci
22261cb0ef41Sopenharmony_ciaction("v8_dump_build_config") {
22271cb0ef41Sopenharmony_ci  script = "tools/testrunner/utils/dump_build_config.py"
22281cb0ef41Sopenharmony_ci  outputs = [ "$root_out_dir/v8_build_config.json" ]
22291cb0ef41Sopenharmony_ci  is_gcov_coverage = v8_code_coverage && !is_clang
22301cb0ef41Sopenharmony_ci  is_full_debug = v8_enable_debugging_features && !v8_optimized_debug
22311cb0ef41Sopenharmony_ci  args = [
22321cb0ef41Sopenharmony_ci    rebase_path("$root_out_dir/v8_build_config.json", root_build_dir),
22331cb0ef41Sopenharmony_ci    "current_cpu=\"$current_cpu\"",
22341cb0ef41Sopenharmony_ci    "dcheck_always_on=$dcheck_always_on",
22351cb0ef41Sopenharmony_ci    "is_android=$is_android",
22361cb0ef41Sopenharmony_ci    "is_asan=$is_asan",
22371cb0ef41Sopenharmony_ci    "is_cfi=$is_cfi",
22381cb0ef41Sopenharmony_ci    "is_clang=$is_clang",
22391cb0ef41Sopenharmony_ci    "is_component_build=$is_component_build",
22401cb0ef41Sopenharmony_ci    "is_debug=$v8_enable_debugging_features",
22411cb0ef41Sopenharmony_ci    "is_full_debug=$is_full_debug",
22421cb0ef41Sopenharmony_ci    "is_gcov_coverage=$is_gcov_coverage",
22431cb0ef41Sopenharmony_ci    "is_msan=$is_msan",
22441cb0ef41Sopenharmony_ci    "is_tsan=$is_tsan",
22451cb0ef41Sopenharmony_ci    "is_ubsan_vptr=$is_ubsan_vptr",
22461cb0ef41Sopenharmony_ci    "target_cpu=\"$target_cpu\"",
22471cb0ef41Sopenharmony_ci    "v8_current_cpu=\"$v8_current_cpu\"",
22481cb0ef41Sopenharmony_ci    "v8_enable_atomic_object_field_writes=" +
22491cb0ef41Sopenharmony_ci        "$v8_enable_atomic_object_field_writes",
22501cb0ef41Sopenharmony_ci    "v8_enable_concurrent_marking=$v8_enable_concurrent_marking",
22511cb0ef41Sopenharmony_ci    "v8_enable_single_generation=$v8_enable_single_generation",
22521cb0ef41Sopenharmony_ci    "v8_enable_i18n_support=$v8_enable_i18n_support",
22531cb0ef41Sopenharmony_ci    "v8_enable_verify_predictable=$v8_enable_verify_predictable",
22541cb0ef41Sopenharmony_ci    "v8_enable_verify_csa=$v8_enable_verify_csa",
22551cb0ef41Sopenharmony_ci    "v8_enable_lite_mode=$v8_enable_lite_mode",
22561cb0ef41Sopenharmony_ci    "v8_enable_runtime_call_stats=$v8_enable_runtime_call_stats",
22571cb0ef41Sopenharmony_ci    "v8_enable_pointer_compression=$v8_enable_pointer_compression",
22581cb0ef41Sopenharmony_ci    "v8_enable_pointer_compression_shared_cage=" +
22591cb0ef41Sopenharmony_ci        "$v8_enable_pointer_compression_shared_cage",
22601cb0ef41Sopenharmony_ci    "v8_enable_sandbox=$v8_enable_sandbox",
22611cb0ef41Sopenharmony_ci    "v8_enable_shared_ro_heap=$v8_enable_shared_ro_heap",
22621cb0ef41Sopenharmony_ci    "v8_enable_third_party_heap=$v8_enable_third_party_heap",
22631cb0ef41Sopenharmony_ci    "v8_enable_webassembly=$v8_enable_webassembly",
22641cb0ef41Sopenharmony_ci    "v8_dict_property_const_tracking=$v8_dict_property_const_tracking",
22651cb0ef41Sopenharmony_ci    "v8_control_flow_integrity=$v8_control_flow_integrity",
22661cb0ef41Sopenharmony_ci    "v8_target_cpu=\"$v8_target_cpu\"",
22671cb0ef41Sopenharmony_ci    "v8_enable_cet_shadow_stack=$v8_enable_cet_shadow_stack",
22681cb0ef41Sopenharmony_ci  ]
22691cb0ef41Sopenharmony_ci
22701cb0ef41Sopenharmony_ci  if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel" ||
22711cb0ef41Sopenharmony_ci      v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
22721cb0ef41Sopenharmony_ci    args += [
22731cb0ef41Sopenharmony_ci      "mips_arch_variant=\"$mips_arch_variant\"",
22741cb0ef41Sopenharmony_ci      "mips_use_msa=$mips_use_msa",
22751cb0ef41Sopenharmony_ci    ]
22761cb0ef41Sopenharmony_ci  }
22771cb0ef41Sopenharmony_ci}
22781cb0ef41Sopenharmony_ci
22791cb0ef41Sopenharmony_ci###############################################################################
22801cb0ef41Sopenharmony_ci# Source Sets (aka static libraries)
22811cb0ef41Sopenharmony_ci#
22821cb0ef41Sopenharmony_ci
22831cb0ef41Sopenharmony_civ8_source_set("v8_snapshot") {
22841cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Targets in this file can depend on this.
22851cb0ef41Sopenharmony_ci
22861cb0ef41Sopenharmony_ci  deps = [
22871cb0ef41Sopenharmony_ci    ":v8_internal_headers",
22881cb0ef41Sopenharmony_ci    ":v8_libbase",
22891cb0ef41Sopenharmony_ci  ]
22901cb0ef41Sopenharmony_ci  public_deps = [
22911cb0ef41Sopenharmony_ci    # This should be public so downstream targets can declare the snapshot
22921cb0ef41Sopenharmony_ci    # output file as their inputs.
22931cb0ef41Sopenharmony_ci    ":run_mksnapshot_default",
22941cb0ef41Sopenharmony_ci  ]
22951cb0ef41Sopenharmony_ci
22961cb0ef41Sopenharmony_ci  # Do not publicize any header to remove build dependency.
22971cb0ef41Sopenharmony_ci  public = []
22981cb0ef41Sopenharmony_ci
22991cb0ef41Sopenharmony_ci  sources = [ "src/init/setup-isolate-deserialize.cc" ]
23001cb0ef41Sopenharmony_ci  if (v8_control_flow_integrity) {
23011cb0ef41Sopenharmony_ci    sources += [ "src/deoptimizer/deoptimizer-cfi-builtins.cc" ]
23021cb0ef41Sopenharmony_ci  }
23031cb0ef41Sopenharmony_ci  if (emit_builtins_as_inline_asm) {
23041cb0ef41Sopenharmony_ci    deps += [ ":asm_to_inline_asm_default" ]
23051cb0ef41Sopenharmony_ci    sources += [ "$target_gen_dir/embedded.cc" ]
23061cb0ef41Sopenharmony_ci  } else {
23071cb0ef41Sopenharmony_ci    sources += [ "$target_gen_dir/embedded.S" ]
23081cb0ef41Sopenharmony_ci  }
23091cb0ef41Sopenharmony_ci
23101cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
23111cb0ef41Sopenharmony_ci
23121cb0ef41Sopenharmony_ci  if (v8_use_external_startup_data) {
23131cb0ef41Sopenharmony_ci    deps += [ ":v8_base" ]
23141cb0ef41Sopenharmony_ci
23151cb0ef41Sopenharmony_ci    sources += [ "src/snapshot/snapshot-external.cc" ]
23161cb0ef41Sopenharmony_ci  } else {
23171cb0ef41Sopenharmony_ci    # Also top-level visibility targets can depend on this.
23181cb0ef41Sopenharmony_ci    visibility += [ "//:gn_visibility" ]
23191cb0ef41Sopenharmony_ci
23201cb0ef41Sopenharmony_ci    public_deps += [ ":v8_maybe_icu" ]
23211cb0ef41Sopenharmony_ci
23221cb0ef41Sopenharmony_ci    sources += [ "$target_gen_dir/snapshot.cc" ]
23231cb0ef41Sopenharmony_ci  }
23241cb0ef41Sopenharmony_ci}
23251cb0ef41Sopenharmony_ci
23261cb0ef41Sopenharmony_civ8_source_set("v8_initializers") {
23271cb0ef41Sopenharmony_ci  visibility = [
23281cb0ef41Sopenharmony_ci    ":*",
23291cb0ef41Sopenharmony_ci    "test/cctest:*",
23301cb0ef41Sopenharmony_ci  ]
23311cb0ef41Sopenharmony_ci
23321cb0ef41Sopenharmony_ci  allow_circular_includes_from = [ ":torque_generated_initializers" ]
23331cb0ef41Sopenharmony_ci
23341cb0ef41Sopenharmony_ci  deps = [
23351cb0ef41Sopenharmony_ci    ":torque_generated_initializers",
23361cb0ef41Sopenharmony_ci    ":v8_base_without_compiler",
23371cb0ef41Sopenharmony_ci    ":v8_shared_internal_headers",
23381cb0ef41Sopenharmony_ci    ":v8_tracing",
23391cb0ef41Sopenharmony_ci  ]
23401cb0ef41Sopenharmony_ci
23411cb0ef41Sopenharmony_ci  sources = [
23421cb0ef41Sopenharmony_ci    ### gcmole(all) ###
23431cb0ef41Sopenharmony_ci    "src/builtins/builtins-array-gen.cc",
23441cb0ef41Sopenharmony_ci    "src/builtins/builtins-array-gen.h",
23451cb0ef41Sopenharmony_ci    "src/builtins/builtins-async-function-gen.cc",
23461cb0ef41Sopenharmony_ci    "src/builtins/builtins-async-gen.cc",
23471cb0ef41Sopenharmony_ci    "src/builtins/builtins-async-gen.h",
23481cb0ef41Sopenharmony_ci    "src/builtins/builtins-async-generator-gen.cc",
23491cb0ef41Sopenharmony_ci    "src/builtins/builtins-async-iterator-gen.cc",
23501cb0ef41Sopenharmony_ci    "src/builtins/builtins-bigint-gen.cc",
23511cb0ef41Sopenharmony_ci    "src/builtins/builtins-bigint-gen.h",
23521cb0ef41Sopenharmony_ci    "src/builtins/builtins-call-gen.cc",
23531cb0ef41Sopenharmony_ci    "src/builtins/builtins-call-gen.h",
23541cb0ef41Sopenharmony_ci    "src/builtins/builtins-collections-gen.cc",
23551cb0ef41Sopenharmony_ci    "src/builtins/builtins-collections-gen.h",
23561cb0ef41Sopenharmony_ci    "src/builtins/builtins-constructor-gen.cc",
23571cb0ef41Sopenharmony_ci    "src/builtins/builtins-constructor-gen.h",
23581cb0ef41Sopenharmony_ci    "src/builtins/builtins-constructor.h",
23591cb0ef41Sopenharmony_ci    "src/builtins/builtins-conversion-gen.cc",
23601cb0ef41Sopenharmony_ci    "src/builtins/builtins-data-view-gen.h",
23611cb0ef41Sopenharmony_ci    "src/builtins/builtins-date-gen.cc",
23621cb0ef41Sopenharmony_ci    "src/builtins/builtins-generator-gen.cc",
23631cb0ef41Sopenharmony_ci    "src/builtins/builtins-global-gen.cc",
23641cb0ef41Sopenharmony_ci    "src/builtins/builtins-handler-gen.cc",
23651cb0ef41Sopenharmony_ci    "src/builtins/builtins-ic-gen.cc",
23661cb0ef41Sopenharmony_ci    "src/builtins/builtins-internal-gen.cc",
23671cb0ef41Sopenharmony_ci    "src/builtins/builtins-interpreter-gen.cc",
23681cb0ef41Sopenharmony_ci    "src/builtins/builtins-intl-gen.cc",
23691cb0ef41Sopenharmony_ci    "src/builtins/builtins-iterator-gen.cc",
23701cb0ef41Sopenharmony_ci    "src/builtins/builtins-iterator-gen.h",
23711cb0ef41Sopenharmony_ci    "src/builtins/builtins-lazy-gen.cc",
23721cb0ef41Sopenharmony_ci    "src/builtins/builtins-lazy-gen.h",
23731cb0ef41Sopenharmony_ci    "src/builtins/builtins-microtask-queue-gen.cc",
23741cb0ef41Sopenharmony_ci    "src/builtins/builtins-number-gen.cc",
23751cb0ef41Sopenharmony_ci    "src/builtins/builtins-object-gen.cc",
23761cb0ef41Sopenharmony_ci    "src/builtins/builtins-promise-gen.cc",
23771cb0ef41Sopenharmony_ci    "src/builtins/builtins-promise-gen.h",
23781cb0ef41Sopenharmony_ci    "src/builtins/builtins-proxy-gen.cc",
23791cb0ef41Sopenharmony_ci    "src/builtins/builtins-proxy-gen.h",
23801cb0ef41Sopenharmony_ci    "src/builtins/builtins-regexp-gen.cc",
23811cb0ef41Sopenharmony_ci    "src/builtins/builtins-regexp-gen.h",
23821cb0ef41Sopenharmony_ci    "src/builtins/builtins-shadowrealm-gen.cc",
23831cb0ef41Sopenharmony_ci    "src/builtins/builtins-sharedarraybuffer-gen.cc",
23841cb0ef41Sopenharmony_ci    "src/builtins/builtins-string-gen.cc",
23851cb0ef41Sopenharmony_ci    "src/builtins/builtins-string-gen.h",
23861cb0ef41Sopenharmony_ci    "src/builtins/builtins-temporal-gen.cc",
23871cb0ef41Sopenharmony_ci    "src/builtins/builtins-typed-array-gen.cc",
23881cb0ef41Sopenharmony_ci    "src/builtins/builtins-typed-array-gen.h",
23891cb0ef41Sopenharmony_ci    "src/builtins/builtins-utils-gen.h",
23901cb0ef41Sopenharmony_ci    "src/builtins/growable-fixed-array-gen.cc",
23911cb0ef41Sopenharmony_ci    "src/builtins/growable-fixed-array-gen.h",
23921cb0ef41Sopenharmony_ci    "src/builtins/profile-data-reader.cc",
23931cb0ef41Sopenharmony_ci    "src/builtins/profile-data-reader.h",
23941cb0ef41Sopenharmony_ci    "src/builtins/setup-builtins-internal.cc",
23951cb0ef41Sopenharmony_ci    "src/builtins/torque-csa-header-includes.h",
23961cb0ef41Sopenharmony_ci    "src/codegen/code-stub-assembler.cc",
23971cb0ef41Sopenharmony_ci    "src/codegen/code-stub-assembler.h",
23981cb0ef41Sopenharmony_ci    "src/heap/setup-heap-internal.cc",
23991cb0ef41Sopenharmony_ci    "src/ic/accessor-assembler.cc",
24001cb0ef41Sopenharmony_ci    "src/ic/accessor-assembler.h",
24011cb0ef41Sopenharmony_ci    "src/ic/binary-op-assembler.cc",
24021cb0ef41Sopenharmony_ci    "src/ic/binary-op-assembler.h",
24031cb0ef41Sopenharmony_ci    "src/ic/keyed-store-generic.cc",
24041cb0ef41Sopenharmony_ci    "src/ic/keyed-store-generic.h",
24051cb0ef41Sopenharmony_ci    "src/ic/unary-op-assembler.cc",
24061cb0ef41Sopenharmony_ci    "src/ic/unary-op-assembler.h",
24071cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-assembler.cc",
24081cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-assembler.h",
24091cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-generator.cc",
24101cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-generator.h",
24111cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-intrinsics-generator.cc",
24121cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-intrinsics-generator.h",
24131cb0ef41Sopenharmony_ci    "src/numbers/integer-literal-inl.h",
24141cb0ef41Sopenharmony_ci    "src/numbers/integer-literal.h",
24151cb0ef41Sopenharmony_ci  ]
24161cb0ef41Sopenharmony_ci
24171cb0ef41Sopenharmony_ci  if (v8_enable_webassembly) {
24181cb0ef41Sopenharmony_ci    sources += [
24191cb0ef41Sopenharmony_ci      "src/builtins/builtins-wasm-gen.cc",
24201cb0ef41Sopenharmony_ci      "src/builtins/builtins-wasm-gen.h",
24211cb0ef41Sopenharmony_ci    ]
24221cb0ef41Sopenharmony_ci  }
24231cb0ef41Sopenharmony_ci
24241cb0ef41Sopenharmony_ci  if (v8_current_cpu == "x86") {
24251cb0ef41Sopenharmony_ci    sources += [
24261cb0ef41Sopenharmony_ci      ### gcmole(arch:ia32) ###
24271cb0ef41Sopenharmony_ci      "src/builtins/ia32/builtins-ia32.cc",
24281cb0ef41Sopenharmony_ci    ]
24291cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "x64") {
24301cb0ef41Sopenharmony_ci    sources += [
24311cb0ef41Sopenharmony_ci      ### gcmole(arch:x64) ###
24321cb0ef41Sopenharmony_ci      "src/builtins/x64/builtins-x64.cc",
24331cb0ef41Sopenharmony_ci    ]
24341cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "arm") {
24351cb0ef41Sopenharmony_ci    sources += [
24361cb0ef41Sopenharmony_ci      ### gcmole(arch:arm) ###
24371cb0ef41Sopenharmony_ci      "src/builtins/arm/builtins-arm.cc",
24381cb0ef41Sopenharmony_ci    ]
24391cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "arm64") {
24401cb0ef41Sopenharmony_ci    sources += [
24411cb0ef41Sopenharmony_ci      ### gcmole(arch:arm64) ###
24421cb0ef41Sopenharmony_ci      "src/builtins/arm64/builtins-arm64.cc",
24431cb0ef41Sopenharmony_ci    ]
24441cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
24451cb0ef41Sopenharmony_ci    sources += [
24461cb0ef41Sopenharmony_ci      ### gcmole(arch:mipsel) ###
24471cb0ef41Sopenharmony_ci      "src/builtins/mips/builtins-mips.cc",
24481cb0ef41Sopenharmony_ci    ]
24491cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
24501cb0ef41Sopenharmony_ci    sources += [
24511cb0ef41Sopenharmony_ci      ### gcmole(arch:mips64el) ###
24521cb0ef41Sopenharmony_ci      "src/builtins/mips64/builtins-mips64.cc",
24531cb0ef41Sopenharmony_ci    ]
24541cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "loong64") {
24551cb0ef41Sopenharmony_ci    sources += [
24561cb0ef41Sopenharmony_ci      ### gcmole(arch:loong64) ###
24571cb0ef41Sopenharmony_ci      "src/builtins/loong64/builtins-loong64.cc",
24581cb0ef41Sopenharmony_ci    ]
24591cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "ppc") {
24601cb0ef41Sopenharmony_ci    sources += [
24611cb0ef41Sopenharmony_ci      ### gcmole(arch:ppc) ###
24621cb0ef41Sopenharmony_ci      "src/builtins/ppc/builtins-ppc.cc",
24631cb0ef41Sopenharmony_ci    ]
24641cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "ppc64") {
24651cb0ef41Sopenharmony_ci    sources += [
24661cb0ef41Sopenharmony_ci      ### gcmole(arch:ppc64) ###
24671cb0ef41Sopenharmony_ci      "src/builtins/ppc/builtins-ppc.cc",
24681cb0ef41Sopenharmony_ci    ]
24691cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
24701cb0ef41Sopenharmony_ci    sources += [
24711cb0ef41Sopenharmony_ci      ### gcmole(arch:s390) ###
24721cb0ef41Sopenharmony_ci      "src/builtins/s390/builtins-s390.cc",
24731cb0ef41Sopenharmony_ci    ]
24741cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "riscv64") {
24751cb0ef41Sopenharmony_ci    sources += [
24761cb0ef41Sopenharmony_ci      ### gcmole(arch:riscv64) ###
24771cb0ef41Sopenharmony_ci      "src/builtins/riscv64/builtins-riscv64.cc",
24781cb0ef41Sopenharmony_ci    ]
24791cb0ef41Sopenharmony_ci  }
24801cb0ef41Sopenharmony_ci
24811cb0ef41Sopenharmony_ci  if (!v8_enable_i18n_support) {
24821cb0ef41Sopenharmony_ci    sources -= [ "src/builtins/builtins-intl-gen.cc" ]
24831cb0ef41Sopenharmony_ci  }
24841cb0ef41Sopenharmony_ci
24851cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
24861cb0ef41Sopenharmony_ci}
24871cb0ef41Sopenharmony_ci
24881cb0ef41Sopenharmony_civ8_source_set("v8_init") {
24891cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
24901cb0ef41Sopenharmony_ci
24911cb0ef41Sopenharmony_ci  deps = [
24921cb0ef41Sopenharmony_ci    ":v8_base_without_compiler",
24931cb0ef41Sopenharmony_ci    ":v8_initializers",
24941cb0ef41Sopenharmony_ci    ":v8_tracing",
24951cb0ef41Sopenharmony_ci  ]
24961cb0ef41Sopenharmony_ci
24971cb0ef41Sopenharmony_ci  sources = [
24981cb0ef41Sopenharmony_ci    ### gcmole(all) ###
24991cb0ef41Sopenharmony_ci    "src/init/setup-isolate-full.cc",
25001cb0ef41Sopenharmony_ci  ]
25011cb0ef41Sopenharmony_ci
25021cb0ef41Sopenharmony_ci  public_deps = [ ":v8_maybe_icu" ]
25031cb0ef41Sopenharmony_ci
25041cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
25051cb0ef41Sopenharmony_ci}
25061cb0ef41Sopenharmony_ci
25071cb0ef41Sopenharmony_ci# This is split out to be a non-code containing target that the Chromium browser
25081cb0ef41Sopenharmony_ci# DLL can depend upon to get only a version string.
25091cb0ef41Sopenharmony_civ8_header_set("v8_version") {
25101cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
25111cb0ef41Sopenharmony_ci
25121cb0ef41Sopenharmony_ci  sources = [
25131cb0ef41Sopenharmony_ci    "include/v8-value-serializer-version.h",
25141cb0ef41Sopenharmony_ci    "include/v8-version-string.h",
25151cb0ef41Sopenharmony_ci    "include/v8-version.h",
25161cb0ef41Sopenharmony_ci  ]
25171cb0ef41Sopenharmony_ci}
25181cb0ef41Sopenharmony_ci
25191cb0ef41Sopenharmony_civ8_header_set("v8_config_headers") {
25201cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
25211cb0ef41Sopenharmony_ci
25221cb0ef41Sopenharmony_ci  sources = [
25231cb0ef41Sopenharmony_ci    "include/v8-platform.h",
25241cb0ef41Sopenharmony_ci    "include/v8config.h",
25251cb0ef41Sopenharmony_ci  ]
25261cb0ef41Sopenharmony_ci
25271cb0ef41Sopenharmony_ci  deps = []
25281cb0ef41Sopenharmony_ci
25291cb0ef41Sopenharmony_ci  if (v8_generate_external_defines_header) {
25301cb0ef41Sopenharmony_ci    sources += [ "$target_gen_dir/include/v8-gn.h" ]
25311cb0ef41Sopenharmony_ci    deps += [ ":gen_v8_gn" ]
25321cb0ef41Sopenharmony_ci  }
25331cb0ef41Sopenharmony_ci}
25341cb0ef41Sopenharmony_ci
25351cb0ef41Sopenharmony_ci# This is split out to be a non-code containing target that the Chromium browser
25361cb0ef41Sopenharmony_ci# can depend upon to get basic v8 types.
25371cb0ef41Sopenharmony_civ8_header_set("v8_headers") {
25381cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
25391cb0ef41Sopenharmony_ci  public_configs = [ ":headers_config" ]
25401cb0ef41Sopenharmony_ci
25411cb0ef41Sopenharmony_ci  sources = [
25421cb0ef41Sopenharmony_ci    "include/v8-array-buffer.h",
25431cb0ef41Sopenharmony_ci    "include/v8-callbacks.h",
25441cb0ef41Sopenharmony_ci    "include/v8-container.h",
25451cb0ef41Sopenharmony_ci    "include/v8-context.h",
25461cb0ef41Sopenharmony_ci    "include/v8-cppgc.h",
25471cb0ef41Sopenharmony_ci    "include/v8-data.h",
25481cb0ef41Sopenharmony_ci    "include/v8-date.h",
25491cb0ef41Sopenharmony_ci    "include/v8-debug.h",
25501cb0ef41Sopenharmony_ci    "include/v8-embedder-heap.h",
25511cb0ef41Sopenharmony_ci    "include/v8-embedder-state-scope.h",
25521cb0ef41Sopenharmony_ci    "include/v8-exception.h",
25531cb0ef41Sopenharmony_ci    "include/v8-extension.h",
25541cb0ef41Sopenharmony_ci    "include/v8-external.h",
25551cb0ef41Sopenharmony_ci    "include/v8-fast-api-calls.h",
25561cb0ef41Sopenharmony_ci    "include/v8-forward.h",
25571cb0ef41Sopenharmony_ci    "include/v8-function-callback.h",
25581cb0ef41Sopenharmony_ci    "include/v8-function.h",
25591cb0ef41Sopenharmony_ci    "include/v8-initialization.h",
25601cb0ef41Sopenharmony_ci    "include/v8-internal.h",
25611cb0ef41Sopenharmony_ci    "include/v8-isolate.h",
25621cb0ef41Sopenharmony_ci    "include/v8-json.h",
25631cb0ef41Sopenharmony_ci    "include/v8-local-handle.h",
25641cb0ef41Sopenharmony_ci    "include/v8-locker.h",
25651cb0ef41Sopenharmony_ci    "include/v8-maybe.h",
25661cb0ef41Sopenharmony_ci    "include/v8-memory-span.h",
25671cb0ef41Sopenharmony_ci    "include/v8-message.h",
25681cb0ef41Sopenharmony_ci    "include/v8-microtask-queue.h",
25691cb0ef41Sopenharmony_ci    "include/v8-microtask.h",
25701cb0ef41Sopenharmony_ci    "include/v8-object.h",
25711cb0ef41Sopenharmony_ci    "include/v8-persistent-handle.h",
25721cb0ef41Sopenharmony_ci    "include/v8-primitive-object.h",
25731cb0ef41Sopenharmony_ci    "include/v8-primitive.h",
25741cb0ef41Sopenharmony_ci    "include/v8-profiler.h",
25751cb0ef41Sopenharmony_ci    "include/v8-promise.h",
25761cb0ef41Sopenharmony_ci    "include/v8-proxy.h",
25771cb0ef41Sopenharmony_ci    "include/v8-regexp.h",
25781cb0ef41Sopenharmony_ci    "include/v8-script.h",
25791cb0ef41Sopenharmony_ci    "include/v8-snapshot.h",
25801cb0ef41Sopenharmony_ci    "include/v8-statistics.h",
25811cb0ef41Sopenharmony_ci    "include/v8-template.h",
25821cb0ef41Sopenharmony_ci    "include/v8-traced-handle.h",
25831cb0ef41Sopenharmony_ci    "include/v8-typed-array.h",
25841cb0ef41Sopenharmony_ci    "include/v8-unwinder.h",
25851cb0ef41Sopenharmony_ci    "include/v8-util.h",
25861cb0ef41Sopenharmony_ci    "include/v8-value-serializer.h",
25871cb0ef41Sopenharmony_ci    "include/v8-value.h",
25881cb0ef41Sopenharmony_ci    "include/v8-wasm.h",
25891cb0ef41Sopenharmony_ci    "include/v8-weak-callback-info.h",
25901cb0ef41Sopenharmony_ci    "include/v8.h",
25911cb0ef41Sopenharmony_ci  ]
25921cb0ef41Sopenharmony_ci
25931cb0ef41Sopenharmony_ci  sources += [
25941cb0ef41Sopenharmony_ci    # The following headers cannot be platform-specific. The include validation
25951cb0ef41Sopenharmony_ci    # of `gn gen $dir --check` requires all header files to be available on all
25961cb0ef41Sopenharmony_ci    # platforms.
25971cb0ef41Sopenharmony_ci    "include/v8-wasm-trap-handler-posix.h",
25981cb0ef41Sopenharmony_ci    "include/v8-wasm-trap-handler-win.h",
25991cb0ef41Sopenharmony_ci  ]
26001cb0ef41Sopenharmony_ci
26011cb0ef41Sopenharmony_ci  public_deps = [ ":v8_config_headers" ]
26021cb0ef41Sopenharmony_ci
26031cb0ef41Sopenharmony_ci  deps = [
26041cb0ef41Sopenharmony_ci    ":cppgc_headers",
26051cb0ef41Sopenharmony_ci    ":v8_version",
26061cb0ef41Sopenharmony_ci  ]
26071cb0ef41Sopenharmony_ci}
26081cb0ef41Sopenharmony_ci
26091cb0ef41Sopenharmony_ciif (v8_generate_external_defines_header) {
26101cb0ef41Sopenharmony_ci  action("gen_v8_gn") {
26111cb0ef41Sopenharmony_ci    visibility = [ ":*" ]
26121cb0ef41Sopenharmony_ci
26131cb0ef41Sopenharmony_ci    script = "tools/gen-v8-gn.py"
26141cb0ef41Sopenharmony_ci    outputs = [ "$target_gen_dir/include/v8-gn.h" ]
26151cb0ef41Sopenharmony_ci
26161cb0ef41Sopenharmony_ci    args = [
26171cb0ef41Sopenharmony_ci      "-o",
26181cb0ef41Sopenharmony_ci      rebase_path("$target_gen_dir/include/v8-gn.h", root_build_dir),
26191cb0ef41Sopenharmony_ci    ]
26201cb0ef41Sopenharmony_ci    foreach(define, enabled_external_defines) {
26211cb0ef41Sopenharmony_ci      args += [
26221cb0ef41Sopenharmony_ci        "-p",
26231cb0ef41Sopenharmony_ci        define,
26241cb0ef41Sopenharmony_ci      ]
26251cb0ef41Sopenharmony_ci    }
26261cb0ef41Sopenharmony_ci    foreach(define, disabled_external_defines) {
26271cb0ef41Sopenharmony_ci      args += [
26281cb0ef41Sopenharmony_ci        "-n",
26291cb0ef41Sopenharmony_ci        define,
26301cb0ef41Sopenharmony_ci      ]
26311cb0ef41Sopenharmony_ci    }
26321cb0ef41Sopenharmony_ci  }
26331cb0ef41Sopenharmony_ci}
26341cb0ef41Sopenharmony_ci
26351cb0ef41Sopenharmony_ci# This is split out to share basic headers with Torque and everything else:(
26361cb0ef41Sopenharmony_civ8_header_set("v8_shared_internal_headers") {
26371cb0ef41Sopenharmony_ci  visibility = [
26381cb0ef41Sopenharmony_ci    ":*",
26391cb0ef41Sopenharmony_ci    "test/*",
26401cb0ef41Sopenharmony_ci    "tools/*",
26411cb0ef41Sopenharmony_ci  ]
26421cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
26431cb0ef41Sopenharmony_ci
26441cb0ef41Sopenharmony_ci  sources = [
26451cb0ef41Sopenharmony_ci    "src/common/globals.h",
26461cb0ef41Sopenharmony_ci    "src/wasm/wasm-constants.h",
26471cb0ef41Sopenharmony_ci    "src/wasm/wasm-limits.h",
26481cb0ef41Sopenharmony_ci  ]
26491cb0ef41Sopenharmony_ci
26501cb0ef41Sopenharmony_ci  deps = [
26511cb0ef41Sopenharmony_ci    ":v8_headers",
26521cb0ef41Sopenharmony_ci    ":v8_libbase",
26531cb0ef41Sopenharmony_ci  ]
26541cb0ef41Sopenharmony_ci}
26551cb0ef41Sopenharmony_ci
26561cb0ef41Sopenharmony_civ8_header_set("v8_flags") {
26571cb0ef41Sopenharmony_ci  visibility = [
26581cb0ef41Sopenharmony_ci    ":*",
26591cb0ef41Sopenharmony_ci    "tools/*",
26601cb0ef41Sopenharmony_ci  ]
26611cb0ef41Sopenharmony_ci
26621cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
26631cb0ef41Sopenharmony_ci
26641cb0ef41Sopenharmony_ci  sources = [
26651cb0ef41Sopenharmony_ci    "src/flags/flag-definitions.h",
26661cb0ef41Sopenharmony_ci    "src/flags/flags.h",
26671cb0ef41Sopenharmony_ci  ]
26681cb0ef41Sopenharmony_ci
26691cb0ef41Sopenharmony_ci  deps = [ ":v8_shared_internal_headers" ]
26701cb0ef41Sopenharmony_ci}
26711cb0ef41Sopenharmony_ci
26721cb0ef41Sopenharmony_civ8_header_set("v8_internal_headers") {
26731cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
26741cb0ef41Sopenharmony_ci
26751cb0ef41Sopenharmony_ci  sources = [
26761cb0ef41Sopenharmony_ci    ### gcmole(all) ###
26771cb0ef41Sopenharmony_ci    "$target_gen_dir/builtins-generated/bytecodes-builtins-list.h",
26781cb0ef41Sopenharmony_ci    "//base/trace_event/common/trace_event_common.h",
26791cb0ef41Sopenharmony_ci    "include/cppgc/common.h",
26801cb0ef41Sopenharmony_ci    "include/v8-inspector-protocol.h",
26811cb0ef41Sopenharmony_ci    "include/v8-inspector.h",
26821cb0ef41Sopenharmony_ci    "include/v8-metrics.h",
26831cb0ef41Sopenharmony_ci    "include/v8-unwinder-state.h",
26841cb0ef41Sopenharmony_ci    "include/v8-wasm-trap-handler-posix.h",
26851cb0ef41Sopenharmony_ci    "src/api/api-arguments-inl.h",
26861cb0ef41Sopenharmony_ci    "src/api/api-arguments.h",
26871cb0ef41Sopenharmony_ci    "src/api/api-inl.h",
26881cb0ef41Sopenharmony_ci    "src/api/api-macros-undef.h",
26891cb0ef41Sopenharmony_ci    "src/api/api-macros.h",
26901cb0ef41Sopenharmony_ci    "src/api/api-natives.h",
26911cb0ef41Sopenharmony_ci    "src/api/api.h",
26921cb0ef41Sopenharmony_ci    "src/ast/ast-function-literal-id-reindexer.h",
26931cb0ef41Sopenharmony_ci    "src/ast/ast-source-ranges.h",
26941cb0ef41Sopenharmony_ci    "src/ast/ast-traversal-visitor.h",
26951cb0ef41Sopenharmony_ci    "src/ast/ast-value-factory.h",
26961cb0ef41Sopenharmony_ci    "src/ast/ast.h",
26971cb0ef41Sopenharmony_ci    "src/ast/modules.h",
26981cb0ef41Sopenharmony_ci    "src/ast/prettyprinter.h",
26991cb0ef41Sopenharmony_ci    "src/ast/scopes.h",
27001cb0ef41Sopenharmony_ci    "src/ast/source-range-ast-visitor.h",
27011cb0ef41Sopenharmony_ci    "src/ast/variables.h",
27021cb0ef41Sopenharmony_ci    "src/baseline/baseline-assembler-inl.h",
27031cb0ef41Sopenharmony_ci    "src/baseline/baseline-assembler.h",
27041cb0ef41Sopenharmony_ci    "src/baseline/baseline-batch-compiler.h",
27051cb0ef41Sopenharmony_ci    "src/baseline/baseline-compiler.h",
27061cb0ef41Sopenharmony_ci    "src/baseline/baseline.h",
27071cb0ef41Sopenharmony_ci    "src/baseline/bytecode-offset-iterator.h",
27081cb0ef41Sopenharmony_ci    "src/builtins/accessors.h",
27091cb0ef41Sopenharmony_ci    "src/builtins/builtins-constructor.h",
27101cb0ef41Sopenharmony_ci    "src/builtins/builtins-definitions.h",
27111cb0ef41Sopenharmony_ci    "src/builtins/builtins-descriptors.h",
27121cb0ef41Sopenharmony_ci    "src/builtins/builtins-promise.h",
27131cb0ef41Sopenharmony_ci    "src/builtins/builtins-utils-inl.h",
27141cb0ef41Sopenharmony_ci    "src/builtins/builtins-utils.h",
27151cb0ef41Sopenharmony_ci    "src/builtins/builtins.h",
27161cb0ef41Sopenharmony_ci    "src/builtins/constants-table-builder.h",
27171cb0ef41Sopenharmony_ci    "src/builtins/profile-data-reader.h",
27181cb0ef41Sopenharmony_ci    "src/codegen/aligned-slot-allocator.h",
27191cb0ef41Sopenharmony_ci    "src/codegen/assembler-arch.h",
27201cb0ef41Sopenharmony_ci    "src/codegen/assembler-inl.h",
27211cb0ef41Sopenharmony_ci    "src/codegen/assembler.h",
27221cb0ef41Sopenharmony_ci    "src/codegen/atomic-memory-order.h",
27231cb0ef41Sopenharmony_ci    "src/codegen/bailout-reason.h",
27241cb0ef41Sopenharmony_ci    "src/codegen/callable.h",
27251cb0ef41Sopenharmony_ci    "src/codegen/code-comments.h",
27261cb0ef41Sopenharmony_ci    "src/codegen/code-desc.h",
27271cb0ef41Sopenharmony_ci    "src/codegen/code-factory.h",
27281cb0ef41Sopenharmony_ci    "src/codegen/code-reference.h",
27291cb0ef41Sopenharmony_ci    "src/codegen/compilation-cache.h",
27301cb0ef41Sopenharmony_ci    "src/codegen/compiler.h",
27311cb0ef41Sopenharmony_ci    "src/codegen/constant-pool.h",
27321cb0ef41Sopenharmony_ci    "src/codegen/constants-arch.h",
27331cb0ef41Sopenharmony_ci    "src/codegen/cpu-features.h",
27341cb0ef41Sopenharmony_ci    "src/codegen/external-reference-encoder.h",
27351cb0ef41Sopenharmony_ci    "src/codegen/external-reference-table.h",
27361cb0ef41Sopenharmony_ci    "src/codegen/external-reference.h",
27371cb0ef41Sopenharmony_ci    "src/codegen/flush-instruction-cache.h",
27381cb0ef41Sopenharmony_ci    "src/codegen/handler-table.h",
27391cb0ef41Sopenharmony_ci    "src/codegen/interface-descriptors-inl.h",
27401cb0ef41Sopenharmony_ci    "src/codegen/interface-descriptors.h",
27411cb0ef41Sopenharmony_ci    "src/codegen/label.h",
27421cb0ef41Sopenharmony_ci    "src/codegen/machine-type.h",
27431cb0ef41Sopenharmony_ci    "src/codegen/macro-assembler-inl.h",
27441cb0ef41Sopenharmony_ci    "src/codegen/macro-assembler.h",
27451cb0ef41Sopenharmony_ci    "src/codegen/optimized-compilation-info.h",
27461cb0ef41Sopenharmony_ci    "src/codegen/pending-optimization-table.h",
27471cb0ef41Sopenharmony_ci    "src/codegen/register-arch.h",
27481cb0ef41Sopenharmony_ci    "src/codegen/register-base.h",
27491cb0ef41Sopenharmony_ci    "src/codegen/register-configuration.h",
27501cb0ef41Sopenharmony_ci    "src/codegen/register.h",
27511cb0ef41Sopenharmony_ci    "src/codegen/reglist-base.h",
27521cb0ef41Sopenharmony_ci    "src/codegen/reglist.h",
27531cb0ef41Sopenharmony_ci    "src/codegen/reloc-info.h",
27541cb0ef41Sopenharmony_ci    "src/codegen/safepoint-table.h",
27551cb0ef41Sopenharmony_ci    "src/codegen/script-details.h",
27561cb0ef41Sopenharmony_ci    "src/codegen/signature.h",
27571cb0ef41Sopenharmony_ci    "src/codegen/source-position-table.h",
27581cb0ef41Sopenharmony_ci    "src/codegen/source-position.h",
27591cb0ef41Sopenharmony_ci    "src/codegen/string-constants.h",
27601cb0ef41Sopenharmony_ci    "src/codegen/tick-counter.h",
27611cb0ef41Sopenharmony_ci    "src/codegen/tnode.h",
27621cb0ef41Sopenharmony_ci    "src/codegen/turbo-assembler.h",
27631cb0ef41Sopenharmony_ci    "src/codegen/unoptimized-compilation-info.h",
27641cb0ef41Sopenharmony_ci    "src/common/allow-deprecated.h",
27651cb0ef41Sopenharmony_ci    "src/common/assert-scope.h",
27661cb0ef41Sopenharmony_ci    "src/common/checks.h",
27671cb0ef41Sopenharmony_ci    "src/common/high-allocation-throughput-scope.h",
27681cb0ef41Sopenharmony_ci    "src/common/message-template.h",
27691cb0ef41Sopenharmony_ci    "src/common/operation.h",
27701cb0ef41Sopenharmony_ci    "src/common/ptr-compr-inl.h",
27711cb0ef41Sopenharmony_ci    "src/common/ptr-compr.h",
27721cb0ef41Sopenharmony_ci    "src/compiler-dispatcher/lazy-compile-dispatcher.h",
27731cb0ef41Sopenharmony_ci    "src/compiler-dispatcher/optimizing-compile-dispatcher.h",
27741cb0ef41Sopenharmony_ci    "src/compiler/access-builder.h",
27751cb0ef41Sopenharmony_ci    "src/compiler/access-info.h",
27761cb0ef41Sopenharmony_ci    "src/compiler/add-type-assertions-reducer.h",
27771cb0ef41Sopenharmony_ci    "src/compiler/all-nodes.h",
27781cb0ef41Sopenharmony_ci    "src/compiler/allocation-builder-inl.h",
27791cb0ef41Sopenharmony_ci    "src/compiler/allocation-builder.h",
27801cb0ef41Sopenharmony_ci    "src/compiler/backend/code-generator-impl.h",
27811cb0ef41Sopenharmony_ci    "src/compiler/backend/code-generator.h",
27821cb0ef41Sopenharmony_ci    "src/compiler/backend/frame-elider.h",
27831cb0ef41Sopenharmony_ci    "src/compiler/backend/gap-resolver.h",
27841cb0ef41Sopenharmony_ci    "src/compiler/backend/instruction-codes.h",
27851cb0ef41Sopenharmony_ci    "src/compiler/backend/instruction-scheduler.h",
27861cb0ef41Sopenharmony_ci    "src/compiler/backend/instruction-selector-impl.h",
27871cb0ef41Sopenharmony_ci    "src/compiler/backend/instruction-selector.h",
27881cb0ef41Sopenharmony_ci    "src/compiler/backend/instruction.h",
27891cb0ef41Sopenharmony_ci    "src/compiler/backend/jump-threading.h",
27901cb0ef41Sopenharmony_ci    "src/compiler/backend/mid-tier-register-allocator.h",
27911cb0ef41Sopenharmony_ci    "src/compiler/backend/move-optimizer.h",
27921cb0ef41Sopenharmony_ci    "src/compiler/backend/register-allocation.h",
27931cb0ef41Sopenharmony_ci    "src/compiler/backend/register-allocator-verifier.h",
27941cb0ef41Sopenharmony_ci    "src/compiler/backend/register-allocator.h",
27951cb0ef41Sopenharmony_ci    "src/compiler/backend/spill-placer.h",
27961cb0ef41Sopenharmony_ci    "src/compiler/backend/unwinding-info-writer.h",
27971cb0ef41Sopenharmony_ci    "src/compiler/basic-block-instrumentor.h",
27981cb0ef41Sopenharmony_ci    "src/compiler/branch-condition-duplicator.h",
27991cb0ef41Sopenharmony_ci    "src/compiler/branch-elimination.h",
28001cb0ef41Sopenharmony_ci    "src/compiler/bytecode-analysis.h",
28011cb0ef41Sopenharmony_ci    "src/compiler/bytecode-graph-builder.h",
28021cb0ef41Sopenharmony_ci    "src/compiler/bytecode-liveness-map.h",
28031cb0ef41Sopenharmony_ci    "src/compiler/checkpoint-elimination.h",
28041cb0ef41Sopenharmony_ci    "src/compiler/code-assembler.h",
28051cb0ef41Sopenharmony_ci    "src/compiler/common-node-cache.h",
28061cb0ef41Sopenharmony_ci    "src/compiler/common-operator-reducer.h",
28071cb0ef41Sopenharmony_ci    "src/compiler/common-operator.h",
28081cb0ef41Sopenharmony_ci    "src/compiler/compilation-dependencies.h",
28091cb0ef41Sopenharmony_ci    "src/compiler/compiler-source-position-table.h",
28101cb0ef41Sopenharmony_ci    "src/compiler/constant-folding-reducer.h",
28111cb0ef41Sopenharmony_ci    "src/compiler/control-equivalence.h",
28121cb0ef41Sopenharmony_ci    "src/compiler/control-flow-optimizer.h",
28131cb0ef41Sopenharmony_ci    "src/compiler/csa-load-elimination.h",
28141cb0ef41Sopenharmony_ci    "src/compiler/dead-code-elimination.h",
28151cb0ef41Sopenharmony_ci    "src/compiler/decompression-optimizer.h",
28161cb0ef41Sopenharmony_ci    "src/compiler/diamond.h",
28171cb0ef41Sopenharmony_ci    "src/compiler/effect-control-linearizer.h",
28181cb0ef41Sopenharmony_ci    "src/compiler/escape-analysis-reducer.h",
28191cb0ef41Sopenharmony_ci    "src/compiler/escape-analysis.h",
28201cb0ef41Sopenharmony_ci    "src/compiler/fast-api-calls.h",
28211cb0ef41Sopenharmony_ci    "src/compiler/feedback-source.h",
28221cb0ef41Sopenharmony_ci    "src/compiler/frame-states.h",
28231cb0ef41Sopenharmony_ci    "src/compiler/frame.h",
28241cb0ef41Sopenharmony_ci    "src/compiler/functional-list.h",
28251cb0ef41Sopenharmony_ci    "src/compiler/globals.h",
28261cb0ef41Sopenharmony_ci    "src/compiler/graph-assembler.h",
28271cb0ef41Sopenharmony_ci    "src/compiler/graph-reducer.h",
28281cb0ef41Sopenharmony_ci    "src/compiler/graph-trimmer.h",
28291cb0ef41Sopenharmony_ci    "src/compiler/graph-visualizer.h",
28301cb0ef41Sopenharmony_ci    "src/compiler/graph-zone-traits.h",
28311cb0ef41Sopenharmony_ci    "src/compiler/graph.h",
28321cb0ef41Sopenharmony_ci    "src/compiler/heap-refs.h",
28331cb0ef41Sopenharmony_ci    "src/compiler/js-call-reducer.h",
28341cb0ef41Sopenharmony_ci    "src/compiler/js-context-specialization.h",
28351cb0ef41Sopenharmony_ci    "src/compiler/js-create-lowering.h",
28361cb0ef41Sopenharmony_ci    "src/compiler/js-generic-lowering.h",
28371cb0ef41Sopenharmony_ci    "src/compiler/js-graph.h",
28381cb0ef41Sopenharmony_ci    "src/compiler/js-heap-broker.h",
28391cb0ef41Sopenharmony_ci    "src/compiler/js-inlining-heuristic.h",
28401cb0ef41Sopenharmony_ci    "src/compiler/js-inlining.h",
28411cb0ef41Sopenharmony_ci    "src/compiler/js-intrinsic-lowering.h",
28421cb0ef41Sopenharmony_ci    "src/compiler/js-native-context-specialization.h",
28431cb0ef41Sopenharmony_ci    "src/compiler/js-operator.h",
28441cb0ef41Sopenharmony_ci    "src/compiler/js-type-hint-lowering.h",
28451cb0ef41Sopenharmony_ci    "src/compiler/js-typed-lowering.h",
28461cb0ef41Sopenharmony_ci    "src/compiler/linkage.h",
28471cb0ef41Sopenharmony_ci    "src/compiler/load-elimination.h",
28481cb0ef41Sopenharmony_ci    "src/compiler/loop-analysis.h",
28491cb0ef41Sopenharmony_ci    "src/compiler/loop-peeling.h",
28501cb0ef41Sopenharmony_ci    "src/compiler/loop-unrolling.h",
28511cb0ef41Sopenharmony_ci    "src/compiler/loop-variable-optimizer.h",
28521cb0ef41Sopenharmony_ci    "src/compiler/machine-graph-verifier.h",
28531cb0ef41Sopenharmony_ci    "src/compiler/machine-graph.h",
28541cb0ef41Sopenharmony_ci    "src/compiler/machine-operator-reducer.h",
28551cb0ef41Sopenharmony_ci    "src/compiler/machine-operator.h",
28561cb0ef41Sopenharmony_ci    "src/compiler/map-inference.h",
28571cb0ef41Sopenharmony_ci    "src/compiler/memory-lowering.h",
28581cb0ef41Sopenharmony_ci    "src/compiler/memory-optimizer.h",
28591cb0ef41Sopenharmony_ci    "src/compiler/node-aux-data.h",
28601cb0ef41Sopenharmony_ci    "src/compiler/node-cache.h",
28611cb0ef41Sopenharmony_ci    "src/compiler/node-marker.h",
28621cb0ef41Sopenharmony_ci    "src/compiler/node-matchers.h",
28631cb0ef41Sopenharmony_ci    "src/compiler/node-observer.h",
28641cb0ef41Sopenharmony_ci    "src/compiler/node-origin-table.h",
28651cb0ef41Sopenharmony_ci    "src/compiler/node-properties.h",
28661cb0ef41Sopenharmony_ci    "src/compiler/node.h",
28671cb0ef41Sopenharmony_ci    "src/compiler/opcodes.h",
28681cb0ef41Sopenharmony_ci    "src/compiler/operation-typer.h",
28691cb0ef41Sopenharmony_ci    "src/compiler/operator-properties.h",
28701cb0ef41Sopenharmony_ci    "src/compiler/operator.h",
28711cb0ef41Sopenharmony_ci    "src/compiler/osr.h",
28721cb0ef41Sopenharmony_ci    "src/compiler/per-isolate-compiler-cache.h",
28731cb0ef41Sopenharmony_ci    "src/compiler/persistent-map.h",
28741cb0ef41Sopenharmony_ci    "src/compiler/pipeline-statistics.h",
28751cb0ef41Sopenharmony_ci    "src/compiler/pipeline.h",
28761cb0ef41Sopenharmony_ci    "src/compiler/processed-feedback.h",
28771cb0ef41Sopenharmony_ci    "src/compiler/property-access-builder.h",
28781cb0ef41Sopenharmony_ci    "src/compiler/raw-machine-assembler.h",
28791cb0ef41Sopenharmony_ci    "src/compiler/redundancy-elimination.h",
28801cb0ef41Sopenharmony_ci    "src/compiler/refs-map.h",
28811cb0ef41Sopenharmony_ci    "src/compiler/representation-change.h",
28821cb0ef41Sopenharmony_ci    "src/compiler/schedule.h",
28831cb0ef41Sopenharmony_ci    "src/compiler/scheduler.h",
28841cb0ef41Sopenharmony_ci    "src/compiler/select-lowering.h",
28851cb0ef41Sopenharmony_ci    "src/compiler/simplified-lowering-verifier.h",
28861cb0ef41Sopenharmony_ci    "src/compiler/simplified-lowering.h",
28871cb0ef41Sopenharmony_ci    "src/compiler/simplified-operator-reducer.h",
28881cb0ef41Sopenharmony_ci    "src/compiler/simplified-operator.h",
28891cb0ef41Sopenharmony_ci    "src/compiler/state-values-utils.h",
28901cb0ef41Sopenharmony_ci    "src/compiler/store-store-elimination.h",
28911cb0ef41Sopenharmony_ci    "src/compiler/type-cache.h",
28921cb0ef41Sopenharmony_ci    "src/compiler/type-narrowing-reducer.h",
28931cb0ef41Sopenharmony_ci    "src/compiler/typed-optimization.h",
28941cb0ef41Sopenharmony_ci    "src/compiler/typer.h",
28951cb0ef41Sopenharmony_ci    "src/compiler/types.h",
28961cb0ef41Sopenharmony_ci    "src/compiler/value-numbering-reducer.h",
28971cb0ef41Sopenharmony_ci    "src/compiler/verifier.h",
28981cb0ef41Sopenharmony_ci    "src/compiler/write-barrier-kind.h",
28991cb0ef41Sopenharmony_ci    "src/compiler/zone-stats.h",
29001cb0ef41Sopenharmony_ci    "src/date/date.h",
29011cb0ef41Sopenharmony_ci    "src/date/dateparser-inl.h",
29021cb0ef41Sopenharmony_ci    "src/date/dateparser.h",
29031cb0ef41Sopenharmony_ci    "src/debug/debug-coverage.h",
29041cb0ef41Sopenharmony_ci    "src/debug/debug-evaluate.h",
29051cb0ef41Sopenharmony_ci    "src/debug/debug-frames.h",
29061cb0ef41Sopenharmony_ci    "src/debug/debug-interface.h",
29071cb0ef41Sopenharmony_ci    "src/debug/debug-property-iterator.h",
29081cb0ef41Sopenharmony_ci    "src/debug/debug-scope-iterator.h",
29091cb0ef41Sopenharmony_ci    "src/debug/debug-scopes.h",
29101cb0ef41Sopenharmony_ci    "src/debug/debug-stack-trace-iterator.h",
29111cb0ef41Sopenharmony_ci    "src/debug/debug-type-profile.h",
29121cb0ef41Sopenharmony_ci    "src/debug/debug.h",
29131cb0ef41Sopenharmony_ci    "src/debug/interface-types.h",
29141cb0ef41Sopenharmony_ci    "src/debug/liveedit.h",
29151cb0ef41Sopenharmony_ci    "src/deoptimizer/deoptimize-reason.h",
29161cb0ef41Sopenharmony_ci    "src/deoptimizer/deoptimized-frame-info.h",
29171cb0ef41Sopenharmony_ci    "src/deoptimizer/deoptimizer.h",
29181cb0ef41Sopenharmony_ci    "src/deoptimizer/frame-description.h",
29191cb0ef41Sopenharmony_ci    "src/deoptimizer/materialized-object-store.h",
29201cb0ef41Sopenharmony_ci    "src/deoptimizer/translated-state.h",
29211cb0ef41Sopenharmony_ci    "src/deoptimizer/translation-array.h",
29221cb0ef41Sopenharmony_ci    "src/deoptimizer/translation-opcode.h",
29231cb0ef41Sopenharmony_ci    "src/diagnostics/basic-block-profiler.h",
29241cb0ef41Sopenharmony_ci    "src/diagnostics/code-tracer.h",
29251cb0ef41Sopenharmony_ci    "src/diagnostics/compilation-statistics.h",
29261cb0ef41Sopenharmony_ci    "src/diagnostics/disasm.h",
29271cb0ef41Sopenharmony_ci    "src/diagnostics/disassembler.h",
29281cb0ef41Sopenharmony_ci    "src/diagnostics/eh-frame.h",
29291cb0ef41Sopenharmony_ci    "src/diagnostics/gdb-jit.h",
29301cb0ef41Sopenharmony_ci    "src/diagnostics/perf-jit.h",
29311cb0ef41Sopenharmony_ci    "src/diagnostics/unwinder.h",
29321cb0ef41Sopenharmony_ci    "src/execution/arguments-inl.h",
29331cb0ef41Sopenharmony_ci    "src/execution/arguments.h",
29341cb0ef41Sopenharmony_ci    "src/execution/clobber-registers.h",
29351cb0ef41Sopenharmony_ci    "src/execution/embedder-state.h",
29361cb0ef41Sopenharmony_ci    "src/execution/encoded-c-signature.h",
29371cb0ef41Sopenharmony_ci    "src/execution/execution.h",
29381cb0ef41Sopenharmony_ci    "src/execution/frame-constants.h",
29391cb0ef41Sopenharmony_ci    "src/execution/frames-inl.h",
29401cb0ef41Sopenharmony_ci    "src/execution/frames.h",
29411cb0ef41Sopenharmony_ci    "src/execution/futex-emulation.h",
29421cb0ef41Sopenharmony_ci    "src/execution/interrupts-scope.h",
29431cb0ef41Sopenharmony_ci    "src/execution/isolate-data.h",
29441cb0ef41Sopenharmony_ci    "src/execution/isolate-inl.h",
29451cb0ef41Sopenharmony_ci    "src/execution/isolate-utils-inl.h",
29461cb0ef41Sopenharmony_ci    "src/execution/isolate-utils.h",
29471cb0ef41Sopenharmony_ci    "src/execution/isolate.h",
29481cb0ef41Sopenharmony_ci    "src/execution/local-isolate-inl.h",
29491cb0ef41Sopenharmony_ci    "src/execution/local-isolate.h",
29501cb0ef41Sopenharmony_ci    "src/execution/messages.h",
29511cb0ef41Sopenharmony_ci    "src/execution/microtask-queue.h",
29521cb0ef41Sopenharmony_ci    "src/execution/pointer-authentication.h",
29531cb0ef41Sopenharmony_ci    "src/execution/protectors-inl.h",
29541cb0ef41Sopenharmony_ci    "src/execution/protectors.h",
29551cb0ef41Sopenharmony_ci    "src/execution/shared-mutex-guard-if-off-thread.h",
29561cb0ef41Sopenharmony_ci    "src/execution/simulator-base.h",
29571cb0ef41Sopenharmony_ci    "src/execution/simulator.h",
29581cb0ef41Sopenharmony_ci    "src/execution/stack-guard.h",
29591cb0ef41Sopenharmony_ci    "src/execution/thread-id.h",
29601cb0ef41Sopenharmony_ci    "src/execution/thread-local-top.h",
29611cb0ef41Sopenharmony_ci    "src/execution/tiering-manager.h",
29621cb0ef41Sopenharmony_ci    "src/execution/v8threads.h",
29631cb0ef41Sopenharmony_ci    "src/execution/vm-state-inl.h",
29641cb0ef41Sopenharmony_ci    "src/execution/vm-state.h",
29651cb0ef41Sopenharmony_ci    "src/extensions/cputracemark-extension.h",
29661cb0ef41Sopenharmony_ci    "src/extensions/externalize-string-extension.h",
29671cb0ef41Sopenharmony_ci    "src/extensions/gc-extension.h",
29681cb0ef41Sopenharmony_ci    "src/extensions/ignition-statistics-extension.h",
29691cb0ef41Sopenharmony_ci    "src/extensions/statistics-extension.h",
29701cb0ef41Sopenharmony_ci    "src/extensions/trigger-failure-extension.h",
29711cb0ef41Sopenharmony_ci    "src/handles/global-handles-inl.h",
29721cb0ef41Sopenharmony_ci    "src/handles/global-handles.h",
29731cb0ef41Sopenharmony_ci    "src/handles/handles-inl.h",
29741cb0ef41Sopenharmony_ci    "src/handles/handles.h",
29751cb0ef41Sopenharmony_ci    "src/handles/local-handles-inl.h",
29761cb0ef41Sopenharmony_ci    "src/handles/local-handles.h",
29771cb0ef41Sopenharmony_ci    "src/handles/maybe-handles-inl.h",
29781cb0ef41Sopenharmony_ci    "src/handles/maybe-handles.h",
29791cb0ef41Sopenharmony_ci    "src/handles/persistent-handles.h",
29801cb0ef41Sopenharmony_ci    "src/heap/allocation-observer.h",
29811cb0ef41Sopenharmony_ci    "src/heap/allocation-result.h",
29821cb0ef41Sopenharmony_ci    "src/heap/allocation-stats.h",
29831cb0ef41Sopenharmony_ci    "src/heap/array-buffer-sweeper.h",
29841cb0ef41Sopenharmony_ci    "src/heap/base-space.h",
29851cb0ef41Sopenharmony_ci    "src/heap/basic-memory-chunk.h",
29861cb0ef41Sopenharmony_ci    "src/heap/code-object-registry.h",
29871cb0ef41Sopenharmony_ci    "src/heap/code-range.h",
29881cb0ef41Sopenharmony_ci    "src/heap/code-stats.h",
29891cb0ef41Sopenharmony_ci    "src/heap/collection-barrier.h",
29901cb0ef41Sopenharmony_ci    "src/heap/combined-heap.h",
29911cb0ef41Sopenharmony_ci    "src/heap/concurrent-allocator-inl.h",
29921cb0ef41Sopenharmony_ci    "src/heap/concurrent-allocator.h",
29931cb0ef41Sopenharmony_ci    "src/heap/concurrent-marking.h",
29941cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/cpp-heap.h",
29951cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/cpp-marking-state-inl.h",
29961cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/cpp-marking-state.h",
29971cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/cpp-snapshot.h",
29981cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-state-inl.h",
29991cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-state.h",
30001cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-verifier.h",
30011cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-visitor.h",
30021cb0ef41Sopenharmony_ci    "src/heap/embedder-tracing-inl.h",
30031cb0ef41Sopenharmony_ci    "src/heap/embedder-tracing.h",
30041cb0ef41Sopenharmony_ci    "src/heap/evacuation-allocator-inl.h",
30051cb0ef41Sopenharmony_ci    "src/heap/evacuation-allocator.h",
30061cb0ef41Sopenharmony_ci    "src/heap/factory-base-inl.h",
30071cb0ef41Sopenharmony_ci    "src/heap/factory-base.h",
30081cb0ef41Sopenharmony_ci    "src/heap/factory-inl.h",
30091cb0ef41Sopenharmony_ci    "src/heap/factory.h",
30101cb0ef41Sopenharmony_ci    "src/heap/finalization-registry-cleanup-task.h",
30111cb0ef41Sopenharmony_ci    "src/heap/free-list-inl.h",
30121cb0ef41Sopenharmony_ci    "src/heap/free-list.h",
30131cb0ef41Sopenharmony_ci    "src/heap/gc-idle-time-handler.h",
30141cb0ef41Sopenharmony_ci    "src/heap/gc-tracer-inl.h",
30151cb0ef41Sopenharmony_ci    "src/heap/gc-tracer.h",
30161cb0ef41Sopenharmony_ci    "src/heap/heap-allocator-inl.h",
30171cb0ef41Sopenharmony_ci    "src/heap/heap-allocator.h",
30181cb0ef41Sopenharmony_ci    "src/heap/heap-controller.h",
30191cb0ef41Sopenharmony_ci    "src/heap/heap-inl.h",
30201cb0ef41Sopenharmony_ci    "src/heap/heap-layout-tracer.h",
30211cb0ef41Sopenharmony_ci    "src/heap/heap-write-barrier-inl.h",
30221cb0ef41Sopenharmony_ci    "src/heap/heap-write-barrier.h",
30231cb0ef41Sopenharmony_ci    "src/heap/heap.h",
30241cb0ef41Sopenharmony_ci    "src/heap/incremental-marking-inl.h",
30251cb0ef41Sopenharmony_ci    "src/heap/incremental-marking-job.h",
30261cb0ef41Sopenharmony_ci    "src/heap/incremental-marking.h",
30271cb0ef41Sopenharmony_ci    "src/heap/index-generator.h",
30281cb0ef41Sopenharmony_ci    "src/heap/invalidated-slots-inl.h",
30291cb0ef41Sopenharmony_ci    "src/heap/invalidated-slots.h",
30301cb0ef41Sopenharmony_ci    "src/heap/large-spaces.h",
30311cb0ef41Sopenharmony_ci    "src/heap/linear-allocation-area.h",
30321cb0ef41Sopenharmony_ci    "src/heap/list.h",
30331cb0ef41Sopenharmony_ci    "src/heap/local-factory-inl.h",
30341cb0ef41Sopenharmony_ci    "src/heap/local-factory.h",
30351cb0ef41Sopenharmony_ci    "src/heap/local-heap-inl.h",
30361cb0ef41Sopenharmony_ci    "src/heap/local-heap.h",
30371cb0ef41Sopenharmony_ci    "src/heap/mark-compact-inl.h",
30381cb0ef41Sopenharmony_ci    "src/heap/mark-compact.h",
30391cb0ef41Sopenharmony_ci    "src/heap/marking-barrier-inl.h",
30401cb0ef41Sopenharmony_ci    "src/heap/marking-barrier.h",
30411cb0ef41Sopenharmony_ci    "src/heap/marking-visitor-inl.h",
30421cb0ef41Sopenharmony_ci    "src/heap/marking-visitor.h",
30431cb0ef41Sopenharmony_ci    "src/heap/marking-worklist-inl.h",
30441cb0ef41Sopenharmony_ci    "src/heap/marking-worklist.h",
30451cb0ef41Sopenharmony_ci    "src/heap/marking.h",
30461cb0ef41Sopenharmony_ci    "src/heap/memory-allocator.h",
30471cb0ef41Sopenharmony_ci    "src/heap/memory-chunk-inl.h",
30481cb0ef41Sopenharmony_ci    "src/heap/memory-chunk-layout.h",
30491cb0ef41Sopenharmony_ci    "src/heap/memory-chunk.h",
30501cb0ef41Sopenharmony_ci    "src/heap/memory-measurement-inl.h",
30511cb0ef41Sopenharmony_ci    "src/heap/memory-measurement.h",
30521cb0ef41Sopenharmony_ci    "src/heap/memory-reducer.h",
30531cb0ef41Sopenharmony_ci    "src/heap/new-spaces-inl.h",
30541cb0ef41Sopenharmony_ci    "src/heap/new-spaces.h",
30551cb0ef41Sopenharmony_ci    "src/heap/object-stats.h",
30561cb0ef41Sopenharmony_ci    "src/heap/objects-visiting-inl.h",
30571cb0ef41Sopenharmony_ci    "src/heap/objects-visiting.h",
30581cb0ef41Sopenharmony_ci    "src/heap/paged-spaces-inl.h",
30591cb0ef41Sopenharmony_ci    "src/heap/paged-spaces.h",
30601cb0ef41Sopenharmony_ci    "src/heap/parallel-work-item.h",
30611cb0ef41Sopenharmony_ci    "src/heap/parked-scope.h",
30621cb0ef41Sopenharmony_ci    "src/heap/progress-bar.h",
30631cb0ef41Sopenharmony_ci    "src/heap/read-only-heap-inl.h",
30641cb0ef41Sopenharmony_ci    "src/heap/read-only-heap.h",
30651cb0ef41Sopenharmony_ci    "src/heap/read-only-spaces.h",
30661cb0ef41Sopenharmony_ci    "src/heap/remembered-set-inl.h",
30671cb0ef41Sopenharmony_ci    "src/heap/remembered-set.h",
30681cb0ef41Sopenharmony_ci    "src/heap/safepoint.h",
30691cb0ef41Sopenharmony_ci    "src/heap/scavenge-job.h",
30701cb0ef41Sopenharmony_ci    "src/heap/scavenger-inl.h",
30711cb0ef41Sopenharmony_ci    "src/heap/scavenger.h",
30721cb0ef41Sopenharmony_ci    "src/heap/slot-set.h",
30731cb0ef41Sopenharmony_ci    "src/heap/spaces-inl.h",
30741cb0ef41Sopenharmony_ci    "src/heap/spaces.h",
30751cb0ef41Sopenharmony_ci    "src/heap/stress-marking-observer.h",
30761cb0ef41Sopenharmony_ci    "src/heap/stress-scavenge-observer.h",
30771cb0ef41Sopenharmony_ci    "src/heap/sweeper.h",
30781cb0ef41Sopenharmony_ci    "src/heap/weak-object-worklists.h",
30791cb0ef41Sopenharmony_ci    "src/ic/call-optimization.h",
30801cb0ef41Sopenharmony_ci    "src/ic/handler-configuration-inl.h",
30811cb0ef41Sopenharmony_ci    "src/ic/handler-configuration.h",
30821cb0ef41Sopenharmony_ci    "src/ic/ic-inl.h",
30831cb0ef41Sopenharmony_ci    "src/ic/ic-stats.h",
30841cb0ef41Sopenharmony_ci    "src/ic/ic.h",
30851cb0ef41Sopenharmony_ci    "src/ic/stub-cache.h",
30861cb0ef41Sopenharmony_ci    "src/init/bootstrapper.h",
30871cb0ef41Sopenharmony_ci    "src/init/heap-symbols.h",
30881cb0ef41Sopenharmony_ci    "src/init/icu_util.h",
30891cb0ef41Sopenharmony_ci    "src/init/isolate-allocator.h",
30901cb0ef41Sopenharmony_ci    "src/init/setup-isolate.h",
30911cb0ef41Sopenharmony_ci    "src/init/startup-data-util.h",
30921cb0ef41Sopenharmony_ci    "src/init/v8.h",
30931cb0ef41Sopenharmony_ci    "src/interpreter/block-coverage-builder.h",
30941cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-builder.h",
30951cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-iterator.h",
30961cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-random-iterator.h",
30971cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-writer.h",
30981cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-decoder.h",
30991cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-flags.h",
31001cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-generator.h",
31011cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-jump-table.h",
31021cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-label.h",
31031cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-node.h",
31041cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-operands.h",
31051cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-register-allocator.h",
31061cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-register-optimizer.h",
31071cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-register.h",
31081cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-source-info.h",
31091cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-traits.h",
31101cb0ef41Sopenharmony_ci    "src/interpreter/bytecodes.h",
31111cb0ef41Sopenharmony_ci    "src/interpreter/constant-array-builder.h",
31121cb0ef41Sopenharmony_ci    "src/interpreter/control-flow-builders.h",
31131cb0ef41Sopenharmony_ci    "src/interpreter/handler-table-builder.h",
31141cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-generator.h",
31151cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-intrinsics.h",
31161cb0ef41Sopenharmony_ci    "src/interpreter/interpreter.h",
31171cb0ef41Sopenharmony_ci    "src/json/json-parser.h",
31181cb0ef41Sopenharmony_ci    "src/json/json-stringifier.h",
31191cb0ef41Sopenharmony_ci    "src/libsampler/sampler.h",
31201cb0ef41Sopenharmony_ci    "src/logging/code-events.h",
31211cb0ef41Sopenharmony_ci    "src/logging/counters-definitions.h",
31221cb0ef41Sopenharmony_ci    "src/logging/counters-scopes.h",
31231cb0ef41Sopenharmony_ci    "src/logging/counters.h",
31241cb0ef41Sopenharmony_ci    "src/logging/local-logger.h",
31251cb0ef41Sopenharmony_ci    "src/logging/log-inl.h",
31261cb0ef41Sopenharmony_ci    "src/logging/log-utils.h",
31271cb0ef41Sopenharmony_ci    "src/logging/log.h",
31281cb0ef41Sopenharmony_ci    "src/logging/metrics.h",
31291cb0ef41Sopenharmony_ci    "src/logging/runtime-call-stats-scope.h",
31301cb0ef41Sopenharmony_ci    "src/logging/runtime-call-stats.h",
31311cb0ef41Sopenharmony_ci    "src/logging/tracing-flags.h",
31321cb0ef41Sopenharmony_ci    "src/numbers/conversions-inl.h",
31331cb0ef41Sopenharmony_ci    "src/numbers/conversions.h",
31341cb0ef41Sopenharmony_ci    "src/numbers/hash-seed-inl.h",
31351cb0ef41Sopenharmony_ci    "src/numbers/math-random.h",
31361cb0ef41Sopenharmony_ci    "src/objects/all-objects-inl.h",
31371cb0ef41Sopenharmony_ci    "src/objects/allocation-site-inl.h",
31381cb0ef41Sopenharmony_ci    "src/objects/allocation-site-scopes-inl.h",
31391cb0ef41Sopenharmony_ci    "src/objects/allocation-site-scopes.h",
31401cb0ef41Sopenharmony_ci    "src/objects/allocation-site.h",
31411cb0ef41Sopenharmony_ci    "src/objects/api-callbacks-inl.h",
31421cb0ef41Sopenharmony_ci    "src/objects/api-callbacks.h",
31431cb0ef41Sopenharmony_ci    "src/objects/arguments-inl.h",
31441cb0ef41Sopenharmony_ci    "src/objects/arguments.h",
31451cb0ef41Sopenharmony_ci    "src/objects/backing-store.h",
31461cb0ef41Sopenharmony_ci    "src/objects/bigint-inl.h",
31471cb0ef41Sopenharmony_ci    "src/objects/bigint.h",
31481cb0ef41Sopenharmony_ci    "src/objects/call-site-info-inl.h",
31491cb0ef41Sopenharmony_ci    "src/objects/call-site-info.h",
31501cb0ef41Sopenharmony_ci    "src/objects/cell-inl.h",
31511cb0ef41Sopenharmony_ci    "src/objects/cell.h",
31521cb0ef41Sopenharmony_ci    "src/objects/code-inl.h",
31531cb0ef41Sopenharmony_ci    "src/objects/code-kind.h",
31541cb0ef41Sopenharmony_ci    "src/objects/code.h",
31551cb0ef41Sopenharmony_ci    "src/objects/compilation-cache-table-inl.h",
31561cb0ef41Sopenharmony_ci    "src/objects/compilation-cache-table.h",
31571cb0ef41Sopenharmony_ci    "src/objects/compressed-slots-inl.h",
31581cb0ef41Sopenharmony_ci    "src/objects/compressed-slots.h",
31591cb0ef41Sopenharmony_ci    "src/objects/contexts-inl.h",
31601cb0ef41Sopenharmony_ci    "src/objects/contexts.h",
31611cb0ef41Sopenharmony_ci    "src/objects/data-handler-inl.h",
31621cb0ef41Sopenharmony_ci    "src/objects/data-handler.h",
31631cb0ef41Sopenharmony_ci    "src/objects/debug-objects-inl.h",
31641cb0ef41Sopenharmony_ci    "src/objects/debug-objects.h",
31651cb0ef41Sopenharmony_ci    "src/objects/descriptor-array-inl.h",
31661cb0ef41Sopenharmony_ci    "src/objects/descriptor-array.h",
31671cb0ef41Sopenharmony_ci    "src/objects/dictionary-inl.h",
31681cb0ef41Sopenharmony_ci    "src/objects/dictionary.h",
31691cb0ef41Sopenharmony_ci    "src/objects/elements-inl.h",
31701cb0ef41Sopenharmony_ci    "src/objects/elements-kind.h",
31711cb0ef41Sopenharmony_ci    "src/objects/elements.h",
31721cb0ef41Sopenharmony_ci    "src/objects/embedder-data-array-inl.h",
31731cb0ef41Sopenharmony_ci    "src/objects/embedder-data-array.h",
31741cb0ef41Sopenharmony_ci    "src/objects/embedder-data-slot-inl.h",
31751cb0ef41Sopenharmony_ci    "src/objects/embedder-data-slot.h",
31761cb0ef41Sopenharmony_ci    "src/objects/feedback-cell-inl.h",
31771cb0ef41Sopenharmony_ci    "src/objects/feedback-cell.h",
31781cb0ef41Sopenharmony_ci    "src/objects/feedback-vector-inl.h",
31791cb0ef41Sopenharmony_ci    "src/objects/feedback-vector.h",
31801cb0ef41Sopenharmony_ci    "src/objects/field-index-inl.h",
31811cb0ef41Sopenharmony_ci    "src/objects/field-index.h",
31821cb0ef41Sopenharmony_ci    "src/objects/field-type.h",
31831cb0ef41Sopenharmony_ci    "src/objects/fixed-array-inl.h",
31841cb0ef41Sopenharmony_ci    "src/objects/fixed-array.h",
31851cb0ef41Sopenharmony_ci    "src/objects/foreign-inl.h",
31861cb0ef41Sopenharmony_ci    "src/objects/foreign.h",
31871cb0ef41Sopenharmony_ci    "src/objects/free-space-inl.h",
31881cb0ef41Sopenharmony_ci    "src/objects/free-space.h",
31891cb0ef41Sopenharmony_ci    "src/objects/function-kind.h",
31901cb0ef41Sopenharmony_ci    "src/objects/function-syntax-kind.h",
31911cb0ef41Sopenharmony_ci    "src/objects/hash-table-inl.h",
31921cb0ef41Sopenharmony_ci    "src/objects/hash-table.h",
31931cb0ef41Sopenharmony_ci    "src/objects/heap-number-inl.h",
31941cb0ef41Sopenharmony_ci    "src/objects/heap-number.h",
31951cb0ef41Sopenharmony_ci    "src/objects/heap-object-inl.h",
31961cb0ef41Sopenharmony_ci    "src/objects/heap-object.h",
31971cb0ef41Sopenharmony_ci    "src/objects/instance-type-inl.h",
31981cb0ef41Sopenharmony_ci    "src/objects/instance-type.h",
31991cb0ef41Sopenharmony_ci    "src/objects/internal-index.h",
32001cb0ef41Sopenharmony_ci    "src/objects/js-array-buffer-inl.h",
32011cb0ef41Sopenharmony_ci    "src/objects/js-array-buffer.h",
32021cb0ef41Sopenharmony_ci    "src/objects/js-array-inl.h",
32031cb0ef41Sopenharmony_ci    "src/objects/js-array.h",
32041cb0ef41Sopenharmony_ci    "src/objects/js-collection-inl.h",
32051cb0ef41Sopenharmony_ci    "src/objects/js-collection-iterator-inl.h",
32061cb0ef41Sopenharmony_ci    "src/objects/js-collection-iterator.h",
32071cb0ef41Sopenharmony_ci    "src/objects/js-collection.h",
32081cb0ef41Sopenharmony_ci    "src/objects/js-function-inl.h",
32091cb0ef41Sopenharmony_ci    "src/objects/js-function.h",
32101cb0ef41Sopenharmony_ci    "src/objects/js-generator-inl.h",
32111cb0ef41Sopenharmony_ci    "src/objects/js-generator.h",
32121cb0ef41Sopenharmony_ci    "src/objects/js-objects-inl.h",
32131cb0ef41Sopenharmony_ci    "src/objects/js-objects.h",
32141cb0ef41Sopenharmony_ci    "src/objects/js-promise-inl.h",
32151cb0ef41Sopenharmony_ci    "src/objects/js-promise.h",
32161cb0ef41Sopenharmony_ci    "src/objects/js-proxy-inl.h",
32171cb0ef41Sopenharmony_ci    "src/objects/js-proxy.h",
32181cb0ef41Sopenharmony_ci    "src/objects/js-regexp-inl.h",
32191cb0ef41Sopenharmony_ci    "src/objects/js-regexp-string-iterator-inl.h",
32201cb0ef41Sopenharmony_ci    "src/objects/js-regexp-string-iterator.h",
32211cb0ef41Sopenharmony_ci    "src/objects/js-regexp.h",
32221cb0ef41Sopenharmony_ci    "src/objects/js-segments-inl.h",
32231cb0ef41Sopenharmony_ci    "src/objects/js-segments.h",
32241cb0ef41Sopenharmony_ci    "src/objects/js-shadow-realms-inl.h",
32251cb0ef41Sopenharmony_ci    "src/objects/js-shadow-realms.h",
32261cb0ef41Sopenharmony_ci    "src/objects/js-struct-inl.h",
32271cb0ef41Sopenharmony_ci    "src/objects/js-struct.h",
32281cb0ef41Sopenharmony_ci    "src/objects/js-temporal-objects-inl.h",
32291cb0ef41Sopenharmony_ci    "src/objects/js-temporal-objects.h",
32301cb0ef41Sopenharmony_ci    "src/objects/js-weak-refs-inl.h",
32311cb0ef41Sopenharmony_ci    "src/objects/js-weak-refs.h",
32321cb0ef41Sopenharmony_ci    "src/objects/keys.h",
32331cb0ef41Sopenharmony_ci    "src/objects/literal-objects-inl.h",
32341cb0ef41Sopenharmony_ci    "src/objects/literal-objects.h",
32351cb0ef41Sopenharmony_ci    "src/objects/lookup-cache-inl.h",
32361cb0ef41Sopenharmony_ci    "src/objects/lookup-cache.h",
32371cb0ef41Sopenharmony_ci    "src/objects/lookup-inl.h",
32381cb0ef41Sopenharmony_ci    "src/objects/lookup.h",
32391cb0ef41Sopenharmony_ci    "src/objects/managed-inl.h",
32401cb0ef41Sopenharmony_ci    "src/objects/managed.h",
32411cb0ef41Sopenharmony_ci    "src/objects/map-inl.h",
32421cb0ef41Sopenharmony_ci    "src/objects/map-updater.h",
32431cb0ef41Sopenharmony_ci    "src/objects/map.h",
32441cb0ef41Sopenharmony_ci    "src/objects/maybe-object-inl.h",
32451cb0ef41Sopenharmony_ci    "src/objects/maybe-object.h",
32461cb0ef41Sopenharmony_ci    "src/objects/megadom-handler-inl.h",
32471cb0ef41Sopenharmony_ci    "src/objects/megadom-handler.h",
32481cb0ef41Sopenharmony_ci    "src/objects/microtask-inl.h",
32491cb0ef41Sopenharmony_ci    "src/objects/microtask.h",
32501cb0ef41Sopenharmony_ci    "src/objects/module-inl.h",
32511cb0ef41Sopenharmony_ci    "src/objects/module.h",
32521cb0ef41Sopenharmony_ci    "src/objects/name-inl.h",
32531cb0ef41Sopenharmony_ci    "src/objects/name.h",
32541cb0ef41Sopenharmony_ci    "src/objects/object-list-macros.h",
32551cb0ef41Sopenharmony_ci    "src/objects/object-macros-undef.h",
32561cb0ef41Sopenharmony_ci    "src/objects/object-macros.h",
32571cb0ef41Sopenharmony_ci    "src/objects/object-type.h",
32581cb0ef41Sopenharmony_ci    "src/objects/objects-body-descriptors-inl.h",
32591cb0ef41Sopenharmony_ci    "src/objects/objects-body-descriptors.h",
32601cb0ef41Sopenharmony_ci    "src/objects/objects-definitions.h",
32611cb0ef41Sopenharmony_ci    "src/objects/objects-inl.h",
32621cb0ef41Sopenharmony_ci    "src/objects/objects.h",
32631cb0ef41Sopenharmony_ci    "src/objects/oddball-inl.h",
32641cb0ef41Sopenharmony_ci    "src/objects/oddball.h",
32651cb0ef41Sopenharmony_ci    "src/objects/option-utils.h",
32661cb0ef41Sopenharmony_ci    "src/objects/ordered-hash-table-inl.h",
32671cb0ef41Sopenharmony_ci    "src/objects/ordered-hash-table.h",
32681cb0ef41Sopenharmony_ci    "src/objects/osr-optimized-code-cache-inl.h",
32691cb0ef41Sopenharmony_ci    "src/objects/osr-optimized-code-cache.h",
32701cb0ef41Sopenharmony_ci    "src/objects/primitive-heap-object-inl.h",
32711cb0ef41Sopenharmony_ci    "src/objects/primitive-heap-object.h",
32721cb0ef41Sopenharmony_ci    "src/objects/promise-inl.h",
32731cb0ef41Sopenharmony_ci    "src/objects/promise.h",
32741cb0ef41Sopenharmony_ci    "src/objects/property-array-inl.h",
32751cb0ef41Sopenharmony_ci    "src/objects/property-array.h",
32761cb0ef41Sopenharmony_ci    "src/objects/property-cell-inl.h",
32771cb0ef41Sopenharmony_ci    "src/objects/property-cell.h",
32781cb0ef41Sopenharmony_ci    "src/objects/property-descriptor-object-inl.h",
32791cb0ef41Sopenharmony_ci    "src/objects/property-descriptor-object.h",
32801cb0ef41Sopenharmony_ci    "src/objects/property-descriptor.h",
32811cb0ef41Sopenharmony_ci    "src/objects/property-details.h",
32821cb0ef41Sopenharmony_ci    "src/objects/property.h",
32831cb0ef41Sopenharmony_ci    "src/objects/prototype-info-inl.h",
32841cb0ef41Sopenharmony_ci    "src/objects/prototype-info.h",
32851cb0ef41Sopenharmony_ci    "src/objects/prototype-inl.h",
32861cb0ef41Sopenharmony_ci    "src/objects/prototype.h",
32871cb0ef41Sopenharmony_ci    "src/objects/regexp-match-info.h",
32881cb0ef41Sopenharmony_ci    "src/objects/scope-info-inl.h",
32891cb0ef41Sopenharmony_ci    "src/objects/scope-info.h",
32901cb0ef41Sopenharmony_ci    "src/objects/script-inl.h",
32911cb0ef41Sopenharmony_ci    "src/objects/script.h",
32921cb0ef41Sopenharmony_ci    "src/objects/shared-function-info-inl.h",
32931cb0ef41Sopenharmony_ci    "src/objects/shared-function-info.h",
32941cb0ef41Sopenharmony_ci    "src/objects/slots-atomic-inl.h",
32951cb0ef41Sopenharmony_ci    "src/objects/slots-inl.h",
32961cb0ef41Sopenharmony_ci    "src/objects/slots.h",
32971cb0ef41Sopenharmony_ci    "src/objects/smi-inl.h",
32981cb0ef41Sopenharmony_ci    "src/objects/smi.h",
32991cb0ef41Sopenharmony_ci    "src/objects/source-text-module-inl.h",
33001cb0ef41Sopenharmony_ci    "src/objects/source-text-module.h",
33011cb0ef41Sopenharmony_ci    "src/objects/string-comparator.h",
33021cb0ef41Sopenharmony_ci    "src/objects/string-inl.h",
33031cb0ef41Sopenharmony_ci    "src/objects/string-set-inl.h",
33041cb0ef41Sopenharmony_ci    "src/objects/string-set.h",
33051cb0ef41Sopenharmony_ci    "src/objects/string-table-inl.h",
33061cb0ef41Sopenharmony_ci    "src/objects/string-table.h",
33071cb0ef41Sopenharmony_ci    "src/objects/string.h",
33081cb0ef41Sopenharmony_ci    "src/objects/struct-inl.h",
33091cb0ef41Sopenharmony_ci    "src/objects/struct.h",
33101cb0ef41Sopenharmony_ci    "src/objects/swiss-hash-table-helpers.h",
33111cb0ef41Sopenharmony_ci    "src/objects/swiss-name-dictionary-inl.h",
33121cb0ef41Sopenharmony_ci    "src/objects/swiss-name-dictionary.h",
33131cb0ef41Sopenharmony_ci    "src/objects/synthetic-module-inl.h",
33141cb0ef41Sopenharmony_ci    "src/objects/synthetic-module.h",
33151cb0ef41Sopenharmony_ci    "src/objects/tagged-field-inl.h",
33161cb0ef41Sopenharmony_ci    "src/objects/tagged-field.h",
33171cb0ef41Sopenharmony_ci    "src/objects/tagged-impl-inl.h",
33181cb0ef41Sopenharmony_ci    "src/objects/tagged-impl.h",
33191cb0ef41Sopenharmony_ci    "src/objects/tagged-index.h",
33201cb0ef41Sopenharmony_ci    "src/objects/tagged-value-inl.h",
33211cb0ef41Sopenharmony_ci    "src/objects/tagged-value.h",
33221cb0ef41Sopenharmony_ci    "src/objects/template-objects-inl.h",
33231cb0ef41Sopenharmony_ci    "src/objects/template-objects.h",
33241cb0ef41Sopenharmony_ci    "src/objects/templates-inl.h",
33251cb0ef41Sopenharmony_ci    "src/objects/templates.h",
33261cb0ef41Sopenharmony_ci    "src/objects/torque-defined-classes-inl.h",
33271cb0ef41Sopenharmony_ci    "src/objects/torque-defined-classes.h",
33281cb0ef41Sopenharmony_ci    "src/objects/transitions-inl.h",
33291cb0ef41Sopenharmony_ci    "src/objects/transitions.h",
33301cb0ef41Sopenharmony_ci    "src/objects/turbofan-types-inl.h",
33311cb0ef41Sopenharmony_ci    "src/objects/turbofan-types.h",
33321cb0ef41Sopenharmony_ci    "src/objects/type-hints.h",
33331cb0ef41Sopenharmony_ci    "src/objects/value-serializer.h",
33341cb0ef41Sopenharmony_ci    "src/objects/visitors-inl.h",
33351cb0ef41Sopenharmony_ci    "src/objects/visitors.h",
33361cb0ef41Sopenharmony_ci    "src/parsing/expression-scope.h",
33371cb0ef41Sopenharmony_ci    "src/parsing/func-name-inferrer.h",
33381cb0ef41Sopenharmony_ci    "src/parsing/import-assertions.h",
33391cb0ef41Sopenharmony_ci    "src/parsing/keywords-gen.h",
33401cb0ef41Sopenharmony_ci    "src/parsing/literal-buffer.h",
33411cb0ef41Sopenharmony_ci    "src/parsing/parse-info.h",
33421cb0ef41Sopenharmony_ci    "src/parsing/parser-base.h",
33431cb0ef41Sopenharmony_ci    "src/parsing/parser.h",
33441cb0ef41Sopenharmony_ci    "src/parsing/parsing.h",
33451cb0ef41Sopenharmony_ci    "src/parsing/pending-compilation-error-handler.h",
33461cb0ef41Sopenharmony_ci    "src/parsing/preparse-data-impl.h",
33471cb0ef41Sopenharmony_ci    "src/parsing/preparse-data.h",
33481cb0ef41Sopenharmony_ci    "src/parsing/preparser-logger.h",
33491cb0ef41Sopenharmony_ci    "src/parsing/preparser.h",
33501cb0ef41Sopenharmony_ci    "src/parsing/rewriter.h",
33511cb0ef41Sopenharmony_ci    "src/parsing/scanner-character-streams.h",
33521cb0ef41Sopenharmony_ci    "src/parsing/scanner-inl.h",
33531cb0ef41Sopenharmony_ci    "src/parsing/scanner.h",
33541cb0ef41Sopenharmony_ci    "src/parsing/token.h",
33551cb0ef41Sopenharmony_ci    "src/profiler/allocation-tracker.h",
33561cb0ef41Sopenharmony_ci    "src/profiler/circular-queue-inl.h",
33571cb0ef41Sopenharmony_ci    "src/profiler/circular-queue.h",
33581cb0ef41Sopenharmony_ci    "src/profiler/cpu-profiler-inl.h",
33591cb0ef41Sopenharmony_ci    "src/profiler/cpu-profiler.h",
33601cb0ef41Sopenharmony_ci    "src/profiler/heap-profiler.h",
33611cb0ef41Sopenharmony_ci    "src/profiler/heap-snapshot-generator-inl.h",
33621cb0ef41Sopenharmony_ci    "src/profiler/heap-snapshot-generator.h",
33631cb0ef41Sopenharmony_ci    "src/profiler/profile-generator-inl.h",
33641cb0ef41Sopenharmony_ci    "src/profiler/profile-generator.h",
33651cb0ef41Sopenharmony_ci    "src/profiler/profiler-listener.h",
33661cb0ef41Sopenharmony_ci    "src/profiler/profiler-stats.h",
33671cb0ef41Sopenharmony_ci    "src/profiler/sampling-heap-profiler.h",
33681cb0ef41Sopenharmony_ci    "src/profiler/strings-storage.h",
33691cb0ef41Sopenharmony_ci    "src/profiler/symbolizer.h",
33701cb0ef41Sopenharmony_ci    "src/profiler/tick-sample.h",
33711cb0ef41Sopenharmony_ci    "src/profiler/tracing-cpu-profiler.h",
33721cb0ef41Sopenharmony_ci    "src/profiler/weak-code-registry.h",
33731cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental-bytecode.h",
33741cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental-compiler.h",
33751cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental-interpreter.h",
33761cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental.h",
33771cb0ef41Sopenharmony_ci    "src/regexp/property-sequences.h",
33781cb0ef41Sopenharmony_ci    "src/regexp/regexp-ast.h",
33791cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecode-generator-inl.h",
33801cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecode-generator.h",
33811cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecode-peephole.h",
33821cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecodes.h",
33831cb0ef41Sopenharmony_ci    "src/regexp/regexp-compiler.h",
33841cb0ef41Sopenharmony_ci    "src/regexp/regexp-dotprinter.h",
33851cb0ef41Sopenharmony_ci    "src/regexp/regexp-error.h",
33861cb0ef41Sopenharmony_ci    "src/regexp/regexp-flags.h",
33871cb0ef41Sopenharmony_ci    "src/regexp/regexp-interpreter.h",
33881cb0ef41Sopenharmony_ci    "src/regexp/regexp-macro-assembler-arch.h",
33891cb0ef41Sopenharmony_ci    "src/regexp/regexp-macro-assembler-tracer.h",
33901cb0ef41Sopenharmony_ci    "src/regexp/regexp-macro-assembler.h",
33911cb0ef41Sopenharmony_ci    "src/regexp/regexp-nodes.h",
33921cb0ef41Sopenharmony_ci    "src/regexp/regexp-parser.h",
33931cb0ef41Sopenharmony_ci    "src/regexp/regexp-stack.h",
33941cb0ef41Sopenharmony_ci    "src/regexp/regexp-utils.h",
33951cb0ef41Sopenharmony_ci    "src/regexp/regexp.h",
33961cb0ef41Sopenharmony_ci    "src/regexp/special-case.h",
33971cb0ef41Sopenharmony_ci    "src/roots/roots-inl.h",
33981cb0ef41Sopenharmony_ci    "src/roots/roots.h",
33991cb0ef41Sopenharmony_ci    "src/runtime/runtime-utils.h",
34001cb0ef41Sopenharmony_ci    "src/runtime/runtime.h",
34011cb0ef41Sopenharmony_ci    "src/sandbox/external-pointer-inl.h",
34021cb0ef41Sopenharmony_ci    "src/sandbox/external-pointer-table-inl.h",
34031cb0ef41Sopenharmony_ci    "src/sandbox/external-pointer-table.h",
34041cb0ef41Sopenharmony_ci    "src/sandbox/external-pointer.h",
34051cb0ef41Sopenharmony_ci    "src/sandbox/sandbox.h",
34061cb0ef41Sopenharmony_ci    "src/sandbox/sandboxed-pointer-inl.h",
34071cb0ef41Sopenharmony_ci    "src/sandbox/sandboxed-pointer.h",
34081cb0ef41Sopenharmony_ci    "src/snapshot/code-serializer.h",
34091cb0ef41Sopenharmony_ci    "src/snapshot/context-deserializer.h",
34101cb0ef41Sopenharmony_ci    "src/snapshot/context-serializer.h",
34111cb0ef41Sopenharmony_ci    "src/snapshot/deserializer.h",
34121cb0ef41Sopenharmony_ci    "src/snapshot/embedded/embedded-data-inl.h",
34131cb0ef41Sopenharmony_ci    "src/snapshot/embedded/embedded-data.h",
34141cb0ef41Sopenharmony_ci    "src/snapshot/embedded/embedded-file-writer-interface.h",
34151cb0ef41Sopenharmony_ci    "src/snapshot/object-deserializer.h",
34161cb0ef41Sopenharmony_ci    "src/snapshot/read-only-deserializer.h",
34171cb0ef41Sopenharmony_ci    "src/snapshot/read-only-serializer.h",
34181cb0ef41Sopenharmony_ci    "src/snapshot/references.h",
34191cb0ef41Sopenharmony_ci    "src/snapshot/roots-serializer.h",
34201cb0ef41Sopenharmony_ci    "src/snapshot/serializer-deserializer.h",
34211cb0ef41Sopenharmony_ci    "src/snapshot/serializer-inl.h",
34221cb0ef41Sopenharmony_ci    "src/snapshot/serializer.h",
34231cb0ef41Sopenharmony_ci    "src/snapshot/shared-heap-deserializer.h",
34241cb0ef41Sopenharmony_ci    "src/snapshot/shared-heap-serializer.h",
34251cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-compression.h",
34261cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-data.h",
34271cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-source-sink.h",
34281cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-utils.h",
34291cb0ef41Sopenharmony_ci    "src/snapshot/snapshot.h",
34301cb0ef41Sopenharmony_ci    "src/snapshot/startup-deserializer.h",
34311cb0ef41Sopenharmony_ci    "src/snapshot/startup-serializer.h",
34321cb0ef41Sopenharmony_ci    "src/strings/char-predicates-inl.h",
34331cb0ef41Sopenharmony_ci    "src/strings/char-predicates.h",
34341cb0ef41Sopenharmony_ci    "src/strings/string-builder-inl.h",
34351cb0ef41Sopenharmony_ci    "src/strings/string-case.h",
34361cb0ef41Sopenharmony_ci    "src/strings/string-hasher-inl.h",
34371cb0ef41Sopenharmony_ci    "src/strings/string-hasher.h",
34381cb0ef41Sopenharmony_ci    "src/strings/string-search.h",
34391cb0ef41Sopenharmony_ci    "src/strings/string-stream.h",
34401cb0ef41Sopenharmony_ci    "src/strings/unicode-decoder.h",
34411cb0ef41Sopenharmony_ci    "src/strings/unicode-inl.h",
34421cb0ef41Sopenharmony_ci    "src/strings/unicode.h",
34431cb0ef41Sopenharmony_ci    "src/strings/uri.h",
34441cb0ef41Sopenharmony_ci    "src/tasks/cancelable-task.h",
34451cb0ef41Sopenharmony_ci    "src/tasks/operations-barrier.h",
34461cb0ef41Sopenharmony_ci    "src/tasks/task-utils.h",
34471cb0ef41Sopenharmony_ci    "src/temporal/temporal-parser.h",
34481cb0ef41Sopenharmony_ci    "src/third_party/siphash/halfsiphash.h",
34491cb0ef41Sopenharmony_ci    "src/third_party/utf8-decoder/utf8-decoder.h",
34501cb0ef41Sopenharmony_ci    "src/torque/runtime-macro-shims.h",
34511cb0ef41Sopenharmony_ci    "src/tracing/trace-event.h",
34521cb0ef41Sopenharmony_ci    "src/tracing/traced-value.h",
34531cb0ef41Sopenharmony_ci    "src/tracing/tracing-category-observer.h",
34541cb0ef41Sopenharmony_ci    "src/utils/address-map.h",
34551cb0ef41Sopenharmony_ci    "src/utils/allocation.h",
34561cb0ef41Sopenharmony_ci    "src/utils/bit-vector.h",
34571cb0ef41Sopenharmony_ci    "src/utils/boxed-float.h",
34581cb0ef41Sopenharmony_ci    "src/utils/detachable-vector.h",
34591cb0ef41Sopenharmony_ci    "src/utils/identity-map.h",
34601cb0ef41Sopenharmony_ci    "src/utils/locked-queue-inl.h",
34611cb0ef41Sopenharmony_ci    "src/utils/locked-queue.h",
34621cb0ef41Sopenharmony_ci    "src/utils/memcopy.h",
34631cb0ef41Sopenharmony_ci    "src/utils/ostreams.h",
34641cb0ef41Sopenharmony_ci    "src/utils/scoped-list.h",
34651cb0ef41Sopenharmony_ci    "src/utils/utils-inl.h",
34661cb0ef41Sopenharmony_ci    "src/utils/utils.h",
34671cb0ef41Sopenharmony_ci    "src/utils/version.h",
34681cb0ef41Sopenharmony_ci    "src/zone/accounting-allocator.h",
34691cb0ef41Sopenharmony_ci    "src/zone/compressed-zone-ptr.h",
34701cb0ef41Sopenharmony_ci    "src/zone/type-stats.h",
34711cb0ef41Sopenharmony_ci    "src/zone/zone-allocator.h",
34721cb0ef41Sopenharmony_ci    "src/zone/zone-chunk-list.h",
34731cb0ef41Sopenharmony_ci    "src/zone/zone-compression.h",
34741cb0ef41Sopenharmony_ci    "src/zone/zone-containers.h",
34751cb0ef41Sopenharmony_ci    "src/zone/zone-handle-set.h",
34761cb0ef41Sopenharmony_ci    "src/zone/zone-hashmap.h",
34771cb0ef41Sopenharmony_ci    "src/zone/zone-list-inl.h",
34781cb0ef41Sopenharmony_ci    "src/zone/zone-list.h",
34791cb0ef41Sopenharmony_ci    "src/zone/zone-segment.h",
34801cb0ef41Sopenharmony_ci    "src/zone/zone-type-traits.h",
34811cb0ef41Sopenharmony_ci    "src/zone/zone-utils.h",
34821cb0ef41Sopenharmony_ci    "src/zone/zone.h",
34831cb0ef41Sopenharmony_ci  ]
34841cb0ef41Sopenharmony_ci
34851cb0ef41Sopenharmony_ci  if (v8_use_perfetto) {
34861cb0ef41Sopenharmony_ci    sources -= [ "//base/trace_event/common/trace_event_common.h" ]
34871cb0ef41Sopenharmony_ci  }
34881cb0ef41Sopenharmony_ci
34891cb0ef41Sopenharmony_ci  if (v8_enable_maglev) {
34901cb0ef41Sopenharmony_ci    sources += [
34911cb0ef41Sopenharmony_ci      "src/maglev/maglev-basic-block.h",
34921cb0ef41Sopenharmony_ci      "src/maglev/maglev-code-gen-state.h",
34931cb0ef41Sopenharmony_ci      "src/maglev/maglev-code-generator.h",
34941cb0ef41Sopenharmony_ci      "src/maglev/maglev-compilation-info.h",
34951cb0ef41Sopenharmony_ci      "src/maglev/maglev-compilation-unit.h",
34961cb0ef41Sopenharmony_ci      "src/maglev/maglev-compiler.h",
34971cb0ef41Sopenharmony_ci      "src/maglev/maglev-concurrent-dispatcher.h",
34981cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-builder.h",
34991cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-labeller.h",
35001cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-printer.h",
35011cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-processor.h",
35021cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-verifier.h",
35031cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph.h",
35041cb0ef41Sopenharmony_ci      "src/maglev/maglev-interpreter-frame-state.h",
35051cb0ef41Sopenharmony_ci      "src/maglev/maglev-ir.h",
35061cb0ef41Sopenharmony_ci      "src/maglev/maglev-regalloc-data.h",
35071cb0ef41Sopenharmony_ci      "src/maglev/maglev-regalloc.h",
35081cb0ef41Sopenharmony_ci      "src/maglev/maglev-register-frame-array.h",
35091cb0ef41Sopenharmony_ci      "src/maglev/maglev-vreg-allocator.h",
35101cb0ef41Sopenharmony_ci      "src/maglev/maglev.h",
35111cb0ef41Sopenharmony_ci    ]
35121cb0ef41Sopenharmony_ci  }
35131cb0ef41Sopenharmony_ci
35141cb0ef41Sopenharmony_ci  if (v8_enable_webassembly) {
35151cb0ef41Sopenharmony_ci    sources += [
35161cb0ef41Sopenharmony_ci      "src/asmjs/asm-js.h",
35171cb0ef41Sopenharmony_ci      "src/asmjs/asm-names.h",
35181cb0ef41Sopenharmony_ci      "src/asmjs/asm-parser.h",
35191cb0ef41Sopenharmony_ci      "src/asmjs/asm-scanner.h",
35201cb0ef41Sopenharmony_ci      "src/asmjs/asm-types.h",
35211cb0ef41Sopenharmony_ci      "src/compiler/int64-lowering.h",
35221cb0ef41Sopenharmony_ci      "src/compiler/wasm-compiler.h",
35231cb0ef41Sopenharmony_ci      "src/compiler/wasm-escape-analysis.h",
35241cb0ef41Sopenharmony_ci      "src/compiler/wasm-inlining.h",
35251cb0ef41Sopenharmony_ci      "src/compiler/wasm-loop-peeling.h",
35261cb0ef41Sopenharmony_ci      "src/debug/debug-wasm-objects-inl.h",
35271cb0ef41Sopenharmony_ci      "src/debug/debug-wasm-objects.h",
35281cb0ef41Sopenharmony_ci      "src/trap-handler/trap-handler-internal.h",
35291cb0ef41Sopenharmony_ci      "src/trap-handler/trap-handler.h",
35301cb0ef41Sopenharmony_ci      "src/wasm/baseline/liftoff-assembler-defs.h",
35311cb0ef41Sopenharmony_ci      "src/wasm/baseline/liftoff-assembler.h",
35321cb0ef41Sopenharmony_ci      "src/wasm/baseline/liftoff-compiler.h",
35331cb0ef41Sopenharmony_ci      "src/wasm/baseline/liftoff-register.h",
35341cb0ef41Sopenharmony_ci      "src/wasm/canonical-types.h",
35351cb0ef41Sopenharmony_ci      "src/wasm/code-space-access.h",
35361cb0ef41Sopenharmony_ci      "src/wasm/compilation-environment.h",
35371cb0ef41Sopenharmony_ci      "src/wasm/decoder.h",
35381cb0ef41Sopenharmony_ci      "src/wasm/function-body-decoder-impl.h",
35391cb0ef41Sopenharmony_ci      "src/wasm/function-body-decoder.h",
35401cb0ef41Sopenharmony_ci      "src/wasm/function-compiler.h",
35411cb0ef41Sopenharmony_ci      "src/wasm/graph-builder-interface.h",
35421cb0ef41Sopenharmony_ci      "src/wasm/init-expr-interface.h",
35431cb0ef41Sopenharmony_ci      "src/wasm/jump-table-assembler.h",
35441cb0ef41Sopenharmony_ci      "src/wasm/leb-helper.h",
35451cb0ef41Sopenharmony_ci      "src/wasm/local-decl-encoder.h",
35461cb0ef41Sopenharmony_ci      "src/wasm/memory-protection-key.h",
35471cb0ef41Sopenharmony_ci      "src/wasm/memory-tracing.h",
35481cb0ef41Sopenharmony_ci      "src/wasm/module-compiler.h",
35491cb0ef41Sopenharmony_ci      "src/wasm/module-decoder.h",
35501cb0ef41Sopenharmony_ci      "src/wasm/module-instantiate.h",
35511cb0ef41Sopenharmony_ci      "src/wasm/object-access.h",
35521cb0ef41Sopenharmony_ci      "src/wasm/signature-map.h",
35531cb0ef41Sopenharmony_ci      "src/wasm/simd-shuffle.h",
35541cb0ef41Sopenharmony_ci      "src/wasm/stacks.h",
35551cb0ef41Sopenharmony_ci      "src/wasm/streaming-decoder.h",
35561cb0ef41Sopenharmony_ci      "src/wasm/struct-types.h",
35571cb0ef41Sopenharmony_ci      "src/wasm/value-type.h",
35581cb0ef41Sopenharmony_ci      "src/wasm/wasm-arguments.h",
35591cb0ef41Sopenharmony_ci      "src/wasm/wasm-code-manager.h",
35601cb0ef41Sopenharmony_ci      "src/wasm/wasm-engine.h",
35611cb0ef41Sopenharmony_ci      "src/wasm/wasm-external-refs.h",
35621cb0ef41Sopenharmony_ci      "src/wasm/wasm-feature-flags.h",
35631cb0ef41Sopenharmony_ci      "src/wasm/wasm-features.h",
35641cb0ef41Sopenharmony_ci      "src/wasm/wasm-import-wrapper-cache.h",
35651cb0ef41Sopenharmony_ci      "src/wasm/wasm-init-expr.h",
35661cb0ef41Sopenharmony_ci      "src/wasm/wasm-js.h",
35671cb0ef41Sopenharmony_ci      "src/wasm/wasm-linkage.h",
35681cb0ef41Sopenharmony_ci      "src/wasm/wasm-module-builder.h",
35691cb0ef41Sopenharmony_ci      "src/wasm/wasm-module-sourcemap.h",
35701cb0ef41Sopenharmony_ci      "src/wasm/wasm-module.h",
35711cb0ef41Sopenharmony_ci      "src/wasm/wasm-objects-inl.h",
35721cb0ef41Sopenharmony_ci      "src/wasm/wasm-objects.h",
35731cb0ef41Sopenharmony_ci      "src/wasm/wasm-opcodes-inl.h",
35741cb0ef41Sopenharmony_ci      "src/wasm/wasm-opcodes.h",
35751cb0ef41Sopenharmony_ci      "src/wasm/wasm-result.h",
35761cb0ef41Sopenharmony_ci      "src/wasm/wasm-serialization.h",
35771cb0ef41Sopenharmony_ci      "src/wasm/wasm-subtyping.h",
35781cb0ef41Sopenharmony_ci      "src/wasm/wasm-tier.h",
35791cb0ef41Sopenharmony_ci      "src/wasm/wasm-value.h",
35801cb0ef41Sopenharmony_ci    ]
35811cb0ef41Sopenharmony_ci  }
35821cb0ef41Sopenharmony_ci
35831cb0ef41Sopenharmony_ci  if (!v8_enable_third_party_heap) {
35841cb0ef41Sopenharmony_ci    sources += filter_include(v8_third_party_heap_files, [ "*.h" ])
35851cb0ef41Sopenharmony_ci  } else {
35861cb0ef41Sopenharmony_ci    sources += [ "src/heap/third-party/heap-api.h" ]
35871cb0ef41Sopenharmony_ci  }
35881cb0ef41Sopenharmony_ci
35891cb0ef41Sopenharmony_ci  if (v8_enable_i18n_support) {
35901cb0ef41Sopenharmony_ci    sources += [
35911cb0ef41Sopenharmony_ci      "src/objects/intl-objects.h",
35921cb0ef41Sopenharmony_ci      "src/objects/js-break-iterator-inl.h",
35931cb0ef41Sopenharmony_ci      "src/objects/js-break-iterator.h",
35941cb0ef41Sopenharmony_ci      "src/objects/js-collator-inl.h",
35951cb0ef41Sopenharmony_ci      "src/objects/js-collator.h",
35961cb0ef41Sopenharmony_ci      "src/objects/js-date-time-format-inl.h",
35971cb0ef41Sopenharmony_ci      "src/objects/js-date-time-format.h",
35981cb0ef41Sopenharmony_ci      "src/objects/js-display-names-inl.h",
35991cb0ef41Sopenharmony_ci      "src/objects/js-display-names.h",
36001cb0ef41Sopenharmony_ci      "src/objects/js-list-format-inl.h",
36011cb0ef41Sopenharmony_ci      "src/objects/js-list-format.h",
36021cb0ef41Sopenharmony_ci      "src/objects/js-locale-inl.h",
36031cb0ef41Sopenharmony_ci      "src/objects/js-locale.h",
36041cb0ef41Sopenharmony_ci      "src/objects/js-number-format-inl.h",
36051cb0ef41Sopenharmony_ci      "src/objects/js-number-format.h",
36061cb0ef41Sopenharmony_ci      "src/objects/js-plural-rules-inl.h",
36071cb0ef41Sopenharmony_ci      "src/objects/js-plural-rules.h",
36081cb0ef41Sopenharmony_ci      "src/objects/js-relative-time-format-inl.h",
36091cb0ef41Sopenharmony_ci      "src/objects/js-relative-time-format.h",
36101cb0ef41Sopenharmony_ci      "src/objects/js-segment-iterator-inl.h",
36111cb0ef41Sopenharmony_ci      "src/objects/js-segment-iterator.h",
36121cb0ef41Sopenharmony_ci      "src/objects/js-segmenter-inl.h",
36131cb0ef41Sopenharmony_ci      "src/objects/js-segmenter.h",
36141cb0ef41Sopenharmony_ci      "src/objects/js-segments-inl.h",
36151cb0ef41Sopenharmony_ci      "src/objects/js-segments.h",
36161cb0ef41Sopenharmony_ci    ]
36171cb0ef41Sopenharmony_ci  }
36181cb0ef41Sopenharmony_ci
36191cb0ef41Sopenharmony_ci  if (!v8_control_flow_integrity) {
36201cb0ef41Sopenharmony_ci    sources += [ "src/execution/pointer-authentication-dummy.h" ]
36211cb0ef41Sopenharmony_ci  }
36221cb0ef41Sopenharmony_ci
36231cb0ef41Sopenharmony_ci  if (v8_enable_conservative_stack_scanning) {
36241cb0ef41Sopenharmony_ci    sources += [
36251cb0ef41Sopenharmony_ci      "src/heap/conservative-stack-visitor.h",
36261cb0ef41Sopenharmony_ci      "src/heap/object-start-bitmap.h",
36271cb0ef41Sopenharmony_ci    ]
36281cb0ef41Sopenharmony_ci  }
36291cb0ef41Sopenharmony_ci
36301cb0ef41Sopenharmony_ci  if (v8_enable_wasm_gdb_remote_debugging) {
36311cb0ef41Sopenharmony_ci    sources += [
36321cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/gdb-remote-util.h",
36331cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/gdb-server-thread.h",
36341cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/gdb-server.h",
36351cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/packet.h",
36361cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/session.h",
36371cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/target.h",
36381cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/transport.h",
36391cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/wasm-module-debug.h",
36401cb0ef41Sopenharmony_ci    ]
36411cb0ef41Sopenharmony_ci  }
36421cb0ef41Sopenharmony_ci
36431cb0ef41Sopenharmony_ci  if (v8_enable_heap_snapshot_verify) {
36441cb0ef41Sopenharmony_ci    sources += [ "src/heap/reference-summarizer.h" ]
36451cb0ef41Sopenharmony_ci  }
36461cb0ef41Sopenharmony_ci
36471cb0ef41Sopenharmony_ci  if (v8_current_cpu == "x86") {
36481cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:ia32) ###
36491cb0ef41Sopenharmony_ci      "src/baseline/ia32/baseline-assembler-ia32-inl.h",
36501cb0ef41Sopenharmony_ci      "src/baseline/ia32/baseline-compiler-ia32-inl.h",
36511cb0ef41Sopenharmony_ci      "src/codegen/ia32/assembler-ia32-inl.h",
36521cb0ef41Sopenharmony_ci      "src/codegen/ia32/assembler-ia32.h",
36531cb0ef41Sopenharmony_ci      "src/codegen/ia32/constants-ia32.h",
36541cb0ef41Sopenharmony_ci      "src/codegen/ia32/interface-descriptors-ia32-inl.h",
36551cb0ef41Sopenharmony_ci      "src/codegen/ia32/macro-assembler-ia32.h",
36561cb0ef41Sopenharmony_ci      "src/codegen/ia32/register-ia32.h",
36571cb0ef41Sopenharmony_ci      "src/codegen/ia32/reglist-ia32.h",
36581cb0ef41Sopenharmony_ci      "src/codegen/ia32/sse-instr.h",
36591cb0ef41Sopenharmony_ci      "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.h",
36601cb0ef41Sopenharmony_ci      "src/compiler/backend/ia32/instruction-codes-ia32.h",
36611cb0ef41Sopenharmony_ci      "src/execution/ia32/frame-constants-ia32.h",
36621cb0ef41Sopenharmony_ci      "src/regexp/ia32/regexp-macro-assembler-ia32.h",
36631cb0ef41Sopenharmony_ci      "src/wasm/baseline/ia32/liftoff-assembler-ia32.h",
36641cb0ef41Sopenharmony_ci    ]
36651cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "x64") {
36661cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:x64) ###
36671cb0ef41Sopenharmony_ci      "src/baseline/x64/baseline-assembler-x64-inl.h",
36681cb0ef41Sopenharmony_ci      "src/baseline/x64/baseline-compiler-x64-inl.h",
36691cb0ef41Sopenharmony_ci      "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.h",
36701cb0ef41Sopenharmony_ci      "src/codegen/x64/assembler-x64-inl.h",
36711cb0ef41Sopenharmony_ci      "src/codegen/x64/assembler-x64.h",
36721cb0ef41Sopenharmony_ci      "src/codegen/x64/constants-x64.h",
36731cb0ef41Sopenharmony_ci      "src/codegen/x64/fma-instr.h",
36741cb0ef41Sopenharmony_ci      "src/codegen/x64/interface-descriptors-x64-inl.h",
36751cb0ef41Sopenharmony_ci      "src/codegen/x64/macro-assembler-x64.h",
36761cb0ef41Sopenharmony_ci      "src/codegen/x64/register-x64.h",
36771cb0ef41Sopenharmony_ci      "src/codegen/x64/reglist-x64.h",
36781cb0ef41Sopenharmony_ci      "src/codegen/x64/sse-instr.h",
36791cb0ef41Sopenharmony_ci      "src/compiler/backend/x64/instruction-codes-x64.h",
36801cb0ef41Sopenharmony_ci      "src/compiler/backend/x64/unwinding-info-writer-x64.h",
36811cb0ef41Sopenharmony_ci      "src/execution/x64/frame-constants-x64.h",
36821cb0ef41Sopenharmony_ci      "src/regexp/x64/regexp-macro-assembler-x64.h",
36831cb0ef41Sopenharmony_ci      "src/third_party/valgrind/valgrind.h",
36841cb0ef41Sopenharmony_ci      "src/wasm/baseline/x64/liftoff-assembler-x64.h",
36851cb0ef41Sopenharmony_ci    ]
36861cb0ef41Sopenharmony_ci
36871cb0ef41Sopenharmony_ci    if (is_win) {
36881cb0ef41Sopenharmony_ci      sources += [ "src/diagnostics/unwinding-info-win64.h" ]
36891cb0ef41Sopenharmony_ci    }
36901cb0ef41Sopenharmony_ci
36911cb0ef41Sopenharmony_ci    if (v8_enable_webassembly) {
36921cb0ef41Sopenharmony_ci      # iOS Xcode simulator builds run on an x64 target. iOS and macOS are both
36931cb0ef41Sopenharmony_ci      # based on Darwin and thus POSIX-compliant to a similar degree.
36941cb0ef41Sopenharmony_ci      if (is_linux || is_chromeos || is_mac || is_ios ||
36951cb0ef41Sopenharmony_ci          target_os == "freebsd") {
36961cb0ef41Sopenharmony_ci        sources += [ "src/trap-handler/handler-inside-posix.h" ]
36971cb0ef41Sopenharmony_ci      } else if (is_win) {
36981cb0ef41Sopenharmony_ci        sources += [ "src/trap-handler/handler-inside-win.h" ]
36991cb0ef41Sopenharmony_ci      }
37001cb0ef41Sopenharmony_ci    }
37011cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "arm") {
37021cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:arm) ###
37031cb0ef41Sopenharmony_ci      "src/baseline/arm/baseline-assembler-arm-inl.h",
37041cb0ef41Sopenharmony_ci      "src/baseline/arm/baseline-compiler-arm-inl.h",
37051cb0ef41Sopenharmony_ci      "src/codegen/arm/assembler-arm-inl.h",
37061cb0ef41Sopenharmony_ci      "src/codegen/arm/assembler-arm.h",
37071cb0ef41Sopenharmony_ci      "src/codegen/arm/constants-arm.h",
37081cb0ef41Sopenharmony_ci      "src/codegen/arm/interface-descriptors-arm-inl.h",
37091cb0ef41Sopenharmony_ci      "src/codegen/arm/macro-assembler-arm.h",
37101cb0ef41Sopenharmony_ci      "src/codegen/arm/register-arm.h",
37111cb0ef41Sopenharmony_ci      "src/codegen/arm/reglist-arm.h",
37121cb0ef41Sopenharmony_ci      "src/compiler/backend/arm/instruction-codes-arm.h",
37131cb0ef41Sopenharmony_ci      "src/compiler/backend/arm/unwinding-info-writer-arm.h",
37141cb0ef41Sopenharmony_ci      "src/execution/arm/frame-constants-arm.h",
37151cb0ef41Sopenharmony_ci      "src/execution/arm/simulator-arm.h",
37161cb0ef41Sopenharmony_ci      "src/regexp/arm/regexp-macro-assembler-arm.h",
37171cb0ef41Sopenharmony_ci      "src/wasm/baseline/arm/liftoff-assembler-arm.h",
37181cb0ef41Sopenharmony_ci    ]
37191cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "arm64") {
37201cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:arm64) ###
37211cb0ef41Sopenharmony_ci      "src/baseline/arm64/baseline-assembler-arm64-inl.h",
37221cb0ef41Sopenharmony_ci      "src/baseline/arm64/baseline-compiler-arm64-inl.h",
37231cb0ef41Sopenharmony_ci      "src/codegen/arm64/assembler-arm64-inl.h",
37241cb0ef41Sopenharmony_ci      "src/codegen/arm64/assembler-arm64.h",
37251cb0ef41Sopenharmony_ci      "src/codegen/arm64/constants-arm64.h",
37261cb0ef41Sopenharmony_ci      "src/codegen/arm64/decoder-arm64-inl.h",
37271cb0ef41Sopenharmony_ci      "src/codegen/arm64/decoder-arm64.h",
37281cb0ef41Sopenharmony_ci      "src/codegen/arm64/instructions-arm64.h",
37291cb0ef41Sopenharmony_ci      "src/codegen/arm64/interface-descriptors-arm64-inl.h",
37301cb0ef41Sopenharmony_ci      "src/codegen/arm64/macro-assembler-arm64-inl.h",
37311cb0ef41Sopenharmony_ci      "src/codegen/arm64/macro-assembler-arm64.h",
37321cb0ef41Sopenharmony_ci      "src/codegen/arm64/register-arm64.h",
37331cb0ef41Sopenharmony_ci      "src/codegen/arm64/reglist-arm64.h",
37341cb0ef41Sopenharmony_ci      "src/codegen/arm64/utils-arm64.h",
37351cb0ef41Sopenharmony_ci      "src/compiler/backend/arm64/instruction-codes-arm64.h",
37361cb0ef41Sopenharmony_ci      "src/compiler/backend/arm64/unwinding-info-writer-arm64.h",
37371cb0ef41Sopenharmony_ci      "src/diagnostics/arm64/disasm-arm64.h",
37381cb0ef41Sopenharmony_ci      "src/execution/arm64/frame-constants-arm64.h",
37391cb0ef41Sopenharmony_ci      "src/execution/arm64/simulator-arm64.h",
37401cb0ef41Sopenharmony_ci      "src/regexp/arm64/regexp-macro-assembler-arm64.h",
37411cb0ef41Sopenharmony_ci      "src/wasm/baseline/arm64/liftoff-assembler-arm64.h",
37421cb0ef41Sopenharmony_ci    ]
37431cb0ef41Sopenharmony_ci    if (v8_control_flow_integrity) {
37441cb0ef41Sopenharmony_ci      sources += [ "src/execution/arm64/pointer-authentication-arm64.h" ]
37451cb0ef41Sopenharmony_ci    }
37461cb0ef41Sopenharmony_ci    if (v8_enable_webassembly) {
37471cb0ef41Sopenharmony_ci      # Trap handling is enabled on arm64 Mac and in simulators on x64 on Linux
37481cb0ef41Sopenharmony_ci      # and Mac.
37491cb0ef41Sopenharmony_ci      if ((current_cpu == "arm64" && is_mac) ||
37501cb0ef41Sopenharmony_ci          (current_cpu == "x64" && (is_linux || is_chromeos || is_mac))) {
37511cb0ef41Sopenharmony_ci        sources += [ "src/trap-handler/handler-inside-posix.h" ]
37521cb0ef41Sopenharmony_ci      }
37531cb0ef41Sopenharmony_ci      if (current_cpu == "x64" &&
37541cb0ef41Sopenharmony_ci          (is_linux || is_chromeos || is_mac || is_win)) {
37551cb0ef41Sopenharmony_ci        sources += [ "src/trap-handler/trap-handler-simulator.h" ]
37561cb0ef41Sopenharmony_ci      }
37571cb0ef41Sopenharmony_ci    }
37581cb0ef41Sopenharmony_ci    if (is_win) {
37591cb0ef41Sopenharmony_ci      sources += [ "src/diagnostics/unwinding-info-win64.h" ]
37601cb0ef41Sopenharmony_ci    }
37611cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
37621cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:mipsel) ###
37631cb0ef41Sopenharmony_ci      "src/baseline/mips/baseline-assembler-mips-inl.h",
37641cb0ef41Sopenharmony_ci      "src/baseline/mips/baseline-compiler-mips-inl.h",
37651cb0ef41Sopenharmony_ci      "src/codegen/mips/assembler-mips-inl.h",
37661cb0ef41Sopenharmony_ci      "src/codegen/mips/assembler-mips.h",
37671cb0ef41Sopenharmony_ci      "src/codegen/mips/constants-mips.h",
37681cb0ef41Sopenharmony_ci      "src/codegen/mips/macro-assembler-mips.h",
37691cb0ef41Sopenharmony_ci      "src/codegen/mips/register-mips.h",
37701cb0ef41Sopenharmony_ci      "src/codegen/mips/reglist-mips.h",
37711cb0ef41Sopenharmony_ci      "src/compiler/backend/mips/instruction-codes-mips.h",
37721cb0ef41Sopenharmony_ci      "src/execution/mips/frame-constants-mips.h",
37731cb0ef41Sopenharmony_ci      "src/execution/mips/simulator-mips.h",
37741cb0ef41Sopenharmony_ci      "src/regexp/mips/regexp-macro-assembler-mips.h",
37751cb0ef41Sopenharmony_ci      "src/wasm/baseline/mips/liftoff-assembler-mips.h",
37761cb0ef41Sopenharmony_ci    ]
37771cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
37781cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:mips64el) ###
37791cb0ef41Sopenharmony_ci      "src/baseline/mips64/baseline-assembler-mips64-inl.h",
37801cb0ef41Sopenharmony_ci      "src/baseline/mips64/baseline-compiler-mips64-inl.h",
37811cb0ef41Sopenharmony_ci      "src/codegen/mips64/assembler-mips64-inl.h",
37821cb0ef41Sopenharmony_ci      "src/codegen/mips64/assembler-mips64.h",
37831cb0ef41Sopenharmony_ci      "src/codegen/mips64/constants-mips64.h",
37841cb0ef41Sopenharmony_ci      "src/codegen/mips64/macro-assembler-mips64.h",
37851cb0ef41Sopenharmony_ci      "src/codegen/mips64/register-mips64.h",
37861cb0ef41Sopenharmony_ci      "src/codegen/mips64/reglist-mips64.h",
37871cb0ef41Sopenharmony_ci      "src/compiler/backend/mips64/instruction-codes-mips64.h",
37881cb0ef41Sopenharmony_ci      "src/execution/mips64/frame-constants-mips64.h",
37891cb0ef41Sopenharmony_ci      "src/execution/mips64/simulator-mips64.h",
37901cb0ef41Sopenharmony_ci      "src/regexp/mips64/regexp-macro-assembler-mips64.h",
37911cb0ef41Sopenharmony_ci      "src/wasm/baseline/mips64/liftoff-assembler-mips64.h",
37921cb0ef41Sopenharmony_ci    ]
37931cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "loong64") {
37941cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:loong64) ###
37951cb0ef41Sopenharmony_ci      "src/baseline/loong64/baseline-assembler-loong64-inl.h",
37961cb0ef41Sopenharmony_ci      "src/baseline/loong64/baseline-compiler-loong64-inl.h",
37971cb0ef41Sopenharmony_ci      "src/codegen/loong64/assembler-loong64-inl.h",
37981cb0ef41Sopenharmony_ci      "src/codegen/loong64/assembler-loong64.h",
37991cb0ef41Sopenharmony_ci      "src/codegen/loong64/constants-loong64.h",
38001cb0ef41Sopenharmony_ci      "src/codegen/loong64/macro-assembler-loong64.h",
38011cb0ef41Sopenharmony_ci      "src/codegen/loong64/register-loong64.h",
38021cb0ef41Sopenharmony_ci      "src/codegen/loong64/reglist-loong64.h",
38031cb0ef41Sopenharmony_ci      "src/compiler/backend/loong64/instruction-codes-loong64.h",
38041cb0ef41Sopenharmony_ci      "src/execution/loong64/frame-constants-loong64.h",
38051cb0ef41Sopenharmony_ci      "src/execution/loong64/simulator-loong64.h",
38061cb0ef41Sopenharmony_ci      "src/regexp/loong64/regexp-macro-assembler-loong64.h",
38071cb0ef41Sopenharmony_ci      "src/wasm/baseline/loong64/liftoff-assembler-loong64.h",
38081cb0ef41Sopenharmony_ci    ]
38091cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "ppc") {
38101cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:ppc) ###
38111cb0ef41Sopenharmony_ci      "src/codegen/ppc/assembler-ppc-inl.h",
38121cb0ef41Sopenharmony_ci      "src/codegen/ppc/assembler-ppc.h",
38131cb0ef41Sopenharmony_ci      "src/codegen/ppc/constants-ppc.h",
38141cb0ef41Sopenharmony_ci      "src/codegen/ppc/interface-descriptors-ppc-inl.h",
38151cb0ef41Sopenharmony_ci      "src/codegen/ppc/macro-assembler-ppc.h",
38161cb0ef41Sopenharmony_ci      "src/codegen/ppc/register-ppc.h",
38171cb0ef41Sopenharmony_ci      "src/codegen/ppc/reglist-ppc.h",
38181cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/instruction-codes-ppc.h",
38191cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/unwinding-info-writer-ppc.h",
38201cb0ef41Sopenharmony_ci      "src/execution/ppc/frame-constants-ppc.h",
38211cb0ef41Sopenharmony_ci      "src/execution/ppc/simulator-ppc.h",
38221cb0ef41Sopenharmony_ci      "src/regexp/ppc/regexp-macro-assembler-ppc.h",
38231cb0ef41Sopenharmony_ci      "src/wasm/baseline/ppc/liftoff-assembler-ppc.h",
38241cb0ef41Sopenharmony_ci    ]
38251cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "ppc64") {
38261cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:ppc64) ###
38271cb0ef41Sopenharmony_ci      "src/baseline/ppc/baseline-assembler-ppc-inl.h",
38281cb0ef41Sopenharmony_ci      "src/baseline/ppc/baseline-compiler-ppc-inl.h",
38291cb0ef41Sopenharmony_ci      "src/codegen/ppc/assembler-ppc-inl.h",
38301cb0ef41Sopenharmony_ci      "src/codegen/ppc/assembler-ppc.h",
38311cb0ef41Sopenharmony_ci      "src/codegen/ppc/constants-ppc.h",
38321cb0ef41Sopenharmony_ci      "src/codegen/ppc/interface-descriptors-ppc-inl.h",
38331cb0ef41Sopenharmony_ci      "src/codegen/ppc/macro-assembler-ppc.h",
38341cb0ef41Sopenharmony_ci      "src/codegen/ppc/register-ppc.h",
38351cb0ef41Sopenharmony_ci      "src/codegen/ppc/reglist-ppc.h",
38361cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/instruction-codes-ppc.h",
38371cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/unwinding-info-writer-ppc.h",
38381cb0ef41Sopenharmony_ci      "src/execution/ppc/frame-constants-ppc.h",
38391cb0ef41Sopenharmony_ci      "src/execution/ppc/simulator-ppc.h",
38401cb0ef41Sopenharmony_ci      "src/regexp/ppc/regexp-macro-assembler-ppc.h",
38411cb0ef41Sopenharmony_ci      "src/wasm/baseline/ppc/liftoff-assembler-ppc.h",
38421cb0ef41Sopenharmony_ci    ]
38431cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
38441cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:s390) ###
38451cb0ef41Sopenharmony_ci      "src/baseline/s390/baseline-assembler-s390-inl.h",
38461cb0ef41Sopenharmony_ci      "src/baseline/s390/baseline-compiler-s390-inl.h",
38471cb0ef41Sopenharmony_ci      "src/codegen/s390/assembler-s390-inl.h",
38481cb0ef41Sopenharmony_ci      "src/codegen/s390/assembler-s390.h",
38491cb0ef41Sopenharmony_ci      "src/codegen/s390/constants-s390.h",
38501cb0ef41Sopenharmony_ci      "src/codegen/s390/interface-descriptors-s390-inl.h",
38511cb0ef41Sopenharmony_ci      "src/codegen/s390/macro-assembler-s390.h",
38521cb0ef41Sopenharmony_ci      "src/codegen/s390/register-s390.h",
38531cb0ef41Sopenharmony_ci      "src/codegen/s390/reglist-s390.h",
38541cb0ef41Sopenharmony_ci      "src/compiler/backend/s390/instruction-codes-s390.h",
38551cb0ef41Sopenharmony_ci      "src/compiler/backend/s390/unwinding-info-writer-s390.h",
38561cb0ef41Sopenharmony_ci      "src/execution/s390/frame-constants-s390.h",
38571cb0ef41Sopenharmony_ci      "src/execution/s390/simulator-s390.h",
38581cb0ef41Sopenharmony_ci      "src/regexp/s390/regexp-macro-assembler-s390.h",
38591cb0ef41Sopenharmony_ci      "src/wasm/baseline/s390/liftoff-assembler-s390.h",
38601cb0ef41Sopenharmony_ci    ]
38611cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "riscv64") {
38621cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:riscv64) ###
38631cb0ef41Sopenharmony_ci      "src/baseline/riscv64/baseline-assembler-riscv64-inl.h",
38641cb0ef41Sopenharmony_ci      "src/baseline/riscv64/baseline-compiler-riscv64-inl.h",
38651cb0ef41Sopenharmony_ci      "src/codegen/riscv64/assembler-riscv64-inl.h",
38661cb0ef41Sopenharmony_ci      "src/codegen/riscv64/assembler-riscv64.h",
38671cb0ef41Sopenharmony_ci      "src/codegen/riscv64/constants-riscv64.h",
38681cb0ef41Sopenharmony_ci      "src/codegen/riscv64/macro-assembler-riscv64.h",
38691cb0ef41Sopenharmony_ci      "src/codegen/riscv64/register-riscv64.h",
38701cb0ef41Sopenharmony_ci      "src/codegen/riscv64/reglist-riscv64.h",
38711cb0ef41Sopenharmony_ci      "src/compiler/backend/riscv64/instruction-codes-riscv64.h",
38721cb0ef41Sopenharmony_ci      "src/execution/riscv64/frame-constants-riscv64.h",
38731cb0ef41Sopenharmony_ci      "src/execution/riscv64/simulator-riscv64.h",
38741cb0ef41Sopenharmony_ci      "src/regexp/riscv64/regexp-macro-assembler-riscv64.h",
38751cb0ef41Sopenharmony_ci      "src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h",
38761cb0ef41Sopenharmony_ci    ]
38771cb0ef41Sopenharmony_ci  }
38781cb0ef41Sopenharmony_ci
38791cb0ef41Sopenharmony_ci  public_deps = [
38801cb0ef41Sopenharmony_ci    ":torque_runtime_support",
38811cb0ef41Sopenharmony_ci    ":v8_flags",
38821cb0ef41Sopenharmony_ci    ":v8_headers",
38831cb0ef41Sopenharmony_ci    ":v8_maybe_icu",
38841cb0ef41Sopenharmony_ci    ":v8_shared_internal_headers",
38851cb0ef41Sopenharmony_ci  ]
38861cb0ef41Sopenharmony_ci
38871cb0ef41Sopenharmony_ci  deps = [
38881cb0ef41Sopenharmony_ci    ":cppgc_headers",
38891cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
38901cb0ef41Sopenharmony_ci    ":run_torque",
38911cb0ef41Sopenharmony_ci    ":v8_heap_base_headers",
38921cb0ef41Sopenharmony_ci    ":v8_libbase",
38931cb0ef41Sopenharmony_ci  ]
38941cb0ef41Sopenharmony_ci}
38951cb0ef41Sopenharmony_ci
38961cb0ef41Sopenharmony_civ8_compiler_sources = [
38971cb0ef41Sopenharmony_ci  ### gcmole(all) ###
38981cb0ef41Sopenharmony_ci  "src/compiler/access-builder.cc",
38991cb0ef41Sopenharmony_ci  "src/compiler/access-info.cc",
39001cb0ef41Sopenharmony_ci  "src/compiler/add-type-assertions-reducer.cc",
39011cb0ef41Sopenharmony_ci  "src/compiler/all-nodes.cc",
39021cb0ef41Sopenharmony_ci  "src/compiler/backend/code-generator.cc",
39031cb0ef41Sopenharmony_ci  "src/compiler/backend/frame-elider.cc",
39041cb0ef41Sopenharmony_ci  "src/compiler/backend/gap-resolver.cc",
39051cb0ef41Sopenharmony_ci  "src/compiler/backend/instruction-scheduler.cc",
39061cb0ef41Sopenharmony_ci  "src/compiler/backend/instruction-selector.cc",
39071cb0ef41Sopenharmony_ci  "src/compiler/backend/instruction.cc",
39081cb0ef41Sopenharmony_ci  "src/compiler/backend/jump-threading.cc",
39091cb0ef41Sopenharmony_ci  "src/compiler/backend/mid-tier-register-allocator.cc",
39101cb0ef41Sopenharmony_ci  "src/compiler/backend/move-optimizer.cc",
39111cb0ef41Sopenharmony_ci  "src/compiler/backend/register-allocator-verifier.cc",
39121cb0ef41Sopenharmony_ci  "src/compiler/backend/register-allocator.cc",
39131cb0ef41Sopenharmony_ci  "src/compiler/backend/spill-placer.cc",
39141cb0ef41Sopenharmony_ci  "src/compiler/basic-block-instrumentor.cc",
39151cb0ef41Sopenharmony_ci  "src/compiler/branch-condition-duplicator.cc",
39161cb0ef41Sopenharmony_ci  "src/compiler/branch-elimination.cc",
39171cb0ef41Sopenharmony_ci  "src/compiler/bytecode-analysis.cc",
39181cb0ef41Sopenharmony_ci  "src/compiler/bytecode-graph-builder.cc",
39191cb0ef41Sopenharmony_ci  "src/compiler/bytecode-liveness-map.cc",
39201cb0ef41Sopenharmony_ci  "src/compiler/c-linkage.cc",
39211cb0ef41Sopenharmony_ci  "src/compiler/checkpoint-elimination.cc",
39221cb0ef41Sopenharmony_ci  "src/compiler/code-assembler.cc",
39231cb0ef41Sopenharmony_ci  "src/compiler/common-node-cache.cc",
39241cb0ef41Sopenharmony_ci  "src/compiler/common-operator-reducer.cc",
39251cb0ef41Sopenharmony_ci  "src/compiler/common-operator.cc",
39261cb0ef41Sopenharmony_ci  "src/compiler/compilation-dependencies.cc",
39271cb0ef41Sopenharmony_ci  "src/compiler/compiler-source-position-table.cc",
39281cb0ef41Sopenharmony_ci  "src/compiler/constant-folding-reducer.cc",
39291cb0ef41Sopenharmony_ci  "src/compiler/control-equivalence.cc",
39301cb0ef41Sopenharmony_ci  "src/compiler/control-flow-optimizer.cc",
39311cb0ef41Sopenharmony_ci  "src/compiler/csa-load-elimination.cc",
39321cb0ef41Sopenharmony_ci  "src/compiler/dead-code-elimination.cc",
39331cb0ef41Sopenharmony_ci  "src/compiler/decompression-optimizer.cc",
39341cb0ef41Sopenharmony_ci  "src/compiler/effect-control-linearizer.cc",
39351cb0ef41Sopenharmony_ci  "src/compiler/escape-analysis-reducer.cc",
39361cb0ef41Sopenharmony_ci  "src/compiler/escape-analysis.cc",
39371cb0ef41Sopenharmony_ci  "src/compiler/fast-api-calls.cc",
39381cb0ef41Sopenharmony_ci  "src/compiler/feedback-source.cc",
39391cb0ef41Sopenharmony_ci  "src/compiler/frame-states.cc",
39401cb0ef41Sopenharmony_ci  "src/compiler/frame.cc",
39411cb0ef41Sopenharmony_ci  "src/compiler/graph-assembler.cc",
39421cb0ef41Sopenharmony_ci  "src/compiler/graph-reducer.cc",
39431cb0ef41Sopenharmony_ci  "src/compiler/graph-trimmer.cc",
39441cb0ef41Sopenharmony_ci  "src/compiler/graph-visualizer.cc",
39451cb0ef41Sopenharmony_ci  "src/compiler/graph.cc",
39461cb0ef41Sopenharmony_ci  "src/compiler/heap-refs.cc",
39471cb0ef41Sopenharmony_ci  "src/compiler/js-call-reducer.cc",
39481cb0ef41Sopenharmony_ci  "src/compiler/js-context-specialization.cc",
39491cb0ef41Sopenharmony_ci  "src/compiler/js-create-lowering.cc",
39501cb0ef41Sopenharmony_ci  "src/compiler/js-generic-lowering.cc",
39511cb0ef41Sopenharmony_ci  "src/compiler/js-graph.cc",
39521cb0ef41Sopenharmony_ci  "src/compiler/js-heap-broker.cc",
39531cb0ef41Sopenharmony_ci  "src/compiler/js-inlining-heuristic.cc",
39541cb0ef41Sopenharmony_ci  "src/compiler/js-inlining.cc",
39551cb0ef41Sopenharmony_ci  "src/compiler/js-intrinsic-lowering.cc",
39561cb0ef41Sopenharmony_ci  "src/compiler/js-native-context-specialization.cc",
39571cb0ef41Sopenharmony_ci  "src/compiler/js-operator.cc",
39581cb0ef41Sopenharmony_ci  "src/compiler/js-type-hint-lowering.cc",
39591cb0ef41Sopenharmony_ci  "src/compiler/js-typed-lowering.cc",
39601cb0ef41Sopenharmony_ci  "src/compiler/linkage.cc",
39611cb0ef41Sopenharmony_ci  "src/compiler/load-elimination.cc",
39621cb0ef41Sopenharmony_ci  "src/compiler/loop-analysis.cc",
39631cb0ef41Sopenharmony_ci  "src/compiler/loop-peeling.cc",
39641cb0ef41Sopenharmony_ci  "src/compiler/loop-unrolling.cc",
39651cb0ef41Sopenharmony_ci  "src/compiler/loop-variable-optimizer.cc",
39661cb0ef41Sopenharmony_ci  "src/compiler/machine-graph-verifier.cc",
39671cb0ef41Sopenharmony_ci  "src/compiler/machine-graph.cc",
39681cb0ef41Sopenharmony_ci  "src/compiler/machine-operator-reducer.cc",
39691cb0ef41Sopenharmony_ci  "src/compiler/machine-operator.cc",
39701cb0ef41Sopenharmony_ci  "src/compiler/map-inference.cc",
39711cb0ef41Sopenharmony_ci  "src/compiler/memory-lowering.cc",
39721cb0ef41Sopenharmony_ci  "src/compiler/memory-optimizer.cc",
39731cb0ef41Sopenharmony_ci  "src/compiler/node-marker.cc",
39741cb0ef41Sopenharmony_ci  "src/compiler/node-matchers.cc",
39751cb0ef41Sopenharmony_ci  "src/compiler/node-observer.cc",
39761cb0ef41Sopenharmony_ci  "src/compiler/node-origin-table.cc",
39771cb0ef41Sopenharmony_ci  "src/compiler/node-properties.cc",
39781cb0ef41Sopenharmony_ci  "src/compiler/node.cc",
39791cb0ef41Sopenharmony_ci  "src/compiler/opcodes.cc",
39801cb0ef41Sopenharmony_ci  "src/compiler/operation-typer.cc",
39811cb0ef41Sopenharmony_ci  "src/compiler/operator-properties.cc",
39821cb0ef41Sopenharmony_ci  "src/compiler/operator.cc",
39831cb0ef41Sopenharmony_ci  "src/compiler/osr.cc",
39841cb0ef41Sopenharmony_ci  "src/compiler/pipeline-statistics.cc",
39851cb0ef41Sopenharmony_ci  "src/compiler/pipeline.cc",
39861cb0ef41Sopenharmony_ci  "src/compiler/property-access-builder.cc",
39871cb0ef41Sopenharmony_ci  "src/compiler/raw-machine-assembler.cc",
39881cb0ef41Sopenharmony_ci  "src/compiler/redundancy-elimination.cc",
39891cb0ef41Sopenharmony_ci  "src/compiler/refs-map.cc",
39901cb0ef41Sopenharmony_ci  "src/compiler/representation-change.cc",
39911cb0ef41Sopenharmony_ci  "src/compiler/schedule.cc",
39921cb0ef41Sopenharmony_ci  "src/compiler/scheduler.cc",
39931cb0ef41Sopenharmony_ci  "src/compiler/select-lowering.cc",
39941cb0ef41Sopenharmony_ci  "src/compiler/simplified-lowering-verifier.cc",
39951cb0ef41Sopenharmony_ci  "src/compiler/simplified-lowering.cc",
39961cb0ef41Sopenharmony_ci  "src/compiler/simplified-operator-reducer.cc",
39971cb0ef41Sopenharmony_ci  "src/compiler/simplified-operator.cc",
39981cb0ef41Sopenharmony_ci  "src/compiler/state-values-utils.cc",
39991cb0ef41Sopenharmony_ci  "src/compiler/store-store-elimination.cc",
40001cb0ef41Sopenharmony_ci  "src/compiler/type-cache.cc",
40011cb0ef41Sopenharmony_ci  "src/compiler/type-narrowing-reducer.cc",
40021cb0ef41Sopenharmony_ci  "src/compiler/typed-optimization.cc",
40031cb0ef41Sopenharmony_ci  "src/compiler/typer.cc",
40041cb0ef41Sopenharmony_ci  "src/compiler/types.cc",
40051cb0ef41Sopenharmony_ci  "src/compiler/value-numbering-reducer.cc",
40061cb0ef41Sopenharmony_ci  "src/compiler/verifier.cc",
40071cb0ef41Sopenharmony_ci  "src/compiler/zone-stats.cc",
40081cb0ef41Sopenharmony_ci]
40091cb0ef41Sopenharmony_ci
40101cb0ef41Sopenharmony_ciif (v8_enable_webassembly) {
40111cb0ef41Sopenharmony_ci  v8_compiler_sources += [
40121cb0ef41Sopenharmony_ci    "src/compiler/int64-lowering.cc",
40131cb0ef41Sopenharmony_ci    "src/compiler/wasm-compiler.cc",
40141cb0ef41Sopenharmony_ci    "src/compiler/wasm-escape-analysis.cc",
40151cb0ef41Sopenharmony_ci    "src/compiler/wasm-inlining.cc",
40161cb0ef41Sopenharmony_ci    "src/compiler/wasm-loop-peeling.cc",
40171cb0ef41Sopenharmony_ci  ]
40181cb0ef41Sopenharmony_ci}
40191cb0ef41Sopenharmony_ci
40201cb0ef41Sopenharmony_ci# The src/compiler files with optimizations.
40211cb0ef41Sopenharmony_civ8_source_set("v8_compiler_opt") {
40221cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
40231cb0ef41Sopenharmony_ci
40241cb0ef41Sopenharmony_ci  sources = v8_compiler_sources
40251cb0ef41Sopenharmony_ci
40261cb0ef41Sopenharmony_ci  public_deps = [
40271cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
40281cb0ef41Sopenharmony_ci    ":run_torque",
40291cb0ef41Sopenharmony_ci    ":v8_maybe_icu",
40301cb0ef41Sopenharmony_ci    ":v8_tracing",
40311cb0ef41Sopenharmony_ci  ]
40321cb0ef41Sopenharmony_ci
40331cb0ef41Sopenharmony_ci  deps = [
40341cb0ef41Sopenharmony_ci    ":v8_base_without_compiler",
40351cb0ef41Sopenharmony_ci    ":v8_internal_headers",
40361cb0ef41Sopenharmony_ci    ":v8_libbase",
40371cb0ef41Sopenharmony_ci    ":v8_shared_internal_headers",
40381cb0ef41Sopenharmony_ci  ]
40391cb0ef41Sopenharmony_ci
40401cb0ef41Sopenharmony_ci  if (is_debug && !v8_optimized_debug && v8_enable_fast_mksnapshot) {
40411cb0ef41Sopenharmony_ci    # The :no_optimize config is added to v8_add_configs in v8.gni.
40421cb0ef41Sopenharmony_ci    remove_configs = [ "//build/config/compiler:no_optimize" ]
40431cb0ef41Sopenharmony_ci    configs = [ ":always_optimize" ]
40441cb0ef41Sopenharmony_ci  } else {
40451cb0ef41Sopenharmony_ci    # Without this else branch, gn fails to generate build files for non-debug
40461cb0ef41Sopenharmony_ci    # builds (because we try to remove a config that is not present).
40471cb0ef41Sopenharmony_ci    # So we include it, even if this config is not used outside of debug builds.
40481cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
40491cb0ef41Sopenharmony_ci  }
40501cb0ef41Sopenharmony_ci}
40511cb0ef41Sopenharmony_ci
40521cb0ef41Sopenharmony_ci# The src/compiler files with default optimization behavior.
40531cb0ef41Sopenharmony_civ8_source_set("v8_compiler") {
40541cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
40551cb0ef41Sopenharmony_ci
40561cb0ef41Sopenharmony_ci  sources = v8_compiler_sources
40571cb0ef41Sopenharmony_ci
40581cb0ef41Sopenharmony_ci  public_deps = [
40591cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
40601cb0ef41Sopenharmony_ci    ":run_torque",
40611cb0ef41Sopenharmony_ci    ":v8_internal_headers",
40621cb0ef41Sopenharmony_ci    ":v8_maybe_icu",
40631cb0ef41Sopenharmony_ci    ":v8_tracing",
40641cb0ef41Sopenharmony_ci  ]
40651cb0ef41Sopenharmony_ci
40661cb0ef41Sopenharmony_ci  deps = [
40671cb0ef41Sopenharmony_ci    ":v8_base_without_compiler",
40681cb0ef41Sopenharmony_ci    ":v8_libbase",
40691cb0ef41Sopenharmony_ci    ":v8_shared_internal_headers",
40701cb0ef41Sopenharmony_ci  ]
40711cb0ef41Sopenharmony_ci
40721cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
40731cb0ef41Sopenharmony_ci}
40741cb0ef41Sopenharmony_ci
40751cb0ef41Sopenharmony_cigroup("v8_compiler_for_mksnapshot") {
40761cb0ef41Sopenharmony_ci  if (is_debug && !v8_optimized_debug && v8_enable_fast_mksnapshot) {
40771cb0ef41Sopenharmony_ci    deps = [ ":v8_compiler_opt" ]
40781cb0ef41Sopenharmony_ci  } else {
40791cb0ef41Sopenharmony_ci    deps = [ ":v8_compiler" ]
40801cb0ef41Sopenharmony_ci  }
40811cb0ef41Sopenharmony_ci}
40821cb0ef41Sopenharmony_ci
40831cb0ef41Sopenharmony_ci# Any target using trace events must directly or indirectly depend on
40841cb0ef41Sopenharmony_ci# v8_tracing.
40851cb0ef41Sopenharmony_cigroup("v8_tracing") {
40861cb0ef41Sopenharmony_ci  if (v8_use_perfetto) {
40871cb0ef41Sopenharmony_ci    if (build_with_chromium) {
40881cb0ef41Sopenharmony_ci      public_deps = [ "//third_party/perfetto:libperfetto" ]
40891cb0ef41Sopenharmony_ci    } else {
40901cb0ef41Sopenharmony_ci      public_deps = [ ":v8_libperfetto" ]
40911cb0ef41Sopenharmony_ci    }
40921cb0ef41Sopenharmony_ci  }
40931cb0ef41Sopenharmony_ci}
40941cb0ef41Sopenharmony_ci
40951cb0ef41Sopenharmony_civ8_source_set("v8_base_without_compiler") {
40961cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
40971cb0ef41Sopenharmony_ci
40981cb0ef41Sopenharmony_ci  # Split static libraries on windows into two.
40991cb0ef41Sopenharmony_ci  split_count = 2
41001cb0ef41Sopenharmony_ci
41011cb0ef41Sopenharmony_ci  sources = [
41021cb0ef41Sopenharmony_ci    ### gcmole(all) ###
41031cb0ef41Sopenharmony_ci    "src/api/api-arguments.cc",
41041cb0ef41Sopenharmony_ci    "src/api/api-natives.cc",
41051cb0ef41Sopenharmony_ci    "src/api/api.cc",
41061cb0ef41Sopenharmony_ci    "src/ast/ast-function-literal-id-reindexer.cc",
41071cb0ef41Sopenharmony_ci    "src/ast/ast-value-factory.cc",
41081cb0ef41Sopenharmony_ci    "src/ast/ast.cc",
41091cb0ef41Sopenharmony_ci    "src/ast/modules.cc",
41101cb0ef41Sopenharmony_ci    "src/ast/prettyprinter.cc",
41111cb0ef41Sopenharmony_ci    "src/ast/scopes.cc",
41121cb0ef41Sopenharmony_ci    "src/ast/source-range-ast-visitor.cc",
41131cb0ef41Sopenharmony_ci    "src/ast/variables.cc",
41141cb0ef41Sopenharmony_ci    "src/baseline/baseline-batch-compiler.cc",
41151cb0ef41Sopenharmony_ci    "src/baseline/baseline-compiler.cc",
41161cb0ef41Sopenharmony_ci    "src/baseline/baseline.cc",
41171cb0ef41Sopenharmony_ci    "src/baseline/bytecode-offset-iterator.cc",
41181cb0ef41Sopenharmony_ci    "src/builtins/accessors.cc",
41191cb0ef41Sopenharmony_ci    "src/builtins/builtins-api.cc",
41201cb0ef41Sopenharmony_ci    "src/builtins/builtins-array.cc",
41211cb0ef41Sopenharmony_ci    "src/builtins/builtins-arraybuffer.cc",
41221cb0ef41Sopenharmony_ci    "src/builtins/builtins-async-module.cc",
41231cb0ef41Sopenharmony_ci    "src/builtins/builtins-bigint.cc",
41241cb0ef41Sopenharmony_ci    "src/builtins/builtins-callsite.cc",
41251cb0ef41Sopenharmony_ci    "src/builtins/builtins-collections.cc",
41261cb0ef41Sopenharmony_ci    "src/builtins/builtins-console.cc",
41271cb0ef41Sopenharmony_ci    "src/builtins/builtins-dataview.cc",
41281cb0ef41Sopenharmony_ci    "src/builtins/builtins-date.cc",
41291cb0ef41Sopenharmony_ci    "src/builtins/builtins-error.cc",
41301cb0ef41Sopenharmony_ci    "src/builtins/builtins-function.cc",
41311cb0ef41Sopenharmony_ci    "src/builtins/builtins-global.cc",
41321cb0ef41Sopenharmony_ci    "src/builtins/builtins-internal.cc",
41331cb0ef41Sopenharmony_ci    "src/builtins/builtins-intl.cc",
41341cb0ef41Sopenharmony_ci    "src/builtins/builtins-json.cc",
41351cb0ef41Sopenharmony_ci    "src/builtins/builtins-number.cc",
41361cb0ef41Sopenharmony_ci    "src/builtins/builtins-object.cc",
41371cb0ef41Sopenharmony_ci    "src/builtins/builtins-reflect.cc",
41381cb0ef41Sopenharmony_ci    "src/builtins/builtins-regexp.cc",
41391cb0ef41Sopenharmony_ci    "src/builtins/builtins-shadow-realms.cc",
41401cb0ef41Sopenharmony_ci    "src/builtins/builtins-sharedarraybuffer.cc",
41411cb0ef41Sopenharmony_ci    "src/builtins/builtins-string.cc",
41421cb0ef41Sopenharmony_ci    "src/builtins/builtins-struct.cc",
41431cb0ef41Sopenharmony_ci    "src/builtins/builtins-symbol.cc",
41441cb0ef41Sopenharmony_ci    "src/builtins/builtins-temporal.cc",
41451cb0ef41Sopenharmony_ci    "src/builtins/builtins-trace.cc",
41461cb0ef41Sopenharmony_ci    "src/builtins/builtins-typed-array.cc",
41471cb0ef41Sopenharmony_ci    "src/builtins/builtins-weak-refs.cc",
41481cb0ef41Sopenharmony_ci    "src/builtins/builtins.cc",
41491cb0ef41Sopenharmony_ci    "src/builtins/constants-table-builder.cc",
41501cb0ef41Sopenharmony_ci    "src/codegen/aligned-slot-allocator.cc",
41511cb0ef41Sopenharmony_ci    "src/codegen/assembler.cc",
41521cb0ef41Sopenharmony_ci    "src/codegen/bailout-reason.cc",
41531cb0ef41Sopenharmony_ci    "src/codegen/code-comments.cc",
41541cb0ef41Sopenharmony_ci    "src/codegen/code-desc.cc",
41551cb0ef41Sopenharmony_ci    "src/codegen/code-factory.cc",
41561cb0ef41Sopenharmony_ci    "src/codegen/code-reference.cc",
41571cb0ef41Sopenharmony_ci    "src/codegen/compilation-cache.cc",
41581cb0ef41Sopenharmony_ci    "src/codegen/compiler.cc",
41591cb0ef41Sopenharmony_ci    "src/codegen/constant-pool.cc",
41601cb0ef41Sopenharmony_ci    "src/codegen/external-reference-encoder.cc",
41611cb0ef41Sopenharmony_ci    "src/codegen/external-reference-table.cc",
41621cb0ef41Sopenharmony_ci    "src/codegen/external-reference.cc",
41631cb0ef41Sopenharmony_ci    "src/codegen/flush-instruction-cache.cc",
41641cb0ef41Sopenharmony_ci    "src/codegen/handler-table.cc",
41651cb0ef41Sopenharmony_ci    "src/codegen/interface-descriptors.cc",
41661cb0ef41Sopenharmony_ci    "src/codegen/machine-type.cc",
41671cb0ef41Sopenharmony_ci    "src/codegen/optimized-compilation-info.cc",
41681cb0ef41Sopenharmony_ci    "src/codegen/pending-optimization-table.cc",
41691cb0ef41Sopenharmony_ci    "src/codegen/register-configuration.cc",
41701cb0ef41Sopenharmony_ci    "src/codegen/reloc-info.cc",
41711cb0ef41Sopenharmony_ci    "src/codegen/safepoint-table.cc",
41721cb0ef41Sopenharmony_ci    "src/codegen/source-position-table.cc",
41731cb0ef41Sopenharmony_ci    "src/codegen/source-position.cc",
41741cb0ef41Sopenharmony_ci    "src/codegen/string-constants.cc",
41751cb0ef41Sopenharmony_ci    "src/codegen/tick-counter.cc",
41761cb0ef41Sopenharmony_ci    "src/codegen/tnode.cc",
41771cb0ef41Sopenharmony_ci    "src/codegen/turbo-assembler.cc",
41781cb0ef41Sopenharmony_ci    "src/codegen/unoptimized-compilation-info.cc",
41791cb0ef41Sopenharmony_ci    "src/common/assert-scope.cc",
41801cb0ef41Sopenharmony_ci    "src/compiler-dispatcher/lazy-compile-dispatcher.cc",
41811cb0ef41Sopenharmony_ci    "src/compiler-dispatcher/optimizing-compile-dispatcher.cc",
41821cb0ef41Sopenharmony_ci    "src/date/date.cc",
41831cb0ef41Sopenharmony_ci    "src/date/dateparser.cc",
41841cb0ef41Sopenharmony_ci    "src/debug/debug-coverage.cc",
41851cb0ef41Sopenharmony_ci    "src/debug/debug-evaluate.cc",
41861cb0ef41Sopenharmony_ci    "src/debug/debug-frames.cc",
41871cb0ef41Sopenharmony_ci    "src/debug/debug-interface.cc",
41881cb0ef41Sopenharmony_ci    "src/debug/debug-property-iterator.cc",
41891cb0ef41Sopenharmony_ci    "src/debug/debug-scope-iterator.cc",
41901cb0ef41Sopenharmony_ci    "src/debug/debug-scopes.cc",
41911cb0ef41Sopenharmony_ci    "src/debug/debug-stack-trace-iterator.cc",
41921cb0ef41Sopenharmony_ci    "src/debug/debug-type-profile.cc",
41931cb0ef41Sopenharmony_ci    "src/debug/debug.cc",
41941cb0ef41Sopenharmony_ci    "src/debug/liveedit.cc",
41951cb0ef41Sopenharmony_ci    "src/deoptimizer/deoptimize-reason.cc",
41961cb0ef41Sopenharmony_ci    "src/deoptimizer/deoptimized-frame-info.cc",
41971cb0ef41Sopenharmony_ci    "src/deoptimizer/deoptimizer.cc",
41981cb0ef41Sopenharmony_ci    "src/deoptimizer/materialized-object-store.cc",
41991cb0ef41Sopenharmony_ci    "src/deoptimizer/translated-state.cc",
42001cb0ef41Sopenharmony_ci    "src/deoptimizer/translation-array.cc",
42011cb0ef41Sopenharmony_ci    "src/diagnostics/basic-block-profiler.cc",
42021cb0ef41Sopenharmony_ci    "src/diagnostics/compilation-statistics.cc",
42031cb0ef41Sopenharmony_ci    "src/diagnostics/disassembler.cc",
42041cb0ef41Sopenharmony_ci    "src/diagnostics/eh-frame.cc",
42051cb0ef41Sopenharmony_ci    "src/diagnostics/gdb-jit.cc",
42061cb0ef41Sopenharmony_ci    "src/diagnostics/objects-debug.cc",
42071cb0ef41Sopenharmony_ci    "src/diagnostics/objects-printer.cc",
42081cb0ef41Sopenharmony_ci    "src/diagnostics/perf-jit.cc",
42091cb0ef41Sopenharmony_ci    "src/diagnostics/unwinder.cc",
42101cb0ef41Sopenharmony_ci    "src/execution/arguments.cc",
42111cb0ef41Sopenharmony_ci    "src/execution/clobber-registers.cc",
42121cb0ef41Sopenharmony_ci    "src/execution/embedder-state.cc",
42131cb0ef41Sopenharmony_ci    "src/execution/encoded-c-signature.cc",
42141cb0ef41Sopenharmony_ci    "src/execution/execution.cc",
42151cb0ef41Sopenharmony_ci    "src/execution/frames.cc",
42161cb0ef41Sopenharmony_ci    "src/execution/futex-emulation.cc",
42171cb0ef41Sopenharmony_ci    "src/execution/interrupts-scope.cc",
42181cb0ef41Sopenharmony_ci    "src/execution/isolate.cc",
42191cb0ef41Sopenharmony_ci    "src/execution/local-isolate.cc",
42201cb0ef41Sopenharmony_ci    "src/execution/messages.cc",
42211cb0ef41Sopenharmony_ci    "src/execution/microtask-queue.cc",
42221cb0ef41Sopenharmony_ci    "src/execution/protectors.cc",
42231cb0ef41Sopenharmony_ci    "src/execution/simulator-base.cc",
42241cb0ef41Sopenharmony_ci    "src/execution/stack-guard.cc",
42251cb0ef41Sopenharmony_ci    "src/execution/thread-id.cc",
42261cb0ef41Sopenharmony_ci    "src/execution/thread-local-top.cc",
42271cb0ef41Sopenharmony_ci    "src/execution/tiering-manager.cc",
42281cb0ef41Sopenharmony_ci    "src/execution/v8threads.cc",
42291cb0ef41Sopenharmony_ci    "src/extensions/cputracemark-extension.cc",
42301cb0ef41Sopenharmony_ci    "src/extensions/externalize-string-extension.cc",
42311cb0ef41Sopenharmony_ci    "src/extensions/gc-extension.cc",
42321cb0ef41Sopenharmony_ci    "src/extensions/ignition-statistics-extension.cc",
42331cb0ef41Sopenharmony_ci    "src/extensions/statistics-extension.cc",
42341cb0ef41Sopenharmony_ci    "src/extensions/trigger-failure-extension.cc",
42351cb0ef41Sopenharmony_ci    "src/flags/flags.cc",
42361cb0ef41Sopenharmony_ci    "src/handles/global-handles.cc",
42371cb0ef41Sopenharmony_ci    "src/handles/handles.cc",
42381cb0ef41Sopenharmony_ci    "src/handles/local-handles.cc",
42391cb0ef41Sopenharmony_ci    "src/handles/persistent-handles.cc",
42401cb0ef41Sopenharmony_ci    "src/heap/allocation-observer.cc",
42411cb0ef41Sopenharmony_ci    "src/heap/array-buffer-sweeper.cc",
42421cb0ef41Sopenharmony_ci    "src/heap/base-space.cc",
42431cb0ef41Sopenharmony_ci    "src/heap/basic-memory-chunk.cc",
42441cb0ef41Sopenharmony_ci    "src/heap/code-object-registry.cc",
42451cb0ef41Sopenharmony_ci    "src/heap/code-range.cc",
42461cb0ef41Sopenharmony_ci    "src/heap/code-stats.cc",
42471cb0ef41Sopenharmony_ci    "src/heap/collection-barrier.cc",
42481cb0ef41Sopenharmony_ci    "src/heap/combined-heap.cc",
42491cb0ef41Sopenharmony_ci    "src/heap/concurrent-allocator.cc",
42501cb0ef41Sopenharmony_ci    "src/heap/concurrent-marking.cc",
42511cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/cpp-heap.cc",
42521cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/cpp-snapshot.cc",
42531cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-state.cc",
42541cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-verifier.cc",
42551cb0ef41Sopenharmony_ci    "src/heap/cppgc-js/unified-heap-marking-visitor.cc",
42561cb0ef41Sopenharmony_ci    "src/heap/embedder-tracing.cc",
42571cb0ef41Sopenharmony_ci    "src/heap/factory-base.cc",
42581cb0ef41Sopenharmony_ci    "src/heap/factory.cc",
42591cb0ef41Sopenharmony_ci    "src/heap/finalization-registry-cleanup-task.cc",
42601cb0ef41Sopenharmony_ci    "src/heap/free-list.cc",
42611cb0ef41Sopenharmony_ci    "src/heap/gc-idle-time-handler.cc",
42621cb0ef41Sopenharmony_ci    "src/heap/gc-tracer.cc",
42631cb0ef41Sopenharmony_ci    "src/heap/heap-allocator.cc",
42641cb0ef41Sopenharmony_ci    "src/heap/heap-controller.cc",
42651cb0ef41Sopenharmony_ci    "src/heap/heap-layout-tracer.cc",
42661cb0ef41Sopenharmony_ci    "src/heap/heap-write-barrier.cc",
42671cb0ef41Sopenharmony_ci    "src/heap/heap.cc",
42681cb0ef41Sopenharmony_ci    "src/heap/incremental-marking-job.cc",
42691cb0ef41Sopenharmony_ci    "src/heap/incremental-marking.cc",
42701cb0ef41Sopenharmony_ci    "src/heap/index-generator.cc",
42711cb0ef41Sopenharmony_ci    "src/heap/invalidated-slots.cc",
42721cb0ef41Sopenharmony_ci    "src/heap/large-spaces.cc",
42731cb0ef41Sopenharmony_ci    "src/heap/local-factory.cc",
42741cb0ef41Sopenharmony_ci    "src/heap/local-heap.cc",
42751cb0ef41Sopenharmony_ci    "src/heap/mark-compact.cc",
42761cb0ef41Sopenharmony_ci    "src/heap/marking-barrier.cc",
42771cb0ef41Sopenharmony_ci    "src/heap/marking-worklist.cc",
42781cb0ef41Sopenharmony_ci    "src/heap/marking.cc",
42791cb0ef41Sopenharmony_ci    "src/heap/memory-allocator.cc",
42801cb0ef41Sopenharmony_ci    "src/heap/memory-chunk-layout.cc",
42811cb0ef41Sopenharmony_ci    "src/heap/memory-chunk.cc",
42821cb0ef41Sopenharmony_ci    "src/heap/memory-measurement.cc",
42831cb0ef41Sopenharmony_ci    "src/heap/memory-reducer.cc",
42841cb0ef41Sopenharmony_ci    "src/heap/new-spaces.cc",
42851cb0ef41Sopenharmony_ci    "src/heap/object-stats.cc",
42861cb0ef41Sopenharmony_ci    "src/heap/objects-visiting.cc",
42871cb0ef41Sopenharmony_ci    "src/heap/paged-spaces.cc",
42881cb0ef41Sopenharmony_ci    "src/heap/read-only-heap.cc",
42891cb0ef41Sopenharmony_ci    "src/heap/read-only-spaces.cc",
42901cb0ef41Sopenharmony_ci    "src/heap/safepoint.cc",
42911cb0ef41Sopenharmony_ci    "src/heap/scavenge-job.cc",
42921cb0ef41Sopenharmony_ci    "src/heap/scavenger.cc",
42931cb0ef41Sopenharmony_ci    "src/heap/slot-set.cc",
42941cb0ef41Sopenharmony_ci    "src/heap/spaces.cc",
42951cb0ef41Sopenharmony_ci    "src/heap/stress-marking-observer.cc",
42961cb0ef41Sopenharmony_ci    "src/heap/stress-scavenge-observer.cc",
42971cb0ef41Sopenharmony_ci    "src/heap/sweeper.cc",
42981cb0ef41Sopenharmony_ci    "src/heap/weak-object-worklists.cc",
42991cb0ef41Sopenharmony_ci    "src/ic/call-optimization.cc",
43001cb0ef41Sopenharmony_ci    "src/ic/handler-configuration.cc",
43011cb0ef41Sopenharmony_ci    "src/ic/ic-stats.cc",
43021cb0ef41Sopenharmony_ci    "src/ic/ic.cc",
43031cb0ef41Sopenharmony_ci    "src/ic/stub-cache.cc",
43041cb0ef41Sopenharmony_ci    "src/init/bootstrapper.cc",
43051cb0ef41Sopenharmony_ci    "src/init/icu_util.cc",
43061cb0ef41Sopenharmony_ci    "src/init/isolate-allocator.cc",
43071cb0ef41Sopenharmony_ci    "src/init/startup-data-util.cc",
43081cb0ef41Sopenharmony_ci    "src/init/v8.cc",
43091cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-builder.cc",
43101cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-iterator.cc",
43111cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-random-iterator.cc",
43121cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-array-writer.cc",
43131cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-decoder.cc",
43141cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-flags.cc",
43151cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-generator.cc",
43161cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-label.cc",
43171cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-node.cc",
43181cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-operands.cc",
43191cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-register-optimizer.cc",
43201cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-register.cc",
43211cb0ef41Sopenharmony_ci    "src/interpreter/bytecode-source-info.cc",
43221cb0ef41Sopenharmony_ci    "src/interpreter/bytecodes.cc",
43231cb0ef41Sopenharmony_ci    "src/interpreter/constant-array-builder.cc",
43241cb0ef41Sopenharmony_ci    "src/interpreter/control-flow-builders.cc",
43251cb0ef41Sopenharmony_ci    "src/interpreter/handler-table-builder.cc",
43261cb0ef41Sopenharmony_ci    "src/interpreter/interpreter-intrinsics.cc",
43271cb0ef41Sopenharmony_ci    "src/interpreter/interpreter.cc",
43281cb0ef41Sopenharmony_ci    "src/json/json-parser.cc",
43291cb0ef41Sopenharmony_ci    "src/json/json-stringifier.cc",
43301cb0ef41Sopenharmony_ci    "src/libsampler/sampler.cc",
43311cb0ef41Sopenharmony_ci    "src/logging/counters.cc",
43321cb0ef41Sopenharmony_ci    "src/logging/local-logger.cc",
43331cb0ef41Sopenharmony_ci    "src/logging/log-utils.cc",
43341cb0ef41Sopenharmony_ci    "src/logging/log.cc",
43351cb0ef41Sopenharmony_ci    "src/logging/metrics.cc",
43361cb0ef41Sopenharmony_ci    "src/logging/runtime-call-stats.cc",
43371cb0ef41Sopenharmony_ci    "src/logging/tracing-flags.cc",
43381cb0ef41Sopenharmony_ci    "src/numbers/conversions.cc",
43391cb0ef41Sopenharmony_ci    "src/numbers/math-random.cc",
43401cb0ef41Sopenharmony_ci    "src/objects/backing-store.cc",
43411cb0ef41Sopenharmony_ci    "src/objects/bigint.cc",
43421cb0ef41Sopenharmony_ci    "src/objects/call-site-info.cc",
43431cb0ef41Sopenharmony_ci    "src/objects/code-kind.cc",
43441cb0ef41Sopenharmony_ci    "src/objects/code.cc",
43451cb0ef41Sopenharmony_ci    "src/objects/compilation-cache-table.cc",
43461cb0ef41Sopenharmony_ci    "src/objects/contexts.cc",
43471cb0ef41Sopenharmony_ci    "src/objects/debug-objects.cc",
43481cb0ef41Sopenharmony_ci    "src/objects/elements-kind.cc",
43491cb0ef41Sopenharmony_ci    "src/objects/elements.cc",
43501cb0ef41Sopenharmony_ci    "src/objects/embedder-data-array.cc",
43511cb0ef41Sopenharmony_ci    "src/objects/feedback-vector.cc",
43521cb0ef41Sopenharmony_ci    "src/objects/field-type.cc",
43531cb0ef41Sopenharmony_ci    "src/objects/intl-objects.cc",
43541cb0ef41Sopenharmony_ci    "src/objects/js-array-buffer.cc",
43551cb0ef41Sopenharmony_ci    "src/objects/js-break-iterator.cc",
43561cb0ef41Sopenharmony_ci    "src/objects/js-collator.cc",
43571cb0ef41Sopenharmony_ci    "src/objects/js-date-time-format.cc",
43581cb0ef41Sopenharmony_ci    "src/objects/js-display-names.cc",
43591cb0ef41Sopenharmony_ci    "src/objects/js-function.cc",
43601cb0ef41Sopenharmony_ci    "src/objects/js-list-format.cc",
43611cb0ef41Sopenharmony_ci    "src/objects/js-locale.cc",
43621cb0ef41Sopenharmony_ci    "src/objects/js-number-format.cc",
43631cb0ef41Sopenharmony_ci    "src/objects/js-objects.cc",
43641cb0ef41Sopenharmony_ci    "src/objects/js-plural-rules.cc",
43651cb0ef41Sopenharmony_ci    "src/objects/js-regexp.cc",
43661cb0ef41Sopenharmony_ci    "src/objects/js-relative-time-format.cc",
43671cb0ef41Sopenharmony_ci    "src/objects/js-segment-iterator.cc",
43681cb0ef41Sopenharmony_ci    "src/objects/js-segmenter.cc",
43691cb0ef41Sopenharmony_ci    "src/objects/js-segments.cc",
43701cb0ef41Sopenharmony_ci    "src/objects/js-temporal-objects.cc",
43711cb0ef41Sopenharmony_ci    "src/objects/keys.cc",
43721cb0ef41Sopenharmony_ci    "src/objects/literal-objects.cc",
43731cb0ef41Sopenharmony_ci    "src/objects/lookup-cache.cc",
43741cb0ef41Sopenharmony_ci    "src/objects/lookup.cc",
43751cb0ef41Sopenharmony_ci    "src/objects/managed.cc",
43761cb0ef41Sopenharmony_ci    "src/objects/map-updater.cc",
43771cb0ef41Sopenharmony_ci    "src/objects/map.cc",
43781cb0ef41Sopenharmony_ci    "src/objects/module.cc",
43791cb0ef41Sopenharmony_ci    "src/objects/object-type.cc",
43801cb0ef41Sopenharmony_ci    "src/objects/objects.cc",
43811cb0ef41Sopenharmony_ci    "src/objects/option-utils.cc",
43821cb0ef41Sopenharmony_ci    "src/objects/ordered-hash-table.cc",
43831cb0ef41Sopenharmony_ci    "src/objects/osr-optimized-code-cache.cc",
43841cb0ef41Sopenharmony_ci    "src/objects/property-descriptor.cc",
43851cb0ef41Sopenharmony_ci    "src/objects/property.cc",
43861cb0ef41Sopenharmony_ci    "src/objects/scope-info.cc",
43871cb0ef41Sopenharmony_ci    "src/objects/shared-function-info.cc",
43881cb0ef41Sopenharmony_ci    "src/objects/source-text-module.cc",
43891cb0ef41Sopenharmony_ci    "src/objects/string-comparator.cc",
43901cb0ef41Sopenharmony_ci    "src/objects/string-table.cc",
43911cb0ef41Sopenharmony_ci    "src/objects/string.cc",
43921cb0ef41Sopenharmony_ci    "src/objects/swiss-name-dictionary.cc",
43931cb0ef41Sopenharmony_ci    "src/objects/symbol-table.cc",
43941cb0ef41Sopenharmony_ci    "src/objects/synthetic-module.cc",
43951cb0ef41Sopenharmony_ci    "src/objects/tagged-impl.cc",
43961cb0ef41Sopenharmony_ci    "src/objects/template-objects.cc",
43971cb0ef41Sopenharmony_ci    "src/objects/templates.cc",
43981cb0ef41Sopenharmony_ci    "src/objects/transitions.cc",
43991cb0ef41Sopenharmony_ci    "src/objects/type-hints.cc",
44001cb0ef41Sopenharmony_ci    "src/objects/value-serializer.cc",
44011cb0ef41Sopenharmony_ci    "src/objects/visitors.cc",
44021cb0ef41Sopenharmony_ci    "src/parsing/func-name-inferrer.cc",
44031cb0ef41Sopenharmony_ci    "src/parsing/import-assertions.cc",
44041cb0ef41Sopenharmony_ci    "src/parsing/literal-buffer.cc",
44051cb0ef41Sopenharmony_ci    "src/parsing/parse-info.cc",
44061cb0ef41Sopenharmony_ci    "src/parsing/parser.cc",
44071cb0ef41Sopenharmony_ci    "src/parsing/parsing.cc",
44081cb0ef41Sopenharmony_ci    "src/parsing/pending-compilation-error-handler.cc",
44091cb0ef41Sopenharmony_ci    "src/parsing/preparse-data.cc",
44101cb0ef41Sopenharmony_ci    "src/parsing/preparser.cc",
44111cb0ef41Sopenharmony_ci    "src/parsing/rewriter.cc",
44121cb0ef41Sopenharmony_ci    "src/parsing/scanner-character-streams.cc",
44131cb0ef41Sopenharmony_ci    "src/parsing/scanner.cc",
44141cb0ef41Sopenharmony_ci    "src/parsing/token.cc",
44151cb0ef41Sopenharmony_ci    "src/profiler/allocation-tracker.cc",
44161cb0ef41Sopenharmony_ci    "src/profiler/cpu-profiler.cc",
44171cb0ef41Sopenharmony_ci    "src/profiler/heap-profiler.cc",
44181cb0ef41Sopenharmony_ci    "src/profiler/heap-snapshot-generator.cc",
44191cb0ef41Sopenharmony_ci    "src/profiler/profile-generator.cc",
44201cb0ef41Sopenharmony_ci    "src/profiler/profiler-listener.cc",
44211cb0ef41Sopenharmony_ci    "src/profiler/profiler-stats.cc",
44221cb0ef41Sopenharmony_ci    "src/profiler/sampling-heap-profiler.cc",
44231cb0ef41Sopenharmony_ci    "src/profiler/strings-storage.cc",
44241cb0ef41Sopenharmony_ci    "src/profiler/symbolizer.cc",
44251cb0ef41Sopenharmony_ci    "src/profiler/tick-sample.cc",
44261cb0ef41Sopenharmony_ci    "src/profiler/tracing-cpu-profiler.cc",
44271cb0ef41Sopenharmony_ci    "src/profiler/weak-code-registry.cc",
44281cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental-bytecode.cc",
44291cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental-compiler.cc",
44301cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental-interpreter.cc",
44311cb0ef41Sopenharmony_ci    "src/regexp/experimental/experimental.cc",
44321cb0ef41Sopenharmony_ci    "src/regexp/property-sequences.cc",
44331cb0ef41Sopenharmony_ci    "src/regexp/regexp-ast.cc",
44341cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecode-generator.cc",
44351cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecode-peephole.cc",
44361cb0ef41Sopenharmony_ci    "src/regexp/regexp-bytecodes.cc",
44371cb0ef41Sopenharmony_ci    "src/regexp/regexp-compiler-tonode.cc",
44381cb0ef41Sopenharmony_ci    "src/regexp/regexp-compiler.cc",
44391cb0ef41Sopenharmony_ci    "src/regexp/regexp-dotprinter.cc",
44401cb0ef41Sopenharmony_ci    "src/regexp/regexp-error.cc",
44411cb0ef41Sopenharmony_ci    "src/regexp/regexp-interpreter.cc",
44421cb0ef41Sopenharmony_ci    "src/regexp/regexp-macro-assembler-tracer.cc",
44431cb0ef41Sopenharmony_ci    "src/regexp/regexp-macro-assembler.cc",
44441cb0ef41Sopenharmony_ci    "src/regexp/regexp-parser.cc",
44451cb0ef41Sopenharmony_ci    "src/regexp/regexp-stack.cc",
44461cb0ef41Sopenharmony_ci    "src/regexp/regexp-utils.cc",
44471cb0ef41Sopenharmony_ci    "src/regexp/regexp.cc",
44481cb0ef41Sopenharmony_ci    "src/roots/roots.cc",
44491cb0ef41Sopenharmony_ci    "src/runtime/runtime-array.cc",
44501cb0ef41Sopenharmony_ci    "src/runtime/runtime-atomics.cc",
44511cb0ef41Sopenharmony_ci    "src/runtime/runtime-bigint.cc",
44521cb0ef41Sopenharmony_ci    "src/runtime/runtime-classes.cc",
44531cb0ef41Sopenharmony_ci    "src/runtime/runtime-collections.cc",
44541cb0ef41Sopenharmony_ci    "src/runtime/runtime-compiler.cc",
44551cb0ef41Sopenharmony_ci    "src/runtime/runtime-date.cc",
44561cb0ef41Sopenharmony_ci    "src/runtime/runtime-debug.cc",
44571cb0ef41Sopenharmony_ci    "src/runtime/runtime-forin.cc",
44581cb0ef41Sopenharmony_ci    "src/runtime/runtime-function.cc",
44591cb0ef41Sopenharmony_ci    "src/runtime/runtime-futex.cc",
44601cb0ef41Sopenharmony_ci    "src/runtime/runtime-generator.cc",
44611cb0ef41Sopenharmony_ci    "src/runtime/runtime-internal.cc",
44621cb0ef41Sopenharmony_ci    "src/runtime/runtime-intl.cc",
44631cb0ef41Sopenharmony_ci    "src/runtime/runtime-literals.cc",
44641cb0ef41Sopenharmony_ci    "src/runtime/runtime-module.cc",
44651cb0ef41Sopenharmony_ci    "src/runtime/runtime-numbers.cc",
44661cb0ef41Sopenharmony_ci    "src/runtime/runtime-object.cc",
44671cb0ef41Sopenharmony_ci    "src/runtime/runtime-operators.cc",
44681cb0ef41Sopenharmony_ci    "src/runtime/runtime-promise.cc",
44691cb0ef41Sopenharmony_ci    "src/runtime/runtime-proxy.cc",
44701cb0ef41Sopenharmony_ci    "src/runtime/runtime-regexp.cc",
44711cb0ef41Sopenharmony_ci    "src/runtime/runtime-scopes.cc",
44721cb0ef41Sopenharmony_ci    "src/runtime/runtime-shadow-realm.cc",
44731cb0ef41Sopenharmony_ci    "src/runtime/runtime-strings.cc",
44741cb0ef41Sopenharmony_ci    "src/runtime/runtime-symbol.cc",
44751cb0ef41Sopenharmony_ci    "src/runtime/runtime-test.cc",
44761cb0ef41Sopenharmony_ci    "src/runtime/runtime-trace.cc",
44771cb0ef41Sopenharmony_ci    "src/runtime/runtime-typedarray.cc",
44781cb0ef41Sopenharmony_ci    "src/runtime/runtime-weak-refs.cc",
44791cb0ef41Sopenharmony_ci    "src/runtime/runtime.cc",
44801cb0ef41Sopenharmony_ci    "src/sandbox/external-pointer-table.cc",
44811cb0ef41Sopenharmony_ci    "src/sandbox/sandbox.cc",
44821cb0ef41Sopenharmony_ci    "src/snapshot/code-serializer.cc",
44831cb0ef41Sopenharmony_ci    "src/snapshot/context-deserializer.cc",
44841cb0ef41Sopenharmony_ci    "src/snapshot/context-serializer.cc",
44851cb0ef41Sopenharmony_ci    "src/snapshot/deserializer.cc",
44861cb0ef41Sopenharmony_ci    "src/snapshot/embedded/embedded-data.cc",
44871cb0ef41Sopenharmony_ci    "src/snapshot/object-deserializer.cc",
44881cb0ef41Sopenharmony_ci    "src/snapshot/read-only-deserializer.cc",
44891cb0ef41Sopenharmony_ci    "src/snapshot/read-only-serializer.cc",
44901cb0ef41Sopenharmony_ci    "src/snapshot/roots-serializer.cc",
44911cb0ef41Sopenharmony_ci    "src/snapshot/serializer-deserializer.cc",
44921cb0ef41Sopenharmony_ci    "src/snapshot/serializer.cc",
44931cb0ef41Sopenharmony_ci    "src/snapshot/shared-heap-deserializer.cc",
44941cb0ef41Sopenharmony_ci    "src/snapshot/shared-heap-serializer.cc",
44951cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-compression.cc",
44961cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-data.cc",
44971cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-source-sink.cc",
44981cb0ef41Sopenharmony_ci    "src/snapshot/snapshot-utils.cc",
44991cb0ef41Sopenharmony_ci    "src/snapshot/snapshot.cc",
45001cb0ef41Sopenharmony_ci    "src/snapshot/startup-deserializer.cc",
45011cb0ef41Sopenharmony_ci    "src/snapshot/startup-serializer.cc",
45021cb0ef41Sopenharmony_ci    "src/strings/char-predicates.cc",
45031cb0ef41Sopenharmony_ci    "src/strings/string-builder.cc",
45041cb0ef41Sopenharmony_ci    "src/strings/string-case.cc",
45051cb0ef41Sopenharmony_ci    "src/strings/string-stream.cc",
45061cb0ef41Sopenharmony_ci    "src/strings/unicode-decoder.cc",
45071cb0ef41Sopenharmony_ci    "src/strings/unicode.cc",
45081cb0ef41Sopenharmony_ci    "src/strings/uri.cc",
45091cb0ef41Sopenharmony_ci    "src/tasks/cancelable-task.cc",
45101cb0ef41Sopenharmony_ci    "src/tasks/operations-barrier.cc",
45111cb0ef41Sopenharmony_ci    "src/tasks/task-utils.cc",
45121cb0ef41Sopenharmony_ci    "src/temporal/temporal-parser.cc",
45131cb0ef41Sopenharmony_ci    "src/third_party/siphash/halfsiphash.cc",
45141cb0ef41Sopenharmony_ci    "src/tracing/trace-event.cc",
45151cb0ef41Sopenharmony_ci    "src/tracing/traced-value.cc",
45161cb0ef41Sopenharmony_ci    "src/tracing/tracing-category-observer.cc",
45171cb0ef41Sopenharmony_ci    "src/utils/address-map.cc",
45181cb0ef41Sopenharmony_ci    "src/utils/allocation.cc",
45191cb0ef41Sopenharmony_ci    "src/utils/bit-vector.cc",
45201cb0ef41Sopenharmony_ci    "src/utils/detachable-vector.cc",
45211cb0ef41Sopenharmony_ci    "src/utils/identity-map.cc",
45221cb0ef41Sopenharmony_ci    "src/utils/memcopy.cc",
45231cb0ef41Sopenharmony_ci    "src/utils/ostreams.cc",
45241cb0ef41Sopenharmony_ci    "src/utils/utils.cc",
45251cb0ef41Sopenharmony_ci    "src/utils/version.cc",
45261cb0ef41Sopenharmony_ci    "src/web-snapshot/web-snapshot.cc",
45271cb0ef41Sopenharmony_ci    "src/web-snapshot/web-snapshot.h",
45281cb0ef41Sopenharmony_ci    "src/zone/accounting-allocator.cc",
45291cb0ef41Sopenharmony_ci    "src/zone/type-stats.cc",
45301cb0ef41Sopenharmony_ci    "src/zone/zone-segment.cc",
45311cb0ef41Sopenharmony_ci    "src/zone/zone.cc",
45321cb0ef41Sopenharmony_ci  ]
45331cb0ef41Sopenharmony_ci
45341cb0ef41Sopenharmony_ci  if (v8_enable_maglev) {
45351cb0ef41Sopenharmony_ci    sources += [
45361cb0ef41Sopenharmony_ci      "src/maglev/maglev-code-generator.cc",
45371cb0ef41Sopenharmony_ci      "src/maglev/maglev-compilation-info.cc",
45381cb0ef41Sopenharmony_ci      "src/maglev/maglev-compilation-unit.cc",
45391cb0ef41Sopenharmony_ci      "src/maglev/maglev-compiler.cc",
45401cb0ef41Sopenharmony_ci      "src/maglev/maglev-concurrent-dispatcher.cc",
45411cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-builder.cc",
45421cb0ef41Sopenharmony_ci      "src/maglev/maglev-graph-printer.cc",
45431cb0ef41Sopenharmony_ci      "src/maglev/maglev-ir.cc",
45441cb0ef41Sopenharmony_ci      "src/maglev/maglev-regalloc.cc",
45451cb0ef41Sopenharmony_ci      "src/maglev/maglev.cc",
45461cb0ef41Sopenharmony_ci    ]
45471cb0ef41Sopenharmony_ci  }
45481cb0ef41Sopenharmony_ci
45491cb0ef41Sopenharmony_ci  if (v8_enable_webassembly) {
45501cb0ef41Sopenharmony_ci    sources += [  ### gcmole(all) ###
45511cb0ef41Sopenharmony_ci      "src/asmjs/asm-js.cc",
45521cb0ef41Sopenharmony_ci      "src/asmjs/asm-parser.cc",
45531cb0ef41Sopenharmony_ci      "src/asmjs/asm-scanner.cc",
45541cb0ef41Sopenharmony_ci      "src/asmjs/asm-types.cc",
45551cb0ef41Sopenharmony_ci      "src/debug/debug-wasm-objects.cc",
45561cb0ef41Sopenharmony_ci      "src/runtime/runtime-test-wasm.cc",
45571cb0ef41Sopenharmony_ci      "src/runtime/runtime-wasm.cc",
45581cb0ef41Sopenharmony_ci      "src/trap-handler/handler-inside.cc",
45591cb0ef41Sopenharmony_ci      "src/trap-handler/handler-outside.cc",
45601cb0ef41Sopenharmony_ci      "src/trap-handler/handler-shared.cc",
45611cb0ef41Sopenharmony_ci      "src/wasm/baseline/liftoff-assembler.cc",
45621cb0ef41Sopenharmony_ci      "src/wasm/baseline/liftoff-compiler.cc",
45631cb0ef41Sopenharmony_ci      "src/wasm/canonical-types.cc",
45641cb0ef41Sopenharmony_ci      "src/wasm/code-space-access.cc",
45651cb0ef41Sopenharmony_ci      "src/wasm/function-body-decoder.cc",
45661cb0ef41Sopenharmony_ci      "src/wasm/function-compiler.cc",
45671cb0ef41Sopenharmony_ci      "src/wasm/graph-builder-interface.cc",
45681cb0ef41Sopenharmony_ci      "src/wasm/init-expr-interface.cc",
45691cb0ef41Sopenharmony_ci      "src/wasm/jump-table-assembler.cc",
45701cb0ef41Sopenharmony_ci      "src/wasm/local-decl-encoder.cc",
45711cb0ef41Sopenharmony_ci      "src/wasm/memory-protection-key.cc",
45721cb0ef41Sopenharmony_ci      "src/wasm/memory-tracing.cc",
45731cb0ef41Sopenharmony_ci      "src/wasm/module-compiler.cc",
45741cb0ef41Sopenharmony_ci      "src/wasm/module-decoder.cc",
45751cb0ef41Sopenharmony_ci      "src/wasm/module-instantiate.cc",
45761cb0ef41Sopenharmony_ci      "src/wasm/signature-map.cc",
45771cb0ef41Sopenharmony_ci      "src/wasm/simd-shuffle.cc",
45781cb0ef41Sopenharmony_ci      "src/wasm/streaming-decoder.cc",
45791cb0ef41Sopenharmony_ci      "src/wasm/sync-streaming-decoder.cc",
45801cb0ef41Sopenharmony_ci      "src/wasm/value-type.cc",
45811cb0ef41Sopenharmony_ci      "src/wasm/wasm-code-manager.cc",
45821cb0ef41Sopenharmony_ci      "src/wasm/wasm-debug.cc",
45831cb0ef41Sopenharmony_ci      "src/wasm/wasm-debug.h",
45841cb0ef41Sopenharmony_ci      "src/wasm/wasm-engine.cc",
45851cb0ef41Sopenharmony_ci      "src/wasm/wasm-external-refs.cc",
45861cb0ef41Sopenharmony_ci      "src/wasm/wasm-features.cc",
45871cb0ef41Sopenharmony_ci      "src/wasm/wasm-import-wrapper-cache.cc",
45881cb0ef41Sopenharmony_ci      "src/wasm/wasm-init-expr.cc",
45891cb0ef41Sopenharmony_ci      "src/wasm/wasm-js.cc",
45901cb0ef41Sopenharmony_ci      "src/wasm/wasm-module-builder.cc",
45911cb0ef41Sopenharmony_ci      "src/wasm/wasm-module-sourcemap.cc",
45921cb0ef41Sopenharmony_ci      "src/wasm/wasm-module.cc",
45931cb0ef41Sopenharmony_ci      "src/wasm/wasm-objects.cc",
45941cb0ef41Sopenharmony_ci      "src/wasm/wasm-opcodes.cc",
45951cb0ef41Sopenharmony_ci      "src/wasm/wasm-result.cc",
45961cb0ef41Sopenharmony_ci      "src/wasm/wasm-serialization.cc",
45971cb0ef41Sopenharmony_ci      "src/wasm/wasm-subtyping.cc",
45981cb0ef41Sopenharmony_ci    ]
45991cb0ef41Sopenharmony_ci  }
46001cb0ef41Sopenharmony_ci
46011cb0ef41Sopenharmony_ci  if (v8_enable_third_party_heap) {
46021cb0ef41Sopenharmony_ci    sources += filter_exclude(v8_third_party_heap_files, [ "*.h" ])
46031cb0ef41Sopenharmony_ci  } else {
46041cb0ef41Sopenharmony_ci    sources += [ "src/heap/third-party/heap-api-stub.cc" ]
46051cb0ef41Sopenharmony_ci  }
46061cb0ef41Sopenharmony_ci
46071cb0ef41Sopenharmony_ci  if (v8_enable_conservative_stack_scanning) {
46081cb0ef41Sopenharmony_ci    sources += [ "src/heap/conservative-stack-visitor.cc" ]
46091cb0ef41Sopenharmony_ci  }
46101cb0ef41Sopenharmony_ci
46111cb0ef41Sopenharmony_ci  if (v8_enable_wasm_gdb_remote_debugging) {
46121cb0ef41Sopenharmony_ci    sources += [
46131cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/gdb-remote-util.cc",
46141cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/gdb-server-thread.cc",
46151cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/gdb-server.cc",
46161cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/packet.cc",
46171cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/session.cc",
46181cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/target.cc",
46191cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/transport.cc",
46201cb0ef41Sopenharmony_ci      "src/debug/wasm/gdb-server/wasm-module-debug.cc",
46211cb0ef41Sopenharmony_ci    ]
46221cb0ef41Sopenharmony_ci  }
46231cb0ef41Sopenharmony_ci
46241cb0ef41Sopenharmony_ci  if (v8_enable_heap_snapshot_verify) {
46251cb0ef41Sopenharmony_ci    sources += [ "src/heap/reference-summarizer.cc" ]
46261cb0ef41Sopenharmony_ci  }
46271cb0ef41Sopenharmony_ci
46281cb0ef41Sopenharmony_ci  if (v8_current_cpu == "x86") {
46291cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:ia32) ###
46301cb0ef41Sopenharmony_ci      "src/codegen/ia32/assembler-ia32.cc",
46311cb0ef41Sopenharmony_ci      "src/codegen/ia32/cpu-ia32.cc",
46321cb0ef41Sopenharmony_ci      "src/codegen/ia32/macro-assembler-ia32.cc",
46331cb0ef41Sopenharmony_ci      "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.cc",
46341cb0ef41Sopenharmony_ci      "src/compiler/backend/ia32/code-generator-ia32.cc",
46351cb0ef41Sopenharmony_ci      "src/compiler/backend/ia32/instruction-scheduler-ia32.cc",
46361cb0ef41Sopenharmony_ci      "src/compiler/backend/ia32/instruction-selector-ia32.cc",
46371cb0ef41Sopenharmony_ci      "src/deoptimizer/ia32/deoptimizer-ia32.cc",
46381cb0ef41Sopenharmony_ci      "src/diagnostics/ia32/disasm-ia32.cc",
46391cb0ef41Sopenharmony_ci      "src/diagnostics/ia32/unwinder-ia32.cc",
46401cb0ef41Sopenharmony_ci      "src/execution/ia32/frame-constants-ia32.cc",
46411cb0ef41Sopenharmony_ci      "src/regexp/ia32/regexp-macro-assembler-ia32.cc",
46421cb0ef41Sopenharmony_ci    ]
46431cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "x64") {
46441cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:x64) ###
46451cb0ef41Sopenharmony_ci      "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.cc",
46461cb0ef41Sopenharmony_ci      "src/codegen/x64/assembler-x64.cc",
46471cb0ef41Sopenharmony_ci      "src/codegen/x64/cpu-x64.cc",
46481cb0ef41Sopenharmony_ci      "src/codegen/x64/macro-assembler-x64.cc",
46491cb0ef41Sopenharmony_ci      "src/compiler/backend/x64/code-generator-x64.cc",
46501cb0ef41Sopenharmony_ci      "src/compiler/backend/x64/instruction-scheduler-x64.cc",
46511cb0ef41Sopenharmony_ci      "src/compiler/backend/x64/instruction-selector-x64.cc",
46521cb0ef41Sopenharmony_ci      "src/compiler/backend/x64/unwinding-info-writer-x64.cc",
46531cb0ef41Sopenharmony_ci      "src/deoptimizer/x64/deoptimizer-x64.cc",
46541cb0ef41Sopenharmony_ci      "src/diagnostics/x64/disasm-x64.cc",
46551cb0ef41Sopenharmony_ci      "src/diagnostics/x64/eh-frame-x64.cc",
46561cb0ef41Sopenharmony_ci      "src/diagnostics/x64/unwinder-x64.cc",
46571cb0ef41Sopenharmony_ci      "src/execution/x64/frame-constants-x64.cc",
46581cb0ef41Sopenharmony_ci      "src/regexp/x64/regexp-macro-assembler-x64.cc",
46591cb0ef41Sopenharmony_ci    ]
46601cb0ef41Sopenharmony_ci
46611cb0ef41Sopenharmony_ci    if (is_win) {
46621cb0ef41Sopenharmony_ci      sources += [ "src/diagnostics/unwinding-info-win64.cc" ]
46631cb0ef41Sopenharmony_ci    }
46641cb0ef41Sopenharmony_ci
46651cb0ef41Sopenharmony_ci    if (v8_enable_webassembly) {
46661cb0ef41Sopenharmony_ci      # iOS Xcode simulator builds run on an x64 target. iOS and macOS are both
46671cb0ef41Sopenharmony_ci      # based on Darwin and thus POSIX-compliant to a similar degree.
46681cb0ef41Sopenharmony_ci      if (is_linux || is_chromeos || is_mac || is_ios ||
46691cb0ef41Sopenharmony_ci          target_os == "freebsd") {
46701cb0ef41Sopenharmony_ci        sources += [
46711cb0ef41Sopenharmony_ci          "src/trap-handler/handler-inside-posix.cc",
46721cb0ef41Sopenharmony_ci          "src/trap-handler/handler-outside-posix.cc",
46731cb0ef41Sopenharmony_ci        ]
46741cb0ef41Sopenharmony_ci      } else if (is_win) {
46751cb0ef41Sopenharmony_ci        sources += [
46761cb0ef41Sopenharmony_ci          "src/trap-handler/handler-inside-win.cc",
46771cb0ef41Sopenharmony_ci          "src/trap-handler/handler-outside-win.cc",
46781cb0ef41Sopenharmony_ci        ]
46791cb0ef41Sopenharmony_ci      }
46801cb0ef41Sopenharmony_ci    }
46811cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "arm") {
46821cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:arm) ###
46831cb0ef41Sopenharmony_ci      "src/codegen/arm/assembler-arm.cc",
46841cb0ef41Sopenharmony_ci      "src/codegen/arm/constants-arm.cc",
46851cb0ef41Sopenharmony_ci      "src/codegen/arm/cpu-arm.cc",
46861cb0ef41Sopenharmony_ci      "src/codegen/arm/macro-assembler-arm.cc",
46871cb0ef41Sopenharmony_ci      "src/compiler/backend/arm/code-generator-arm.cc",
46881cb0ef41Sopenharmony_ci      "src/compiler/backend/arm/instruction-scheduler-arm.cc",
46891cb0ef41Sopenharmony_ci      "src/compiler/backend/arm/instruction-selector-arm.cc",
46901cb0ef41Sopenharmony_ci      "src/compiler/backend/arm/unwinding-info-writer-arm.cc",
46911cb0ef41Sopenharmony_ci      "src/deoptimizer/arm/deoptimizer-arm.cc",
46921cb0ef41Sopenharmony_ci      "src/diagnostics/arm/disasm-arm.cc",
46931cb0ef41Sopenharmony_ci      "src/diagnostics/arm/eh-frame-arm.cc",
46941cb0ef41Sopenharmony_ci      "src/diagnostics/arm/unwinder-arm.cc",
46951cb0ef41Sopenharmony_ci      "src/execution/arm/frame-constants-arm.cc",
46961cb0ef41Sopenharmony_ci      "src/execution/arm/simulator-arm.cc",
46971cb0ef41Sopenharmony_ci      "src/regexp/arm/regexp-macro-assembler-arm.cc",
46981cb0ef41Sopenharmony_ci    ]
46991cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "arm64") {
47001cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:arm64) ###
47011cb0ef41Sopenharmony_ci      "src/codegen/arm64/assembler-arm64.cc",
47021cb0ef41Sopenharmony_ci      "src/codegen/arm64/cpu-arm64.cc",
47031cb0ef41Sopenharmony_ci      "src/codegen/arm64/decoder-arm64.cc",
47041cb0ef41Sopenharmony_ci      "src/codegen/arm64/instructions-arm64-constants.cc",
47051cb0ef41Sopenharmony_ci      "src/codegen/arm64/instructions-arm64.cc",
47061cb0ef41Sopenharmony_ci      "src/codegen/arm64/macro-assembler-arm64.cc",
47071cb0ef41Sopenharmony_ci      "src/codegen/arm64/register-arm64.cc",
47081cb0ef41Sopenharmony_ci      "src/codegen/arm64/utils-arm64.cc",
47091cb0ef41Sopenharmony_ci      "src/compiler/backend/arm64/code-generator-arm64.cc",
47101cb0ef41Sopenharmony_ci      "src/compiler/backend/arm64/instruction-scheduler-arm64.cc",
47111cb0ef41Sopenharmony_ci      "src/compiler/backend/arm64/instruction-selector-arm64.cc",
47121cb0ef41Sopenharmony_ci      "src/compiler/backend/arm64/unwinding-info-writer-arm64.cc",
47131cb0ef41Sopenharmony_ci      "src/deoptimizer/arm64/deoptimizer-arm64.cc",
47141cb0ef41Sopenharmony_ci      "src/diagnostics/arm64/disasm-arm64.cc",
47151cb0ef41Sopenharmony_ci      "src/diagnostics/arm64/eh-frame-arm64.cc",
47161cb0ef41Sopenharmony_ci      "src/diagnostics/arm64/unwinder-arm64.cc",
47171cb0ef41Sopenharmony_ci      "src/execution/arm64/frame-constants-arm64.cc",
47181cb0ef41Sopenharmony_ci      "src/execution/arm64/pointer-auth-arm64.cc",
47191cb0ef41Sopenharmony_ci      "src/execution/arm64/simulator-arm64.cc",
47201cb0ef41Sopenharmony_ci      "src/execution/arm64/simulator-logic-arm64.cc",
47211cb0ef41Sopenharmony_ci      "src/regexp/arm64/regexp-macro-assembler-arm64.cc",
47221cb0ef41Sopenharmony_ci    ]
47231cb0ef41Sopenharmony_ci    if (v8_enable_webassembly) {
47241cb0ef41Sopenharmony_ci      # Trap handling is enabled on arm64 Mac and in simulators on x64 on Linux,
47251cb0ef41Sopenharmony_ci      # Mac, and Windows.
47261cb0ef41Sopenharmony_ci      if ((current_cpu == "arm64" && is_mac) ||
47271cb0ef41Sopenharmony_ci          (current_cpu == "x64" && (is_linux || is_chromeos || is_mac))) {
47281cb0ef41Sopenharmony_ci        sources += [
47291cb0ef41Sopenharmony_ci          "src/trap-handler/handler-inside-posix.cc",
47301cb0ef41Sopenharmony_ci          "src/trap-handler/handler-outside-posix.cc",
47311cb0ef41Sopenharmony_ci        ]
47321cb0ef41Sopenharmony_ci      } else if (current_cpu == "x64" && is_win) {
47331cb0ef41Sopenharmony_ci        sources += [
47341cb0ef41Sopenharmony_ci          "src/trap-handler/handler-inside-win.cc",
47351cb0ef41Sopenharmony_ci          "src/trap-handler/handler-outside-win.cc",
47361cb0ef41Sopenharmony_ci        ]
47371cb0ef41Sopenharmony_ci      }
47381cb0ef41Sopenharmony_ci      if (current_cpu == "x64" &&
47391cb0ef41Sopenharmony_ci          (is_linux || is_chromeos || is_mac || is_win)) {
47401cb0ef41Sopenharmony_ci        sources += [ "src/trap-handler/handler-outside-simulator.cc" ]
47411cb0ef41Sopenharmony_ci      }
47421cb0ef41Sopenharmony_ci    }
47431cb0ef41Sopenharmony_ci    if (is_win) {
47441cb0ef41Sopenharmony_ci      sources += [ "src/diagnostics/unwinding-info-win64.cc" ]
47451cb0ef41Sopenharmony_ci    }
47461cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
47471cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:mipsel) ###
47481cb0ef41Sopenharmony_ci      "src/codegen/mips/assembler-mips.cc",
47491cb0ef41Sopenharmony_ci      "src/codegen/mips/constants-mips.cc",
47501cb0ef41Sopenharmony_ci      "src/codegen/mips/cpu-mips.cc",
47511cb0ef41Sopenharmony_ci      "src/codegen/mips/interface-descriptors-mips-inl.h",
47521cb0ef41Sopenharmony_ci      "src/codegen/mips/macro-assembler-mips.cc",
47531cb0ef41Sopenharmony_ci      "src/compiler/backend/mips/code-generator-mips.cc",
47541cb0ef41Sopenharmony_ci      "src/compiler/backend/mips/instruction-scheduler-mips.cc",
47551cb0ef41Sopenharmony_ci      "src/compiler/backend/mips/instruction-selector-mips.cc",
47561cb0ef41Sopenharmony_ci      "src/deoptimizer/mips/deoptimizer-mips.cc",
47571cb0ef41Sopenharmony_ci      "src/diagnostics/mips/disasm-mips.cc",
47581cb0ef41Sopenharmony_ci      "src/diagnostics/mips/unwinder-mips.cc",
47591cb0ef41Sopenharmony_ci      "src/execution/mips/frame-constants-mips.cc",
47601cb0ef41Sopenharmony_ci      "src/execution/mips/simulator-mips.cc",
47611cb0ef41Sopenharmony_ci      "src/regexp/mips/regexp-macro-assembler-mips.cc",
47621cb0ef41Sopenharmony_ci    ]
47631cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
47641cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:mips64el) ###
47651cb0ef41Sopenharmony_ci      "src/codegen/mips64/assembler-mips64.cc",
47661cb0ef41Sopenharmony_ci      "src/codegen/mips64/constants-mips64.cc",
47671cb0ef41Sopenharmony_ci      "src/codegen/mips64/cpu-mips64.cc",
47681cb0ef41Sopenharmony_ci      "src/codegen/mips64/interface-descriptors-mips64-inl.h",
47691cb0ef41Sopenharmony_ci      "src/codegen/mips64/macro-assembler-mips64.cc",
47701cb0ef41Sopenharmony_ci      "src/compiler/backend/mips64/code-generator-mips64.cc",
47711cb0ef41Sopenharmony_ci      "src/compiler/backend/mips64/instruction-scheduler-mips64.cc",
47721cb0ef41Sopenharmony_ci      "src/compiler/backend/mips64/instruction-selector-mips64.cc",
47731cb0ef41Sopenharmony_ci      "src/deoptimizer/mips64/deoptimizer-mips64.cc",
47741cb0ef41Sopenharmony_ci      "src/diagnostics/mips64/disasm-mips64.cc",
47751cb0ef41Sopenharmony_ci      "src/diagnostics/mips64/unwinder-mips64.cc",
47761cb0ef41Sopenharmony_ci      "src/execution/mips64/frame-constants-mips64.cc",
47771cb0ef41Sopenharmony_ci      "src/execution/mips64/simulator-mips64.cc",
47781cb0ef41Sopenharmony_ci      "src/regexp/mips64/regexp-macro-assembler-mips64.cc",
47791cb0ef41Sopenharmony_ci    ]
47801cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "loong64") {
47811cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:loong64) ###
47821cb0ef41Sopenharmony_ci      "src/codegen/loong64/assembler-loong64.cc",
47831cb0ef41Sopenharmony_ci      "src/codegen/loong64/constants-loong64.cc",
47841cb0ef41Sopenharmony_ci      "src/codegen/loong64/cpu-loong64.cc",
47851cb0ef41Sopenharmony_ci      "src/codegen/loong64/interface-descriptors-loong64-inl.h",
47861cb0ef41Sopenharmony_ci      "src/codegen/loong64/macro-assembler-loong64.cc",
47871cb0ef41Sopenharmony_ci      "src/compiler/backend/loong64/code-generator-loong64.cc",
47881cb0ef41Sopenharmony_ci      "src/compiler/backend/loong64/instruction-scheduler-loong64.cc",
47891cb0ef41Sopenharmony_ci      "src/compiler/backend/loong64/instruction-selector-loong64.cc",
47901cb0ef41Sopenharmony_ci      "src/deoptimizer/loong64/deoptimizer-loong64.cc",
47911cb0ef41Sopenharmony_ci      "src/diagnostics/loong64/disasm-loong64.cc",
47921cb0ef41Sopenharmony_ci      "src/diagnostics/loong64/unwinder-loong64.cc",
47931cb0ef41Sopenharmony_ci      "src/execution/loong64/frame-constants-loong64.cc",
47941cb0ef41Sopenharmony_ci      "src/execution/loong64/simulator-loong64.cc",
47951cb0ef41Sopenharmony_ci      "src/regexp/loong64/regexp-macro-assembler-loong64.cc",
47961cb0ef41Sopenharmony_ci    ]
47971cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "ppc") {
47981cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:ppc) ###
47991cb0ef41Sopenharmony_ci      "src/codegen/ppc/assembler-ppc.cc",
48001cb0ef41Sopenharmony_ci      "src/codegen/ppc/constants-ppc.cc",
48011cb0ef41Sopenharmony_ci      "src/codegen/ppc/cpu-ppc.cc",
48021cb0ef41Sopenharmony_ci      "src/codegen/ppc/macro-assembler-ppc.cc",
48031cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/code-generator-ppc.cc",
48041cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/instruction-scheduler-ppc.cc",
48051cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/instruction-selector-ppc.cc",
48061cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/unwinding-info-writer-ppc.cc",
48071cb0ef41Sopenharmony_ci      "src/deoptimizer/ppc/deoptimizer-ppc.cc",
48081cb0ef41Sopenharmony_ci      "src/diagnostics/ppc/disasm-ppc.cc",
48091cb0ef41Sopenharmony_ci      "src/diagnostics/ppc/eh-frame-ppc.cc",
48101cb0ef41Sopenharmony_ci      "src/diagnostics/ppc/unwinder-ppc.cc",
48111cb0ef41Sopenharmony_ci      "src/execution/ppc/frame-constants-ppc.cc",
48121cb0ef41Sopenharmony_ci      "src/execution/ppc/simulator-ppc.cc",
48131cb0ef41Sopenharmony_ci      "src/regexp/ppc/regexp-macro-assembler-ppc.cc",
48141cb0ef41Sopenharmony_ci    ]
48151cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "ppc64") {
48161cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:ppc64) ###
48171cb0ef41Sopenharmony_ci      "src/codegen/ppc/assembler-ppc.cc",
48181cb0ef41Sopenharmony_ci      "src/codegen/ppc/constants-ppc.cc",
48191cb0ef41Sopenharmony_ci      "src/codegen/ppc/cpu-ppc.cc",
48201cb0ef41Sopenharmony_ci      "src/codegen/ppc/macro-assembler-ppc.cc",
48211cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/code-generator-ppc.cc",
48221cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/instruction-scheduler-ppc.cc",
48231cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/instruction-selector-ppc.cc",
48241cb0ef41Sopenharmony_ci      "src/compiler/backend/ppc/unwinding-info-writer-ppc.cc",
48251cb0ef41Sopenharmony_ci      "src/deoptimizer/ppc/deoptimizer-ppc.cc",
48261cb0ef41Sopenharmony_ci      "src/diagnostics/ppc/disasm-ppc.cc",
48271cb0ef41Sopenharmony_ci      "src/diagnostics/ppc/eh-frame-ppc.cc",
48281cb0ef41Sopenharmony_ci      "src/diagnostics/ppc/unwinder-ppc.cc",
48291cb0ef41Sopenharmony_ci      "src/execution/ppc/frame-constants-ppc.cc",
48301cb0ef41Sopenharmony_ci      "src/execution/ppc/simulator-ppc.cc",
48311cb0ef41Sopenharmony_ci      "src/regexp/ppc/regexp-macro-assembler-ppc.cc",
48321cb0ef41Sopenharmony_ci    ]
48331cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
48341cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:s390) ###
48351cb0ef41Sopenharmony_ci      "src/codegen/s390/assembler-s390.cc",
48361cb0ef41Sopenharmony_ci      "src/codegen/s390/constants-s390.cc",
48371cb0ef41Sopenharmony_ci      "src/codegen/s390/cpu-s390.cc",
48381cb0ef41Sopenharmony_ci      "src/codegen/s390/macro-assembler-s390.cc",
48391cb0ef41Sopenharmony_ci      "src/compiler/backend/s390/code-generator-s390.cc",
48401cb0ef41Sopenharmony_ci      "src/compiler/backend/s390/instruction-scheduler-s390.cc",
48411cb0ef41Sopenharmony_ci      "src/compiler/backend/s390/instruction-selector-s390.cc",
48421cb0ef41Sopenharmony_ci      "src/compiler/backend/s390/unwinding-info-writer-s390.cc",
48431cb0ef41Sopenharmony_ci      "src/deoptimizer/s390/deoptimizer-s390.cc",
48441cb0ef41Sopenharmony_ci      "src/diagnostics/s390/disasm-s390.cc",
48451cb0ef41Sopenharmony_ci      "src/diagnostics/s390/eh-frame-s390.cc",
48461cb0ef41Sopenharmony_ci      "src/diagnostics/s390/unwinder-s390.cc",
48471cb0ef41Sopenharmony_ci      "src/execution/s390/frame-constants-s390.cc",
48481cb0ef41Sopenharmony_ci      "src/execution/s390/simulator-s390.cc",
48491cb0ef41Sopenharmony_ci      "src/regexp/s390/regexp-macro-assembler-s390.cc",
48501cb0ef41Sopenharmony_ci    ]
48511cb0ef41Sopenharmony_ci  } else if (v8_current_cpu == "riscv64") {
48521cb0ef41Sopenharmony_ci    sources += [  ### gcmole(arch:riscv64) ###
48531cb0ef41Sopenharmony_ci      "src/baseline/riscv64/baseline-assembler-riscv64-inl.h",
48541cb0ef41Sopenharmony_ci      "src/baseline/riscv64/baseline-compiler-riscv64-inl.h",
48551cb0ef41Sopenharmony_ci      "src/codegen/riscv64/assembler-riscv64-inl.h",
48561cb0ef41Sopenharmony_ci      "src/codegen/riscv64/assembler-riscv64.cc",
48571cb0ef41Sopenharmony_ci      "src/codegen/riscv64/constants-riscv64.cc",
48581cb0ef41Sopenharmony_ci      "src/codegen/riscv64/cpu-riscv64.cc",
48591cb0ef41Sopenharmony_ci      "src/codegen/riscv64/interface-descriptors-riscv64-inl.h",
48601cb0ef41Sopenharmony_ci      "src/codegen/riscv64/macro-assembler-riscv64.cc",
48611cb0ef41Sopenharmony_ci      "src/compiler/backend/riscv64/code-generator-riscv64.cc",
48621cb0ef41Sopenharmony_ci      "src/compiler/backend/riscv64/instruction-scheduler-riscv64.cc",
48631cb0ef41Sopenharmony_ci      "src/compiler/backend/riscv64/instruction-selector-riscv64.cc",
48641cb0ef41Sopenharmony_ci      "src/deoptimizer/riscv64/deoptimizer-riscv64.cc",
48651cb0ef41Sopenharmony_ci      "src/diagnostics/riscv64/disasm-riscv64.cc",
48661cb0ef41Sopenharmony_ci      "src/diagnostics/riscv64/unwinder-riscv64.cc",
48671cb0ef41Sopenharmony_ci      "src/execution/riscv64/frame-constants-riscv64.cc",
48681cb0ef41Sopenharmony_ci      "src/execution/riscv64/simulator-riscv64.cc",
48691cb0ef41Sopenharmony_ci      "src/regexp/riscv64/regexp-macro-assembler-riscv64.cc",
48701cb0ef41Sopenharmony_ci    ]
48711cb0ef41Sopenharmony_ci  }
48721cb0ef41Sopenharmony_ci
48731cb0ef41Sopenharmony_ci  # Architecture independent but platform-specific sources
48741cb0ef41Sopenharmony_ci  if (is_win) {
48751cb0ef41Sopenharmony_ci    if (v8_enable_system_instrumentation) {
48761cb0ef41Sopenharmony_ci      sources += [
48771cb0ef41Sopenharmony_ci        "src/diagnostics/system-jit-metadata-win.h",
48781cb0ef41Sopenharmony_ci        "src/diagnostics/system-jit-win.cc",
48791cb0ef41Sopenharmony_ci        "src/diagnostics/system-jit-win.h",
48801cb0ef41Sopenharmony_ci      ]
48811cb0ef41Sopenharmony_ci    }
48821cb0ef41Sopenharmony_ci  }
48831cb0ef41Sopenharmony_ci
48841cb0ef41Sopenharmony_ci  configs = [
48851cb0ef41Sopenharmony_ci    ":internal_config",
48861cb0ef41Sopenharmony_ci    ":cppgc_base_config",
48871cb0ef41Sopenharmony_ci  ]
48881cb0ef41Sopenharmony_ci
48891cb0ef41Sopenharmony_ci  deps = [
48901cb0ef41Sopenharmony_ci    ":torque_generated_definitions",
48911cb0ef41Sopenharmony_ci    ":v8_bigint",
48921cb0ef41Sopenharmony_ci    ":v8_headers",
48931cb0ef41Sopenharmony_ci    ":v8_heap_base",
48941cb0ef41Sopenharmony_ci    ":v8_libbase",
48951cb0ef41Sopenharmony_ci    ":v8_shared_internal_headers",
48961cb0ef41Sopenharmony_ci    ":v8_tracing",
48971cb0ef41Sopenharmony_ci    ":v8_version",
48981cb0ef41Sopenharmony_ci    "src/inspector:inspector",
48991cb0ef41Sopenharmony_ci  ]
49001cb0ef41Sopenharmony_ci
49011cb0ef41Sopenharmony_ci  public_deps = [
49021cb0ef41Sopenharmony_ci    ":cppgc_base",
49031cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
49041cb0ef41Sopenharmony_ci    ":run_torque",
49051cb0ef41Sopenharmony_ci    ":v8_headers",
49061cb0ef41Sopenharmony_ci    ":v8_internal_headers",
49071cb0ef41Sopenharmony_ci    ":v8_maybe_icu",
49081cb0ef41Sopenharmony_ci  ]
49091cb0ef41Sopenharmony_ci
49101cb0ef41Sopenharmony_ci  if (v8_enable_i18n_support) {
49111cb0ef41Sopenharmony_ci    deps += [ ":run_gen-regexp-special-case" ]
49121cb0ef41Sopenharmony_ci    sources += [ "$target_gen_dir/src/regexp/special-case.cc" ]
49131cb0ef41Sopenharmony_ci    if (is_win) {
49141cb0ef41Sopenharmony_ci      deps += [ "//third_party/icu:icudata" ]
49151cb0ef41Sopenharmony_ci    }
49161cb0ef41Sopenharmony_ci  } else {
49171cb0ef41Sopenharmony_ci    sources -= [
49181cb0ef41Sopenharmony_ci      "src/builtins/builtins-intl.cc",
49191cb0ef41Sopenharmony_ci      "src/objects/intl-objects.cc",
49201cb0ef41Sopenharmony_ci      "src/objects/js-break-iterator.cc",
49211cb0ef41Sopenharmony_ci      "src/objects/js-collator.cc",
49221cb0ef41Sopenharmony_ci      "src/objects/js-date-time-format.cc",
49231cb0ef41Sopenharmony_ci      "src/objects/js-display-names.cc",
49241cb0ef41Sopenharmony_ci      "src/objects/js-list-format.cc",
49251cb0ef41Sopenharmony_ci      "src/objects/js-locale.cc",
49261cb0ef41Sopenharmony_ci      "src/objects/js-number-format.cc",
49271cb0ef41Sopenharmony_ci      "src/objects/js-plural-rules.cc",
49281cb0ef41Sopenharmony_ci      "src/objects/js-relative-time-format.cc",
49291cb0ef41Sopenharmony_ci      "src/objects/js-segment-iterator.cc",
49301cb0ef41Sopenharmony_ci      "src/objects/js-segmenter.cc",
49311cb0ef41Sopenharmony_ci      "src/objects/js-segments.cc",
49321cb0ef41Sopenharmony_ci      "src/runtime/runtime-intl.cc",
49331cb0ef41Sopenharmony_ci      "src/strings/char-predicates.cc",
49341cb0ef41Sopenharmony_ci    ]
49351cb0ef41Sopenharmony_ci  }
49361cb0ef41Sopenharmony_ci
49371cb0ef41Sopenharmony_ci  deps += [
49381cb0ef41Sopenharmony_ci    "//third_party/zlib",
49391cb0ef41Sopenharmony_ci    "//third_party/zlib/google:compression_utils_portable",
49401cb0ef41Sopenharmony_ci  ]
49411cb0ef41Sopenharmony_ci
49421cb0ef41Sopenharmony_ci  if (v8_postmortem_support) {
49431cb0ef41Sopenharmony_ci    sources += [ "$target_gen_dir/debug-support.cc" ]
49441cb0ef41Sopenharmony_ci    deps += [ ":postmortem-metadata" ]
49451cb0ef41Sopenharmony_ci  }
49461cb0ef41Sopenharmony_ci
49471cb0ef41Sopenharmony_ci  libs = []
49481cb0ef41Sopenharmony_ci
49491cb0ef41Sopenharmony_ci  if (v8_enable_third_party_heap) {
49501cb0ef41Sopenharmony_ci    libs += v8_third_party_heap_libs
49511cb0ef41Sopenharmony_ci  }
49521cb0ef41Sopenharmony_ci
49531cb0ef41Sopenharmony_ci  # Platforms that don't have CAS support need to link atomic library
49541cb0ef41Sopenharmony_ci  # to implement atomic memory access
49551cb0ef41Sopenharmony_ci  if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel" ||
49561cb0ef41Sopenharmony_ci      v8_current_cpu == "mips64" || v8_current_cpu == "mips64el" ||
49571cb0ef41Sopenharmony_ci      v8_current_cpu == "ppc" || v8_current_cpu == "ppc64" ||
49581cb0ef41Sopenharmony_ci      v8_current_cpu == "s390" || v8_current_cpu == "s390x" ||
49591cb0ef41Sopenharmony_ci      v8_current_cpu == "riscv64") {
49601cb0ef41Sopenharmony_ci    libs += [ "atomic" ]
49611cb0ef41Sopenharmony_ci  }
49621cb0ef41Sopenharmony_ci
49631cb0ef41Sopenharmony_ci  if (v8_enable_vtunetracemark && (is_linux || is_chromeos || is_win)) {
49641cb0ef41Sopenharmony_ci    sources += [
49651cb0ef41Sopenharmony_ci      "src/extensions/vtunedomain-support-extension.cc",
49661cb0ef41Sopenharmony_ci      "src/extensions/vtunedomain-support-extension.h",
49671cb0ef41Sopenharmony_ci    ]
49681cb0ef41Sopenharmony_ci    deps += [ "src/third_party/vtune:v8_vtune_trace_mark" ]
49691cb0ef41Sopenharmony_ci  }
49701cb0ef41Sopenharmony_ci
49711cb0ef41Sopenharmony_ci  if (v8_use_perfetto) {
49721cb0ef41Sopenharmony_ci    sources += [
49731cb0ef41Sopenharmony_ci      "src/tracing/trace-categories.cc",
49741cb0ef41Sopenharmony_ci      "src/tracing/trace-categories.h",
49751cb0ef41Sopenharmony_ci    ]
49761cb0ef41Sopenharmony_ci  }
49771cb0ef41Sopenharmony_ci}
49781cb0ef41Sopenharmony_ci
49791cb0ef41Sopenharmony_cigroup("v8_base") {
49801cb0ef41Sopenharmony_ci  public_deps = [
49811cb0ef41Sopenharmony_ci    ":v8_base_without_compiler",
49821cb0ef41Sopenharmony_ci    ":v8_compiler",
49831cb0ef41Sopenharmony_ci  ]
49841cb0ef41Sopenharmony_ci}
49851cb0ef41Sopenharmony_ci
49861cb0ef41Sopenharmony_civ8_source_set("torque_base") {
49871cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
49881cb0ef41Sopenharmony_ci
49891cb0ef41Sopenharmony_ci  sources = [
49901cb0ef41Sopenharmony_ci    "src/numbers/integer-literal-inl.h",
49911cb0ef41Sopenharmony_ci    "src/numbers/integer-literal.h",
49921cb0ef41Sopenharmony_ci    "src/torque/ast.h",
49931cb0ef41Sopenharmony_ci    "src/torque/cc-generator.cc",
49941cb0ef41Sopenharmony_ci    "src/torque/cc-generator.h",
49951cb0ef41Sopenharmony_ci    "src/torque/cfg.cc",
49961cb0ef41Sopenharmony_ci    "src/torque/cfg.h",
49971cb0ef41Sopenharmony_ci    "src/torque/class-debug-reader-generator.cc",
49981cb0ef41Sopenharmony_ci    "src/torque/constants.h",
49991cb0ef41Sopenharmony_ci    "src/torque/contextual.h",
50001cb0ef41Sopenharmony_ci    "src/torque/cpp-builder.cc",
50011cb0ef41Sopenharmony_ci    "src/torque/cpp-builder.h",
50021cb0ef41Sopenharmony_ci    "src/torque/csa-generator.cc",
50031cb0ef41Sopenharmony_ci    "src/torque/csa-generator.h",
50041cb0ef41Sopenharmony_ci    "src/torque/declarable.cc",
50051cb0ef41Sopenharmony_ci    "src/torque/declarable.h",
50061cb0ef41Sopenharmony_ci    "src/torque/declaration-visitor.cc",
50071cb0ef41Sopenharmony_ci    "src/torque/declaration-visitor.h",
50081cb0ef41Sopenharmony_ci    "src/torque/declarations.cc",
50091cb0ef41Sopenharmony_ci    "src/torque/declarations.h",
50101cb0ef41Sopenharmony_ci    "src/torque/earley-parser.cc",
50111cb0ef41Sopenharmony_ci    "src/torque/earley-parser.h",
50121cb0ef41Sopenharmony_ci    "src/torque/global-context.cc",
50131cb0ef41Sopenharmony_ci    "src/torque/global-context.h",
50141cb0ef41Sopenharmony_ci    "src/torque/implementation-visitor.cc",
50151cb0ef41Sopenharmony_ci    "src/torque/implementation-visitor.h",
50161cb0ef41Sopenharmony_ci    "src/torque/instance-type-generator.cc",
50171cb0ef41Sopenharmony_ci    "src/torque/instructions.cc",
50181cb0ef41Sopenharmony_ci    "src/torque/instructions.h",
50191cb0ef41Sopenharmony_ci    "src/torque/kythe-data.cc",
50201cb0ef41Sopenharmony_ci    "src/torque/kythe-data.h",
50211cb0ef41Sopenharmony_ci    "src/torque/parameter-difference.h",
50221cb0ef41Sopenharmony_ci    "src/torque/server-data.cc",
50231cb0ef41Sopenharmony_ci    "src/torque/server-data.h",
50241cb0ef41Sopenharmony_ci    "src/torque/source-positions.cc",
50251cb0ef41Sopenharmony_ci    "src/torque/source-positions.h",
50261cb0ef41Sopenharmony_ci    "src/torque/torque-code-generator.cc",
50271cb0ef41Sopenharmony_ci    "src/torque/torque-code-generator.h",
50281cb0ef41Sopenharmony_ci    "src/torque/torque-compiler.cc",
50291cb0ef41Sopenharmony_ci    "src/torque/torque-compiler.h",
50301cb0ef41Sopenharmony_ci    "src/torque/torque-parser.cc",
50311cb0ef41Sopenharmony_ci    "src/torque/torque-parser.h",
50321cb0ef41Sopenharmony_ci    "src/torque/type-inference.cc",
50331cb0ef41Sopenharmony_ci    "src/torque/type-inference.h",
50341cb0ef41Sopenharmony_ci    "src/torque/type-oracle.cc",
50351cb0ef41Sopenharmony_ci    "src/torque/type-oracle.h",
50361cb0ef41Sopenharmony_ci    "src/torque/type-visitor.cc",
50371cb0ef41Sopenharmony_ci    "src/torque/type-visitor.h",
50381cb0ef41Sopenharmony_ci    "src/torque/types.cc",
50391cb0ef41Sopenharmony_ci    "src/torque/types.h",
50401cb0ef41Sopenharmony_ci    "src/torque/utils.cc",
50411cb0ef41Sopenharmony_ci    "src/torque/utils.h",
50421cb0ef41Sopenharmony_ci  ]
50431cb0ef41Sopenharmony_ci
50441cb0ef41Sopenharmony_ci  deps = [
50451cb0ef41Sopenharmony_ci    ":v8_flags",
50461cb0ef41Sopenharmony_ci    ":v8_shared_internal_headers",
50471cb0ef41Sopenharmony_ci  ]
50481cb0ef41Sopenharmony_ci
50491cb0ef41Sopenharmony_ci  public_deps = [ ":v8_libbase" ]
50501cb0ef41Sopenharmony_ci
50511cb0ef41Sopenharmony_ci  # The use of exceptions for Torque in violation of the Chromium style-guide
50521cb0ef41Sopenharmony_ci  # is justified by the fact that it is only used from the non-essential
50531cb0ef41Sopenharmony_ci  # language server and can be removed anytime if it causes problems.
50541cb0ef41Sopenharmony_ci  configs = [
50551cb0ef41Sopenharmony_ci    ":internal_config",
50561cb0ef41Sopenharmony_ci    "//build/config/compiler:exceptions",
50571cb0ef41Sopenharmony_ci    "//build/config/compiler:rtti",
50581cb0ef41Sopenharmony_ci  ]
50591cb0ef41Sopenharmony_ci
50601cb0ef41Sopenharmony_ci  remove_configs = [
50611cb0ef41Sopenharmony_ci    "//build/config/compiler:no_exceptions",
50621cb0ef41Sopenharmony_ci    "//build/config/compiler:no_rtti",
50631cb0ef41Sopenharmony_ci  ]
50641cb0ef41Sopenharmony_ci
50651cb0ef41Sopenharmony_ci  if (is_win && is_asan) {
50661cb0ef41Sopenharmony_ci    # Due to a bug in ASAN on Windows (chromium:893437), we disable ASAN for
50671cb0ef41Sopenharmony_ci    # Torque on Windows.
50681cb0ef41Sopenharmony_ci    remove_configs += [ "//build/config/sanitizers:default_sanitizer_flags" ]
50691cb0ef41Sopenharmony_ci  }
50701cb0ef41Sopenharmony_ci
50711cb0ef41Sopenharmony_ci  if (is_debug && !v8_optimized_debug && v8_enable_fast_torque) {
50721cb0ef41Sopenharmony_ci    # The :no_optimize config is added to v8_add_configs in v8.gni.
50731cb0ef41Sopenharmony_ci    remove_configs += [ "//build/config/compiler:no_optimize" ]
50741cb0ef41Sopenharmony_ci    configs += [ ":always_optimize" ]
50751cb0ef41Sopenharmony_ci  }
50761cb0ef41Sopenharmony_ci}
50771cb0ef41Sopenharmony_ci
50781cb0ef41Sopenharmony_civ8_source_set("torque_ls_base") {
50791cb0ef41Sopenharmony_ci  sources = [
50801cb0ef41Sopenharmony_ci    "src/torque/ls/globals.h",
50811cb0ef41Sopenharmony_ci    "src/torque/ls/json-parser.cc",
50821cb0ef41Sopenharmony_ci    "src/torque/ls/json-parser.h",
50831cb0ef41Sopenharmony_ci    "src/torque/ls/json.cc",
50841cb0ef41Sopenharmony_ci    "src/torque/ls/json.h",
50851cb0ef41Sopenharmony_ci    "src/torque/ls/message-handler.cc",
50861cb0ef41Sopenharmony_ci    "src/torque/ls/message-handler.h",
50871cb0ef41Sopenharmony_ci    "src/torque/ls/message-macros.h",
50881cb0ef41Sopenharmony_ci    "src/torque/ls/message-pipe.h",
50891cb0ef41Sopenharmony_ci    "src/torque/ls/message.h",
50901cb0ef41Sopenharmony_ci  ]
50911cb0ef41Sopenharmony_ci
50921cb0ef41Sopenharmony_ci  public_deps = [ ":torque_base" ]
50931cb0ef41Sopenharmony_ci
50941cb0ef41Sopenharmony_ci  # The use of exceptions for Torque in violation of the Chromium style-guide
50951cb0ef41Sopenharmony_ci  # is justified by the fact that it is only used from the non-essential
50961cb0ef41Sopenharmony_ci  # language server and can be removed anytime if it causes problems.
50971cb0ef41Sopenharmony_ci  configs = [
50981cb0ef41Sopenharmony_ci    ":internal_config",
50991cb0ef41Sopenharmony_ci    "//build/config/compiler:exceptions",
51001cb0ef41Sopenharmony_ci    "//build/config/compiler:rtti",
51011cb0ef41Sopenharmony_ci  ]
51021cb0ef41Sopenharmony_ci
51031cb0ef41Sopenharmony_ci  remove_configs = [
51041cb0ef41Sopenharmony_ci    "//build/config/compiler:no_exceptions",
51051cb0ef41Sopenharmony_ci    "//build/config/compiler:no_rtti",
51061cb0ef41Sopenharmony_ci  ]
51071cb0ef41Sopenharmony_ci
51081cb0ef41Sopenharmony_ci  if (is_win && is_asan) {
51091cb0ef41Sopenharmony_ci    remove_configs += [ "//build/config/sanitizers:default_sanitizer_flags" ]
51101cb0ef41Sopenharmony_ci  }
51111cb0ef41Sopenharmony_ci}
51121cb0ef41Sopenharmony_ci
51131cb0ef41Sopenharmony_civ8_component("v8_libbase") {
51141cb0ef41Sopenharmony_ci  sources = [
51151cb0ef41Sopenharmony_ci    "src/base/address-region.h",
51161cb0ef41Sopenharmony_ci    "src/base/atomic-utils.h",
51171cb0ef41Sopenharmony_ci    "src/base/atomicops.h",
51181cb0ef41Sopenharmony_ci    "src/base/atomicops_internals_atomicword_compat.h",
51191cb0ef41Sopenharmony_ci    "src/base/base-export.h",
51201cb0ef41Sopenharmony_ci    "src/base/bit-field.h",
51211cb0ef41Sopenharmony_ci    "src/base/bits-iterator.h",
51221cb0ef41Sopenharmony_ci    "src/base/bits.cc",
51231cb0ef41Sopenharmony_ci    "src/base/bits.h",
51241cb0ef41Sopenharmony_ci    "src/base/bounded-page-allocator.cc",
51251cb0ef41Sopenharmony_ci    "src/base/bounded-page-allocator.h",
51261cb0ef41Sopenharmony_ci    "src/base/bounds.h",
51271cb0ef41Sopenharmony_ci    "src/base/build_config.h",
51281cb0ef41Sopenharmony_ci    "src/base/compiler-specific.h",
51291cb0ef41Sopenharmony_ci    "src/base/cpu.cc",
51301cb0ef41Sopenharmony_ci    "src/base/cpu.h",
51311cb0ef41Sopenharmony_ci    "src/base/debug/stack_trace.cc",
51321cb0ef41Sopenharmony_ci    "src/base/debug/stack_trace.h",
51331cb0ef41Sopenharmony_ci    "src/base/division-by-constant.cc",
51341cb0ef41Sopenharmony_ci    "src/base/division-by-constant.h",
51351cb0ef41Sopenharmony_ci    "src/base/emulated-virtual-address-subspace.cc",
51361cb0ef41Sopenharmony_ci    "src/base/emulated-virtual-address-subspace.h",
51371cb0ef41Sopenharmony_ci    "src/base/enum-set.h",
51381cb0ef41Sopenharmony_ci    "src/base/export-template.h",
51391cb0ef41Sopenharmony_ci    "src/base/file-utils.cc",
51401cb0ef41Sopenharmony_ci    "src/base/file-utils.h",
51411cb0ef41Sopenharmony_ci    "src/base/flags.h",
51421cb0ef41Sopenharmony_ci    "src/base/free_deleter.h",
51431cb0ef41Sopenharmony_ci    "src/base/functional.cc",
51441cb0ef41Sopenharmony_ci    "src/base/functional.h",
51451cb0ef41Sopenharmony_ci    "src/base/hashmap-entry.h",
51461cb0ef41Sopenharmony_ci    "src/base/hashmap.h",
51471cb0ef41Sopenharmony_ci    "src/base/ieee754.cc",
51481cb0ef41Sopenharmony_ci    "src/base/ieee754.h",
51491cb0ef41Sopenharmony_ci    "src/base/immediate-crash.h",
51501cb0ef41Sopenharmony_ci    "src/base/iterator.h",
51511cb0ef41Sopenharmony_ci    "src/base/lazy-instance.h",
51521cb0ef41Sopenharmony_ci    "src/base/logging.cc",
51531cb0ef41Sopenharmony_ci    "src/base/logging.h",
51541cb0ef41Sopenharmony_ci    "src/base/macros.h",
51551cb0ef41Sopenharmony_ci    "src/base/memory.h",
51561cb0ef41Sopenharmony_ci    "src/base/numbers/bignum-dtoa.cc",
51571cb0ef41Sopenharmony_ci    "src/base/numbers/bignum-dtoa.h",
51581cb0ef41Sopenharmony_ci    "src/base/numbers/bignum.cc",
51591cb0ef41Sopenharmony_ci    "src/base/numbers/bignum.h",
51601cb0ef41Sopenharmony_ci    "src/base/numbers/cached-powers.cc",
51611cb0ef41Sopenharmony_ci    "src/base/numbers/cached-powers.h",
51621cb0ef41Sopenharmony_ci    "src/base/numbers/diy-fp.cc",
51631cb0ef41Sopenharmony_ci    "src/base/numbers/diy-fp.h",
51641cb0ef41Sopenharmony_ci    "src/base/numbers/double.h",
51651cb0ef41Sopenharmony_ci    "src/base/numbers/dtoa.cc",
51661cb0ef41Sopenharmony_ci    "src/base/numbers/dtoa.h",
51671cb0ef41Sopenharmony_ci    "src/base/numbers/fast-dtoa.cc",
51681cb0ef41Sopenharmony_ci    "src/base/numbers/fast-dtoa.h",
51691cb0ef41Sopenharmony_ci    "src/base/numbers/fixed-dtoa.cc",
51701cb0ef41Sopenharmony_ci    "src/base/numbers/fixed-dtoa.h",
51711cb0ef41Sopenharmony_ci    "src/base/numbers/strtod.cc",
51721cb0ef41Sopenharmony_ci    "src/base/numbers/strtod.h",
51731cb0ef41Sopenharmony_ci    "src/base/once.cc",
51741cb0ef41Sopenharmony_ci    "src/base/once.h",
51751cb0ef41Sopenharmony_ci    "src/base/optional.h",
51761cb0ef41Sopenharmony_ci    "src/base/overflowing-math.h",
51771cb0ef41Sopenharmony_ci    "src/base/page-allocator.cc",
51781cb0ef41Sopenharmony_ci    "src/base/page-allocator.h",
51791cb0ef41Sopenharmony_ci    "src/base/platform/condition-variable.cc",
51801cb0ef41Sopenharmony_ci    "src/base/platform/condition-variable.h",
51811cb0ef41Sopenharmony_ci    "src/base/platform/elapsed-timer.h",
51821cb0ef41Sopenharmony_ci    "src/base/platform/mutex.cc",
51831cb0ef41Sopenharmony_ci    "src/base/platform/mutex.h",
51841cb0ef41Sopenharmony_ci    "src/base/platform/platform.h",
51851cb0ef41Sopenharmony_ci    "src/base/platform/semaphore.cc",
51861cb0ef41Sopenharmony_ci    "src/base/platform/semaphore.h",
51871cb0ef41Sopenharmony_ci    "src/base/platform/time.cc",
51881cb0ef41Sopenharmony_ci    "src/base/platform/time.h",
51891cb0ef41Sopenharmony_ci    "src/base/platform/wrappers.h",
51901cb0ef41Sopenharmony_ci    "src/base/platform/yield-processor.h",
51911cb0ef41Sopenharmony_ci    "src/base/pointer-with-payload.h",
51921cb0ef41Sopenharmony_ci    "src/base/region-allocator.cc",
51931cb0ef41Sopenharmony_ci    "src/base/region-allocator.h",
51941cb0ef41Sopenharmony_ci    "src/base/ring-buffer.h",
51951cb0ef41Sopenharmony_ci    "src/base/safe_conversions.h",
51961cb0ef41Sopenharmony_ci    "src/base/safe_conversions_arm_impl.h",
51971cb0ef41Sopenharmony_ci    "src/base/safe_conversions_impl.h",
51981cb0ef41Sopenharmony_ci    "src/base/sanitizer/asan.h",
51991cb0ef41Sopenharmony_ci    "src/base/sanitizer/lsan-page-allocator.cc",
52001cb0ef41Sopenharmony_ci    "src/base/sanitizer/lsan-page-allocator.h",
52011cb0ef41Sopenharmony_ci    "src/base/sanitizer/lsan-virtual-address-space.cc",
52021cb0ef41Sopenharmony_ci    "src/base/sanitizer/lsan-virtual-address-space.h",
52031cb0ef41Sopenharmony_ci    "src/base/sanitizer/lsan.h",
52041cb0ef41Sopenharmony_ci    "src/base/sanitizer/msan.h",
52051cb0ef41Sopenharmony_ci    "src/base/sanitizer/tsan.h",
52061cb0ef41Sopenharmony_ci    "src/base/small-vector.h",
52071cb0ef41Sopenharmony_ci    "src/base/strings.cc",
52081cb0ef41Sopenharmony_ci    "src/base/strings.h",
52091cb0ef41Sopenharmony_ci    "src/base/sys-info.cc",
52101cb0ef41Sopenharmony_ci    "src/base/sys-info.h",
52111cb0ef41Sopenharmony_ci    "src/base/template-utils.h",
52121cb0ef41Sopenharmony_ci    "src/base/threaded-list.h",
52131cb0ef41Sopenharmony_ci    "src/base/timezone-cache.h",
52141cb0ef41Sopenharmony_ci    "src/base/utils/random-number-generator.cc",
52151cb0ef41Sopenharmony_ci    "src/base/utils/random-number-generator.h",
52161cb0ef41Sopenharmony_ci    "src/base/v8-fallthrough.h",
52171cb0ef41Sopenharmony_ci    "src/base/vector.h",
52181cb0ef41Sopenharmony_ci    "src/base/virtual-address-space-page-allocator.cc",
52191cb0ef41Sopenharmony_ci    "src/base/virtual-address-space-page-allocator.h",
52201cb0ef41Sopenharmony_ci    "src/base/virtual-address-space.cc",
52211cb0ef41Sopenharmony_ci    "src/base/virtual-address-space.h",
52221cb0ef41Sopenharmony_ci    "src/base/vlq-base64.cc",
52231cb0ef41Sopenharmony_ci    "src/base/vlq-base64.h",
52241cb0ef41Sopenharmony_ci    "src/base/vlq.h",
52251cb0ef41Sopenharmony_ci  ]
52261cb0ef41Sopenharmony_ci
52271cb0ef41Sopenharmony_ci  configs = [ ":internal_config_base" ]
52281cb0ef41Sopenharmony_ci
52291cb0ef41Sopenharmony_ci  public_configs = [ ":libbase_config" ]
52301cb0ef41Sopenharmony_ci
52311cb0ef41Sopenharmony_ci  deps = [ ":v8_config_headers" ]
52321cb0ef41Sopenharmony_ci
52331cb0ef41Sopenharmony_ci  data = []
52341cb0ef41Sopenharmony_ci
52351cb0ef41Sopenharmony_ci  data_deps = []
52361cb0ef41Sopenharmony_ci
52371cb0ef41Sopenharmony_ci  defines = []
52381cb0ef41Sopenharmony_ci
52391cb0ef41Sopenharmony_ci  if (is_component_build) {
52401cb0ef41Sopenharmony_ci    defines = [ "BUILDING_V8_BASE_SHARED" ]
52411cb0ef41Sopenharmony_ci  }
52421cb0ef41Sopenharmony_ci
52431cb0ef41Sopenharmony_ci  if (is_posix || is_fuchsia) {
52441cb0ef41Sopenharmony_ci    sources += [
52451cb0ef41Sopenharmony_ci      "src/base/platform/platform-posix.cc",
52461cb0ef41Sopenharmony_ci      "src/base/platform/platform-posix.h",
52471cb0ef41Sopenharmony_ci    ]
52481cb0ef41Sopenharmony_ci    if (current_os != "aix") {
52491cb0ef41Sopenharmony_ci      sources += [
52501cb0ef41Sopenharmony_ci        "src/base/platform/platform-posix-time.cc",
52511cb0ef41Sopenharmony_ci        "src/base/platform/platform-posix-time.h",
52521cb0ef41Sopenharmony_ci      ]
52531cb0ef41Sopenharmony_ci    }
52541cb0ef41Sopenharmony_ci  }
52551cb0ef41Sopenharmony_ci
52561cb0ef41Sopenharmony_ci  if (is_linux || is_chromeos) {
52571cb0ef41Sopenharmony_ci    sources += [
52581cb0ef41Sopenharmony_ci      "src/base/debug/stack_trace_posix.cc",
52591cb0ef41Sopenharmony_ci      "src/base/platform/platform-linux.cc",
52601cb0ef41Sopenharmony_ci    ]
52611cb0ef41Sopenharmony_ci
52621cb0ef41Sopenharmony_ci    libs = [
52631cb0ef41Sopenharmony_ci      "dl",
52641cb0ef41Sopenharmony_ci      "rt",
52651cb0ef41Sopenharmony_ci    ]
52661cb0ef41Sopenharmony_ci  } else if (current_os == "aix") {
52671cb0ef41Sopenharmony_ci    sources += [
52681cb0ef41Sopenharmony_ci      "src/base/debug/stack_trace_posix.cc",
52691cb0ef41Sopenharmony_ci      "src/base/platform/platform-aix.cc",
52701cb0ef41Sopenharmony_ci    ]
52711cb0ef41Sopenharmony_ci
52721cb0ef41Sopenharmony_ci    libs = [ "dl" ]
52731cb0ef41Sopenharmony_ci  } else if (is_android) {
52741cb0ef41Sopenharmony_ci    if (current_toolchain == host_toolchain) {
52751cb0ef41Sopenharmony_ci      libs = [
52761cb0ef41Sopenharmony_ci        "dl",
52771cb0ef41Sopenharmony_ci        "rt",
52781cb0ef41Sopenharmony_ci      ]
52791cb0ef41Sopenharmony_ci      if (host_os == "mac") {
52801cb0ef41Sopenharmony_ci        sources += [
52811cb0ef41Sopenharmony_ci          "src/base/debug/stack_trace_posix.cc",
52821cb0ef41Sopenharmony_ci          "src/base/platform/platform-darwin.cc",
52831cb0ef41Sopenharmony_ci          "src/base/platform/platform-macos.cc",
52841cb0ef41Sopenharmony_ci        ]
52851cb0ef41Sopenharmony_ci      } else {
52861cb0ef41Sopenharmony_ci        sources += [
52871cb0ef41Sopenharmony_ci          "src/base/debug/stack_trace_posix.cc",
52881cb0ef41Sopenharmony_ci          "src/base/platform/platform-linux.cc",
52891cb0ef41Sopenharmony_ci        ]
52901cb0ef41Sopenharmony_ci      }
52911cb0ef41Sopenharmony_ci    } else {
52921cb0ef41Sopenharmony_ci      sources += [
52931cb0ef41Sopenharmony_ci        "src/base/debug/stack_trace_android.cc",
52941cb0ef41Sopenharmony_ci        "src/base/platform/platform-linux.cc",
52951cb0ef41Sopenharmony_ci      ]
52961cb0ef41Sopenharmony_ci    }
52971cb0ef41Sopenharmony_ci  } else if (is_fuchsia) {
52981cb0ef41Sopenharmony_ci    sources += [
52991cb0ef41Sopenharmony_ci      "src/base/debug/stack_trace_fuchsia.cc",
53001cb0ef41Sopenharmony_ci      "src/base/platform/platform-fuchsia.cc",
53011cb0ef41Sopenharmony_ci    ]
53021cb0ef41Sopenharmony_ci    deps += [
53031cb0ef41Sopenharmony_ci      "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.kernel",
53041cb0ef41Sopenharmony_ci      "//third_party/fuchsia-sdk/sdk/pkg/fdio",
53051cb0ef41Sopenharmony_ci      "//third_party/fuchsia-sdk/sdk/pkg/zx",
53061cb0ef41Sopenharmony_ci    ]
53071cb0ef41Sopenharmony_ci  } else if (is_mac) {
53081cb0ef41Sopenharmony_ci    sources += [
53091cb0ef41Sopenharmony_ci      "src/base/debug/stack_trace_posix.cc",
53101cb0ef41Sopenharmony_ci      "src/base/platform/platform-darwin.cc",
53111cb0ef41Sopenharmony_ci      "src/base/platform/platform-macos.cc",
53121cb0ef41Sopenharmony_ci    ]
53131cb0ef41Sopenharmony_ci  } else if (is_ios) {
53141cb0ef41Sopenharmony_ci    sources += [
53151cb0ef41Sopenharmony_ci      "src/base/debug/stack_trace_posix.cc",
53161cb0ef41Sopenharmony_ci      "src/base/platform/platform-darwin.cc",
53171cb0ef41Sopenharmony_ci    ]
53181cb0ef41Sopenharmony_ci  } else if (is_win) {
53191cb0ef41Sopenharmony_ci    # TODO(infra): Add support for cygwin.
53201cb0ef41Sopenharmony_ci    sources += [
53211cb0ef41Sopenharmony_ci      "src/base/debug/stack_trace_win.cc",
53221cb0ef41Sopenharmony_ci      "src/base/platform/platform-win32.cc",
53231cb0ef41Sopenharmony_ci      "src/base/win32-headers.h",
53241cb0ef41Sopenharmony_ci    ]
53251cb0ef41Sopenharmony_ci
53261cb0ef41Sopenharmony_ci    defines += [ "_CRT_RAND_S" ]  # for rand_s()
53271cb0ef41Sopenharmony_ci
53281cb0ef41Sopenharmony_ci    libs = [
53291cb0ef41Sopenharmony_ci      "dbghelp.lib",
53301cb0ef41Sopenharmony_ci      "winmm.lib",
53311cb0ef41Sopenharmony_ci      "ws2_32.lib",
53321cb0ef41Sopenharmony_ci    ]
53331cb0ef41Sopenharmony_ci
53341cb0ef41Sopenharmony_ci    if (v8_enable_system_instrumentation) {
53351cb0ef41Sopenharmony_ci      libs += [ "advapi32.lib" ]  # Needed for TraceLoggingProvider.h
53361cb0ef41Sopenharmony_ci    }
53371cb0ef41Sopenharmony_ci
53381cb0ef41Sopenharmony_ci    data_deps += [ "//build/win:runtime_libs" ]
53391cb0ef41Sopenharmony_ci  }
53401cb0ef41Sopenharmony_ci
53411cb0ef41Sopenharmony_ci  if (v8_current_cpu == "mips" || v8_current_cpu == "mips64") {
53421cb0ef41Sopenharmony_ci    # Add runtime libs for mips.
53431cb0ef41Sopenharmony_ci    data += [
53441cb0ef41Sopenharmony_ci      "tools/mips_toolchain/sysroot/usr/lib/",
53451cb0ef41Sopenharmony_ci      "tools/mips_toolchain/mips-mti-linux-gnu/lib",
53461cb0ef41Sopenharmony_ci    ]
53471cb0ef41Sopenharmony_ci  }
53481cb0ef41Sopenharmony_ci
53491cb0ef41Sopenharmony_ci  if (is_ubsan && (v8_current_cpu == "x86" || v8_current_cpu == "arm" ||
53501cb0ef41Sopenharmony_ci                   v8_current_cpu == "mips")) {
53511cb0ef41Sopenharmony_ci    # Special UBSan 32-bit requirement.
53521cb0ef41Sopenharmony_ci    sources += [ "src/base/ubsan.cc" ]
53531cb0ef41Sopenharmony_ci  }
53541cb0ef41Sopenharmony_ci
53551cb0ef41Sopenharmony_ci  if (v8_current_cpu == "riscv64") {
53561cb0ef41Sopenharmony_ci    libs += [ "atomic" ]
53571cb0ef41Sopenharmony_ci  }
53581cb0ef41Sopenharmony_ci
53591cb0ef41Sopenharmony_ci  if (is_tsan && !build_with_chromium) {
53601cb0ef41Sopenharmony_ci    data += [ "tools/sanitizers/tsan_suppressions.txt" ]
53611cb0ef41Sopenharmony_ci  }
53621cb0ef41Sopenharmony_ci
53631cb0ef41Sopenharmony_ci  if (using_sanitizer && !build_with_chromium) {
53641cb0ef41Sopenharmony_ci    data_deps +=
53651cb0ef41Sopenharmony_ci        [ "//build/config/clang:llvm-symbolizer_data($host_toolchain)" ]
53661cb0ef41Sopenharmony_ci  }
53671cb0ef41Sopenharmony_ci
53681cb0ef41Sopenharmony_ci  # TODO(infra): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
53691cb0ef41Sopenharmony_ci}
53701cb0ef41Sopenharmony_ci
53711cb0ef41Sopenharmony_civ8_component("v8_libplatform") {
53721cb0ef41Sopenharmony_ci  sources = [
53731cb0ef41Sopenharmony_ci    "//base/trace_event/common/trace_event_common.h",
53741cb0ef41Sopenharmony_ci    "include/libplatform/libplatform-export.h",
53751cb0ef41Sopenharmony_ci    "include/libplatform/libplatform.h",
53761cb0ef41Sopenharmony_ci    "include/libplatform/v8-tracing.h",
53771cb0ef41Sopenharmony_ci    "src/libplatform/default-foreground-task-runner.cc",
53781cb0ef41Sopenharmony_ci    "src/libplatform/default-foreground-task-runner.h",
53791cb0ef41Sopenharmony_ci    "src/libplatform/default-job.cc",
53801cb0ef41Sopenharmony_ci    "src/libplatform/default-job.h",
53811cb0ef41Sopenharmony_ci    "src/libplatform/default-platform.cc",
53821cb0ef41Sopenharmony_ci    "src/libplatform/default-platform.h",
53831cb0ef41Sopenharmony_ci    "src/libplatform/default-worker-threads-task-runner.cc",
53841cb0ef41Sopenharmony_ci    "src/libplatform/default-worker-threads-task-runner.h",
53851cb0ef41Sopenharmony_ci    "src/libplatform/delayed-task-queue.cc",
53861cb0ef41Sopenharmony_ci    "src/libplatform/delayed-task-queue.h",
53871cb0ef41Sopenharmony_ci    "src/libplatform/task-queue.cc",
53881cb0ef41Sopenharmony_ci    "src/libplatform/task-queue.h",
53891cb0ef41Sopenharmony_ci    "src/libplatform/tracing/trace-buffer.cc",
53901cb0ef41Sopenharmony_ci    "src/libplatform/tracing/trace-buffer.h",
53911cb0ef41Sopenharmony_ci    "src/libplatform/tracing/trace-config.cc",
53921cb0ef41Sopenharmony_ci    "src/libplatform/tracing/trace-object.cc",
53931cb0ef41Sopenharmony_ci    "src/libplatform/tracing/trace-writer.cc",
53941cb0ef41Sopenharmony_ci    "src/libplatform/tracing/trace-writer.h",
53951cb0ef41Sopenharmony_ci    "src/libplatform/tracing/tracing-controller.cc",
53961cb0ef41Sopenharmony_ci    "src/libplatform/worker-thread.cc",
53971cb0ef41Sopenharmony_ci    "src/libplatform/worker-thread.h",
53981cb0ef41Sopenharmony_ci  ]
53991cb0ef41Sopenharmony_ci
54001cb0ef41Sopenharmony_ci  configs = [ ":internal_config_base" ]
54011cb0ef41Sopenharmony_ci
54021cb0ef41Sopenharmony_ci  if (is_component_build) {
54031cb0ef41Sopenharmony_ci    defines = [ "BUILDING_V8_PLATFORM_SHARED" ]
54041cb0ef41Sopenharmony_ci  }
54051cb0ef41Sopenharmony_ci
54061cb0ef41Sopenharmony_ci  public_configs = [ ":libplatform_config" ]
54071cb0ef41Sopenharmony_ci
54081cb0ef41Sopenharmony_ci  public_deps = []
54091cb0ef41Sopenharmony_ci
54101cb0ef41Sopenharmony_ci  deps = [
54111cb0ef41Sopenharmony_ci    ":v8_config_headers",
54121cb0ef41Sopenharmony_ci    ":v8_libbase",
54131cb0ef41Sopenharmony_ci    ":v8_tracing",
54141cb0ef41Sopenharmony_ci  ]
54151cb0ef41Sopenharmony_ci
54161cb0ef41Sopenharmony_ci  if (v8_use_perfetto) {
54171cb0ef41Sopenharmony_ci    sources -= [
54181cb0ef41Sopenharmony_ci      "//base/trace_event/common/trace_event_common.h",
54191cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-buffer.cc",
54201cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-buffer.h",
54211cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-object.cc",
54221cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-writer.cc",
54231cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-writer.h",
54241cb0ef41Sopenharmony_ci    ]
54251cb0ef41Sopenharmony_ci    sources += [
54261cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-event-listener.cc",
54271cb0ef41Sopenharmony_ci      "src/libplatform/tracing/trace-event-listener.h",
54281cb0ef41Sopenharmony_ci    ]
54291cb0ef41Sopenharmony_ci    deps += [
54301cb0ef41Sopenharmony_ci      # TODO(skyostil): Switch TraceEventListener to protozero.
54311cb0ef41Sopenharmony_ci      "//third_party/perfetto/protos/perfetto/trace:lite",
54321cb0ef41Sopenharmony_ci    ]
54331cb0ef41Sopenharmony_ci  }
54341cb0ef41Sopenharmony_ci
54351cb0ef41Sopenharmony_ci  if (v8_enable_system_instrumentation) {
54361cb0ef41Sopenharmony_ci    sources += [ "src/libplatform/tracing/recorder.h" ]
54371cb0ef41Sopenharmony_ci    if (is_mac) {
54381cb0ef41Sopenharmony_ci      sources += [ "src/libplatform/tracing/recorder-mac.cc" ]
54391cb0ef41Sopenharmony_ci    } else if (is_win) {
54401cb0ef41Sopenharmony_ci      sources += [ "src/libplatform/tracing/recorder-win.cc" ]
54411cb0ef41Sopenharmony_ci    }
54421cb0ef41Sopenharmony_ci  }
54431cb0ef41Sopenharmony_ci
54441cb0ef41Sopenharmony_ci  if (v8_current_cpu == "riscv64") {
54451cb0ef41Sopenharmony_ci    libs = [ "atomic" ]
54461cb0ef41Sopenharmony_ci  }
54471cb0ef41Sopenharmony_ci}
54481cb0ef41Sopenharmony_ci
54491cb0ef41Sopenharmony_civ8_source_set("fuzzer_support") {
54501cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
54511cb0ef41Sopenharmony_ci
54521cb0ef41Sopenharmony_ci  sources = [
54531cb0ef41Sopenharmony_ci    "test/fuzzer/fuzzer-support.cc",
54541cb0ef41Sopenharmony_ci    "test/fuzzer/fuzzer-support.h",
54551cb0ef41Sopenharmony_ci  ]
54561cb0ef41Sopenharmony_ci
54571cb0ef41Sopenharmony_ci  configs = [ ":internal_config_base" ]
54581cb0ef41Sopenharmony_ci
54591cb0ef41Sopenharmony_ci  public_deps = [
54601cb0ef41Sopenharmony_ci    ":v8",
54611cb0ef41Sopenharmony_ci    ":v8_libbase",
54621cb0ef41Sopenharmony_ci    ":v8_libplatform",
54631cb0ef41Sopenharmony_ci    ":v8_maybe_icu",
54641cb0ef41Sopenharmony_ci  ]
54651cb0ef41Sopenharmony_ci}
54661cb0ef41Sopenharmony_ci
54671cb0ef41Sopenharmony_civ8_source_set("v8_bigint") {
54681cb0ef41Sopenharmony_ci  sources = [
54691cb0ef41Sopenharmony_ci    "src/bigint/bigint-internal.cc",
54701cb0ef41Sopenharmony_ci    "src/bigint/bigint-internal.h",
54711cb0ef41Sopenharmony_ci    "src/bigint/bigint.h",
54721cb0ef41Sopenharmony_ci    "src/bigint/bitwise.cc",
54731cb0ef41Sopenharmony_ci    "src/bigint/digit-arithmetic.h",
54741cb0ef41Sopenharmony_ci    "src/bigint/div-burnikel.cc",
54751cb0ef41Sopenharmony_ci    "src/bigint/div-helpers.cc",
54761cb0ef41Sopenharmony_ci    "src/bigint/div-helpers.h",
54771cb0ef41Sopenharmony_ci    "src/bigint/div-schoolbook.cc",
54781cb0ef41Sopenharmony_ci    "src/bigint/fromstring.cc",
54791cb0ef41Sopenharmony_ci    "src/bigint/mul-karatsuba.cc",
54801cb0ef41Sopenharmony_ci    "src/bigint/mul-schoolbook.cc",
54811cb0ef41Sopenharmony_ci    "src/bigint/tostring.cc",
54821cb0ef41Sopenharmony_ci    "src/bigint/util.h",
54831cb0ef41Sopenharmony_ci    "src/bigint/vector-arithmetic.cc",
54841cb0ef41Sopenharmony_ci    "src/bigint/vector-arithmetic.h",
54851cb0ef41Sopenharmony_ci  ]
54861cb0ef41Sopenharmony_ci
54871cb0ef41Sopenharmony_ci  if (v8_advanced_bigint_algorithms) {
54881cb0ef41Sopenharmony_ci    sources += [
54891cb0ef41Sopenharmony_ci      "src/bigint/div-barrett.cc",
54901cb0ef41Sopenharmony_ci      "src/bigint/mul-fft.cc",
54911cb0ef41Sopenharmony_ci      "src/bigint/mul-toom.cc",
54921cb0ef41Sopenharmony_ci    ]
54931cb0ef41Sopenharmony_ci  }
54941cb0ef41Sopenharmony_ci
54951cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
54961cb0ef41Sopenharmony_ci}
54971cb0ef41Sopenharmony_ci
54981cb0ef41Sopenharmony_civ8_source_set("v8_heap_base_headers") {
54991cb0ef41Sopenharmony_ci  sources = [
55001cb0ef41Sopenharmony_ci    "src/heap/base/active-system-pages.h",
55011cb0ef41Sopenharmony_ci    "src/heap/base/stack.h",
55021cb0ef41Sopenharmony_ci    "src/heap/base/worklist.h",
55031cb0ef41Sopenharmony_ci  ]
55041cb0ef41Sopenharmony_ci
55051cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
55061cb0ef41Sopenharmony_ci
55071cb0ef41Sopenharmony_ci  public_deps = [ ":v8_libbase" ]
55081cb0ef41Sopenharmony_ci}
55091cb0ef41Sopenharmony_ci
55101cb0ef41Sopenharmony_civ8_source_set("v8_heap_base") {
55111cb0ef41Sopenharmony_ci  sources = [
55121cb0ef41Sopenharmony_ci    "src/heap/base/active-system-pages.cc",
55131cb0ef41Sopenharmony_ci    "src/heap/base/stack.cc",
55141cb0ef41Sopenharmony_ci    "src/heap/base/worklist.cc",
55151cb0ef41Sopenharmony_ci  ]
55161cb0ef41Sopenharmony_ci
55171cb0ef41Sopenharmony_ci  if (is_clang || !is_win) {
55181cb0ef41Sopenharmony_ci    if (current_cpu == "x64") {
55191cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/x64/push_registers_asm.cc" ]
55201cb0ef41Sopenharmony_ci    } else if (current_cpu == "x86") {
55211cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/ia32/push_registers_asm.cc" ]
55221cb0ef41Sopenharmony_ci    } else if (current_cpu == "arm") {
55231cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/arm/push_registers_asm.cc" ]
55241cb0ef41Sopenharmony_ci    } else if (current_cpu == "arm64") {
55251cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/arm64/push_registers_asm.cc" ]
55261cb0ef41Sopenharmony_ci    } else if (current_cpu == "ppc64") {
55271cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/ppc/push_registers_asm.cc" ]
55281cb0ef41Sopenharmony_ci    } else if (current_cpu == "s390x") {
55291cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/s390/push_registers_asm.cc" ]
55301cb0ef41Sopenharmony_ci    } else if (current_cpu == "mipsel") {
55311cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/mips/push_registers_asm.cc" ]
55321cb0ef41Sopenharmony_ci    } else if (current_cpu == "mips64el") {
55331cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/mips64/push_registers_asm.cc" ]
55341cb0ef41Sopenharmony_ci    } else if (current_cpu == "loong64") {
55351cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/loong64/push_registers_asm.cc" ]
55361cb0ef41Sopenharmony_ci    } else if (current_cpu == "riscv64") {
55371cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/riscv64/push_registers_asm.cc" ]
55381cb0ef41Sopenharmony_ci    }
55391cb0ef41Sopenharmony_ci  } else if (is_win) {
55401cb0ef41Sopenharmony_ci    if (current_cpu == "x64") {
55411cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/x64/push_registers_masm.S" ]
55421cb0ef41Sopenharmony_ci    } else if (current_cpu == "x86") {
55431cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/ia32/push_registers_masm.S" ]
55441cb0ef41Sopenharmony_ci    } else if (current_cpu == "arm64") {
55451cb0ef41Sopenharmony_ci      sources += [ "src/heap/base/asm/arm64/push_registers_masm.S" ]
55461cb0ef41Sopenharmony_ci    }
55471cb0ef41Sopenharmony_ci  }
55481cb0ef41Sopenharmony_ci
55491cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
55501cb0ef41Sopenharmony_ci
55511cb0ef41Sopenharmony_ci  public_deps = [
55521cb0ef41Sopenharmony_ci    ":v8_heap_base_headers",
55531cb0ef41Sopenharmony_ci    ":v8_libbase",
55541cb0ef41Sopenharmony_ci  ]
55551cb0ef41Sopenharmony_ci}
55561cb0ef41Sopenharmony_ci
55571cb0ef41Sopenharmony_ci# This is split out to be a non-code containing target that the Chromium browser
55581cb0ef41Sopenharmony_ci# can depend upon to get basic cppgc types.
55591cb0ef41Sopenharmony_civ8_header_set("cppgc_headers") {
55601cb0ef41Sopenharmony_ci  configs = [ ":internal_config" ]
55611cb0ef41Sopenharmony_ci  public_configs = [
55621cb0ef41Sopenharmony_ci    ":v8_header_features",
55631cb0ef41Sopenharmony_ci    ":cppgc_header_features",
55641cb0ef41Sopenharmony_ci  ]
55651cb0ef41Sopenharmony_ci
55661cb0ef41Sopenharmony_ci  sources = [
55671cb0ef41Sopenharmony_ci    "include/cppgc/allocation.h",
55681cb0ef41Sopenharmony_ci    "include/cppgc/common.h",
55691cb0ef41Sopenharmony_ci    "include/cppgc/cross-thread-persistent.h",
55701cb0ef41Sopenharmony_ci    "include/cppgc/custom-space.h",
55711cb0ef41Sopenharmony_ci    "include/cppgc/default-platform.h",
55721cb0ef41Sopenharmony_ci    "include/cppgc/ephemeron-pair.h",
55731cb0ef41Sopenharmony_ci    "include/cppgc/explicit-management.h",
55741cb0ef41Sopenharmony_ci    "include/cppgc/garbage-collected.h",
55751cb0ef41Sopenharmony_ci    "include/cppgc/heap-consistency.h",
55761cb0ef41Sopenharmony_ci    "include/cppgc/heap-state.h",
55771cb0ef41Sopenharmony_ci    "include/cppgc/heap-statistics.h",
55781cb0ef41Sopenharmony_ci    "include/cppgc/heap.h",
55791cb0ef41Sopenharmony_ci    "include/cppgc/internal/api-constants.h",
55801cb0ef41Sopenharmony_ci    "include/cppgc/internal/atomic-entry-flag.h",
55811cb0ef41Sopenharmony_ci    "include/cppgc/internal/compiler-specific.h",
55821cb0ef41Sopenharmony_ci    "include/cppgc/internal/finalizer-trait.h",
55831cb0ef41Sopenharmony_ci    "include/cppgc/internal/gc-info.h",
55841cb0ef41Sopenharmony_ci    "include/cppgc/internal/name-trait.h",
55851cb0ef41Sopenharmony_ci    "include/cppgc/internal/persistent-node.h",
55861cb0ef41Sopenharmony_ci    "include/cppgc/internal/pointer-policies.h",
55871cb0ef41Sopenharmony_ci    "include/cppgc/internal/write-barrier.h",
55881cb0ef41Sopenharmony_ci    "include/cppgc/liveness-broker.h",
55891cb0ef41Sopenharmony_ci    "include/cppgc/macros.h",
55901cb0ef41Sopenharmony_ci    "include/cppgc/member.h",
55911cb0ef41Sopenharmony_ci    "include/cppgc/name-provider.h",
55921cb0ef41Sopenharmony_ci    "include/cppgc/object-size-trait.h",
55931cb0ef41Sopenharmony_ci    "include/cppgc/persistent.h",
55941cb0ef41Sopenharmony_ci    "include/cppgc/platform.h",
55951cb0ef41Sopenharmony_ci    "include/cppgc/prefinalizer.h",
55961cb0ef41Sopenharmony_ci    "include/cppgc/process-heap-statistics.h",
55971cb0ef41Sopenharmony_ci    "include/cppgc/sentinel-pointer.h",
55981cb0ef41Sopenharmony_ci    "include/cppgc/source-location.h",
55991cb0ef41Sopenharmony_ci
56001cb0ef41Sopenharmony_ci    # TODO(v8:11952): Remove the testing header here once depending on both,
56011cb0ef41Sopenharmony_ci    # //v8:v8 and //v8:v8_for_testing does not result in ODR violations.
56021cb0ef41Sopenharmony_ci    "include/cppgc/testing.h",
56031cb0ef41Sopenharmony_ci    "include/cppgc/trace-trait.h",
56041cb0ef41Sopenharmony_ci    "include/cppgc/type-traits.h",
56051cb0ef41Sopenharmony_ci    "include/cppgc/visitor.h",
56061cb0ef41Sopenharmony_ci  ]
56071cb0ef41Sopenharmony_ci
56081cb0ef41Sopenharmony_ci  if (cppgc_enable_caged_heap) {
56091cb0ef41Sopenharmony_ci    sources += [ "include/cppgc/internal/caged-heap-local-data.h" ]
56101cb0ef41Sopenharmony_ci  }
56111cb0ef41Sopenharmony_ci
56121cb0ef41Sopenharmony_ci  deps = [
56131cb0ef41Sopenharmony_ci    ":v8_libbase",
56141cb0ef41Sopenharmony_ci    ":v8_libplatform",
56151cb0ef41Sopenharmony_ci  ]
56161cb0ef41Sopenharmony_ci
56171cb0ef41Sopenharmony_ci  public_deps = [ ":v8_config_headers" ]
56181cb0ef41Sopenharmony_ci}
56191cb0ef41Sopenharmony_ci
56201cb0ef41Sopenharmony_civ8_source_set("cppgc_base") {
56211cb0ef41Sopenharmony_ci  visibility = [ ":*" ]
56221cb0ef41Sopenharmony_ci
56231cb0ef41Sopenharmony_ci  sources = [
56241cb0ef41Sopenharmony_ci    "src/heap/cppgc/allocation.cc",
56251cb0ef41Sopenharmony_ci    "src/heap/cppgc/compaction-worklists.cc",
56261cb0ef41Sopenharmony_ci    "src/heap/cppgc/compaction-worklists.h",
56271cb0ef41Sopenharmony_ci    "src/heap/cppgc/compactor.cc",
56281cb0ef41Sopenharmony_ci    "src/heap/cppgc/compactor.h",
56291cb0ef41Sopenharmony_ci    "src/heap/cppgc/concurrent-marker.cc",
56301cb0ef41Sopenharmony_ci    "src/heap/cppgc/concurrent-marker.h",
56311cb0ef41Sopenharmony_ci    "src/heap/cppgc/explicit-management.cc",
56321cb0ef41Sopenharmony_ci    "src/heap/cppgc/free-list.cc",
56331cb0ef41Sopenharmony_ci    "src/heap/cppgc/free-list.h",
56341cb0ef41Sopenharmony_ci    "src/heap/cppgc/garbage-collector.h",
56351cb0ef41Sopenharmony_ci    "src/heap/cppgc/gc-info-table.cc",
56361cb0ef41Sopenharmony_ci    "src/heap/cppgc/gc-info-table.h",
56371cb0ef41Sopenharmony_ci    "src/heap/cppgc/gc-info.cc",
56381cb0ef41Sopenharmony_ci    "src/heap/cppgc/gc-invoker.cc",
56391cb0ef41Sopenharmony_ci    "src/heap/cppgc/gc-invoker.h",
56401cb0ef41Sopenharmony_ci    "src/heap/cppgc/globals.h",
56411cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-base.cc",
56421cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-base.h",
56431cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-consistency.cc",
56441cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-growing.cc",
56451cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-growing.h",
56461cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-object-header.cc",
56471cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-object-header.h",
56481cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-page.cc",
56491cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-page.h",
56501cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-space.cc",
56511cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-space.h",
56521cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-state.cc",
56531cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-statistics-collector.cc",
56541cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-statistics-collector.h",
56551cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap-visitor.h",
56561cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap.cc",
56571cb0ef41Sopenharmony_ci    "src/heap/cppgc/heap.h",
56581cb0ef41Sopenharmony_ci    "src/heap/cppgc/incremental-marking-schedule.cc",
56591cb0ef41Sopenharmony_ci    "src/heap/cppgc/incremental-marking-schedule.h",
56601cb0ef41Sopenharmony_ci    "src/heap/cppgc/liveness-broker.cc",
56611cb0ef41Sopenharmony_ci    "src/heap/cppgc/liveness-broker.h",
56621cb0ef41Sopenharmony_ci    "src/heap/cppgc/logging.cc",
56631cb0ef41Sopenharmony_ci    "src/heap/cppgc/marker.cc",
56641cb0ef41Sopenharmony_ci    "src/heap/cppgc/marker.h",
56651cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-state.cc",
56661cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-state.h",
56671cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-verifier.cc",
56681cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-verifier.h",
56691cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-visitor.cc",
56701cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-visitor.h",
56711cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-worklists.cc",
56721cb0ef41Sopenharmony_ci    "src/heap/cppgc/marking-worklists.h",
56731cb0ef41Sopenharmony_ci    "src/heap/cppgc/memory.cc",
56741cb0ef41Sopenharmony_ci    "src/heap/cppgc/memory.h",
56751cb0ef41Sopenharmony_ci    "src/heap/cppgc/metric-recorder.h",
56761cb0ef41Sopenharmony_ci    "src/heap/cppgc/name-trait.cc",
56771cb0ef41Sopenharmony_ci    "src/heap/cppgc/object-allocator.cc",
56781cb0ef41Sopenharmony_ci    "src/heap/cppgc/object-allocator.h",
56791cb0ef41Sopenharmony_ci    "src/heap/cppgc/object-poisoner.h",
56801cb0ef41Sopenharmony_ci    "src/heap/cppgc/object-size-trait.cc",
56811cb0ef41Sopenharmony_ci    "src/heap/cppgc/object-start-bitmap.h",
56821cb0ef41Sopenharmony_ci    "src/heap/cppgc/object-view.h",
56831cb0ef41Sopenharmony_ci    "src/heap/cppgc/page-memory.cc",
56841cb0ef41Sopenharmony_ci    "src/heap/cppgc/page-memory.h",
56851cb0ef41Sopenharmony_ci    "src/heap/cppgc/persistent-node.cc",
56861cb0ef41Sopenharmony_ci    "src/heap/cppgc/platform.cc",
56871cb0ef41Sopenharmony_ci    "src/heap/cppgc/platform.h",
56881cb0ef41Sopenharmony_ci    "src/heap/cppgc/pointer-policies.cc",
56891cb0ef41Sopenharmony_ci    "src/heap/cppgc/prefinalizer-handler.cc",
56901cb0ef41Sopenharmony_ci    "src/heap/cppgc/prefinalizer-handler.h",
56911cb0ef41Sopenharmony_ci    "src/heap/cppgc/process-heap-statistics.cc",
56921cb0ef41Sopenharmony_ci    "src/heap/cppgc/process-heap-statistics.h",
56931cb0ef41Sopenharmony_ci    "src/heap/cppgc/process-heap.cc",
56941cb0ef41Sopenharmony_ci    "src/heap/cppgc/process-heap.h",
56951cb0ef41Sopenharmony_ci    "src/heap/cppgc/raw-heap.cc",
56961cb0ef41Sopenharmony_ci    "src/heap/cppgc/raw-heap.h",
56971cb0ef41Sopenharmony_ci    "src/heap/cppgc/remembered-set.cc",
56981cb0ef41Sopenharmony_ci    "src/heap/cppgc/remembered-set.h",
56991cb0ef41Sopenharmony_ci    "src/heap/cppgc/source-location.cc",
57001cb0ef41Sopenharmony_ci    "src/heap/cppgc/stats-collector.cc",
57011cb0ef41Sopenharmony_ci    "src/heap/cppgc/stats-collector.h",
57021cb0ef41Sopenharmony_ci    "src/heap/cppgc/sweeper.cc",
57031cb0ef41Sopenharmony_ci    "src/heap/cppgc/sweeper.h",
57041cb0ef41Sopenharmony_ci    "src/heap/cppgc/task-handle.h",
57051cb0ef41Sopenharmony_ci    "src/heap/cppgc/unmarker.h",
57061cb0ef41Sopenharmony_ci
57071cb0ef41Sopenharmony_ci    # TODO(v8:11952): Remove the testing header here once depending on both,
57081cb0ef41Sopenharmony_ci    # //v8:v8 and //v8:v8_for_testing does not result in ODR violations.
57091cb0ef41Sopenharmony_ci    "src/heap/cppgc/testing.cc",
57101cb0ef41Sopenharmony_ci    "src/heap/cppgc/trace-event.h",
57111cb0ef41Sopenharmony_ci    "src/heap/cppgc/trace-trait.cc",
57121cb0ef41Sopenharmony_ci    "src/heap/cppgc/virtual-memory.cc",
57131cb0ef41Sopenharmony_ci    "src/heap/cppgc/virtual-memory.h",
57141cb0ef41Sopenharmony_ci    "src/heap/cppgc/visitor.cc",
57151cb0ef41Sopenharmony_ci    "src/heap/cppgc/visitor.h",
57161cb0ef41Sopenharmony_ci    "src/heap/cppgc/write-barrier.cc",
57171cb0ef41Sopenharmony_ci    "src/heap/cppgc/write-barrier.h",
57181cb0ef41Sopenharmony_ci  ]
57191cb0ef41Sopenharmony_ci
57201cb0ef41Sopenharmony_ci  if (cppgc_enable_caged_heap) {
57211cb0ef41Sopenharmony_ci    sources += [
57221cb0ef41Sopenharmony_ci      "src/heap/cppgc/caged-heap-local-data.cc",
57231cb0ef41Sopenharmony_ci      "src/heap/cppgc/caged-heap.cc",
57241cb0ef41Sopenharmony_ci      "src/heap/cppgc/caged-heap.h",
57251cb0ef41Sopenharmony_ci    ]
57261cb0ef41Sopenharmony_ci  }
57271cb0ef41Sopenharmony_ci
57281cb0ef41Sopenharmony_ci  configs = [
57291cb0ef41Sopenharmony_ci    ":internal_config",
57301cb0ef41Sopenharmony_ci    ":cppgc_base_config",
57311cb0ef41Sopenharmony_ci  ]
57321cb0ef41Sopenharmony_ci
57331cb0ef41Sopenharmony_ci  public_deps = [
57341cb0ef41Sopenharmony_ci    ":cppgc_headers",
57351cb0ef41Sopenharmony_ci    ":v8_heap_base",
57361cb0ef41Sopenharmony_ci    ":v8_libbase",
57371cb0ef41Sopenharmony_ci    ":v8_libplatform",
57381cb0ef41Sopenharmony_ci  ]
57391cb0ef41Sopenharmony_ci
57401cb0ef41Sopenharmony_ci  if (cppgc_is_standalone && !v8_use_perfetto) {
57411cb0ef41Sopenharmony_ci    sources += [ "//base/trace_event/common/trace_event_common.h" ]
57421cb0ef41Sopenharmony_ci  } else {
57431cb0ef41Sopenharmony_ci    public_deps += [ ":v8_tracing" ]
57441cb0ef41Sopenharmony_ci  }
57451cb0ef41Sopenharmony_ci}
57461cb0ef41Sopenharmony_ci
57471cb0ef41Sopenharmony_ciif (v8_check_header_includes) {
57481cb0ef41Sopenharmony_ci  # This file will be generated by tools/generate-header-include-checks.py
57491cb0ef41Sopenharmony_ci  # if the "check_v8_header_includes" gclient variable is set.
57501cb0ef41Sopenharmony_ci  import("check-header-includes/sources.gni")
57511cb0ef41Sopenharmony_ci  v8_source_set("check_headers") {
57521cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
57531cb0ef41Sopenharmony_ci    sources = check_header_includes_sources
57541cb0ef41Sopenharmony_ci
57551cb0ef41Sopenharmony_ci    # Any rules that contain headers files should be added here either directly
57561cb0ef41Sopenharmony_ci    # or indirectly by including something that has it transitively in its
57571cb0ef41Sopenharmony_ci    # public_deps.
57581cb0ef41Sopenharmony_ci    deps = [
57591cb0ef41Sopenharmony_ci      ":d8",
57601cb0ef41Sopenharmony_ci      ":mksnapshot",
57611cb0ef41Sopenharmony_ci      ":torque_base",
57621cb0ef41Sopenharmony_ci      ":torque_ls_base",
57631cb0ef41Sopenharmony_ci      ":v8_base_without_compiler",
57641cb0ef41Sopenharmony_ci      ":v8_bigint",
57651cb0ef41Sopenharmony_ci      ":v8_headers",
57661cb0ef41Sopenharmony_ci      ":v8_initializers",
57671cb0ef41Sopenharmony_ci      ":v8_internal_headers",
57681cb0ef41Sopenharmony_ci      ":v8_libbase",
57691cb0ef41Sopenharmony_ci      ":v8_maybe_icu",
57701cb0ef41Sopenharmony_ci      ":v8_version",
57711cb0ef41Sopenharmony_ci      ":wee8",
57721cb0ef41Sopenharmony_ci      "src/inspector:inspector",
57731cb0ef41Sopenharmony_ci      "src/inspector:inspector_string_conversions",
57741cb0ef41Sopenharmony_ci    ]
57751cb0ef41Sopenharmony_ci  }
57761cb0ef41Sopenharmony_ci}
57771cb0ef41Sopenharmony_ci
57781cb0ef41Sopenharmony_ci###############################################################################
57791cb0ef41Sopenharmony_ci# Produce a single static library for embedders
57801cb0ef41Sopenharmony_ci#
57811cb0ef41Sopenharmony_ci
57821cb0ef41Sopenharmony_ciif (v8_monolithic) {
57831cb0ef41Sopenharmony_ci  # A component build is not monolithic.
57841cb0ef41Sopenharmony_ci  assert(!is_component_build)
57851cb0ef41Sopenharmony_ci
57861cb0ef41Sopenharmony_ci  # Using external startup data would produce separate files.
57871cb0ef41Sopenharmony_ci  assert(!v8_use_external_startup_data)
57881cb0ef41Sopenharmony_ci  v8_static_library("v8_monolith") {
57891cb0ef41Sopenharmony_ci    deps = [
57901cb0ef41Sopenharmony_ci      ":v8",
57911cb0ef41Sopenharmony_ci      ":v8_libbase",
57921cb0ef41Sopenharmony_ci      ":v8_libplatform",
57931cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
57941cb0ef41Sopenharmony_ci    ]
57951cb0ef41Sopenharmony_ci
57961cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
57971cb0ef41Sopenharmony_ci  }
57981cb0ef41Sopenharmony_ci}
57991cb0ef41Sopenharmony_ci
58001cb0ef41Sopenharmony_ciif (v8_enable_webassembly) {
58011cb0ef41Sopenharmony_ci  v8_static_library("wee8") {
58021cb0ef41Sopenharmony_ci    deps = [
58031cb0ef41Sopenharmony_ci      ":v8_base",
58041cb0ef41Sopenharmony_ci      ":v8_libbase",
58051cb0ef41Sopenharmony_ci      ":v8_libplatform",
58061cb0ef41Sopenharmony_ci      ":v8_shared_internal_headers",
58071cb0ef41Sopenharmony_ci      ":v8_snapshot",
58081cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
58091cb0ef41Sopenharmony_ci    ]
58101cb0ef41Sopenharmony_ci
58111cb0ef41Sopenharmony_ci    # TODO: v8dll-main.cc equivalent for shared library builds
58121cb0ef41Sopenharmony_ci
58131cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
58141cb0ef41Sopenharmony_ci
58151cb0ef41Sopenharmony_ci    sources = [
58161cb0ef41Sopenharmony_ci      ### gcmole(all) ###
58171cb0ef41Sopenharmony_ci      "src/wasm/c-api.cc",
58181cb0ef41Sopenharmony_ci      "src/wasm/c-api.h",
58191cb0ef41Sopenharmony_ci      "third_party/wasm-api/wasm.h",
58201cb0ef41Sopenharmony_ci      "third_party/wasm-api/wasm.hh",
58211cb0ef41Sopenharmony_ci    ]
58221cb0ef41Sopenharmony_ci  }
58231cb0ef41Sopenharmony_ci}
58241cb0ef41Sopenharmony_ci
58251cb0ef41Sopenharmony_ci###############################################################################
58261cb0ef41Sopenharmony_ci# Executables
58271cb0ef41Sopenharmony_ci#
58281cb0ef41Sopenharmony_ci
58291cb0ef41Sopenharmony_ciif (current_toolchain == v8_generator_toolchain) {
58301cb0ef41Sopenharmony_ci  v8_executable("bytecode_builtins_list_generator") {
58311cb0ef41Sopenharmony_ci    visibility = [ ":*" ]  # Only targets in this file can depend on this.
58321cb0ef41Sopenharmony_ci
58331cb0ef41Sopenharmony_ci    include_dirs = [ "." ]
58341cb0ef41Sopenharmony_ci
58351cb0ef41Sopenharmony_ci    sources = [
58361cb0ef41Sopenharmony_ci      "src/builtins/generate-bytecodes-builtins-list.cc",
58371cb0ef41Sopenharmony_ci      "src/interpreter/bytecode-operands.cc",
58381cb0ef41Sopenharmony_ci      "src/interpreter/bytecode-operands.h",
58391cb0ef41Sopenharmony_ci      "src/interpreter/bytecode-traits.h",
58401cb0ef41Sopenharmony_ci      "src/interpreter/bytecodes.cc",
58411cb0ef41Sopenharmony_ci      "src/interpreter/bytecodes.h",
58421cb0ef41Sopenharmony_ci    ]
58431cb0ef41Sopenharmony_ci
58441cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
58451cb0ef41Sopenharmony_ci
58461cb0ef41Sopenharmony_ci    deps = [
58471cb0ef41Sopenharmony_ci      ":v8_libbase",
58481cb0ef41Sopenharmony_ci      ":v8_shared_internal_headers",
58491cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
58501cb0ef41Sopenharmony_ci    ]
58511cb0ef41Sopenharmony_ci  }
58521cb0ef41Sopenharmony_ci}
58531cb0ef41Sopenharmony_ci
58541cb0ef41Sopenharmony_ciif (current_toolchain == v8_snapshot_toolchain) {
58551cb0ef41Sopenharmony_ci  v8_executable("mksnapshot") {
58561cb0ef41Sopenharmony_ci    visibility = [ ":*" ]  # Only targets in this file can depend on this.
58571cb0ef41Sopenharmony_ci
58581cb0ef41Sopenharmony_ci    sources = [
58591cb0ef41Sopenharmony_ci      "src/snapshot/embedded/embedded-empty.cc",
58601cb0ef41Sopenharmony_ci      "src/snapshot/embedded/embedded-file-writer.cc",
58611cb0ef41Sopenharmony_ci      "src/snapshot/embedded/embedded-file-writer.h",
58621cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-aix.cc",
58631cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-aix.h",
58641cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-base.cc",
58651cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-base.h",
58661cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-generic.cc",
58671cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-generic.h",
58681cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-mac.cc",
58691cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-mac.h",
58701cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-win.cc",
58711cb0ef41Sopenharmony_ci      "src/snapshot/embedded/platform-embedded-file-writer-win.h",
58721cb0ef41Sopenharmony_ci      "src/snapshot/mksnapshot.cc",
58731cb0ef41Sopenharmony_ci      "src/snapshot/snapshot-empty.cc",
58741cb0ef41Sopenharmony_ci    ]
58751cb0ef41Sopenharmony_ci
58761cb0ef41Sopenharmony_ci    if (v8_control_flow_integrity) {
58771cb0ef41Sopenharmony_ci      sources += [ "src/deoptimizer/deoptimizer-cfi-empty.cc" ]
58781cb0ef41Sopenharmony_ci    }
58791cb0ef41Sopenharmony_ci
58801cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
58811cb0ef41Sopenharmony_ci
58821cb0ef41Sopenharmony_ci    deps = [
58831cb0ef41Sopenharmony_ci      ":v8_base_without_compiler",
58841cb0ef41Sopenharmony_ci      ":v8_compiler_for_mksnapshot",
58851cb0ef41Sopenharmony_ci      ":v8_init",
58861cb0ef41Sopenharmony_ci      ":v8_libbase",
58871cb0ef41Sopenharmony_ci      ":v8_libplatform",
58881cb0ef41Sopenharmony_ci      ":v8_maybe_icu",
58891cb0ef41Sopenharmony_ci      ":v8_shared_internal_headers",
58901cb0ef41Sopenharmony_ci      ":v8_tracing",
58911cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
58921cb0ef41Sopenharmony_ci    ]
58931cb0ef41Sopenharmony_ci  }
58941cb0ef41Sopenharmony_ci}
58951cb0ef41Sopenharmony_ci
58961cb0ef41Sopenharmony_ciif (current_toolchain == v8_snapshot_toolchain) {
58971cb0ef41Sopenharmony_ci  v8_executable("torque") {
58981cb0ef41Sopenharmony_ci    visibility = [ ":*" ]  # Only targets in this file can depend on this.
58991cb0ef41Sopenharmony_ci
59001cb0ef41Sopenharmony_ci    sources = [ "src/torque/torque.cc" ]
59011cb0ef41Sopenharmony_ci
59021cb0ef41Sopenharmony_ci    deps = [
59031cb0ef41Sopenharmony_ci      ":torque_base",
59041cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
59051cb0ef41Sopenharmony_ci    ]
59061cb0ef41Sopenharmony_ci
59071cb0ef41Sopenharmony_ci    # The use of exceptions for Torque in violation of the Chromium style-guide
59081cb0ef41Sopenharmony_ci    # is justified by the fact that it is only used from the non-essential
59091cb0ef41Sopenharmony_ci    # language server and can be removed anytime if it causes problems.
59101cb0ef41Sopenharmony_ci    configs = [
59111cb0ef41Sopenharmony_ci      ":internal_config",
59121cb0ef41Sopenharmony_ci      "//build/config/compiler:exceptions",
59131cb0ef41Sopenharmony_ci      "//build/config/compiler:rtti",
59141cb0ef41Sopenharmony_ci    ]
59151cb0ef41Sopenharmony_ci
59161cb0ef41Sopenharmony_ci    remove_configs = [
59171cb0ef41Sopenharmony_ci      "//build/config/compiler:no_exceptions",
59181cb0ef41Sopenharmony_ci      "//build/config/compiler:no_rtti",
59191cb0ef41Sopenharmony_ci    ]
59201cb0ef41Sopenharmony_ci
59211cb0ef41Sopenharmony_ci    if (is_win && is_asan) {
59221cb0ef41Sopenharmony_ci      remove_configs += [ "//build/config/sanitizers:default_sanitizer_flags" ]
59231cb0ef41Sopenharmony_ci    }
59241cb0ef41Sopenharmony_ci  }
59251cb0ef41Sopenharmony_ci}
59261cb0ef41Sopenharmony_ci
59271cb0ef41Sopenharmony_civ8_executable("torque-language-server") {
59281cb0ef41Sopenharmony_ci  visibility = [ ":*" ]  # Only targets in this file can depend on this.
59291cb0ef41Sopenharmony_ci
59301cb0ef41Sopenharmony_ci  sources = [ "src/torque/ls/torque-language-server.cc" ]
59311cb0ef41Sopenharmony_ci
59321cb0ef41Sopenharmony_ci  deps = [
59331cb0ef41Sopenharmony_ci    ":torque_base",
59341cb0ef41Sopenharmony_ci    ":torque_ls_base",
59351cb0ef41Sopenharmony_ci    "//build/win:default_exe_manifest",
59361cb0ef41Sopenharmony_ci  ]
59371cb0ef41Sopenharmony_ci
59381cb0ef41Sopenharmony_ci  # The use of exceptions for Torque in violation of the Chromium style-guide
59391cb0ef41Sopenharmony_ci  # is justified by the fact that it is only used from the non-essential
59401cb0ef41Sopenharmony_ci  # language server and can be removed anytime if it causes problems.
59411cb0ef41Sopenharmony_ci  configs = [
59421cb0ef41Sopenharmony_ci    ":internal_config",
59431cb0ef41Sopenharmony_ci    "//build/config/compiler:exceptions",
59441cb0ef41Sopenharmony_ci    "//build/config/compiler:rtti",
59451cb0ef41Sopenharmony_ci  ]
59461cb0ef41Sopenharmony_ci
59471cb0ef41Sopenharmony_ci  remove_configs = [
59481cb0ef41Sopenharmony_ci    "//build/config/compiler:no_exceptions",
59491cb0ef41Sopenharmony_ci    "//build/config/compiler:no_rtti",
59501cb0ef41Sopenharmony_ci  ]
59511cb0ef41Sopenharmony_ci
59521cb0ef41Sopenharmony_ci  if (is_win && is_asan) {
59531cb0ef41Sopenharmony_ci    remove_configs += [ "//build/config/sanitizers:default_sanitizer_flags" ]
59541cb0ef41Sopenharmony_ci  }
59551cb0ef41Sopenharmony_ci}
59561cb0ef41Sopenharmony_ci
59571cb0ef41Sopenharmony_ciif (v8_enable_i18n_support) {
59581cb0ef41Sopenharmony_ci  if (current_toolchain == v8_generator_toolchain) {
59591cb0ef41Sopenharmony_ci    v8_executable("gen-regexp-special-case") {
59601cb0ef41Sopenharmony_ci      visibility = [ ":*" ]  # Only targets in this file can depend on this.
59611cb0ef41Sopenharmony_ci
59621cb0ef41Sopenharmony_ci      sources = [
59631cb0ef41Sopenharmony_ci        "src/regexp/gen-regexp-special-case.cc",
59641cb0ef41Sopenharmony_ci        "src/regexp/special-case.h",
59651cb0ef41Sopenharmony_ci      ]
59661cb0ef41Sopenharmony_ci
59671cb0ef41Sopenharmony_ci      deps = [
59681cb0ef41Sopenharmony_ci        ":v8_libbase",
59691cb0ef41Sopenharmony_ci        ":v8_shared_internal_headers",
59701cb0ef41Sopenharmony_ci        "//build/win:default_exe_manifest",
59711cb0ef41Sopenharmony_ci        "//third_party/icu",
59721cb0ef41Sopenharmony_ci      ]
59731cb0ef41Sopenharmony_ci
59741cb0ef41Sopenharmony_ci      configs = [ ":internal_config" ]
59751cb0ef41Sopenharmony_ci    }
59761cb0ef41Sopenharmony_ci  }
59771cb0ef41Sopenharmony_ci
59781cb0ef41Sopenharmony_ci  action("run_gen-regexp-special-case") {
59791cb0ef41Sopenharmony_ci    visibility = [ ":*" ]  # Only targets in this file can depend on this.
59801cb0ef41Sopenharmony_ci
59811cb0ef41Sopenharmony_ci    script = "tools/run.py"
59821cb0ef41Sopenharmony_ci
59831cb0ef41Sopenharmony_ci    deps = [ ":gen-regexp-special-case($v8_generator_toolchain)" ]
59841cb0ef41Sopenharmony_ci
59851cb0ef41Sopenharmony_ci    output_file = "$target_gen_dir/src/regexp/special-case.cc"
59861cb0ef41Sopenharmony_ci
59871cb0ef41Sopenharmony_ci    outputs = [ output_file ]
59881cb0ef41Sopenharmony_ci
59891cb0ef41Sopenharmony_ci    args = [
59901cb0ef41Sopenharmony_ci      "./" + rebase_path(
59911cb0ef41Sopenharmony_ci              get_label_info(
59921cb0ef41Sopenharmony_ci                      ":gen-regexp-special-case($v8_generator_toolchain)",
59931cb0ef41Sopenharmony_ci                      "root_out_dir") + "/gen-regexp-special-case",
59941cb0ef41Sopenharmony_ci              root_build_dir),
59951cb0ef41Sopenharmony_ci      rebase_path(output_file, root_build_dir),
59961cb0ef41Sopenharmony_ci    ]
59971cb0ef41Sopenharmony_ci  }
59981cb0ef41Sopenharmony_ci}
59991cb0ef41Sopenharmony_ci
60001cb0ef41Sopenharmony_ci###############################################################################
60011cb0ef41Sopenharmony_ci# Public targets
60021cb0ef41Sopenharmony_ci#
60031cb0ef41Sopenharmony_ci
60041cb0ef41Sopenharmony_ciwant_v8_shell =
60051cb0ef41Sopenharmony_ci    (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") ||
60061cb0ef41Sopenharmony_ci    (current_toolchain == v8_snapshot_toolchain &&
60071cb0ef41Sopenharmony_ci     v8_toolset_for_shell == "host") ||
60081cb0ef41Sopenharmony_ci    (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")
60091cb0ef41Sopenharmony_ci
60101cb0ef41Sopenharmony_cigroup("gn_all") {
60111cb0ef41Sopenharmony_ci  testonly = true
60121cb0ef41Sopenharmony_ci
60131cb0ef41Sopenharmony_ci  deps = [
60141cb0ef41Sopenharmony_ci    ":d8",
60151cb0ef41Sopenharmony_ci    ":v8_fuzzers",
60161cb0ef41Sopenharmony_ci    ":v8_hello_world",
60171cb0ef41Sopenharmony_ci    ":v8_sample_process",
60181cb0ef41Sopenharmony_ci    "test:gn_all",
60191cb0ef41Sopenharmony_ci    "tools:gn_all",
60201cb0ef41Sopenharmony_ci  ]
60211cb0ef41Sopenharmony_ci
60221cb0ef41Sopenharmony_ci  if (v8_custom_deps != "") {
60231cb0ef41Sopenharmony_ci    # Custom dependency from directory under v8/custom_deps.
60241cb0ef41Sopenharmony_ci    deps += [ v8_custom_deps ]
60251cb0ef41Sopenharmony_ci  }
60261cb0ef41Sopenharmony_ci
60271cb0ef41Sopenharmony_ci  if (want_v8_shell) {
60281cb0ef41Sopenharmony_ci    deps += [ ":v8_shell" ]
60291cb0ef41Sopenharmony_ci  }
60301cb0ef41Sopenharmony_ci
60311cb0ef41Sopenharmony_ci  if (v8_check_header_includes) {
60321cb0ef41Sopenharmony_ci    deps += [ ":check_headers" ]
60331cb0ef41Sopenharmony_ci  }
60341cb0ef41Sopenharmony_ci}
60351cb0ef41Sopenharmony_ci
60361cb0ef41Sopenharmony_cigroup("v8_python_base") {
60371cb0ef41Sopenharmony_ci  data = [ ".vpython" ]
60381cb0ef41Sopenharmony_ci}
60391cb0ef41Sopenharmony_ci
60401cb0ef41Sopenharmony_cigroup("v8_clusterfuzz") {
60411cb0ef41Sopenharmony_ci  testonly = true
60421cb0ef41Sopenharmony_ci
60431cb0ef41Sopenharmony_ci  deps = [
60441cb0ef41Sopenharmony_ci    ":d8",
60451cb0ef41Sopenharmony_ci    ":v8_simple_inspector_fuzzer",
60461cb0ef41Sopenharmony_ci    "tools/clusterfuzz/trials:v8_clusterfuzz_resources",
60471cb0ef41Sopenharmony_ci  ]
60481cb0ef41Sopenharmony_ci
60491cb0ef41Sopenharmony_ci  if (v8_multi_arch_build) {
60501cb0ef41Sopenharmony_ci    deps += [
60511cb0ef41Sopenharmony_ci      ":d8(//build/toolchain/linux:clang_x64)",
60521cb0ef41Sopenharmony_ci      ":d8(//build/toolchain/linux:clang_x64_v8_arm64)",
60531cb0ef41Sopenharmony_ci      ":d8(//build/toolchain/linux:clang_x86)",
60541cb0ef41Sopenharmony_ci      ":d8(//build/toolchain/linux:clang_x86_v8_arm)",
60551cb0ef41Sopenharmony_ci      ":d8(tools/clusterfuzz/foozzie/toolchain:clang_x64_pointer_compression)",
60561cb0ef41Sopenharmony_ci    ]
60571cb0ef41Sopenharmony_ci  }
60581cb0ef41Sopenharmony_ci}
60591cb0ef41Sopenharmony_ci
60601cb0ef41Sopenharmony_cigroup("v8_archive") {
60611cb0ef41Sopenharmony_ci  testonly = true
60621cb0ef41Sopenharmony_ci
60631cb0ef41Sopenharmony_ci  deps = [ ":d8" ]
60641cb0ef41Sopenharmony_ci
60651cb0ef41Sopenharmony_ci  if (!is_win) {
60661cb0ef41Sopenharmony_ci    # On windows, cctest doesn't link with v8_static_library.
60671cb0ef41Sopenharmony_ci    deps += [ "test/cctest:cctest" ]
60681cb0ef41Sopenharmony_ci  }
60691cb0ef41Sopenharmony_ci}
60701cb0ef41Sopenharmony_ci
60711cb0ef41Sopenharmony_ci# TODO(dglazkov): Remove the "!build_with_chromium" condition once this clause
60721cb0ef41Sopenharmony_ci# is removed from Chromium.
60731cb0ef41Sopenharmony_ciif (is_fuchsia && !build_with_chromium) {
60741cb0ef41Sopenharmony_ci  import("//build/config/fuchsia/rules.gni")
60751cb0ef41Sopenharmony_ci
60761cb0ef41Sopenharmony_ci  cr_fuchsia_package("d8_fuchsia_pkg") {
60771cb0ef41Sopenharmony_ci    testonly = true
60781cb0ef41Sopenharmony_ci    binary = ":d8"
60791cb0ef41Sopenharmony_ci    manifest = "gni/v8.cmx"
60801cb0ef41Sopenharmony_ci    package_name_override = "d8"
60811cb0ef41Sopenharmony_ci  }
60821cb0ef41Sopenharmony_ci
60831cb0ef41Sopenharmony_ci  fuchsia_package_runner("d8_fuchsia") {
60841cb0ef41Sopenharmony_ci    testonly = true
60851cb0ef41Sopenharmony_ci    package = ":d8_fuchsia_pkg"
60861cb0ef41Sopenharmony_ci    package_name_override = "d8"
60871cb0ef41Sopenharmony_ci  }
60881cb0ef41Sopenharmony_ci}
60891cb0ef41Sopenharmony_ci
60901cb0ef41Sopenharmony_cigroup("v8_fuzzers") {
60911cb0ef41Sopenharmony_ci  testonly = true
60921cb0ef41Sopenharmony_ci  data_deps = [
60931cb0ef41Sopenharmony_ci    ":v8_simple_inspector_fuzzer",
60941cb0ef41Sopenharmony_ci    ":v8_simple_json_fuzzer",
60951cb0ef41Sopenharmony_ci    ":v8_simple_parser_fuzzer",
60961cb0ef41Sopenharmony_ci    ":v8_simple_regexp_builtins_fuzzer",
60971cb0ef41Sopenharmony_ci    ":v8_simple_regexp_fuzzer",
60981cb0ef41Sopenharmony_ci  ]
60991cb0ef41Sopenharmony_ci
61001cb0ef41Sopenharmony_ci  if (v8_enable_webassembly) {
61011cb0ef41Sopenharmony_ci    data_deps += [
61021cb0ef41Sopenharmony_ci      ":v8_simple_multi_return_fuzzer",
61031cb0ef41Sopenharmony_ci      ":v8_simple_wasm_async_fuzzer",
61041cb0ef41Sopenharmony_ci      ":v8_simple_wasm_code_fuzzer",
61051cb0ef41Sopenharmony_ci      ":v8_simple_wasm_compile_fuzzer",
61061cb0ef41Sopenharmony_ci      ":v8_simple_wasm_fuzzer",
61071cb0ef41Sopenharmony_ci    ]
61081cb0ef41Sopenharmony_ci  }
61091cb0ef41Sopenharmony_ci}
61101cb0ef41Sopenharmony_ci
61111cb0ef41Sopenharmony_ciif (is_component_build) {
61121cb0ef41Sopenharmony_ci  v8_component("v8") {
61131cb0ef41Sopenharmony_ci    sources = [ "src/utils/v8dll-main.cc" ]
61141cb0ef41Sopenharmony_ci
61151cb0ef41Sopenharmony_ci    public_deps = [
61161cb0ef41Sopenharmony_ci      ":v8_base",
61171cb0ef41Sopenharmony_ci      ":v8_snapshot",
61181cb0ef41Sopenharmony_ci    ]
61191cb0ef41Sopenharmony_ci
61201cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
61211cb0ef41Sopenharmony_ci
61221cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
61231cb0ef41Sopenharmony_ci  }
61241cb0ef41Sopenharmony_ci
61251cb0ef41Sopenharmony_ci  v8_component("v8_for_testing") {
61261cb0ef41Sopenharmony_ci    testonly = true
61271cb0ef41Sopenharmony_ci
61281cb0ef41Sopenharmony_ci    sources = [ "src/utils/v8dll-main.cc" ]
61291cb0ef41Sopenharmony_ci
61301cb0ef41Sopenharmony_ci    public_deps = [
61311cb0ef41Sopenharmony_ci      ":torque_base",
61321cb0ef41Sopenharmony_ci      ":torque_ls_base",
61331cb0ef41Sopenharmony_ci      ":v8_base",
61341cb0ef41Sopenharmony_ci      ":v8_headers",
61351cb0ef41Sopenharmony_ci      ":v8_initializers",
61361cb0ef41Sopenharmony_ci      ":v8_snapshot",
61371cb0ef41Sopenharmony_ci    ]
61381cb0ef41Sopenharmony_ci
61391cb0ef41Sopenharmony_ci    configs = [ ":internal_config" ]
61401cb0ef41Sopenharmony_ci
61411cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
61421cb0ef41Sopenharmony_ci  }
61431cb0ef41Sopenharmony_ci
61441cb0ef41Sopenharmony_ci  v8_component("cppgc") {
61451cb0ef41Sopenharmony_ci    public_deps = [ ":cppgc_base" ]
61461cb0ef41Sopenharmony_ci
61471cb0ef41Sopenharmony_ci    if (!cppgc_is_standalone) {
61481cb0ef41Sopenharmony_ci      deps = [ ":v8" ]
61491cb0ef41Sopenharmony_ci    }
61501cb0ef41Sopenharmony_ci
61511cb0ef41Sopenharmony_ci    configs = []
61521cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
61531cb0ef41Sopenharmony_ci  }
61541cb0ef41Sopenharmony_ci
61551cb0ef41Sopenharmony_ci  if (cppgc_is_standalone) {
61561cb0ef41Sopenharmony_ci    v8_component("cppgc_for_testing") {
61571cb0ef41Sopenharmony_ci      testonly = true
61581cb0ef41Sopenharmony_ci
61591cb0ef41Sopenharmony_ci      public_deps = [ ":cppgc_base" ]
61601cb0ef41Sopenharmony_ci
61611cb0ef41Sopenharmony_ci      configs = []
61621cb0ef41Sopenharmony_ci      public_configs = [ ":external_config" ]
61631cb0ef41Sopenharmony_ci    }
61641cb0ef41Sopenharmony_ci  }
61651cb0ef41Sopenharmony_ci
61661cb0ef41Sopenharmony_ci  v8_component("v8_heap_base_for_testing") {
61671cb0ef41Sopenharmony_ci    testonly = true
61681cb0ef41Sopenharmony_ci
61691cb0ef41Sopenharmony_ci    public_deps = [ ":v8_heap_base" ]
61701cb0ef41Sopenharmony_ci
61711cb0ef41Sopenharmony_ci    configs = []
61721cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
61731cb0ef41Sopenharmony_ci  }
61741cb0ef41Sopenharmony_ci} else {
61751cb0ef41Sopenharmony_ci  group("v8") {
61761cb0ef41Sopenharmony_ci    public_deps = [
61771cb0ef41Sopenharmony_ci      ":v8_base",
61781cb0ef41Sopenharmony_ci      ":v8_snapshot",
61791cb0ef41Sopenharmony_ci    ]
61801cb0ef41Sopenharmony_ci
61811cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
61821cb0ef41Sopenharmony_ci  }
61831cb0ef41Sopenharmony_ci
61841cb0ef41Sopenharmony_ci  group("v8_for_testing") {
61851cb0ef41Sopenharmony_ci    testonly = true
61861cb0ef41Sopenharmony_ci
61871cb0ef41Sopenharmony_ci    public_deps = [
61881cb0ef41Sopenharmony_ci      ":torque_base",
61891cb0ef41Sopenharmony_ci      ":torque_ls_base",
61901cb0ef41Sopenharmony_ci      ":v8_base",
61911cb0ef41Sopenharmony_ci      ":v8_initializers",
61921cb0ef41Sopenharmony_ci      ":v8_snapshot",
61931cb0ef41Sopenharmony_ci    ]
61941cb0ef41Sopenharmony_ci
61951cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
61961cb0ef41Sopenharmony_ci  }
61971cb0ef41Sopenharmony_ci
61981cb0ef41Sopenharmony_ci  group("cppgc") {
61991cb0ef41Sopenharmony_ci    public_deps = [ ":cppgc_base" ]
62001cb0ef41Sopenharmony_ci
62011cb0ef41Sopenharmony_ci    if (!cppgc_is_standalone) {
62021cb0ef41Sopenharmony_ci      deps = [ ":v8" ]
62031cb0ef41Sopenharmony_ci    }
62041cb0ef41Sopenharmony_ci
62051cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
62061cb0ef41Sopenharmony_ci  }
62071cb0ef41Sopenharmony_ci
62081cb0ef41Sopenharmony_ci  if (cppgc_is_standalone) {
62091cb0ef41Sopenharmony_ci    group("cppgc_for_testing") {
62101cb0ef41Sopenharmony_ci      testonly = true
62111cb0ef41Sopenharmony_ci
62121cb0ef41Sopenharmony_ci      public_deps = [ ":cppgc_base" ]
62131cb0ef41Sopenharmony_ci
62141cb0ef41Sopenharmony_ci      public_configs = [ ":external_config" ]
62151cb0ef41Sopenharmony_ci    }
62161cb0ef41Sopenharmony_ci  }
62171cb0ef41Sopenharmony_ci
62181cb0ef41Sopenharmony_ci  group("v8_heap_base_for_testing") {
62191cb0ef41Sopenharmony_ci    testonly = true
62201cb0ef41Sopenharmony_ci
62211cb0ef41Sopenharmony_ci    public_deps = [ ":v8_heap_base" ]
62221cb0ef41Sopenharmony_ci
62231cb0ef41Sopenharmony_ci    public_configs = [ ":external_config" ]
62241cb0ef41Sopenharmony_ci  }
62251cb0ef41Sopenharmony_ci}
62261cb0ef41Sopenharmony_ci
62271cb0ef41Sopenharmony_civ8_executable("d8") {
62281cb0ef41Sopenharmony_ci  sources = [
62291cb0ef41Sopenharmony_ci    "src/d8/async-hooks-wrapper.cc",
62301cb0ef41Sopenharmony_ci    "src/d8/async-hooks-wrapper.h",
62311cb0ef41Sopenharmony_ci    "src/d8/d8-console.cc",
62321cb0ef41Sopenharmony_ci    "src/d8/d8-console.h",
62331cb0ef41Sopenharmony_ci    "src/d8/d8-js.cc",
62341cb0ef41Sopenharmony_ci    "src/d8/d8-platforms.cc",
62351cb0ef41Sopenharmony_ci    "src/d8/d8-platforms.h",
62361cb0ef41Sopenharmony_ci    "src/d8/d8-test.cc",
62371cb0ef41Sopenharmony_ci    "src/d8/d8.cc",
62381cb0ef41Sopenharmony_ci    "src/d8/d8.h",
62391cb0ef41Sopenharmony_ci  ]
62401cb0ef41Sopenharmony_ci
62411cb0ef41Sopenharmony_ci  if (v8_fuzzilli) {
62421cb0ef41Sopenharmony_ci    sources += [
62431cb0ef41Sopenharmony_ci      "src/d8/cov.cc",
62441cb0ef41Sopenharmony_ci      "src/d8/cov.h",
62451cb0ef41Sopenharmony_ci    ]
62461cb0ef41Sopenharmony_ci  }
62471cb0ef41Sopenharmony_ci
62481cb0ef41Sopenharmony_ci  configs = [
62491cb0ef41Sopenharmony_ci    # Note: don't use :internal_config here because this target will get
62501cb0ef41Sopenharmony_ci    # the :external_config applied to it by virtue of depending on :v8, and
62511cb0ef41Sopenharmony_ci    # you can't have both applied to the same target.
62521cb0ef41Sopenharmony_ci    ":internal_config_base",
62531cb0ef41Sopenharmony_ci    ":v8_tracing_config",
62541cb0ef41Sopenharmony_ci  ]
62551cb0ef41Sopenharmony_ci
62561cb0ef41Sopenharmony_ci  deps = [
62571cb0ef41Sopenharmony_ci    ":v8",
62581cb0ef41Sopenharmony_ci    ":v8_libbase",
62591cb0ef41Sopenharmony_ci    ":v8_libplatform",
62601cb0ef41Sopenharmony_ci    ":v8_tracing",
62611cb0ef41Sopenharmony_ci    "//build/win:default_exe_manifest",
62621cb0ef41Sopenharmony_ci  ]
62631cb0ef41Sopenharmony_ci
62641cb0ef41Sopenharmony_ci  if (is_posix || is_fuchsia) {
62651cb0ef41Sopenharmony_ci    sources += [ "src/d8/d8-posix.cc" ]
62661cb0ef41Sopenharmony_ci  } else if (is_win) {
62671cb0ef41Sopenharmony_ci    sources += [ "src/d8/d8-windows.cc" ]
62681cb0ef41Sopenharmony_ci  }
62691cb0ef41Sopenharmony_ci
62701cb0ef41Sopenharmony_ci  if (v8_correctness_fuzzer) {
62711cb0ef41Sopenharmony_ci    deps += [ "tools/clusterfuzz/foozzie:v8_correctness_fuzzer_resources" ]
62721cb0ef41Sopenharmony_ci  }
62731cb0ef41Sopenharmony_ci
62741cb0ef41Sopenharmony_ci  defines = []
62751cb0ef41Sopenharmony_ci
62761cb0ef41Sopenharmony_ci  if (v8_enable_vtunejit) {
62771cb0ef41Sopenharmony_ci    deps += [ "src/third_party/vtune:v8_vtune" ]
62781cb0ef41Sopenharmony_ci  }
62791cb0ef41Sopenharmony_ci}
62801cb0ef41Sopenharmony_ci
62811cb0ef41Sopenharmony_civ8_executable("v8_hello_world") {
62821cb0ef41Sopenharmony_ci  sources = [ "samples/hello-world.cc" ]
62831cb0ef41Sopenharmony_ci
62841cb0ef41Sopenharmony_ci  configs = [
62851cb0ef41Sopenharmony_ci    # Note: don't use :internal_config here because this target will get
62861cb0ef41Sopenharmony_ci    # the :external_config applied to it by virtue of depending on :v8, and
62871cb0ef41Sopenharmony_ci    # you can't have both applied to the same target.
62881cb0ef41Sopenharmony_ci    ":internal_config_base",
62891cb0ef41Sopenharmony_ci  ]
62901cb0ef41Sopenharmony_ci
62911cb0ef41Sopenharmony_ci  deps = [
62921cb0ef41Sopenharmony_ci    ":v8",
62931cb0ef41Sopenharmony_ci    ":v8_libbase",
62941cb0ef41Sopenharmony_ci    ":v8_libplatform",
62951cb0ef41Sopenharmony_ci    "//build/win:default_exe_manifest",
62961cb0ef41Sopenharmony_ci  ]
62971cb0ef41Sopenharmony_ci}
62981cb0ef41Sopenharmony_ci
62991cb0ef41Sopenharmony_civ8_executable("v8_sample_process") {
63001cb0ef41Sopenharmony_ci  sources = [ "samples/process.cc" ]
63011cb0ef41Sopenharmony_ci
63021cb0ef41Sopenharmony_ci  configs = [
63031cb0ef41Sopenharmony_ci    # Note: don't use :internal_config here because this target will get
63041cb0ef41Sopenharmony_ci    # the :external_config applied to it by virtue of depending on :v8, and
63051cb0ef41Sopenharmony_ci    # you can't have both applied to the same target.
63061cb0ef41Sopenharmony_ci    ":internal_config_base",
63071cb0ef41Sopenharmony_ci  ]
63081cb0ef41Sopenharmony_ci
63091cb0ef41Sopenharmony_ci  deps = [
63101cb0ef41Sopenharmony_ci    ":v8",
63111cb0ef41Sopenharmony_ci    ":v8_libbase",
63121cb0ef41Sopenharmony_ci    ":v8_libplatform",
63131cb0ef41Sopenharmony_ci    "//build/win:default_exe_manifest",
63141cb0ef41Sopenharmony_ci  ]
63151cb0ef41Sopenharmony_ci}
63161cb0ef41Sopenharmony_ci
63171cb0ef41Sopenharmony_ciif (want_v8_shell) {
63181cb0ef41Sopenharmony_ci  v8_executable("v8_shell") {
63191cb0ef41Sopenharmony_ci    sources = [ "samples/shell.cc" ]
63201cb0ef41Sopenharmony_ci
63211cb0ef41Sopenharmony_ci    configs = [
63221cb0ef41Sopenharmony_ci      # Note: don't use :internal_config here because this target will get
63231cb0ef41Sopenharmony_ci      # the :external_config applied to it by virtue of depending on :v8, and
63241cb0ef41Sopenharmony_ci      # you can't have both applied to the same target.
63251cb0ef41Sopenharmony_ci      ":internal_config_base",
63261cb0ef41Sopenharmony_ci    ]
63271cb0ef41Sopenharmony_ci
63281cb0ef41Sopenharmony_ci    deps = [
63291cb0ef41Sopenharmony_ci      ":v8",
63301cb0ef41Sopenharmony_ci      ":v8_libbase",
63311cb0ef41Sopenharmony_ci      ":v8_libplatform",
63321cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
63331cb0ef41Sopenharmony_ci    ]
63341cb0ef41Sopenharmony_ci  }
63351cb0ef41Sopenharmony_ci}
63361cb0ef41Sopenharmony_ci
63371cb0ef41Sopenharmony_civ8_executable("cppgc_hello_world") {
63381cb0ef41Sopenharmony_ci  sources = [ "samples/cppgc/hello-world.cc" ]
63391cb0ef41Sopenharmony_ci
63401cb0ef41Sopenharmony_ci  if (v8_current_cpu == "riscv64") {
63411cb0ef41Sopenharmony_ci    libs = [ "atomic" ]
63421cb0ef41Sopenharmony_ci  }
63431cb0ef41Sopenharmony_ci
63441cb0ef41Sopenharmony_ci  configs = [
63451cb0ef41Sopenharmony_ci    # Note: don't use :internal_config here because this target will get
63461cb0ef41Sopenharmony_ci    # the :external_config applied to it by virtue of depending on :cppgc, and
63471cb0ef41Sopenharmony_ci    # you can't have both applied to the same target.
63481cb0ef41Sopenharmony_ci    ":internal_config_base",
63491cb0ef41Sopenharmony_ci    ":cppgc_base_config",
63501cb0ef41Sopenharmony_ci  ]
63511cb0ef41Sopenharmony_ci
63521cb0ef41Sopenharmony_ci  deps = [ ":cppgc" ]
63531cb0ef41Sopenharmony_ci  if (!cppgc_is_standalone) {
63541cb0ef41Sopenharmony_ci    deps += [
63551cb0ef41Sopenharmony_ci      ":v8",
63561cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
63571cb0ef41Sopenharmony_ci    ]
63581cb0ef41Sopenharmony_ci  }
63591cb0ef41Sopenharmony_ci}
63601cb0ef41Sopenharmony_ci
63611cb0ef41Sopenharmony_citemplate("v8_fuzzer") {
63621cb0ef41Sopenharmony_ci  name = target_name
63631cb0ef41Sopenharmony_ci  forward_variables_from(invoker, "*")
63641cb0ef41Sopenharmony_ci  v8_executable("v8_simple_" + name) {
63651cb0ef41Sopenharmony_ci    deps = [
63661cb0ef41Sopenharmony_ci      ":" + name,
63671cb0ef41Sopenharmony_ci      "//build/win:default_exe_manifest",
63681cb0ef41Sopenharmony_ci    ]
63691cb0ef41Sopenharmony_ci
63701cb0ef41Sopenharmony_ci    sources = [ "test/fuzzer/fuzzer.cc" ]
63711cb0ef41Sopenharmony_ci
63721cb0ef41Sopenharmony_ci    configs = [ ":external_config" ]
63731cb0ef41Sopenharmony_ci  }
63741cb0ef41Sopenharmony_ci}
63751cb0ef41Sopenharmony_ci
63761cb0ef41Sopenharmony_civ8_source_set("json_fuzzer") {
63771cb0ef41Sopenharmony_ci  sources = [ "test/fuzzer/json.cc" ]
63781cb0ef41Sopenharmony_ci
63791cb0ef41Sopenharmony_ci  deps = [ ":fuzzer_support" ]
63801cb0ef41Sopenharmony_ci
63811cb0ef41Sopenharmony_ci  configs = [
63821cb0ef41Sopenharmony_ci    ":external_config",
63831cb0ef41Sopenharmony_ci    ":internal_config_base",
63841cb0ef41Sopenharmony_ci  ]
63851cb0ef41Sopenharmony_ci}
63861cb0ef41Sopenharmony_ci
63871cb0ef41Sopenharmony_civ8_fuzzer("json_fuzzer") {
63881cb0ef41Sopenharmony_ci}
63891cb0ef41Sopenharmony_ci
63901cb0ef41Sopenharmony_civ8_source_set("parser_fuzzer") {
63911cb0ef41Sopenharmony_ci  sources = [ "test/fuzzer/parser.cc" ]
63921cb0ef41Sopenharmony_ci
63931cb0ef41Sopenharmony_ci  deps = [ ":fuzzer_support" ]
63941cb0ef41Sopenharmony_ci
63951cb0ef41Sopenharmony_ci  configs = [
63961cb0ef41Sopenharmony_ci    ":external_config",
63971cb0ef41Sopenharmony_ci    ":internal_config_base",
63981cb0ef41Sopenharmony_ci  ]
63991cb0ef41Sopenharmony_ci}
64001cb0ef41Sopenharmony_ci
64011cb0ef41Sopenharmony_civ8_fuzzer("parser_fuzzer") {
64021cb0ef41Sopenharmony_ci}
64031cb0ef41Sopenharmony_ci
64041cb0ef41Sopenharmony_civ8_source_set("regexp_builtins_fuzzer") {
64051cb0ef41Sopenharmony_ci  sources = [
64061cb0ef41Sopenharmony_ci    "test/fuzzer/regexp-builtins.cc",
64071cb0ef41Sopenharmony_ci    "test/fuzzer/regexp_builtins/mjsunit.js.h",
64081cb0ef41Sopenharmony_ci  ]
64091cb0ef41Sopenharmony_ci
64101cb0ef41Sopenharmony_ci  deps = [ ":fuzzer_support" ]
64111cb0ef41Sopenharmony_ci
64121cb0ef41Sopenharmony_ci  configs = [
64131cb0ef41Sopenharmony_ci    ":external_config",
64141cb0ef41Sopenharmony_ci    ":internal_config_base",
64151cb0ef41Sopenharmony_ci  ]
64161cb0ef41Sopenharmony_ci}
64171cb0ef41Sopenharmony_ci
64181cb0ef41Sopenharmony_civ8_fuzzer("regexp_builtins_fuzzer") {
64191cb0ef41Sopenharmony_ci}
64201cb0ef41Sopenharmony_ci
64211cb0ef41Sopenharmony_civ8_source_set("regexp_fuzzer") {
64221cb0ef41Sopenharmony_ci  sources = [ "test/fuzzer/regexp.cc" ]
64231cb0ef41Sopenharmony_ci
64241cb0ef41Sopenharmony_ci  deps = [ ":fuzzer_support" ]
64251cb0ef41Sopenharmony_ci
64261cb0ef41Sopenharmony_ci  configs = [
64271cb0ef41Sopenharmony_ci    ":external_config",
64281cb0ef41Sopenharmony_ci    ":internal_config_base",
64291cb0ef41Sopenharmony_ci  ]
64301cb0ef41Sopenharmony_ci}
64311cb0ef41Sopenharmony_ci
64321cb0ef41Sopenharmony_civ8_fuzzer("regexp_fuzzer") {
64331cb0ef41Sopenharmony_ci}
64341cb0ef41Sopenharmony_ci
64351cb0ef41Sopenharmony_ciif (v8_enable_webassembly) {
64361cb0ef41Sopenharmony_ci  v8_source_set("multi_return_fuzzer") {
64371cb0ef41Sopenharmony_ci    sources = [ "test/fuzzer/multi-return.cc" ]
64381cb0ef41Sopenharmony_ci
64391cb0ef41Sopenharmony_ci    deps = [ ":fuzzer_support" ]
64401cb0ef41Sopenharmony_ci
64411cb0ef41Sopenharmony_ci    configs = [
64421cb0ef41Sopenharmony_ci      ":external_config",
64431cb0ef41Sopenharmony_ci      ":internal_config_base",
64441cb0ef41Sopenharmony_ci    ]
64451cb0ef41Sopenharmony_ci  }
64461cb0ef41Sopenharmony_ci
64471cb0ef41Sopenharmony_ci  v8_fuzzer("multi_return_fuzzer") {
64481cb0ef41Sopenharmony_ci  }
64491cb0ef41Sopenharmony_ci
64501cb0ef41Sopenharmony_ci  v8_source_set("wasm_test_common") {
64511cb0ef41Sopenharmony_ci    sources = [
64521cb0ef41Sopenharmony_ci      "test/common/flag-utils.h",
64531cb0ef41Sopenharmony_ci      "test/common/wasm/flag-utils.h",
64541cb0ef41Sopenharmony_ci      "test/common/wasm/wasm-interpreter.cc",
64551cb0ef41Sopenharmony_ci      "test/common/wasm/wasm-interpreter.h",
64561cb0ef41Sopenharmony_ci      "test/common/wasm/wasm-module-runner.cc",
64571cb0ef41Sopenharmony_ci      "test/common/wasm/wasm-module-runner.h",
64581cb0ef41Sopenharmony_ci    ]
64591cb0ef41Sopenharmony_ci
64601cb0ef41Sopenharmony_ci    deps = [
64611cb0ef41Sopenharmony_ci      ":generate_bytecode_builtins_list",
64621cb0ef41Sopenharmony_ci      ":run_torque",
64631cb0ef41Sopenharmony_ci      ":v8_internal_headers",
64641cb0ef41Sopenharmony_ci      ":v8_libbase",
64651cb0ef41Sopenharmony_ci      ":v8_shared_internal_headers",
64661cb0ef41Sopenharmony_ci      ":v8_tracing",
64671cb0ef41Sopenharmony_ci    ]
64681cb0ef41Sopenharmony_ci
64691cb0ef41Sopenharmony_ci    public_deps = [ ":v8_maybe_icu" ]
64701cb0ef41Sopenharmony_ci
64711cb0ef41Sopenharmony_ci    configs = [
64721cb0ef41Sopenharmony_ci      ":external_config",
64731cb0ef41Sopenharmony_ci      ":internal_config_base",
64741cb0ef41Sopenharmony_ci    ]
64751cb0ef41Sopenharmony_ci  }
64761cb0ef41Sopenharmony_ci
64771cb0ef41Sopenharmony_ci  v8_source_set("wasm_fuzzer") {
64781cb0ef41Sopenharmony_ci    sources = [ "test/fuzzer/wasm.cc" ]
64791cb0ef41Sopenharmony_ci
64801cb0ef41Sopenharmony_ci    deps = [
64811cb0ef41Sopenharmony_ci      ":fuzzer_support",
64821cb0ef41Sopenharmony_ci      ":lib_wasm_fuzzer_common",
64831cb0ef41Sopenharmony_ci      ":wasm_test_common",
64841cb0ef41Sopenharmony_ci    ]
64851cb0ef41Sopenharmony_ci
64861cb0ef41Sopenharmony_ci    configs = [
64871cb0ef41Sopenharmony_ci      ":external_config",
64881cb0ef41Sopenharmony_ci      ":internal_config_base",
64891cb0ef41Sopenharmony_ci    ]
64901cb0ef41Sopenharmony_ci  }
64911cb0ef41Sopenharmony_ci
64921cb0ef41Sopenharmony_ci  v8_fuzzer("wasm_fuzzer") {
64931cb0ef41Sopenharmony_ci  }
64941cb0ef41Sopenharmony_ci
64951cb0ef41Sopenharmony_ci  v8_source_set("wasm_async_fuzzer") {
64961cb0ef41Sopenharmony_ci    sources = [ "test/fuzzer/wasm-async.cc" ]
64971cb0ef41Sopenharmony_ci
64981cb0ef41Sopenharmony_ci    deps = [
64991cb0ef41Sopenharmony_ci      ":fuzzer_support",
65001cb0ef41Sopenharmony_ci      ":lib_wasm_fuzzer_common",
65011cb0ef41Sopenharmony_ci      ":wasm_test_common",
65021cb0ef41Sopenharmony_ci    ]
65031cb0ef41Sopenharmony_ci
65041cb0ef41Sopenharmony_ci    configs = [
65051cb0ef41Sopenharmony_ci      ":external_config",
65061cb0ef41Sopenharmony_ci      ":internal_config_base",
65071cb0ef41Sopenharmony_ci    ]
65081cb0ef41Sopenharmony_ci  }
65091cb0ef41Sopenharmony_ci
65101cb0ef41Sopenharmony_ci  v8_fuzzer("wasm_async_fuzzer") {
65111cb0ef41Sopenharmony_ci  }
65121cb0ef41Sopenharmony_ci
65131cb0ef41Sopenharmony_ci  v8_source_set("wasm_code_fuzzer") {
65141cb0ef41Sopenharmony_ci    sources = [
65151cb0ef41Sopenharmony_ci      "test/common/wasm/test-signatures.h",
65161cb0ef41Sopenharmony_ci      "test/fuzzer/wasm-code.cc",
65171cb0ef41Sopenharmony_ci    ]
65181cb0ef41Sopenharmony_ci
65191cb0ef41Sopenharmony_ci    deps = [
65201cb0ef41Sopenharmony_ci      ":fuzzer_support",
65211cb0ef41Sopenharmony_ci      ":lib_wasm_fuzzer_common",
65221cb0ef41Sopenharmony_ci      ":wasm_test_common",
65231cb0ef41Sopenharmony_ci    ]
65241cb0ef41Sopenharmony_ci
65251cb0ef41Sopenharmony_ci    configs = [
65261cb0ef41Sopenharmony_ci      ":external_config",
65271cb0ef41Sopenharmony_ci      ":internal_config_base",
65281cb0ef41Sopenharmony_ci    ]
65291cb0ef41Sopenharmony_ci  }
65301cb0ef41Sopenharmony_ci
65311cb0ef41Sopenharmony_ci  v8_fuzzer("wasm_code_fuzzer") {
65321cb0ef41Sopenharmony_ci  }
65331cb0ef41Sopenharmony_ci
65341cb0ef41Sopenharmony_ci  v8_source_set("lib_wasm_fuzzer_common") {
65351cb0ef41Sopenharmony_ci    sources = [
65361cb0ef41Sopenharmony_ci      "test/fuzzer/wasm-fuzzer-common.cc",
65371cb0ef41Sopenharmony_ci      "test/fuzzer/wasm-fuzzer-common.h",
65381cb0ef41Sopenharmony_ci    ]
65391cb0ef41Sopenharmony_ci
65401cb0ef41Sopenharmony_ci    deps = [
65411cb0ef41Sopenharmony_ci      ":fuzzer_support",
65421cb0ef41Sopenharmony_ci      ":generate_bytecode_builtins_list",
65431cb0ef41Sopenharmony_ci      ":run_torque",
65441cb0ef41Sopenharmony_ci      ":v8_internal_headers",
65451cb0ef41Sopenharmony_ci      ":v8_tracing",
65461cb0ef41Sopenharmony_ci      ":wasm_test_common",
65471cb0ef41Sopenharmony_ci    ]
65481cb0ef41Sopenharmony_ci
65491cb0ef41Sopenharmony_ci    public_deps = [ ":v8_maybe_icu" ]
65501cb0ef41Sopenharmony_ci
65511cb0ef41Sopenharmony_ci    configs = [
65521cb0ef41Sopenharmony_ci      ":external_config",
65531cb0ef41Sopenharmony_ci      ":internal_config_base",
65541cb0ef41Sopenharmony_ci    ]
65551cb0ef41Sopenharmony_ci  }
65561cb0ef41Sopenharmony_ci
65571cb0ef41Sopenharmony_ci  v8_source_set("wasm_compile_fuzzer") {
65581cb0ef41Sopenharmony_ci    sources = [
65591cb0ef41Sopenharmony_ci      "test/common/wasm/test-signatures.h",
65601cb0ef41Sopenharmony_ci      "test/fuzzer/wasm-compile.cc",
65611cb0ef41Sopenharmony_ci    ]
65621cb0ef41Sopenharmony_ci
65631cb0ef41Sopenharmony_ci    deps = [
65641cb0ef41Sopenharmony_ci      ":fuzzer_support",
65651cb0ef41Sopenharmony_ci      ":lib_wasm_fuzzer_common",
65661cb0ef41Sopenharmony_ci      ":wasm_test_common",
65671cb0ef41Sopenharmony_ci    ]
65681cb0ef41Sopenharmony_ci
65691cb0ef41Sopenharmony_ci    configs = [
65701cb0ef41Sopenharmony_ci      ":external_config",
65711cb0ef41Sopenharmony_ci      ":internal_config_base",
65721cb0ef41Sopenharmony_ci    ]
65731cb0ef41Sopenharmony_ci  }
65741cb0ef41Sopenharmony_ci
65751cb0ef41Sopenharmony_ci  v8_fuzzer("wasm_compile_fuzzer") {
65761cb0ef41Sopenharmony_ci  }
65771cb0ef41Sopenharmony_ci}
65781cb0ef41Sopenharmony_ci
65791cb0ef41Sopenharmony_civ8_source_set("inspector_fuzzer") {
65801cb0ef41Sopenharmony_ci  sources = [ "test/fuzzer/inspector-fuzzer.cc" ]
65811cb0ef41Sopenharmony_ci
65821cb0ef41Sopenharmony_ci  deps = [
65831cb0ef41Sopenharmony_ci    ":fuzzer_support",
65841cb0ef41Sopenharmony_ci    "test/inspector:inspector_test",
65851cb0ef41Sopenharmony_ci  ]
65861cb0ef41Sopenharmony_ci
65871cb0ef41Sopenharmony_ci  configs = [
65881cb0ef41Sopenharmony_ci    ":external_config",
65891cb0ef41Sopenharmony_ci    ":internal_config_base",
65901cb0ef41Sopenharmony_ci  ]
65911cb0ef41Sopenharmony_ci}
65921cb0ef41Sopenharmony_ci
65931cb0ef41Sopenharmony_civ8_fuzzer("inspector_fuzzer") {
65941cb0ef41Sopenharmony_ci}
65951cb0ef41Sopenharmony_ci
65961cb0ef41Sopenharmony_ci# Target to build all generated .cc files.
65971cb0ef41Sopenharmony_cigroup("v8_generated_cc_files") {
65981cb0ef41Sopenharmony_ci  testonly = true
65991cb0ef41Sopenharmony_ci
66001cb0ef41Sopenharmony_ci  deps = [
66011cb0ef41Sopenharmony_ci    ":generate_bytecode_builtins_list",
66021cb0ef41Sopenharmony_ci    ":run_torque",
66031cb0ef41Sopenharmony_ci    "src/inspector:v8_generated_cc_files",
66041cb0ef41Sopenharmony_ci  ]
66051cb0ef41Sopenharmony_ci}
66061cb0ef41Sopenharmony_ci
66071cb0ef41Sopenharmony_ci# Protobuf targets, used only when building outside of chromium.
66081cb0ef41Sopenharmony_ci
66091cb0ef41Sopenharmony_ciif (!build_with_chromium && v8_use_perfetto) {
66101cb0ef41Sopenharmony_ci  # This config is applied to the autogenerated .pb.{cc,h} files in
66111cb0ef41Sopenharmony_ci  # proto_library.gni. This config is propagated up to the source sets
66121cb0ef41Sopenharmony_ci  # that depend on generated proto headers.
66131cb0ef41Sopenharmony_ci  config("protobuf_gen_config") {
66141cb0ef41Sopenharmony_ci    defines = [
66151cb0ef41Sopenharmony_ci      "GOOGLE_PROTOBUF_NO_RTTI",
66161cb0ef41Sopenharmony_ci      "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
66171cb0ef41Sopenharmony_ci    ]
66181cb0ef41Sopenharmony_ci    cflags = [
66191cb0ef41Sopenharmony_ci      "-Wno-unknown-warning-option",
66201cb0ef41Sopenharmony_ci      "-Wno-deprecated",
66211cb0ef41Sopenharmony_ci      "-Wno-undef",
66221cb0ef41Sopenharmony_ci      "-Wno-zero-as-null-pointer-constant",
66231cb0ef41Sopenharmony_ci      "-Wno-thread-safety-attributes",
66241cb0ef41Sopenharmony_ci    ]
66251cb0ef41Sopenharmony_ci    include_dirs = [ "third_party/protobuf/src" ]
66261cb0ef41Sopenharmony_ci  }
66271cb0ef41Sopenharmony_ci
66281cb0ef41Sopenharmony_ci  # Configuration used to build libprotobuf_* and the protoc compiler.
66291cb0ef41Sopenharmony_ci  config("protobuf_config") {
66301cb0ef41Sopenharmony_ci    # Apply the lighter supressions and macro definitions from above.
66311cb0ef41Sopenharmony_ci    configs = [ ":protobuf_gen_config" ]
66321cb0ef41Sopenharmony_ci
66331cb0ef41Sopenharmony_ci    if (!is_win) {
66341cb0ef41Sopenharmony_ci      defines = [ "HAVE_PTHREAD=1" ]
66351cb0ef41Sopenharmony_ci    }
66361cb0ef41Sopenharmony_ci    if (is_clang) {
66371cb0ef41Sopenharmony_ci      cflags = [
66381cb0ef41Sopenharmony_ci        "-Wno-unused-private-field",
66391cb0ef41Sopenharmony_ci        "-Wno-unused-function",
66401cb0ef41Sopenharmony_ci        "-Wno-inconsistent-missing-override",
66411cb0ef41Sopenharmony_ci        "-Wno-unknown-warning-option",
66421cb0ef41Sopenharmony_ci        "-Wno-enum-compare-switch",
66431cb0ef41Sopenharmony_ci        "-Wno-user-defined-warnings",
66441cb0ef41Sopenharmony_ci        "-Wno-tautological-constant-compare",
66451cb0ef41Sopenharmony_ci      ]
66461cb0ef41Sopenharmony_ci    }
66471cb0ef41Sopenharmony_ci    if (is_win && is_clang) {
66481cb0ef41Sopenharmony_ci      cflags += [ "-Wno-microsoft-unqualified-friend" ]
66491cb0ef41Sopenharmony_ci    }
66501cb0ef41Sopenharmony_ci  }
66511cb0ef41Sopenharmony_ci
66521cb0ef41Sopenharmony_ci  source_set("protobuf_lite") {
66531cb0ef41Sopenharmony_ci    sources = [
66541cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/any_lite.cc",
66551cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/arena.cc",
66561cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/arena.h",
66571cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/arena_impl.h",
66581cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/arenastring.h",
66591cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/extension_set.cc",
66601cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/extension_set.h",
66611cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_enum_util.cc",
66621cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_enum_util.h",
66631cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_message_table_driven_lite.cc",
66641cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_message_table_driven_lite.h",
66651cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_message_util.cc",
66661cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_message_util.h",
66671cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/has_bits.h",
66681cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/implicit_weak_message.cc",
66691cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/implicit_weak_message.h",
66701cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/inlined_string_field.h",
66711cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/coded_stream.cc",
66721cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/coded_stream.h",
66731cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/coded_stream_inl.h",
66741cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/io_win32.cc",
66751cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/io_win32.h",
66761cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/strtod.cc",
66771cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/strtod.h",
66781cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc",
66791cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h",
66801cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc",
66811cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.h",
66821cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc",
66831cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h",
66841cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map.h",
66851cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_entry_lite.h",
66861cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_field_lite.h",
66871cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_type_handler.h",
66881cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/message_lite.cc",
66891cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/message_lite.h",
66901cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/repeated_field.cc",
66911cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/repeated_field.h",
66921cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/bytestream.cc",
66931cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/bytestream.h",
66941cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/callback.h",
66951cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/casts.h",
66961cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/common.cc",
66971cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/common.h",
66981cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/fastmem.h",
66991cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/hash.h",
67001cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/int128.cc",
67011cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/int128.h",
67021cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/logging.h",
67031cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/macros.h",
67041cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/map_util.h",
67051cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/mutex.h",
67061cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/once.h",
67071cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/platform_macros.h",
67081cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/port.h",
67091cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/status.cc",
67101cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/status.h",
67111cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/status_macros.h",
67121cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/statusor.cc",
67131cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/statusor.h",
67141cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/stl_util.h",
67151cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/stringpiece.cc",
67161cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/stringpiece.h",
67171cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc",
67181cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/stringprintf.h",
67191cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/structurally_valid.cc",
67201cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/strutil.cc",
67211cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/strutil.h",
67221cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/template_util.h",
67231cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/time.cc",
67241cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/time.h",
67251cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/wire_format_lite.cc",
67261cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/wire_format_lite.h",
67271cb0ef41Sopenharmony_ci    ]
67281cb0ef41Sopenharmony_ci    configs -= [ "//build/config/compiler:chromium_code" ]
67291cb0ef41Sopenharmony_ci    configs += [
67301cb0ef41Sopenharmony_ci      "//build/config/compiler:no_chromium_code",
67311cb0ef41Sopenharmony_ci      ":protobuf_config",
67321cb0ef41Sopenharmony_ci    ]
67331cb0ef41Sopenharmony_ci    if (is_win) {
67341cb0ef41Sopenharmony_ci      configs -= [ "//build/config/win:lean_and_mean" ]
67351cb0ef41Sopenharmony_ci    }
67361cb0ef41Sopenharmony_ci    public_configs = [ ":protobuf_gen_config" ]
67371cb0ef41Sopenharmony_ci  }
67381cb0ef41Sopenharmony_ci
67391cb0ef41Sopenharmony_ci  # This target should be used only by the protoc compiler and by test targets.
67401cb0ef41Sopenharmony_ci  source_set("protobuf_full") {
67411cb0ef41Sopenharmony_ci    deps = [ ":protobuf_lite" ]
67421cb0ef41Sopenharmony_ci    sources = [
67431cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/any.cc",
67441cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/any.h",
67451cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/any.pb.cc",
67461cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/any.pb.h",
67471cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/api.pb.cc",
67481cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/api.pb.h",
67491cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/compiler/importer.cc",
67501cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/compiler/importer.h",
67511cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/compiler/parser.cc",
67521cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/compiler/parser.h",
67531cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/descriptor.cc",
67541cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/descriptor.h",
67551cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/descriptor.pb.cc",
67561cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/descriptor.pb.h",
67571cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/descriptor_database.cc",
67581cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/descriptor_database.h",
67591cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/duration.pb.cc",
67601cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/duration.pb.h",
67611cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/dynamic_message.cc",
67621cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/dynamic_message.h",
67631cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/empty.pb.cc",
67641cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/empty.pb.h",
67651cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/extension_set_heavy.cc",
67661cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/field_mask.pb.cc",
67671cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/field_mask.pb.h",
67681cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_enum_reflection.h",
67691cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_message_reflection.cc",
67701cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/generated_message_reflection.h",
67711cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/gzip_stream.cc",
67721cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/gzip_stream.h",
67731cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/printer.cc",
67741cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/printer.h",
67751cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/tokenizer.cc",
67761cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/io/tokenizer.h",
67771cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_entry.h",
67781cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_field.cc",
67791cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_field.h",
67801cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/map_field_inl.h",
67811cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/message.cc",
67821cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/message.h",
67831cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/metadata.h",
67841cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/reflection.h",
67851cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/reflection_internal.h",
67861cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/reflection_ops.cc",
67871cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/reflection_ops.h",
67881cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/service.cc",
67891cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/service.h",
67901cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/source_context.pb.cc",
67911cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/source_context.pb.h",
67921cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/struct.pb.cc",
67931cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/struct.pb.h",
67941cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/mathlimits.cc",
67951cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/mathlimits.h",
67961cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/mathutil.h",
67971cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/substitute.cc",
67981cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/stubs/substitute.h",
67991cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/text_format.cc",
68001cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/text_format.h",
68011cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/timestamp.pb.cc",
68021cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/timestamp.pb.h",
68031cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/type.pb.cc",
68041cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/type.pb.h",
68051cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/unknown_field_set.cc",
68061cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/unknown_field_set.h",
68071cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/field_comparator.cc",
68081cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/field_comparator.h",
68091cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/field_mask_util.cc",
68101cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/field_mask_util.h",
68111cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/constants.h",
68121cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/datapiece.cc",
68131cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/datapiece.h",
68141cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/default_value_objectwriter.cc",
68151cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/default_value_objectwriter.h",
68161cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/error_listener.cc",
68171cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/error_listener.h",
68181cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/field_mask_utility.cc",
68191cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/field_mask_utility.h",
68201cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/json_escaping.cc",
68211cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/json_escaping.h",
68221cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/json_objectwriter.cc",
68231cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/json_objectwriter.h",
68241cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.cc",
68251cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/json_stream_parser.h",
68261cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/location_tracker.h",
68271cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/object_location_tracker.h",
68281cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/object_source.h",
68291cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/object_writer.cc",
68301cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/object_writer.h",
68311cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/proto_writer.cc",
68321cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/proto_writer.h",
68331cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/protostream_objectsource.cc",
68341cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/protostream_objectsource.h",
68351cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/protostream_objectwriter.cc",
68361cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/protostream_objectwriter.h",
68371cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/structured_objectwriter.h",
68381cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/type_info.cc",
68391cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/type_info.h",
68401cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/type_info_test_helper.cc",
68411cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/type_info_test_helper.h",
68421cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/utility.cc",
68431cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/internal/utility.h",
68441cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/json_util.cc",
68451cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/json_util.h",
68461cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/message_differencer.cc",
68471cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/message_differencer.h",
68481cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/time_util.cc",
68491cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/time_util.h",
68501cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/type_resolver.h",
68511cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/type_resolver_util.cc",
68521cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/util/type_resolver_util.h",
68531cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/wire_format.cc",
68541cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/wire_format.h",
68551cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/wrappers.pb.cc",
68561cb0ef41Sopenharmony_ci      "third_party/protobuf/src/google/protobuf/wrappers.pb.h",
68571cb0ef41Sopenharmony_ci    ]
68581cb0ef41Sopenharmony_ci    configs -= [ "//build/config/compiler:chromium_code" ]
68591cb0ef41Sopenharmony_ci    configs += [
68601cb0ef41Sopenharmony_ci      "//build/config/compiler:no_chromium_code",
68611cb0ef41Sopenharmony_ci      ":protobuf_config",
68621cb0ef41Sopenharmony_ci    ]
68631cb0ef41Sopenharmony_ci    if (is_win) {
68641cb0ef41Sopenharmony_ci      configs -= [ "//build/config/win:lean_and_mean" ]
68651cb0ef41Sopenharmony_ci    }
68661cb0ef41Sopenharmony_ci    public_configs = [ ":protobuf_gen_config" ]
68671cb0ef41Sopenharmony_ci  }
68681cb0ef41Sopenharmony_ci
68691cb0ef41Sopenharmony_ci  if (current_toolchain == host_toolchain) {
68701cb0ef41Sopenharmony_ci    source_set("protoc_lib") {
68711cb0ef41Sopenharmony_ci      deps = [ ":protobuf_full" ]
68721cb0ef41Sopenharmony_ci      sources = [
68731cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/code_generator.cc",
68741cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/code_generator.h",
68751cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc",
68761cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/command_line_interface.h",
68771cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc",
68781cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.h",
68791cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.cc",
68801cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.h",
68811cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc",
68821cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.h",
68831cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_field.cc",
68841cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_field.h",
68851cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc",
68861cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.h",
68871cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc",
68881cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.h",
68891cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc",
68901cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.h",
68911cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_map_field.cc",
68921cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_map_field.h",
68931cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc",
68941cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.h",
68951cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.cc",
68961cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.h",
68971cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_layout_helper.h",
68981cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_options.h",
68991cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc",
69001cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.h",
69011cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc",
69021cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h",
69031cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.cc",
69041cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.h",
69051cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc",
69061cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.h",
69071cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/plugin.cc",
69081cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/plugin.h",
69091cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc",
69101cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/plugin.pb.h",
69111cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/subprocess.cc",
69121cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/subprocess.h",
69131cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc",
69141cb0ef41Sopenharmony_ci        "third_party/protobuf/src/google/protobuf/compiler/zip_writer.h",
69151cb0ef41Sopenharmony_ci      ]
69161cb0ef41Sopenharmony_ci      configs -= [ "//build/config/compiler:chromium_code" ]
69171cb0ef41Sopenharmony_ci      configs += [
69181cb0ef41Sopenharmony_ci        "//build/config/compiler:no_chromium_code",
69191cb0ef41Sopenharmony_ci        ":protobuf_config",
69201cb0ef41Sopenharmony_ci      ]
69211cb0ef41Sopenharmony_ci      if (is_win) {
69221cb0ef41Sopenharmony_ci        configs -= [ "//build/config/win:lean_and_mean" ]
69231cb0ef41Sopenharmony_ci      }
69241cb0ef41Sopenharmony_ci      public_configs = [ ":protobuf_gen_config" ]
69251cb0ef41Sopenharmony_ci    }
69261cb0ef41Sopenharmony_ci
69271cb0ef41Sopenharmony_ci    executable("protoc") {
69281cb0ef41Sopenharmony_ci      deps = [
69291cb0ef41Sopenharmony_ci        ":protoc_lib",
69301cb0ef41Sopenharmony_ci        "//build/win:default_exe_manifest",
69311cb0ef41Sopenharmony_ci      ]
69321cb0ef41Sopenharmony_ci      sources = [ "src/protobuf/protobuf-compiler-main.cc" ]
69331cb0ef41Sopenharmony_ci      configs -= [ "//build/config/compiler:chromium_code" ]
69341cb0ef41Sopenharmony_ci      configs += [ "//build/config/compiler:no_chromium_code" ]
69351cb0ef41Sopenharmony_ci    }
69361cb0ef41Sopenharmony_ci  }  # host_toolchain
69371cb0ef41Sopenharmony_ci
69381cb0ef41Sopenharmony_ci  v8_component("v8_libperfetto") {
69391cb0ef41Sopenharmony_ci    configs = [ ":v8_tracing_config" ]
69401cb0ef41Sopenharmony_ci    public_configs = [ "//third_party/perfetto/gn:public_config" ]
69411cb0ef41Sopenharmony_ci    deps = [
69421cb0ef41Sopenharmony_ci      "//third_party/perfetto/src/trace_processor:storage_minimal",
69431cb0ef41Sopenharmony_ci      "//third_party/perfetto/src/tracing/core",
69441cb0ef41Sopenharmony_ci
69451cb0ef41Sopenharmony_ci      # TODO(skyostil): Support non-POSIX platforms.
69461cb0ef41Sopenharmony_ci      "//third_party/perfetto/protos/perfetto/config:cpp",
69471cb0ef41Sopenharmony_ci      "//third_party/perfetto/protos/perfetto/trace/track_event:zero",
69481cb0ef41Sopenharmony_ci      "//third_party/perfetto/src/tracing:in_process_backend",
69491cb0ef41Sopenharmony_ci      "//third_party/perfetto/src/tracing:platform_impl",
69501cb0ef41Sopenharmony_ci    ]
69511cb0ef41Sopenharmony_ci
69521cb0ef41Sopenharmony_ci    public_deps = [
69531cb0ef41Sopenharmony_ci      "//third_party/perfetto/include/perfetto/trace_processor",
69541cb0ef41Sopenharmony_ci      "//third_party/perfetto/src/trace_processor:export_json",
69551cb0ef41Sopenharmony_ci      "//third_party/perfetto/src/tracing:client_api",
69561cb0ef41Sopenharmony_ci    ]
69571cb0ef41Sopenharmony_ci  }
69581cb0ef41Sopenharmony_ci}  # if (!build_with_chromium && v8_use_perfetto)
6959