Skip to content

Commit 0176617

Browse files
committed
tools: update V8 gypfiles for 8.9
PR-URL: #37330 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 8eeecc1 commit 0176617

File tree

3 files changed

+47
-27
lines changed

3 files changed

+47
-27
lines changed

tools/v8_gypfiles/inspector.gypi

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
'<(V8_ROOT)/src/inspector/v8-debugger.h',
7474
'<(V8_ROOT)/src/inspector/v8-debugger-agent-impl.cc',
7575
'<(V8_ROOT)/src/inspector/v8-debugger-agent-impl.h',
76+
'<(V8_ROOT)/src/inspector/v8-debugger-id.cc',
77+
'<(V8_ROOT)/src/inspector/v8-debugger-id.h',
7678
'<(V8_ROOT)/src/inspector/v8-debugger-script.cc',
7779
'<(V8_ROOT)/src/inspector/v8-debugger-script.h',
7880
'<(V8_ROOT)/src/inspector/v8-heap-profiler-agent-impl.cc',

tools/v8_gypfiles/toolchain.gypi

+5-1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@
304304
'defines': [
305305
'V8_TARGET_ARCH_PPC64',
306306
],
307+
'cflags': [
308+
'-ffp-contract=off',
309+
],
307310
}],
308311
['v8_host_byteorder=="little"', {
309312
'defines': [
@@ -1341,12 +1344,13 @@
13411344
4324, # Padding structure due to alignment.
13421345
# 4351, # [refack] Old issue with array init.
13431346
4355, # 'this' used in base member initializer list
1347+
4506, # Benign "no definition for inline function"
13441348
4661, # no suitable definition provided for explicit template instantiation request
13451349
4701, # Potentially uninitialized local variable.
13461350
4702, # Unreachable code.
13471351
4703, # Potentially uninitialized local pointer variable.
13481352
4709, # Comma operator within array index expr (bugged).
1349-
# 4714, # Function marked forceinline not inlined.
1353+
4714, # Function marked forceinline not inlined.
13501354
4715, # Not all control paths return a value. (see https://crbug.com/v8/7658)
13511355
4718, # Recursive call has no side-effect.
13521356
4723, # https://crbug.com/v8/7771

tools/v8_gypfiles/v8.gyp

+40-26
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,24 @@
6464
'<@(torque_files)',
6565
],
6666
'outputs': [
67-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/bit-fields.h',
68-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtin-definitions.h',
69-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/interface-descriptors.inc',
70-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/factory.cc',
71-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/factory.inc',
72-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/field-offsets.h',
73-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-verifiers.cc',
74-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-verifiers.h',
75-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/enum-verifiers.cc',
76-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/objects-printer.cc',
77-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/objects-body-descriptors-inl.inc',
78-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-debug-readers.cc',
79-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-debug-readers.h',
80-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/exported-macros-assembler.cc',
81-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/exported-macros-assembler.h',
82-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/csa-types.h',
83-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/instance-types.h',
84-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/runtime-macros.cc',
85-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/runtime-macros.h',
86-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-forward-declarations.h',
67+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/bit-fields.h",
68+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtin-definitions.h",
69+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/interface-descriptors.inc",
70+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/factory.cc",
71+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/factory.inc",
72+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/field-offsets.h",
73+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-verifiers.cc",
74+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-verifiers.h",
75+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/enum-verifiers.cc",
76+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/objects-printer.cc",
77+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/objects-body-descriptors-inl.inc",
78+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-debug-readers.cc",
79+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-debug-readers.h",
80+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/exported-macros-assembler.cc",
81+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/exported-macros-assembler.h",
82+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/csa-types.h",
83+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/instance-types.h",
84+
"<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-forward-declarations.h",
8785
'<@(torque_outputs_csa_cc)',
8886
'<@(torque_outputs_csa_h)',
8987
'<@(torque_outputs_inl_inc)',
@@ -92,9 +90,9 @@
9290
],
9391
'action': [
9492
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)',
95-
'<@(torque_files_without_v8_root)',
9693
'-o', '<(SHARED_INTERMEDIATE_DIR)/torque-generated',
97-
'-v8-root', '<(V8_ROOT)'
94+
'-v8-root', '<(V8_ROOT)',
95+
'<@(torque_files_without_v8_root)',
9896
],
9997
},
10098
],
@@ -166,7 +164,6 @@
166164
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-verifiers.h',
167165
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/factory.cc',
168166
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/objects-printer.cc',
169-
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/runtime-macros.cc',
170167
],
171168
'include_dirs': [
172169
'<(SHARED_INTERMEDIATE_DIR)',
@@ -1092,6 +1089,8 @@
10921089
'<(V8_ROOT)/src/libplatform/delayed-task-queue.h',
10931090
'<(V8_ROOT)/src/libplatform/task-queue.cc',
10941091
'<(V8_ROOT)/src/libplatform/task-queue.h',
1092+
'<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc',
1093+
'<(V8_ROOT)/src/libplatform/tracing/recorder.h',
10951094
'<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc',
10961095
'<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h',
10971096
'<(V8_ROOT)/src/libplatform/tracing/trace-config.cc',
@@ -1112,10 +1111,17 @@
11121111
},
11131112
'defines': ['BUILDING_V8_PLATFORM_SHARED'],
11141113
}],
1115-
['v8_use_perfetto', {
1114+
['v8_use_perfetto==1', {
1115+
'sources!': [
1116+
'<(V8_ROOT)/base/trace_event/common/trace_event_common.h',
1117+
'<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc',
1118+
'<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc',
1119+
'<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h',
1120+
'<(V8_ROOT)/src/libplatform/tracing/trace-object.cc',
1121+
'<(V8_ROOT)/src/libplatform/tracing/trace-writer.cc',
1122+
'<(V8_ROOT)/src/libplatform/tracing/trace-writer.h',
1123+
],
11161124
'sources': [
1117-
'<(V8_ROOT)/src/libplatform/tracing/json-trace-event-listener.cc',
1118-
'<(V8_ROOT)/src/libplatform/tracing/json-trace-event-listener.h',
11191125
'<(V8_ROOT)/src/libplatform/tracing/trace-event-listener.cc',
11201126
'<(V8_ROOT)/src/libplatform/tracing/trace-event-listener.h',
11211127
],
@@ -1124,6 +1130,14 @@
11241130
'<(V8_ROOT)/third_party/perfetto/protos/perfetto/trace:lite',
11251131
],
11261132
}],
1133+
['v8_use_perfetto==0 and is_win', {
1134+
'sources!': [
1135+
'<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc',
1136+
],
1137+
'sources': [
1138+
'<(V8_ROOT)/src/libplatform/tracing/recorder-win.cc',
1139+
],
1140+
}],
11271141
],
11281142
'direct_dependent_settings': {
11291143
'include_dirs': [

0 commit comments

Comments
 (0)