summaryrefslogtreecommitdiff
path: root/lang/v8/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/v8/files')
-rw-r--r--lang/v8/files/patch-BUILD.gn8
-rw-r--r--lang/v8/files/patch-build_config_compiler_BUILD.gn45
-rw-r--r--lang/v8/files/patch-build_config_compiler_compiler.gni4
-rw-r--r--lang/v8/files/patch-build_config_linux_BUILD.gn4
-rw-r--r--lang/v8/files/patch-build_toolchain_gcc__toolchain.gni6
-rw-r--r--lang/v8/files/patch-include_v8config.h4
-rw-r--r--lang/v8/files/patch-src_api_api.cc6
-rw-r--r--lang/v8/files/patch-src_base_cpu.cc6
-rw-r--r--lang/v8/files/patch-src_base_platform_platform-posix.cc6
9 files changed, 49 insertions, 40 deletions
diff --git a/lang/v8/files/patch-BUILD.gn b/lang/v8/files/patch-BUILD.gn
index db2a992ae2d1..f39f14add820 100644
--- a/lang/v8/files/patch-BUILD.gn
+++ b/lang/v8/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
---- BUILD.gn.orig 2021-06-08 16:09:55 UTC
+--- BUILD.gn.orig 2021-10-06 18:22:58 UTC
+++ BUILD.gn
-@@ -4600,7 +4600,7 @@ v8_component("v8_libbase") {
+@@ -4804,7 +4804,7 @@ v8_component("v8_libbase") {
}
}
@@ -9,7 +9,7 @@
sources += [
"src/base/debug/stack_trace_posix.cc",
"src/base/platform/platform-linux.cc",
-@@ -4617,6 +4617,12 @@ v8_component("v8_libbase") {
+@@ -4821,6 +4821,12 @@ v8_component("v8_libbase") {
]
libs = [ "dl" ]
@@ -22,7 +22,7 @@
} else if (is_android) {
if (current_toolchain == host_toolchain) {
libs = [
-@@ -5049,6 +5055,7 @@ if (v8_monolithic) {
+@@ -5313,6 +5319,7 @@ if (v8_monolithic) {
":v8_libplatform",
"//build/win:default_exe_manifest",
]
diff --git a/lang/v8/files/patch-build_config_compiler_BUILD.gn b/lang/v8/files/patch-build_config_compiler_BUILD.gn
index 48c46d0b0706..44da5b00a666 100644
--- a/lang/v8/files/patch-build_config_compiler_BUILD.gn
+++ b/lang/v8/files/patch-build_config_compiler_BUILD.gn
@@ -1,4 +1,4 @@
---- build/config/compiler/BUILD.gn.orig 2021-09-19 10:01:13 UTC
+--- build/config/compiler/BUILD.gn.orig 2021-10-13 07:49:03 UTC
+++ build/config/compiler/BUILD.gn
@@ -139,7 +139,7 @@ declare_args() {
#
@@ -27,7 +27,7 @@
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
# TODO(hans): Remove this once Clang generates better optimized debug info
-@@ -867,7 +867,7 @@ config("compiler_cpu_abi") {
+@@ -879,7 +879,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
@@ -36,17 +36,26 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
-@@ -1217,7 +1217,7 @@ config("compiler_deterministic") {
- "-Xclang",
- ".",
- ]
+@@ -1223,7 +1223,7 @@ config("compiler_deterministic") {
+ # different build directory like "out/feature_a" and "out/feature_b" if
+ # we build same files with same compile flag.
+ # Other paths are already given in relative, no need to normalize them.
+- if (is_nacl) {
++ if (is_nacl || is_bsd) {
+ # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
+ cflags += [
+ "-Xclang",
+@@ -1236,7 +1236,7 @@ config("compiler_deterministic") {
+ # and -fcoverage-compilation-dir=.
+ cflags += [ "-ffile-compilation-dir=." ]
+ }
- if (!is_win) {
+ if (!is_win && !is_bsd) {
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
-@@ -1594,7 +1594,7 @@ config("default_warnings") {
- cflags += [ "-Wno-nonportable-include-path" ]
+@@ -1610,7 +1610,7 @@ config("default_warnings") {
+ cflags += [ "-Wno-null-pointer-subtraction" ]
}
- if (current_toolchain == host_toolchain || !use_xcode_clang) {
@@ -54,7 +63,7 @@
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
cflags += [
-@@ -1856,7 +1856,7 @@ config("thin_archive") {
+@@ -1858,7 +1858,7 @@ config("thin_archive") {
# archives.
# TODO(crbug.com/1221615): Enable on is_apple if use_lld once that no longer
# confuses lldb.
@@ -63,7 +72,7 @@
arflags = [ "-T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
-@@ -2387,7 +2387,7 @@ config("symbols") {
+@@ -2372,7 +2372,7 @@ config("symbols") {
# flag, so we can use use -g1 for pnacl and nacl-clang compiles.
# gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang.
if (!is_nacl || is_clang) {
@@ -72,7 +81,7 @@
}
if (is_apple) {
-@@ -2412,7 +2412,7 @@ config("symbols") {
+@@ -2397,7 +2397,7 @@ config("symbols") {
# DWARF info may be corrupt; offsets in a range list entry are in different
# sections" there. Maybe just a bug in nacl_switch_32.S.
if (!is_apple && !is_nacl && current_cpu != "x86" &&
@@ -81,12 +90,12 @@
if (is_clang) {
# This flag enables the GNU-format pubnames and pubtypes sections,
# which lld needs in order to generate a correct GDB index.
-@@ -2425,7 +2425,7 @@ config("symbols") {
+@@ -2410,7 +2410,7 @@ config("symbols") {
}
- # TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
-- if (is_clang && !is_nacl && !use_xcode_clang && !is_apple) {
-+ if (is_clang && !is_nacl && !use_xcode_clang && !is_apple && !is_bsd) {
- # Use constructor homing for debug info. This option reduces debug info
- # by emitting class type info only when constructors are emitted.
- cflags += [
+ if (is_clang && !is_nacl && !use_xcode_clang) {
+- if (is_apple) {
++ if (is_apple || is_bsd) {
+ # TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
+ # Make sure we don't use constructor homing on mac.
+ cflags += [
diff --git a/lang/v8/files/patch-build_config_compiler_compiler.gni b/lang/v8/files/patch-build_config_compiler_compiler.gni
index 7690b3224054..b40ee50f0b69 100644
--- a/lang/v8/files/patch-build_config_compiler_compiler.gni
+++ b/lang/v8/files/patch-build_config_compiler_compiler.gni
@@ -1,6 +1,6 @@
---- build/config/compiler/compiler.gni.orig 2021-05-26 12:26:11 UTC
+--- build/config/compiler/compiler.gni.orig 2021-10-13 07:49:03 UTC
+++ build/config/compiler/compiler.gni
-@@ -202,7 +202,7 @@ declare_args() {
+@@ -205,7 +205,7 @@ declare_args() {
declare_args() {
# Whether to use the gold linker from binutils instead of lld or bfd.
diff --git a/lang/v8/files/patch-build_config_linux_BUILD.gn b/lang/v8/files/patch-build_config_linux_BUILD.gn
index 171a343ed558..9b9bb1d634f9 100644
--- a/lang/v8/files/patch-build_config_linux_BUILD.gn
+++ b/lang/v8/files/patch-build_config_linux_BUILD.gn
@@ -1,6 +1,6 @@
---- build/config/linux/BUILD.gn.orig 2021-05-01 21:15:31 UTC
+--- build/config/linux/BUILD.gn.orig 2021-10-13 07:49:03 UTC
+++ build/config/linux/BUILD.gn
-@@ -30,7 +30,7 @@ config("runtime_library") {
+@@ -39,7 +39,7 @@ config("runtime_library") {
if ((!(is_chromeos_ash || is_chromeos_lacros) ||
default_toolchain != "//build/toolchain/cros:target") &&
diff --git a/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni b/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni
index 1b9b41051b3e..528964d2bc7d 100644
--- a/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni
+++ b/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni
@@ -1,6 +1,6 @@
---- build/toolchain/gcc_toolchain.gni.orig 2021-05-26 12:26:11 UTC
+--- build/toolchain/gcc_toolchain.gni.orig 2021-10-13 07:49:03 UTC
+++ build/toolchain/gcc_toolchain.gni
-@@ -51,6 +51,11 @@ if (enable_resource_allowlist_generation) {
+@@ -48,6 +48,11 @@ if (enable_resource_allowlist_generation) {
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
}
@@ -12,7 +12,7 @@
# This template defines a toolchain for something that works like gcc
# (including clang).
#
-@@ -654,13 +659,23 @@ template("clang_toolchain") {
+@@ -673,13 +678,23 @@ template("clang_toolchain") {
}
gcc_toolchain(target_name) {
diff --git a/lang/v8/files/patch-include_v8config.h b/lang/v8/files/patch-include_v8config.h
index 5b3e5a7df644..2a1c5e2972e9 100644
--- a/lang/v8/files/patch-include_v8config.h
+++ b/lang/v8/files/patch-include_v8config.h
@@ -1,6 +1,6 @@
---- include/v8config.h.orig 2021-04-22 15:00:28 UTC
+--- include/v8config.h.orig 2021-10-06 18:22:58 UTC
+++ include/v8config.h
-@@ -293,7 +293,18 @@ path. Add it with -I<path> to the command line
+@@ -338,7 +338,18 @@ path. Add it with -I<path> to the command line
# define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
diff --git a/lang/v8/files/patch-src_api_api.cc b/lang/v8/files/patch-src_api_api.cc
index 428d8a629cbc..056c643b5194 100644
--- a/lang/v8/files/patch-src_api_api.cc
+++ b/lang/v8/files/patch-src_api_api.cc
@@ -1,6 +1,6 @@
---- src/api/api.cc.orig 2021-06-08 16:09:55 UTC
+--- src/api/api.cc.orig 2021-10-06 18:22:58 UTC
+++ src/api/api.cc
-@@ -5764,7 +5764,7 @@ bool v8::V8::Initialize(const int build_config) {
+@@ -5886,7 +5886,7 @@ bool v8::V8::Initialize(const int build_config) {
return true;
}
@@ -8,4 +8,4 @@
+#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_OPENBSD || V8_OS_FREEBSD
bool TryHandleWebAssemblyTrapPosix(int sig_code, siginfo_t* info,
void* context) {
- // When the target code runs on the V8 arm simulator, the trap handler does
+ #if V8_ENABLE_WEBASSEMBLY && V8_TRAP_HANDLER_SUPPORTED
diff --git a/lang/v8/files/patch-src_base_cpu.cc b/lang/v8/files/patch-src_base_cpu.cc
index 62ed0e81412d..edded0adef06 100644
--- a/lang/v8/files/patch-src_base_cpu.cc
+++ b/lang/v8/files/patch-src_base_cpu.cc
@@ -1,6 +1,6 @@
---- src/base/cpu.cc.orig 2021-06-08 16:09:55 UTC
+--- src/base/cpu.cc.orig 2021-10-06 18:22:58 UTC
+++ src/base/cpu.cc
-@@ -572,6 +572,7 @@ CPU::CPU()
+@@ -568,6 +568,7 @@ CPU::CPU()
#if V8_OS_LINUX
@@ -8,7 +8,7 @@
CPUInfo cpu_info;
// Extract implementor from the "CPU implementer" field.
-@@ -605,6 +606,7 @@ CPU::CPU()
+@@ -601,6 +602,7 @@ CPU::CPU()
}
delete[] part;
}
diff --git a/lang/v8/files/patch-src_base_platform_platform-posix.cc b/lang/v8/files/patch-src_base_platform_platform-posix.cc
index 1dc9654483a7..df2cb6eb4180 100644
--- a/lang/v8/files/patch-src_base_platform_platform-posix.cc
+++ b/lang/v8/files/patch-src_base_platform_platform-posix.cc
@@ -1,6 +1,6 @@
---- src/base/platform/platform-posix.cc.orig 2021-04-22 15:00:28 UTC
+--- src/base/platform/platform-posix.cc.orig 2021-10-06 18:22:58 UTC
+++ src/base/platform/platform-posix.cc
-@@ -478,7 +478,7 @@ bool OS::DiscardSystemPages(void* address, size_t size
+@@ -493,7 +493,7 @@ bool OS::DiscardSystemPages(void* address, size_t size
// static
bool OS::HasLazyCommits() {
@@ -9,7 +9,7 @@
return true;
#else
// TODO(bbudge) Return true for all POSIX platforms.
-@@ -611,6 +611,12 @@ int OS::GetCurrentThreadId() {
+@@ -626,6 +626,12 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());