[build] Create v8_internal_headers target

Split out all the headers from v8_compiler/v8_compiler_opt and
v8_base_without_compiler into v8_internal_headers since the headers
have inter-dependencies that otherwise make it impossible to satisfy gn
check.

Also adds new v8_header_set torque_runtime_support that exports
src/torque/runtime-support.h separately from the generated headers.

This reduces the number of gn check failures from 169 to 59.

Bug: v8:7330
Change-Id: Ie7ebc894910b7efa02011a74da964e11995c7f4f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2712569
Commit-Queue: Dan Elphick <delphick@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73104}
This commit is contained in:
Dan Elphick 2021-03-01 12:14:54 +00:00 committed by Commit Bot
parent 8e8c727ae2
commit 00abcea4af
4 changed files with 1094 additions and 1029 deletions

2115
BUILD.gn

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,7 @@ v8_header_set("cctest_headers") {
"../..:internal_config_base", "../..:internal_config_base",
] ]
deps = [ "../..:v8_config_headers" ] deps = [ "../..:v8_internal_headers" ]
sources = [ "cctest.h" ] sources = [ "cctest.h" ]
} }

View File

@ -8,6 +8,7 @@ v8_executable("wasm_api_tests") {
testonly = true testonly = true
deps = [ deps = [
"../..:v8_internal_headers",
"../..:v8_maybe_icu", "../..:v8_maybe_icu",
"../..:wee8", "../..:wee8",
"//build/win:default_exe_manifest", "//build/win:default_exe_manifest",
@ -15,9 +16,7 @@ v8_executable("wasm_api_tests") {
"//testing/gtest", "//testing/gtest",
] ]
data_deps = [ data_deps = [ "../../tools:v8_testrunner" ]
"../../tools:v8_testrunner",
]
data = [ data = [
"testcfg.py", "testcfg.py",

View File

@ -96,6 +96,7 @@ v8_component("v8_debug_helper") {
"../..:generate_bytecode_builtins_list", "../..:generate_bytecode_builtins_list",
"../..:run_torque", "../..:run_torque",
"../..:v8_headers", "../..:v8_headers",
"../..:v8_internal_headers",
"../..:v8_libbase", "../..:v8_libbase",
"../..:v8_shared_internal_headers", "../..:v8_shared_internal_headers",
"../..:v8_tracing", "../..:v8_tracing",