Skip to content

Commit faeb960

Browse files
ryzokukentargos
authored andcommitted
tools: update V8 gypfiles for 8.5
PR-URL: #35415 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent 70cdf10 commit faeb960

File tree

2 files changed

+106
-4
lines changed

2 files changed

+106
-4
lines changed

tools/v8_gypfiles/features.gypi

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@
128128
'v8_enable_pointer_compression%': 0,
129129
'v8_enable_31bit_smis_on_64bit_arch%': 0,
130130

131+
# Reverse JS arguments order in the stack (sets -dV8_REVERSE_JSARGS).
132+
'v8_enable_reverse_jsargs%': 0,
133+
131134
# Sets -dOBJECT_PRINT.
132135
'v8_enable_object_print%': 0,
133136

@@ -293,6 +296,9 @@
293296
},{
294297
'defines!': ['V8_IMMINENT_DEPRECATION_WARNINGS',],
295298
}],
299+
['v8_enable_reverse_jsargs==1', {
300+
'defines': ['V8_REVERSE_JSARGS',],
301+
}],
296302
['v8_enable_i18n_support==1', {
297303
'defines': ['V8_INTL_SUPPORT',],
298304
}],

tools/v8_gypfiles/v8.gyp

+100-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'generate_bytecode_output_root': '<(SHARED_INTERMEDIATE_DIR)/generate-bytecode-output-root',
1414
'generate_bytecode_builtins_list_output': '<(generate_bytecode_output_root)/builtins-generated/bytecodes-builtins-list.h',
1515
'torque_files': [
16+
"<(V8_ROOT)/src/builtins/aggregate-error.tq",
1617
"<(V8_ROOT)/src/builtins/array-copywithin.tq",
1718
"<(V8_ROOT)/src/builtins/array-every.tq",
1819
"<(V8_ROOT)/src/builtins/array-filter.tq",
@@ -38,18 +39,21 @@
3839
"<(V8_ROOT)/src/builtins/bigint.tq",
3940
"<(V8_ROOT)/src/builtins/boolean.tq",
4041
"<(V8_ROOT)/src/builtins/builtins-string.tq",
41-
"<(V8_ROOT)/src/builtins/collections.tq",
4242
"<(V8_ROOT)/src/builtins/cast.tq",
43+
"<(V8_ROOT)/src/builtins/collections.tq",
44+
"<(V8_ROOT)/src/builtins/conversion.tq",
4345
"<(V8_ROOT)/src/builtins/convert.tq",
4446
"<(V8_ROOT)/src/builtins/console.tq",
4547
"<(V8_ROOT)/src/builtins/data-view.tq",
4648
"<(V8_ROOT)/src/builtins/finalization-registry.tq",
4749
"<(V8_ROOT)/src/builtins/frames.tq",
4850
"<(V8_ROOT)/src/builtins/frame-arguments.tq",
51+
"<(V8_ROOT)/src/builtins/function.tq",
4952
"<(V8_ROOT)/src/builtins/growable-fixed-array.tq",
5053
"<(V8_ROOT)/src/builtins/ic-callable.tq",
5154
"<(V8_ROOT)/src/builtins/ic.tq",
5255
"<(V8_ROOT)/src/builtins/internal-coverage.tq",
56+
"<(V8_ROOT)/src/builtins/internal.tq",
5357
"<(V8_ROOT)/src/builtins/iterator.tq",
5458
"<(V8_ROOT)/src/builtins/math.tq",
5559
"<(V8_ROOT)/src/builtins/number.tq",
@@ -103,11 +107,13 @@
103107
"<(V8_ROOT)/src/builtins/torque-internal.tq",
104108
"<(V8_ROOT)/src/builtins/typed-array-createtypedarray.tq",
105109
"<(V8_ROOT)/src/builtins/typed-array-every.tq",
110+
"<(V8_ROOT)/src/builtins/typed-array-entries.tq",
106111
"<(V8_ROOT)/src/builtins/typed-array-filter.tq",
107112
"<(V8_ROOT)/src/builtins/typed-array-find.tq",
108113
"<(V8_ROOT)/src/builtins/typed-array-findindex.tq",
109114
"<(V8_ROOT)/src/builtins/typed-array-foreach.tq",
110115
"<(V8_ROOT)/src/builtins/typed-array-from.tq",
116+
"<(V8_ROOT)/src/builtins/typed-array-keys.tq",
111117
"<(V8_ROOT)/src/builtins/typed-array-of.tq",
112118
"<(V8_ROOT)/src/builtins/typed-array-reduce.tq",
113119
"<(V8_ROOT)/src/builtins/typed-array-reduceright.tq",
@@ -116,6 +122,7 @@
116122
"<(V8_ROOT)/src/builtins/typed-array-some.tq",
117123
"<(V8_ROOT)/src/builtins/typed-array-sort.tq",
118124
"<(V8_ROOT)/src/builtins/typed-array-subarray.tq",
125+
"<(V8_ROOT)/src/builtins/typed-array-values.tq",
119126
"<(V8_ROOT)/src/builtins/typed-array.tq",
120127
"<(V8_ROOT)/src/builtins/wasm.tq",
121128
"<(V8_ROOT)/src/ic/handler-configuration.tq",
@@ -136,7 +143,6 @@
136143
"<(V8_ROOT)/src/objects/free-space.tq",
137144
"<(V8_ROOT)/src/objects/heap-number.tq",
138145
"<(V8_ROOT)/src/objects/heap-object.tq",
139-
"<(V8_ROOT)/src/objects/js-aggregate-error.tq",
140146
"<(V8_ROOT)/src/objects/js-array-buffer.tq",
141147
"<(V8_ROOT)/src/objects/js-array.tq",
142148
"<(V8_ROOT)/src/objects/js-collection-iterator.tq",
@@ -721,6 +727,7 @@
721727
'type': 'static_library',
722728
'dependencies': [
723729
# Code generators that only need to be build for the host.
730+
'cppgc_base',
724731
'torque_generated_definitions',
725732
'v8_headers',
726733
'v8_libbase',
@@ -730,6 +737,7 @@
730737
# BUILD.gn public_deps
731738
'generate_bytecode_builtins_list',
732739
'run_torque',
740+
'v8_cppgc_shared',
733741
'v8_maybe_icu',
734742
'v8_zlib',
735743
],
@@ -1454,6 +1462,96 @@
14541462
},
14551463
],
14561464
}, # run_gen-regexp-special-case
1465+
{
1466+
'target_name': 'cppgc_base',
1467+
'type': 'none',
1468+
'conditions': [
1469+
['want_separate_host_toolset', {
1470+
'toolsets': ['host', 'target'],
1471+
}],
1472+
],
1473+
'direct_dependent_settings': {
1474+
'sources': [
1475+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"cppgc_base.*?sources = ")',
1476+
],
1477+
},
1478+
}, # cppgc_base
1479+
{
1480+
'target_name': 'v8_cppgc_shared',
1481+
'type': 'none',
1482+
'toolsets': ['host', 'target'],
1483+
'direct_dependent_settings': {
1484+
'sources': [
1485+
'<(V8_ROOT)/src/heap/base/stack.cc',
1486+
'<(V8_ROOT)/src/heap/base/stack.h',
1487+
],
1488+
'conditions': [
1489+
['clang or OS!="win"', {
1490+
'conditions': [
1491+
['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', {
1492+
'sources': [
1493+
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc',
1494+
],
1495+
}],
1496+
['_toolset == "host" and host_arch == "ia32" or _toolset == "target" and target_arch=="ia32"', {
1497+
'sources': [
1498+
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc',
1499+
],
1500+
}],
1501+
['_toolset == "host" and host_arch == "arm" or _toolset == "target" and target_arch=="arm"', {
1502+
'sources': [
1503+
'<(V8_ROOT)/src/heap/base/asm/arm/push_registers_asm.cc',
1504+
],
1505+
}],
1506+
['_toolset == "host" and host_arch == "arm64" or _toolset == "target" and target_arch=="arm64"', {
1507+
'sources': [
1508+
'<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_asm.cc',
1509+
],
1510+
}],
1511+
['_toolset == "host" and host_arch == "ppc64" or _toolset == "target" and target_arch=="ppc64"', {
1512+
'sources': [
1513+
'<(V8_ROOT)/src/heap/base/asm/ppc/push_registers_asm.cc',
1514+
],
1515+
}],
1516+
['_toolset == "host" and host_arch == "s390x" or _toolset == "target" and target_arch=="s390x"', {
1517+
'sources': [
1518+
'<(V8_ROOT)/src/heap/base/asm/s390/push_registers_asm.cc',
1519+
],
1520+
}],
1521+
['_toolset == "host" and host_arch == "mips" or _toolset == "target" and target_arch=="mips" or _toolset == "host" and host_arch == "mipsel" or _toolset == "target" and target_arch=="mipsel"', {
1522+
'sources': [
1523+
'<(V8_ROOT)/src/heap/base/asm/mips/push_registers_asm.cc',
1524+
],
1525+
}],
1526+
['_toolset == "host" and host_arch == "mips64" or _toolset == "target" and target_arch=="mips64" or _toolset == "host" and host_arch == "mips64el" or _toolset == "target" and target_arch=="mips64el"', {
1527+
'sources': [
1528+
'<(V8_ROOT)/src/heap/base/asm/mips64/push_registers_asm.cc',
1529+
],
1530+
}],
1531+
]
1532+
}],
1533+
['OS=="win"', {
1534+
'conditions': [
1535+
['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', {
1536+
'sources': [
1537+
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_masm.S',
1538+
],
1539+
}],
1540+
['_toolset == "host" and host_arch == "ia32" or _toolset == "target" and target_arch=="ia32"', {
1541+
'sources': [
1542+
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_masm.S',
1543+
],
1544+
}],
1545+
['_toolset == "host" and host_arch == "arm64" or _toolset == "target" and target_arch=="arm64"', {
1546+
'sources': [
1547+
'<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_masm.S',
1548+
],
1549+
}],
1550+
],
1551+
}],
1552+
],
1553+
},
1554+
}, # v8_cppgc_shared
14571555

14581556
###############################################################################
14591557
# Public targets
@@ -1593,8 +1691,6 @@
15931691
'<(V8_ROOT)/src/objects/instance-type.h',
15941692
'<(V8_ROOT)/src/objects/js-array-inl.h',
15951693
'<(V8_ROOT)/src/objects/js-array.h',
1596-
'<(V8_ROOT)/src/objects/js-aggregate-error-inl.h',
1597-
'<(V8_ROOT)/src/objects/js-aggregate-error.h',
15981694
'<(V8_ROOT)/src/objects/js-array-buffer-inl.h',
15991695
'<(V8_ROOT)/src/objects/js-array-buffer.h',
16001696
'<(V8_ROOT)/src/objects/js-objects-inl.h',

0 commit comments

Comments
 (0)