Skip to content

Commit aadea12

Browse files
committed
tools: update V8 gypfiles for 12.1
Refs: v8/v8@08c87ab Refs: v8/v8@d136cd9 PR-URL: #51362 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 7784773 commit aadea12

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tools/v8_gypfiles/features.gypi

+6
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@
270270
# Allow for JS promise hooks (instead of just C++).
271271
'v8_enable_javascript_promise_hooks%': 0,
272272

273+
# Allow for JS promise hooks (instead of just C++).
274+
'v8_enable_continuation_preserved_embedder_data%': 1,
275+
273276
# Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING).
274277
# When it's disabled, the --turbo-allocation-folding runtime flag will be ignored.
275278
'v8_enable_allocation_folding%': 1,
@@ -522,6 +525,9 @@
522525
['v8_enable_javascript_promise_hooks==1', {
523526
'defines': ['V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS',],
524527
}],
528+
['v8_enable_continuation_preserved_embedder_data==1', {
529+
'defines': ['V8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA',],
530+
}],
525531
['v8_enable_allocation_folding==1', {
526532
'defines': ['V8_ALLOCATION_FOLDING',],
527533
}],

tools/v8_gypfiles/v8.gyp

+5-4
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,12 @@
336336
'sources': [
337337
'<(V8_ROOT)/src/builtins/riscv/builtins-riscv.cc',
338338
],
339-
}],
339+
}],
340340
['v8_target_arch=="loong64" or v8_target_arch=="loong64"', {
341341
'sources': [
342342
'<(V8_ROOT)/src/builtins/loong64/builtins-loong64.cc',
343343
],
344-
}],
344+
}],
345345
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
346346
'sources': [
347347
'<(V8_ROOT)/src/builtins/mips64/builtins-mips64.cc',
@@ -425,6 +425,7 @@
425425
'variables': {
426426
'mksnapshot_flags': [
427427
'--turbo_instruction_scheduling',
428+
'--stress-turbo-late-spilling',
428429
# In cross builds, the snapshot may be generated for both the host and
429430
# target toolchains. The same host binary is used to generate both, so
430431
# mksnapshot needs to know which target OS to use at runtime. It's weird,
@@ -1124,7 +1125,7 @@
11241125
'sources': [
11251126
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
11261127
],
1127-
}],
1128+
}],
11281129
['v8_target_arch=="loong64"', {
11291130
'sources': [
11301131
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
@@ -1141,7 +1142,7 @@
11411142
],
11421143
}],
11431144
],
1144-
}],
1145+
}],
11451146
['OS=="win"', {
11461147
# This will prevent V8's .cc files conflicting with the inspector's
11471148
# .cpp files in the same shard.

0 commit comments

Comments
 (0)