libv8-node 22.7.0.4 → 24.1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libv8/node/version.rb +3 -3
- data/libexec/build-libv8 +13 -2
- data/libexec/build-monolith +3 -3
- data/libexec/extract-node +2 -16
- data/libexec/inject-libv8 +3 -1
- data/libexec/platform +15 -15
- data/patch/v8-add-missing-typename.patch +66 -0
- data/patch/v8-std-is-trivially-destructible.patch +22 -0
- data/sums/v22.13.1.sum +1 -0
- data/sums/v22.9.0.sum +1 -0
- data/sums/v23.6.1.sum +1 -0
- data/sums/v23.8.0.sum +1 -0
- data/sums/v24.1.0.sum +1 -0
- metadata +9 -8
- data/patch/gyp-libv8_monolith.patch +0 -44
- data/patch/py2-genv8constants.patch +0 -10
- data/patch/py2-icutrim.patch +0 -14
- data/patch/py3-genv8constants.patch +0 -20
- data/patch/v8-disable-marking.patch +0 -22
- data/patch/v8-no-assert-trivially-copyable.patch +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b8e967d1a38a0d8436f0f0d6019d04a37a1ff32089e4f7240dccaa4757124c
|
4
|
+
data.tar.gz: f9a4f5dac6062d022367f5a66c251d09484e8d6924e3d6b7b50dd60c5ac5e109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d62e6a23daf53112c214e2440ff189baeee278b903d1031067bcb2791fa207b7d529075f0fa07a922965d365aeb0b5f64467f94cadc91ea99e0728eccc93eed
|
7
|
+
data.tar.gz: 840e1fbf57f570b491efab1696d7ecf3ffbf70d28f9364b3f69d559ad6bf59db4be7703d93fe56abb61ed20e2699d97086e0a7b8cca45ff5e2d5d958842ad181
|
data/lib/libv8/node/version.rb
CHANGED
@@ -4,7 +4,7 @@ module Libv8
|
|
4
4
|
end
|
5
5
|
|
6
6
|
module Libv8::Node
|
7
|
-
VERSION = '
|
8
|
-
NODE_VERSION = '
|
9
|
-
LIBV8_VERSION = '
|
7
|
+
VERSION = '24.1.0.0'
|
8
|
+
NODE_VERSION = '24.1.0'
|
9
|
+
LIBV8_VERSION = '13.6.233.10' # from src/node-.../deps/v8/include/v8-version.h
|
10
10
|
end
|
data/libexec/build-libv8
CHANGED
@@ -14,12 +14,13 @@ NJOBS="${NJOBS:-1}"
|
|
14
14
|
echo "parallel job count: ${NJOBS}"
|
15
15
|
|
16
16
|
BUILDTYPE="${BUILDTYPE:-Release}"
|
17
|
+
GITHUB_ACTIONS="${GITHUB_ACTIONS:-}"
|
17
18
|
|
18
19
|
cd "${src}/node-v${version}"
|
19
20
|
|
20
21
|
# Maglev is disabled because of a suspected x64 snapshot regression in
|
21
22
|
# DoComputeOutputFrames
|
22
|
-
configure_flags='--
|
23
|
+
configure_flags='--openssl-no-asm --without-npm --shared --with-intl=full-icu'
|
23
24
|
eval "$("${libexec}/platform")"
|
24
25
|
|
25
26
|
echo "configure: ${configure_flags}"
|
@@ -42,5 +43,15 @@ if [ "$host_platform" != "$target_platform" ] && [ "${target_platform%%-*}" = "a
|
|
42
43
|
find . -iname "*.host.mk" -exec sed -i '/-msign-return-address/d' {} ';'
|
43
44
|
fi
|
44
45
|
|
46
|
+
if [ "${BUILDTYPE}" = "Release" ] && [ "${GITHUB_ACTIONS}" != "" ]; then
|
47
|
+
case "${target_platform}" in
|
48
|
+
arm64*-darwin*)
|
49
|
+
# dwarf debug info for v8 is so massive the macos
|
50
|
+
# builder runs out of disk space when it's enabled
|
51
|
+
find out -name '*.mk' -exec sed -i '' -e 's/gdwarf-2/g0/g' {} ';'
|
52
|
+
;;
|
53
|
+
esac
|
54
|
+
fi
|
55
|
+
|
45
56
|
export PATH="${PWD}/out/tools/bin:${PATH}"
|
46
|
-
make -j"${NJOBS}" -C out BUILDTYPE="${BUILDTYPE}" V=
|
57
|
+
make -j"${NJOBS}" -C out BUILDTYPE="${BUILDTYPE}" V=
|
data/libexec/build-monolith
CHANGED
@@ -21,13 +21,13 @@ platform=$(uname)
|
|
21
21
|
rm -f "${LIBV8_MONOLITH}"
|
22
22
|
case "${platform}" in
|
23
23
|
"SunOS")
|
24
|
-
/usr/xpg4/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar cq "${LIBV8_MONOLITH}"
|
24
|
+
/usr/xpg4/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" -or -path './abseil/deps/v8/third_party/abseil-cpp/absl/**/*.o' -or -path './highway/deps/v8/third_party/highway/**/*.o' -or -path './simdutf/deps/v8/third_party/simdutf/*.o' | sort | uniq | xargs ar cq "${LIBV8_MONOLITH}"
|
25
25
|
;;
|
26
26
|
"Darwin")
|
27
|
-
/usr/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
|
27
|
+
/usr/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" -or -path './abseil/deps/v8/third_party/abseil-cpp/absl/**/*.o' -or -path './highway/deps/v8/third_party/highway/**/*.o' -or -path './simdutf/deps/v8/third_party/simdutf/*.o' | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
|
28
28
|
;;
|
29
29
|
"Linux")
|
30
|
-
find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -and '(' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" ')' | sort | uniq | xargs ar -cqSP "${LIBV8_MONOLITH}"
|
30
|
+
find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -and '(' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" -or -path './abseil/deps/v8/third_party/abseil-cpp/absl/**/*.o' -or -path './highway/deps/v8/third_party/highway/**/*.o' -or -path './simdutf/deps/v8/third_party/simdutf/*.o' ')' | sort | uniq | xargs ar -cqSP "${LIBV8_MONOLITH}"
|
31
31
|
ar -sP "${LIBV8_MONOLITH}"
|
32
32
|
;;
|
33
33
|
*)
|
data/libexec/extract-node
CHANGED
@@ -29,21 +29,7 @@ extract "${src}" "${src}/node-v${version}.tar.gz"
|
|
29
29
|
|
30
30
|
cd "${src}/node-v${version}"
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
#patch -p1 < "${top}"/patch/py2-genv8constants.patch
|
35
|
-
patch -p1 < "${top}"/patch/v8-no-assert-trivially-copyable.patch
|
32
|
+
patch -p1 < "${top}"/patch/v8-add-missing-typename.patch
|
33
|
+
patch -p1 < "${top}"/patch/v8-std-is-trivially-destructible.patch
|
36
34
|
patch -p1 < "${top}"/patch/v8-disable-madv-dontfork.patch
|
37
35
|
patch -p1 < "${top}"/patch/v8-disable-pkey.patch
|
38
|
-
patch -p1 < "${top}"/patch/v8-disable-marking.patch
|
39
|
-
|
40
|
-
# TODO: the following still fails on py3 so the above one forcing py2 is needed
|
41
|
-
# patch -p1 < ../../py3-genv8constants.patch
|
42
|
-
#
|
43
|
-
# This is the error:
|
44
|
-
#
|
45
|
-
# Traceback (most recent call last):
|
46
|
-
# File "tools/genv8constants.py", line 99, in <module>
|
47
|
-
# curr_val += int('0x%s' % octetstr, 16) << (curr_octet * 8)
|
48
|
-
# ValueError: invalid literal for int() with base 16: "0xb'04 '"
|
49
|
-
# node_dtrace_ustack.target.mk:13: recipe for target '/usbkey/user_home/vagrant/ruby-libv8-node/src/node-14.14.0/out/Release/obj/gen/v8constants.h' failed
|
data/libexec/inject-libv8
CHANGED
@@ -56,7 +56,9 @@ for lib in libv8_monolith.a; do
|
|
56
56
|
"$AR" "$AREXTRACTFLAGS" "$BASEDIR/out/${BUILDTYPE}/$lib"
|
57
57
|
|
58
58
|
# strip all objects
|
59
|
-
"$
|
59
|
+
if [ "$BUILDTYPE" = "Release" ]; then
|
60
|
+
"$FIND" -type f -exec "$STRIP" -Sx {} +
|
61
|
+
fi
|
60
62
|
|
61
63
|
# rebuild the archive
|
62
64
|
"$FIND" -type f -exec "$AR" "$ARCOLLECTFLAGS" "../$lib" {} +
|
data/libexec/platform
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
set -e
|
4
4
|
set -u
|
5
5
|
|
6
|
-
if command -v
|
7
|
-
CC="${CC:-clang}"
|
8
|
-
CXX="${CXX:-clang++}"
|
9
|
-
elif command -v gcc >/dev/null 2>&1; then
|
6
|
+
if command -v gcc >/dev/null 2>&1; then
|
10
7
|
CC="${CC:-gcc}"
|
11
8
|
CXX="${CXX:-g++}"
|
9
|
+
elif command -v clang >/dev/null 2>&1; then
|
10
|
+
CC="${CC:-clang}"
|
11
|
+
CXX="${CXX:-clang++}"
|
12
12
|
elif command -v cc >/dev/null 2>&1; then
|
13
13
|
CC="${CC:-cc}"
|
14
14
|
CXX="${CXX:-c++}"
|
@@ -142,17 +142,17 @@ fi
|
|
142
142
|
# ;;
|
143
143
|
# esac
|
144
144
|
|
145
|
-
if command -v ccache >/dev/null 2>&1; then
|
146
|
-
if [ -n "${CC:-}" ] && [ "${CC}" = "${CC#ccache}" ]; then
|
147
|
-
CC="ccache ${CC}"
|
148
|
-
CXX="ccache ${CXX}"
|
149
|
-
fi
|
150
|
-
|
151
|
-
if [ -n "${CC_host:-}" ] && [ "${CC_host}" = "${CC_host#ccache}" ]; then
|
152
|
-
CC_host="ccache ${CC_host}"
|
153
|
-
CXX_host="ccache ${CXX_host}"
|
154
|
-
fi
|
155
|
-
fi
|
145
|
+
#if command -v ccache >/dev/null 2>&1; then
|
146
|
+
# if [ -n "${CC:-}" ] && [ "${CC}" = "${CC#ccache}" ]; then
|
147
|
+
# CC="ccache ${CC}"
|
148
|
+
# CXX="ccache ${CXX}"
|
149
|
+
# fi
|
150
|
+
#
|
151
|
+
# if [ -n "${CC_host:-}" ] && [ "${CC_host}" = "${CC_host#ccache}" ]; then
|
152
|
+
# CC_host="ccache ${CC_host}"
|
153
|
+
# CXX_host="ccache ${CXX_host}"
|
154
|
+
# fi
|
155
|
+
#fi
|
156
156
|
|
157
157
|
cat <<EOF
|
158
158
|
export CC='${CC}'
|
@@ -0,0 +1,66 @@
|
|
1
|
+
diff --git a/deps/v8/src/objects/ordered-hash-table.h b/deps/v8/src/objects/ordered-hash-table.h
|
2
|
+
index 0e1605d566..8145bb1b8a 100644
|
3
|
+
--- a/deps/v8/src/objects/ordered-hash-table.h
|
4
|
+
+++ b/deps/v8/src/objects/ordered-hash-table.h
|
5
|
+
@@ -70,7 +70,7 @@ class OrderedHashTable : public FixedArray {
|
6
|
+
// to add at least one new element.
|
7
|
+
template <template <typename> typename HandleType>
|
8
|
+
requires(std::is_convertible_v<HandleType<Derived>, DirectHandle<Derived>>)
|
9
|
+
- static HandleType<Derived>::MaybeType EnsureCapacityForAdding(
|
10
|
+
+ static typename HandleType<Derived>::MaybeType EnsureCapacityForAdding(
|
11
|
+
Isolate* isolate, HandleType<Derived> table);
|
12
|
+
|
13
|
+
// Returns an OrderedHashTable (possibly |table|) that's shrunken
|
14
|
+
@@ -218,11 +218,11 @@ class OrderedHashTable : public FixedArray {
|
15
|
+
|
16
|
+
template <template <typename> typename HandleType>
|
17
|
+
requires(std::is_convertible_v<HandleType<Derived>, DirectHandle<Derived>>)
|
18
|
+
- static HandleType<Derived>::MaybeType Rehash(Isolate* isolate,
|
19
|
+
+ static typename HandleType<Derived>::MaybeType Rehash(Isolate* isolate,
|
20
|
+
HandleType<Derived> table);
|
21
|
+
template <template <typename> typename HandleType>
|
22
|
+
requires(std::is_convertible_v<HandleType<Derived>, DirectHandle<Derived>>)
|
23
|
+
- static HandleType<Derived>::MaybeType Rehash(Isolate* isolate,
|
24
|
+
+ static typename HandleType<Derived>::MaybeType Rehash(Isolate* isolate,
|
25
|
+
HandleType<Derived> table,
|
26
|
+
int new_capacity);
|
27
|
+
|
28
|
+
@@ -287,7 +287,7 @@ class V8_EXPORT_PRIVATE OrderedHashSet
|
29
|
+
template <template <typename> typename HandleType>
|
30
|
+
requires(std::is_convertible_v<HandleType<OrderedHashSet>,
|
31
|
+
DirectHandle<OrderedHashSet>>)
|
32
|
+
- static HandleType<OrderedHashSet>::MaybeType Add(
|
33
|
+
+ static typename HandleType<OrderedHashSet>::MaybeType Add(
|
34
|
+
Isolate* isolate, HandleType<OrderedHashSet> table,
|
35
|
+
DirectHandle<Object> value);
|
36
|
+
static Handle<FixedArray> ConvertToKeysArray(Isolate* isolate,
|
37
|
+
@@ -296,12 +296,12 @@ class V8_EXPORT_PRIVATE OrderedHashSet
|
38
|
+
template <template <typename> typename HandleType>
|
39
|
+
requires(std::is_convertible_v<HandleType<OrderedHashSet>,
|
40
|
+
DirectHandle<OrderedHashSet>>)
|
41
|
+
- static HandleType<OrderedHashSet>::MaybeType Rehash(
|
42
|
+
+ static typename HandleType<OrderedHashSet>::MaybeType Rehash(
|
43
|
+
Isolate* isolate, HandleType<OrderedHashSet> table);
|
44
|
+
template <template <typename> typename HandleType>
|
45
|
+
requires(std::is_convertible_v<HandleType<OrderedHashSet>,
|
46
|
+
DirectHandle<OrderedHashSet>>)
|
47
|
+
- static HandleType<OrderedHashSet>::MaybeType Rehash(
|
48
|
+
+ static typename HandleType<OrderedHashSet>::MaybeType Rehash(
|
49
|
+
Isolate* isolate, HandleType<OrderedHashSet> table, int new_capacity);
|
50
|
+
|
51
|
+
template <typename IsolateT>
|
52
|
+
@@ -343,12 +343,12 @@ class V8_EXPORT_PRIVATE OrderedHashMap
|
53
|
+
template <template <typename> typename HandleType>
|
54
|
+
requires(std::is_convertible_v<HandleType<OrderedHashMap>,
|
55
|
+
DirectHandle<OrderedHashMap>>)
|
56
|
+
- static HandleType<OrderedHashMap>::MaybeType Rehash(
|
57
|
+
+ static typename HandleType<OrderedHashMap>::MaybeType Rehash(
|
58
|
+
Isolate* isolate, HandleType<OrderedHashMap> table);
|
59
|
+
template <template <typename> typename HandleType>
|
60
|
+
requires(std::is_convertible_v<HandleType<OrderedHashMap>,
|
61
|
+
DirectHandle<OrderedHashMap>>)
|
62
|
+
- static HandleType<OrderedHashMap>::MaybeType Rehash(
|
63
|
+
+ static typename HandleType<OrderedHashMap>::MaybeType Rehash(
|
64
|
+
Isolate* isolate, HandleType<OrderedHashMap> table, int new_capacity);
|
65
|
+
|
66
|
+
void SetEntry(InternalIndex entry, Tagged<Object> key, Tagged<Object> value);
|
@@ -0,0 +1,22 @@
|
|
1
|
+
diff --git a/deps/v8/src/base/macros.h b/deps/v8/src/base/macros.h
|
2
|
+
index d404b6120a..053ac0e5ba 100644
|
3
|
+
--- a/deps/v8/src/base/macros.h
|
4
|
+
+++ b/deps/v8/src/base/macros.h
|
5
|
+
@@ -173,7 +173,7 @@ namespace base {
|
6
|
+
// base::is_trivially_copyable will differ for these cases.
|
7
|
+
template <typename T>
|
8
|
+
struct is_trivially_copyable {
|
9
|
+
-#if V8_CC_MSVC || (__GNUC__ == 12 && __GNUC_MINOR__ <= 2)
|
10
|
+
+#if V8_CC_MSVC || (__GNUC__ == 12 && __GNUC_MINOR__ <= 2) || defined(__clang__)
|
11
|
+
// Unfortunately, MSVC 2015 is broken in that std::is_trivially_copyable can
|
12
|
+
// be false even though it should be true according to the standard.
|
13
|
+
// (status at 2018-02-26, observed on the msvc waterfall bot).
|
14
|
+
@@ -186,6 +186,8 @@ struct is_trivially_copyable {
|
15
|
+
// distributions, so the same polyfill is also used.
|
16
|
+
// See
|
17
|
+
// https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=aeba3e009b0abfccaf01797556445dbf891cc8dc
|
18
|
+
+ //
|
19
|
+
+ // The same is observed with at least clang 14 and 15.
|
20
|
+
static constexpr bool value =
|
21
|
+
// Copy constructor is trivial or deleted.
|
22
|
+
(std::is_trivially_copy_constructible<T>::value ||
|
data/sums/v22.13.1.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
e7d5b1e84e7f3c3cebda81e2b138469eef41ba4ecf16a87fd15fc3f7afa3f701
|
data/sums/v22.9.0.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
296854aa1dca140b0462c2415637d0419e42af91114538a7e6fdf623971a6833
|
data/sums/v23.6.1.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
35c0f7957085083071fcf01c7eaea953fba98f17afc4d7c189e3ef56925b453c
|
data/sums/v23.8.0.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
23b5e0b0b6752a21c7af4e2361655a54ad499d3ae06b6f9af1dd311365b8496a
|
data/sums/v24.1.0.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
b565cba1dd8f2eb3db7c95e0c3a87ecc5e77f079611ea6a3688531511383ec72
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libv8-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 24.1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -63,14 +63,10 @@ files:
|
|
63
63
|
- libexec/inject-libv8
|
64
64
|
- libexec/metadata
|
65
65
|
- libexec/platform
|
66
|
-
- patch/
|
67
|
-
- patch/py2-genv8constants.patch
|
68
|
-
- patch/py2-icutrim.patch
|
69
|
-
- patch/py3-genv8constants.patch
|
66
|
+
- patch/v8-add-missing-typename.patch
|
70
67
|
- patch/v8-disable-madv-dontfork.patch
|
71
|
-
- patch/v8-disable-marking.patch
|
72
68
|
- patch/v8-disable-pkey.patch
|
73
|
-
- patch/v8-
|
69
|
+
- patch/v8-std-is-trivially-destructible.patch
|
74
70
|
- sums/v16.10.0.sum
|
75
71
|
- sums/v16.11.1.sum
|
76
72
|
- sums/v16.3.0.sum
|
@@ -88,9 +84,14 @@ files:
|
|
88
84
|
- sums/v20.12.1.sum
|
89
85
|
- sums/v20.2.0.sum
|
90
86
|
- sums/v21.7.2.sum
|
87
|
+
- sums/v22.13.1.sum
|
91
88
|
- sums/v22.5.1.sum
|
92
89
|
- sums/v22.6.0.sum
|
93
90
|
- sums/v22.7.0.sum
|
91
|
+
- sums/v22.9.0.sum
|
92
|
+
- sums/v23.6.1.sum
|
93
|
+
- sums/v23.8.0.sum
|
94
|
+
- sums/v24.1.0.sum
|
94
95
|
homepage: https://github.com/rubyjs/libv8-node
|
95
96
|
licenses:
|
96
97
|
- MIT
|
@@ -1,44 +0,0 @@
|
|
1
|
-
--- a/node.gyp 2020-11-04 15:55:48.000000000 +0100
|
2
|
-
+++ b/node.gyp 2020-11-04 15:55:51.000000000 +0100
|
3
|
-
@@ -1467,6 +1467,16 @@
|
4
|
-
}],
|
5
|
-
],
|
6
|
-
}, # node_mksnapshot
|
7
|
-
+ {
|
8
|
-
+ 'target_name': 'libv8_monolith',
|
9
|
-
+ 'type': 'none',
|
10
|
-
+ 'includes': [
|
11
|
-
+ 'node.gypi'
|
12
|
-
+ ],
|
13
|
-
+ #'dependencies': [
|
14
|
-
+ # 'tools/v8_gypfiles/v8.gyp:v8_monolith',
|
15
|
-
+ #],
|
16
|
-
+ },
|
17
|
-
], # end targets
|
18
|
-
|
19
|
-
'conditions': [
|
20
|
-
--- a/tools/v8_gypfiles/v8.gyp 2020-11-04 16:34:06.000000000 +0100
|
21
|
-
+++ b/tools/v8_gypfiles/v8.gyp 2020-11-04 16:34:10.000000000 +0100
|
22
|
-
@@ -1726,5 +1726,21 @@
|
23
|
-
'<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.h',
|
24
|
-
],
|
25
|
-
}, # v8_zlib
|
26
|
-
+ {
|
27
|
-
+ 'target_name': 'v8_monolith',
|
28
|
-
+ 'type': 'static_library',
|
29
|
-
+ 'sources': [
|
30
|
-
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8.*?sources = ")',
|
31
|
-
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libbase.*?sources = ")',
|
32
|
-
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libplatform.*?sources = ")',
|
33
|
-
+ '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libsampler.*?sources = ")',
|
34
|
-
+ ],
|
35
|
-
+ 'dependencies': [
|
36
|
-
+ 'v8',
|
37
|
-
+ 'v8_libbase',
|
38
|
-
+ 'v8_libplatform',
|
39
|
-
+ 'v8_libsampler',
|
40
|
-
+ ],
|
41
|
-
+ }
|
42
|
-
],
|
43
|
-
}
|
44
|
-
|
data/patch/py2-icutrim.patch
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
--- a/tools/icu/icutrim.py 2020-11-03 16:54:23.000000000 +0100
|
2
|
-
+++ b/tools/icu/icutrim.py 2020-11-03 16:54:27.000000000 +0100
|
3
|
-
@@ -316,7 +316,10 @@
|
4
|
-
erritems = fi.readlines()
|
5
|
-
fi.close()
|
6
|
-
#Item zone/zh_Hant_TW.res depends on missing item zone/zh_Hant.res
|
7
|
-
- pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
|
8
|
-
+ if str == bytes:
|
9
|
-
+ pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*"))
|
10
|
-
+ else:
|
11
|
-
+ pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
|
12
|
-
for i in range(len(erritems)):
|
13
|
-
line = erritems[i].strip()
|
14
|
-
m = pat.match(line)
|
@@ -1,20 +0,0 @@
|
|
1
|
-
--- a/tools/genv8constants.py 2020-11-04 09:49:14.000000000 +0100
|
2
|
-
+++ b/tools/genv8constants.py 2020-11-04 09:49:25.000000000 +0100
|
3
|
-
@@ -33,9 +33,14 @@
|
4
|
-
|
5
|
-
sys.exit()
|
6
|
-
|
7
|
-
-pattern = re.compile(bytes('([0-9a-fA-F]{8}|[0-9a-fA-F]{16}) <(.*)>:'))
|
8
|
-
-v8dbg = re.compile(bytes('^v8dbg.*$'))
|
9
|
-
-numpattern = re.compile(bytes('^[0-9a-fA-F]{2} $'))
|
10
|
-
+if str == bytes:
|
11
|
-
+ pattern = re.compile(bytes('([0-9a-fA-F]{8}|[0-9a-fA-F]{16}) <(.*)>:'))
|
12
|
-
+ v8dbg = re.compile(bytes('^v8dbg.*$'))
|
13
|
-
+ numpattern = re.compile(bytes('^[0-9a-fA-F]{2} $'))
|
14
|
-
+else:
|
15
|
-
+ pattern = re.compile(bytes('([0-9a-fA-F]{8}|[0-9a-fA-F]{16}) <(.*)>:', 'utf-8'))
|
16
|
-
+ v8dbg = re.compile(bytes('^v8dbg.*$', 'utf-8'))
|
17
|
-
+ numpattern = re.compile(bytes('^[0-9a-fA-F]{2} $', 'utf-8'))
|
18
|
-
octets = 4
|
19
|
-
|
20
|
-
outfile.write("""
|
@@ -1,22 +0,0 @@
|
|
1
|
-
diff --git a/deps/v8/src/flags/flag-definitions.h b/deps/v8/src/flags/flag-definitions.h
|
2
|
-
index 0d50ac1522..2854768562 100644
|
3
|
-
--- a/deps/v8/src/flags/flag-definitions.h
|
4
|
-
+++ b/deps/v8/src/flags/flag-definitions.h
|
5
|
-
@@ -1764,7 +1764,7 @@ DEFINE_BOOL(minor_ms_trace_fragmentation, false,
|
6
|
-
DEFINE_BOOL(trace_evacuation, false, "report evacuation statistics")
|
7
|
-
DEFINE_BOOL(trace_mutator_utilization, false,
|
8
|
-
"print mutator utilization, allocation speed, gc speed")
|
9
|
-
-DEFINE_BOOL(incremental_marking, true, "use incremental marking")
|
10
|
-
+DEFINE_BOOL(incremental_marking, false, "use incremental marking")
|
11
|
-
DEFINE_BOOL(incremental_marking_bailout_when_ahead_of_schedule, true,
|
12
|
-
"bails out of incremental marking when ahead of schedule")
|
13
|
-
DEFINE_BOOL(incremental_marking_task, true, "use tasks for incremental marking")
|
14
|
-
@@ -1794,7 +1794,7 @@ DEFINE_IMPLICATION(cppgc_young_generation, minor_ms)
|
15
|
-
DEFINE_NEG_IMPLICATION(cppgc_young_generation, reclaim_unmodified_wrappers)
|
16
|
-
DEFINE_BOOL(optimize_gc_for_battery, false, "optimize GC for battery")
|
17
|
-
#if defined(V8_ATOMIC_OBJECT_FIELD_WRITES)
|
18
|
-
-DEFINE_BOOL(concurrent_marking, true, "use concurrent marking")
|
19
|
-
+DEFINE_BOOL(concurrent_marking, false, "use concurrent marking")
|
20
|
-
#else
|
21
|
-
// Concurrent marking cannot be used without atomic object field loads and
|
22
|
-
// stores.
|
@@ -1,14 +0,0 @@
|
|
1
|
-
diff --git a/deps/v8/src/base/small-vector.h b/deps/v8/src/base/small-vector.h
|
2
|
-
index edaab3a7a6..533a536178 100644
|
3
|
-
--- a/deps/v8/src/base/small-vector.h
|
4
|
-
+++ b/deps/v8/src/base/small-vector.h
|
5
|
-
@@ -20,9 +20,6 @@ namespace base {
|
6
|
-
// dynamic storage when it overflows.
|
7
|
-
template <typename T, size_t kSize, typename Allocator = std::allocator<T>>
|
8
|
-
class SmallVector {
|
9
|
-
- // Currently only support trivially copyable and trivially destructible data
|
10
|
-
- // types, as it uses memcpy to copy elements and never calls destructors.
|
11
|
-
- ASSERT_TRIVIALLY_COPYABLE(T);
|
12
|
-
static_assert(std::is_trivially_destructible<T>::value);
|
13
|
-
|
14
|
-
public:
|