Skip to content

Commit a19a804

Browse files
targosjoyeecheung
andcommitted
tools: update V8 gypfiles for 14.8
Co-Authored-By: Joyee Cheung <[email protected]>
1 parent b82a15d commit a19a804

6 files changed

Lines changed: 66 additions & 34 deletions

File tree

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
valid_mips_float_abi = ('soft', 'hard')
5656
valid_intl_modes = ('none', 'small-icu', 'full-icu', 'system-icu')
5757
icu_versions = json.loads((tools_path / 'icu' / 'icu_versions.json').read_text(encoding='utf-8'))
58-
maglev_enabled_architectures = ('x64', 'arm', 'arm64', 's390x')
58+
maglev_enabled_architectures = ('x64', 'arm', 'arm64', 's390x', 'ppc64', 'riscv64', 'loong64')
5959

6060
# builtins may be removed later if they have been disabled by options
6161
shareable_builtins = {'undici/undici': 'deps/undici/undici.js',

tools/v8_gypfiles/GN-scraper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def DoMain(args):
1313

1414
scraper_re = re.compile(pattern + r'\[([^\]]+)', re.DOTALL)
1515
matches = scraper_re.search(gn_content)
16+
if not matches:
17+
raise Exception('Pattern "%s" not found in %s' % (pattern, gn_filename))
1618
match = matches.group(1)
1719
files = []
1820
for l in match.splitlines():

tools/v8_gypfiles/abseil.gyp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
'<(ABSEIL_ROOT)/absl/base/internal/sysinfo.cc',
6767
'<(ABSEIL_ROOT)/absl/base/internal/thread_identity.h',
6868
'<(ABSEIL_ROOT)/absl/base/internal/thread_identity.cc',
69-
'<(ABSEIL_ROOT)/absl/base/internal/throw_delegate.h',
70-
'<(ABSEIL_ROOT)/absl/base/internal/throw_delegate.cc',
7169
'<(ABSEIL_ROOT)/absl/base/internal/tracing.h',
7270
'<(ABSEIL_ROOT)/absl/base/internal/tracing.cc',
7371
'<(ABSEIL_ROOT)/absl/base/internal/tsan_mutex_interface.h',
@@ -86,6 +84,8 @@
8684
'<(ABSEIL_ROOT)/absl/base/port.h',
8785
'<(ABSEIL_ROOT)/absl/base/prefetch.h',
8886
'<(ABSEIL_ROOT)/absl/base/thread_annotations.h',
87+
'<(ABSEIL_ROOT)/absl/base/throw_delegate.h',
88+
'<(ABSEIL_ROOT)/absl/base/throw_delegate.cc',
8989
'<(ABSEIL_ROOT)/absl/cleanup/cleanup.h',
9090
'<(ABSEIL_ROOT)/absl/cleanup/internal/cleanup.h',
9191
'<(ABSEIL_ROOT)/absl/container/btree_map.h',
@@ -141,8 +141,6 @@
141141
'<(ABSEIL_ROOT)/absl/debugging/failure_signal_handler.cc',
142142
'<(ABSEIL_ROOT)/absl/debugging/internal/address_is_readable.h',
143143
'<(ABSEIL_ROOT)/absl/debugging/internal/address_is_readable.cc',
144-
'<(ABSEIL_ROOT)/absl/debugging/internal/borrowed_fixup_buffer.h',
145-
'<(ABSEIL_ROOT)/absl/debugging/internal/borrowed_fixup_buffer.cc',
146144
'<(ABSEIL_ROOT)/absl/debugging/internal/bounded_utf8_length_sequence.h',
147145
'<(ABSEIL_ROOT)/absl/debugging/internal/decode_rust_punycode.h',
148146
'<(ABSEIL_ROOT)/absl/debugging/internal/decode_rust_punycode.cc',
@@ -337,6 +335,8 @@
337335
'<(ABSEIL_ROOT)/absl/time/civil_time.cc',
338336
'<(ABSEIL_ROOT)/absl/time/clock.h',
339337
'<(ABSEIL_ROOT)/absl/time/clock.cc',
338+
'<(ABSEIL_ROOT)/absl/time/clock_interface.h',
339+
'<(ABSEIL_ROOT)/absl/time/clock_interface.cc',
340340
'<(ABSEIL_ROOT)/absl/time/duration.cc',
341341
'<(ABSEIL_ROOT)/absl/time/format.cc',
342342
'<(ABSEIL_ROOT)/absl/time/internal/cctz/include/cctz/civil_time.h',
@@ -362,6 +362,8 @@
362362
'<(ABSEIL_ROOT)/absl/time/internal/cctz/src/zone_info_source.cc',
363363
'<(ABSEIL_ROOT)/absl/time/internal/get_current_time_chrono.inc',
364364
'<(ABSEIL_ROOT)/absl/time/internal/get_current_time_posix.inc',
365+
'<(ABSEIL_ROOT)/absl/time/simulated_clock.h',
366+
'<(ABSEIL_ROOT)/absl/time/simulated_clock.cc',
365367
'<(ABSEIL_ROOT)/absl/time/time.h',
366368
'<(ABSEIL_ROOT)/absl/time/time.cc',
367369
'<(ABSEIL_ROOT)/absl/types/any.h',

tools/v8_gypfiles/features.gypi

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@
236236
# Sets -DV8_ENABLE_SANDBOX.
237237
'v8_enable_sandbox%': 0,
238238

239-
# Enable leaptiering
240-
'v8_enable_leaptiering%': 1,
241-
242239
# Enable support for external code range relative to the pointer compression
243240
# cage.
244241
# Sets -DV8_EXTERNAL_CODE_SPACE.
@@ -292,6 +289,9 @@
292289
# ReadOnlySpace.
293290
'v8_enable_extensible_ro_snapshot%': 1,
294291

292+
# Use the encoding of undefined in double values.
293+
'v8_enable_undefined_double%': 1,
294+
295295
# Variables from v8.gni
296296

297297
# Enable ECMAScript Internationalization API. Enabling this feature will
@@ -435,6 +435,12 @@
435435
}],
436436
['v8_disable_write_barriers==1', {
437437
'defines': ['V8_DISABLE_WRITE_BARRIERS',],
438+
}, {
439+
'configurations': {
440+
'Debug': {
441+
'defines': ['V8_VERIFY_WRITE_BARRIERS'],
442+
},
443+
},
438444
}],
439445
['v8_enable_atomic_object_field_writes==1', {
440446
'defines': ['V8_ATOMIC_OBJECT_FIELD_WRITES',],
@@ -489,8 +495,8 @@
489495
['v8_enable_extensible_ro_snapshot==1', {
490496
'defines': ['V8_ENABLE_EXTENSIBLE_RO_SNAPSHOT',],
491497
}],
492-
['v8_enable_leaptiering==1', {
493-
'defines': ['V8_ENABLE_LEAPTIERING',],
498+
['v8_enable_undefined_double==1', {
499+
'defines': ['V8_ENABLE_UNDEFINED_DOUBLE',],
494500
}],
495501
['v8_enable_precise_zone_stats==1', {
496502
'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',],

tools/v8_gypfiles/toolchain.gypi

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -158,31 +158,12 @@
158158
['v8_target_arch=="arm"', {
159159
'defines': [
160160
'V8_TARGET_ARCH_ARM',
161+
'CAN_USE_ARMV7_INSTRUCTIONS',
162+
'CAN_USE_VFP3_INSTRUCTIONS',
163+
'CAN_USE_VFP32DREGS',
164+
'CAN_USE_NEON',
161165
],
162166
'conditions': [
163-
[ 'arm_version==7 or arm_version=="default"', {
164-
'defines': [
165-
'CAN_USE_ARMV7_INSTRUCTIONS',
166-
],
167-
}],
168-
[ 'arm_fpu=="vfpv3-d16" or arm_fpu=="default"', {
169-
'defines': [
170-
'CAN_USE_VFP3_INSTRUCTIONS',
171-
],
172-
}],
173-
[ 'arm_fpu=="vfpv3"', {
174-
'defines': [
175-
'CAN_USE_VFP3_INSTRUCTIONS',
176-
'CAN_USE_VFP32DREGS',
177-
],
178-
}],
179-
[ 'arm_fpu=="neon"', {
180-
'defines': [
181-
'CAN_USE_VFP3_INSTRUCTIONS',
182-
'CAN_USE_VFP32DREGS',
183-
'CAN_USE_NEON',
184-
],
185-
}],
186167
[ 'arm_test_noprobe=="on"', {
187168
'defines': [
188169
'ARM_TEST_NO_FEATURE_PROBE',

tools/v8_gypfiles/v8.gyp

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,41 @@
14751475
],
14761476

14771477
'conditions': [
1478+
['v8_target_arch=="ia32" or v8_target_arch=="x64"', {
1479+
'sources': [
1480+
'<(V8_ROOT)/src/base/cpu/cpu-x86.cc',
1481+
],
1482+
}],
1483+
['v8_target_arch=="arm" or v8_target_arch=="arm64"', {
1484+
'sources': [
1485+
'<(V8_ROOT)/src/base/cpu/cpu-arm.cc',
1486+
],
1487+
}],
1488+
['v8_target_arch=="riscv64"', {
1489+
'sources': [
1490+
'<(V8_ROOT)/src/base/cpu/cpu-riscv.cc',
1491+
],
1492+
}],
1493+
['v8_target_arch=="loong64"', {
1494+
'sources': [
1495+
'<(V8_ROOT)/src/base/cpu/cpu-loong64.cc',
1496+
],
1497+
}],
1498+
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1499+
'sources': [
1500+
'<(V8_ROOT)/src/base/cpu/cpu-mips64.cc',
1501+
],
1502+
}],
1503+
['v8_target_arch=="ppc64"', {
1504+
'sources': [
1505+
'<(V8_ROOT)/src/base/cpu/cpu-ppc.cc',
1506+
],
1507+
}],
1508+
['v8_target_arch=="s390x"', {
1509+
'sources': [
1510+
'<(V8_ROOT)/src/base/cpu/cpu-s390.cc',
1511+
],
1512+
}],
14781513
['is_component_build', {
14791514
'defines': ["BUILDING_V8_BASE_SHARED"],
14801515
}],
@@ -1998,7 +2033,7 @@
19982033
'toolsets': ['host', 'target'],
19992034
'direct_dependent_settings': {
20002035
'sources': [
2001-
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?sources = ")',
2036+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_cluster_source_set.\\"cppgc_base.*?sources = ")',
20022037
],
20032038
},
20042039
}, # cppgc_base
@@ -2188,6 +2223,10 @@
21882223
'<(V8_ROOT)/src/objects/casting-inl.h',
21892224
'<(V8_ROOT)/src/objects/code.h',
21902225
'<(V8_ROOT)/src/objects/code-inl.h',
2226+
'<(V8_ROOT)/src/objects/cpp-heap-external-object.h',
2227+
'<(V8_ROOT)/src/objects/cpp-heap-external-object-inl.h',
2228+
'<(V8_ROOT)/src/objects/cpp-heap-object-wrapper.h',
2229+
'<(V8_ROOT)/src/objects/cpp-heap-object-wrapper-inl.h',
21912230
'<(V8_ROOT)/src/objects/data-handler.h',
21922231
'<(V8_ROOT)/src/objects/data-handler-inl.h',
21932232
'<(V8_ROOT)/src/objects/deoptimization-data.h',
@@ -2242,6 +2281,7 @@
22422281
'<(V8_ROOT)/src/objects/primitive-heap-object-inl.h',
22432282
'<(V8_ROOT)/src/objects/scope-info.h',
22442283
'<(V8_ROOT)/src/objects/scope-info-inl.h',
2284+
'<(V8_ROOT)/src/objects/script.cc',
22452285
'<(V8_ROOT)/src/objects/script.h',
22462286
'<(V8_ROOT)/src/objects/script-inl.h',
22472287
'<(V8_ROOT)/src/objects/shared-function-info.cc',
@@ -2255,6 +2295,7 @@
22552295
'<(V8_ROOT)/src/objects/struct.h',
22562296
'<(V8_ROOT)/src/objects/struct-inl.h',
22572297
'<(V8_ROOT)/src/objects/tagged.h',
2298+
'<(V8_ROOT)/src/objects/union.h',
22582299
],
22592300
},
22602301
'actions': [

0 commit comments

Comments
 (0)