Skip to content

Commit 64d4729

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

6 files changed

Lines changed: 60 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: 5 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
@@ -495,8 +495,8 @@
495495
['v8_enable_extensible_ro_snapshot==1', {
496496
'defines': ['V8_ENABLE_EXTENSIBLE_RO_SNAPSHOT',],
497497
}],
498-
['v8_enable_leaptiering==1', {
499-
'defines': ['V8_ENABLE_LEAPTIERING',],
498+
['v8_enable_undefined_double==1', {
499+
'defines': ['V8_ENABLE_UNDEFINED_DOUBLE',],
500500
}],
501501
['v8_enable_precise_zone_stats==1', {
502502
'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
@@ -1429,6 +1429,41 @@
14291429
],
14301430

14311431
'conditions': [
1432+
['v8_target_arch=="ia32" or v8_target_arch=="x64"', {
1433+
'sources': [
1434+
'<(V8_ROOT)/src/base/cpu/cpu-x86.cc',
1435+
],
1436+
}],
1437+
['v8_target_arch=="arm" or v8_target_arch=="arm64"', {
1438+
'sources': [
1439+
'<(V8_ROOT)/src/base/cpu/cpu-arm.cc',
1440+
],
1441+
}],
1442+
['v8_target_arch=="riscv64"', {
1443+
'sources': [
1444+
'<(V8_ROOT)/src/base/cpu/cpu-riscv.cc',
1445+
],
1446+
}],
1447+
['v8_target_arch=="loong64"', {
1448+
'sources': [
1449+
'<(V8_ROOT)/src/base/cpu/cpu-loong64.cc',
1450+
],
1451+
}],
1452+
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1453+
'sources': [
1454+
'<(V8_ROOT)/src/base/cpu/cpu-mips64.cc',
1455+
],
1456+
}],
1457+
['v8_target_arch=="ppc64"', {
1458+
'sources': [
1459+
'<(V8_ROOT)/src/base/cpu/cpu-ppc.cc',
1460+
],
1461+
}],
1462+
['v8_target_arch=="s390x"', {
1463+
'sources': [
1464+
'<(V8_ROOT)/src/base/cpu/cpu-s390.cc',
1465+
],
1466+
}],
14321467
['is_component_build', {
14331468
'defines': ["BUILDING_V8_BASE_SHARED"],
14341469
}],
@@ -2012,7 +2047,7 @@
20122047
'toolsets': ['host', 'target'],
20132048
'direct_dependent_settings': {
20142049
'sources': [
2015-
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?sources = ")',
2050+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_cluster_source_set.\\"cppgc_base.*?sources = ")',
20162051
],
20172052
},
20182053
}, # cppgc_base
@@ -2209,6 +2244,10 @@
22092244
'<(V8_ROOT)/src/objects/casting-inl.h',
22102245
'<(V8_ROOT)/src/objects/code.h',
22112246
'<(V8_ROOT)/src/objects/code-inl.h',
2247+
'<(V8_ROOT)/src/objects/cpp-heap-external-object.h',
2248+
'<(V8_ROOT)/src/objects/cpp-heap-external-object-inl.h',
2249+
'<(V8_ROOT)/src/objects/cpp-heap-object-wrapper.h',
2250+
'<(V8_ROOT)/src/objects/cpp-heap-object-wrapper-inl.h',
22122251
'<(V8_ROOT)/src/objects/data-handler.h',
22132252
'<(V8_ROOT)/src/objects/data-handler-inl.h',
22142253
'<(V8_ROOT)/src/objects/deoptimization-data.h',
@@ -2263,6 +2302,7 @@
22632302
'<(V8_ROOT)/src/objects/primitive-heap-object-inl.h',
22642303
'<(V8_ROOT)/src/objects/scope-info.h',
22652304
'<(V8_ROOT)/src/objects/scope-info-inl.h',
2305+
'<(V8_ROOT)/src/objects/script.cc',
22662306
'<(V8_ROOT)/src/objects/script.h',
22672307
'<(V8_ROOT)/src/objects/script-inl.h',
22682308
'<(V8_ROOT)/src/objects/shared-function-info.cc',
@@ -2276,6 +2316,7 @@
22762316
'<(V8_ROOT)/src/objects/struct.h',
22772317
'<(V8_ROOT)/src/objects/struct-inl.h',
22782318
'<(V8_ROOT)/src/objects/tagged.h',
2319+
'<(V8_ROOT)/src/objects/union.h',
22792320
],
22802321
},
22812322
'actions': [

0 commit comments

Comments
 (0)