From 52216335b17bd9c88985eea365a998578755da11 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Fri, 20 Nov 2026 13:19:56 -0300 Subject: [PATCH 1/3] build: pin V8 v8-14.9.207.39-11 Brings the v8-buildscripts fixes for named interceptors: own-property lookups through a non-masking interceptor (#11) and defining properties through named interceptors (#13). The canary wrapper lifetime mode puts a masking named interceptor on wrapper templates and needs both. -8 and -9 add only Apple TV and Mac Catalyst variants. --- V8_RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V8_RELEASE b/V8_RELEASE index ac872018f..f730d502e 100644 --- a/V8_RELEASE +++ b/V8_RELEASE @@ -1 +1 @@ -v8-14.9.207.39-7 +v8-14.9.207.39-11 From d06431a739742b69dc9446b33d98a92bd62d6d80 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Fri, 20 Nov 2026 18:58:32 -0300 Subject: [PATCH 2/3] build: track the installed V8 release per ABI download_v8.sh skipped a download when its one stamp named the pinned release and each requested ABI's library existed, whichever release had produced that library. After an --abi run for a new release, the other ABIs kept the old release's libraries and a later run for the full set skipped them. Each ABI's library now has its own stamp, which the skip check requires to match; an install also removes the libraries of ABIs it did not install that came from another release, so they are not linked against the new headers. --- .gitignore | 1 + download_v8.sh | 27 +++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e602df9c3..c6abd9cd5 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ package-lock.json /.v8-prebuilt/ test-app/runtime/src/main/libs/*/libv8_monolith.a test-app/runtime/src/main/libs/.v8-release-stamp +test-app/runtime/src/main/libs/*/.v8-release-stamp test-app/runtime/src/main/cpp/include/** !test-app/runtime/src/main/cpp/include/zip.h !test-app/runtime/src/main/cpp/include/zipconf.h diff --git a/download_v8.sh b/download_v8.sh index e960ba58b..03d4e4789 100755 --- a/download_v8.sh +++ b/download_v8.sh @@ -67,14 +67,20 @@ if [ -z "$RELEASE" ]; then fi [ ${#ABIS[@]} -gt 0 ] || ABIS=(arm64-v8a armeabi-v7a x86_64 x86) -# The stamp records which release was installed, not which ABIs were asked for, -# so a previous --abi run must not satisfy a later request for the full set. -# The installed files are the source of truth. +# $STAMP records the release the shared headers came from; each ABI's library +# has its own stamp, since an --abi run installs only some of them. +ABI_STAMP_NAME=".v8-release-stamp" + +abi_release() { + local stamp="$LIBS_DIR/$1/$ABI_STAMP_NAME" + [ -f "$LIBS_DIR/$1/libv8_monolith.a" ] && [ -f "$stamp" ] && cat "$stamp" +} + installed() { [ -f "$STAMP" ] && [ "$(cat "$STAMP")" = "$RELEASE" ] || return 1 [ -f "$CPP_DIR/include/v8.h" ] && [ -d "$CPP_DIR/v8_inspector/src" ] || return 1 for abi in "${ABIS[@]}"; do - [ -f "$LIBS_DIR/$abi/libv8_monolith.a" ] || return 1 + [ "$(abi_release "$abi")" = "$RELEASE" ] || return 1 done } @@ -132,6 +138,19 @@ for ABI in "${ABIS[@]}"; do [ -f "$src" ] || { echo "Archive for $ABI has no libv8_monolith.a" >&2; exit 1; } mkdir -p "$LIBS_DIR/$ABI" cp "$src" "$LIBS_DIR/$ABI/libv8_monolith.a" + echo "$RELEASE" > "$LIBS_DIR/$ABI/$ABI_STAMP_NAME" +done + +# An ABI this run did not install keeps another release's library, which must +# not be linked against the headers installed below: remove it, so a build of +# that ABI fails until it is installed for this release too. +for dir in "$LIBS_DIR"/*/; do + abi="$(basename "$dir")" + [ -f "$dir/libv8_monolith.a" ] || continue + if [ "$(abi_release "$abi")" != "$RELEASE" ]; then + echo " removing $abi's library from another release; run with --abi $abi to install it" + rm -f "$dir/libv8_monolith.a" "$dir/$ABI_STAMP_NAME" + fi done echo "Installing public headers" From 092aaf71590d9f53912ffcf88f937db78ac505d0 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Sat, 21 Nov 2026 19:49:35 -0300 Subject: [PATCH 3/3] build: pin V8 v8-14.9.207.39-12 Adds the fast path for stores a masking named interceptor declines (existing own data fields), behind --store-ic-declined-interceptor-fast-path, on by default. --- V8_RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V8_RELEASE b/V8_RELEASE index f730d502e..7d44f0d8a 100644 --- a/V8_RELEASE +++ b/V8_RELEASE @@ -1 +1 @@ -v8-14.9.207.39-11 +v8-14.9.207.39-12