Skip to content

Commit 4e2fa43

Browse files
ryzokukenMylesBorins
authored andcommitted
tools: update V8 gypfiles for 8.4
Backport-PR-URL: #34356 PR-URL: #33579 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Shelley Vohr <[email protected]>
1 parent 3fa7ad3 commit 4e2fa43

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed

tools/v8_gypfiles/features.gypi

+20-5
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@
184184
# Enable lazy source positions by default.
185185
'v8_enable_lazy_source_positions%': 1,
186186

187+
# Enable third party HEAP library
188+
'v8_enable_third_party_heap%': 0,
189+
190+
# Libaries used by third party heap
191+
'v8_third_party_heap_libs%': [],
192+
193+
# Source code used by third party heap
194+
'v8_third_party_heap_files%': [],
195+
187196
# Disable write barriers when GCs are non-incremental and
188197
# heap has single generation.
189198
'v8_disable_write_barriers%': 0,
@@ -203,6 +212,10 @@
203212
# for ARM64.
204213
'v8_control_flow_integrity%': 0,
205214

215+
# Experimental support for native context independent code.
216+
# https://crbug.com/v8/8888
217+
'v8_enable_nci_code%': 0,
218+
206219
# Variables from v8.gni
207220

208221
# Enable ECMAScript Internationalization API. Enabling this feature will
@@ -228,10 +241,7 @@
228241
'defines': ['V8_ENABLE_FUTURE',],
229242
}],
230243
['v8_enable_lite_mode==1', {
231-
'defines': [
232-
'V8_LITE_MODE',
233-
'V8_JITLESS_MODE',
234-
],
244+
'defines': ['V8_LITE_MODE',],
235245
}],
236246
['v8_enable_gdbjit==1', {
237247
'defines': ['ENABLE_GDB_JIT_INTERFACE',],
@@ -299,6 +309,9 @@
299309
['v8_disable_write_barriers==1', {
300310
'defines': ['V8_DISABLE_WRITE_BARRIERS',],
301311
}],
312+
['v8_enable_third_party_heap==1', {
313+
'defines': ['V8_ENABLE_THIRD_PARTY_HEAP',],
314+
}],
302315
['v8_enable_concurrent_marking==1', {
303316
'defines': ['V8_CONCURRENT_MARKING',],
304317
}],
@@ -338,9 +351,11 @@
338351
['v8_control_flow_integrity==1', {
339352
'defines': ['V8_ENABLE_CONTROL_FLOW_INTEGRITY',],
340353
}],
354+
['v8_enable_nci_code==1', {
355+
'defines': ['V8_ENABLE_NCI_CODE',],
356+
}],
341357
], # conditions
342358
'defines': [
343-
'V8_EMBEDDED_BUILTINS',
344359
'V8_GYP_BUILD',
345360
'V8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=<(v8_typed_array_max_size_in_heap)',
346361
], # defines

tools/v8_gypfiles/v8.gyp

+21-1
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
"<(V8_ROOT)/src/builtins/convert.tq",
4444
"<(V8_ROOT)/src/builtins/console.tq",
4545
"<(V8_ROOT)/src/builtins/data-view.tq",
46+
"<(V8_ROOT)/src/builtins/finalization-registry.tq",
4647
"<(V8_ROOT)/src/builtins/frames.tq",
4748
"<(V8_ROOT)/src/builtins/frame-arguments.tq",
4849
"<(V8_ROOT)/src/builtins/growable-fixed-array.tq",
50+
"<(V8_ROOT)/src/builtins/ic-callable.tq",
51+
"<(V8_ROOT)/src/builtins/ic.tq",
4952
"<(V8_ROOT)/src/builtins/internal-coverage.tq",
5053
"<(V8_ROOT)/src/builtins/iterator.tq",
5154
"<(V8_ROOT)/src/builtins/math.tq",
@@ -55,6 +58,7 @@
5558
"<(V8_ROOT)/src/builtins/promise-abstract-operations.tq",
5659
"<(V8_ROOT)/src/builtins/promise-all.tq",
5760
"<(V8_ROOT)/src/builtins/promise-all-element-closure.tq",
61+
"<(V8_ROOT)/src/builtins/promise-any.tq",
5862
"<(V8_ROOT)/src/builtins/promise-constructor.tq",
5963
"<(V8_ROOT)/src/builtins/promise-finally.tq",
6064
"<(V8_ROOT)/src/builtins/promise-misc.tq",
@@ -113,6 +117,7 @@
113117
"<(V8_ROOT)/src/builtins/typed-array-sort.tq",
114118
"<(V8_ROOT)/src/builtins/typed-array-subarray.tq",
115119
"<(V8_ROOT)/src/builtins/typed-array.tq",
120+
"<(V8_ROOT)/src/builtins/wasm.tq",
116121
"<(V8_ROOT)/src/ic/handler-configuration.tq",
117122
"<(V8_ROOT)/src/objects/allocation-site.tq",
118123
"<(V8_ROOT)/src/objects/api-callbacks.tq",
@@ -131,6 +136,7 @@
131136
"<(V8_ROOT)/src/objects/free-space.tq",
132137
"<(V8_ROOT)/src/objects/heap-number.tq",
133138
"<(V8_ROOT)/src/objects/heap-object.tq",
139+
"<(V8_ROOT)/src/objects/js-aggregate-error.tq",
134140
"<(V8_ROOT)/src/objects/js-array-buffer.tq",
135141
"<(V8_ROOT)/src/objects/js-array.tq",
136142
"<(V8_ROOT)/src/objects/js-collection-iterator.tq",
@@ -228,7 +234,7 @@
228234
'<(torque_output_root)/torque-generated/class-verifiers-tq.h',
229235
'<(torque_output_root)/torque-generated/enum-verifiers-tq.cc',
230236
'<(torque_output_root)/torque-generated/objects-printer-tq.cc',
231-
'<(torque_output_root)/torque-generated/objects-body-descriptors-tq-inl.h',
237+
'<(torque_output_root)/torque-generated/objects-body-descriptors-tq-inl.inc',
232238
'<(torque_output_root)/torque-generated/class-definitions-tq.cc',
233239
'<(torque_output_root)/torque-generated/class-definitions-tq-inl.h',
234240
'<(torque_output_root)/torque-generated/class-definitions-tq.h',
@@ -745,6 +751,13 @@
745751
'<@(inspector_all_sources)',
746752
],
747753
'conditions': [
754+
['v8_enable_third_party_heap==1', {
755+
# TODO(targos): add values from v8_third_party_heap_files to sources
756+
}, {
757+
'sources': [
758+
'<(V8_ROOT)/src/heap/third-party/heap-api-stub.cc',
759+
],
760+
}],
748761
['want_separate_host_toolset', {
749762
'toolsets': ['host', 'target'],
750763
}],
@@ -885,6 +898,9 @@
885898
['v8_postmortem_support', {
886899
'dependencies': ['postmortem-metadata#target'],
887900
}],
901+
['v8_enable_third_party_heap', {
902+
# TODO(targos): add values from v8_third_party_heap_libs to link_settings.libraries
903+
}],
888904
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
889905
# to implement atomic memory access
890906
['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm"]', {
@@ -1226,6 +1242,8 @@
12261242
'<(V8_ROOT)/include/libplatform/v8-tracing.h',
12271243
'<(V8_ROOT)/src/libplatform/default-foreground-task-runner.cc',
12281244
'<(V8_ROOT)/src/libplatform/default-foreground-task-runner.h',
1245+
'<(V8_ROOT)/src/libplatform/default-job.cc',
1246+
'<(V8_ROOT)/src/libplatform/default-job.h',
12291247
'<(V8_ROOT)/src/libplatform/default-platform.cc',
12301248
'<(V8_ROOT)/src/libplatform/default-platform.h',
12311249
'<(V8_ROOT)/src/libplatform/default-worker-threads-task-runner.cc',
@@ -1583,6 +1601,8 @@
15831601
'<(V8_ROOT)/src/objects/instance-type.h',
15841602
'<(V8_ROOT)/src/objects/js-array-inl.h',
15851603
'<(V8_ROOT)/src/objects/js-array.h',
1604+
'<(V8_ROOT)/src/objects/js-aggregate-error-inl.h',
1605+
'<(V8_ROOT)/src/objects/js-aggregate-error.h',
15861606
'<(V8_ROOT)/src/objects/js-array-buffer-inl.h',
15871607
'<(V8_ROOT)/src/objects/js-array-buffer.h',
15881608
'<(V8_ROOT)/src/objects/js-objects-inl.h',

0 commit comments

Comments
 (0)