Skip to content

Commit

Permalink
tools: update V8 gypfiles for 12.1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos committed Mar 31, 2024
1 parent 7784773 commit aadea12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions tools/v8_gypfiles/features.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@
# Allow for JS promise hooks (instead of just C++).
'v8_enable_javascript_promise_hooks%': 0,

# Allow for JS promise hooks (instead of just C++).
'v8_enable_continuation_preserved_embedder_data%': 1,

# Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING).
# When it's disabled, the --turbo-allocation-folding runtime flag will be ignored.
'v8_enable_allocation_folding%': 1,
Expand Down Expand Up @@ -522,6 +525,9 @@
['v8_enable_javascript_promise_hooks==1', {
'defines': ['V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS',],
}],
['v8_enable_continuation_preserved_embedder_data==1', {
'defines': ['V8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA',],
}],
['v8_enable_allocation_folding==1', {
'defines': ['V8_ALLOCATION_FOLDING',],
}],
Expand Down
9 changes: 5 additions & 4 deletions tools/v8_gypfiles/v8.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@
'sources': [
'<(V8_ROOT)/src/builtins/riscv/builtins-riscv.cc',
],
}],
}],
['v8_target_arch=="loong64" or v8_target_arch=="loong64"', {
'sources': [
'<(V8_ROOT)/src/builtins/loong64/builtins-loong64.cc',
],
}],
}],
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
'sources': [
'<(V8_ROOT)/src/builtins/mips64/builtins-mips64.cc',
Expand Down Expand Up @@ -425,6 +425,7 @@
'variables': {
'mksnapshot_flags': [
'--turbo_instruction_scheduling',
'--stress-turbo-late-spilling',
# In cross builds, the snapshot may be generated for both the host and
# target toolchains. The same host binary is used to generate both, so
# mksnapshot needs to know which target OS to use at runtime. It's weird,
Expand Down Expand Up @@ -1124,7 +1125,7 @@
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
],
}],
}],
['v8_target_arch=="loong64"', {
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
Expand All @@ -1141,7 +1142,7 @@
],
}],
],
}],
}],
['OS=="win"', {
# This will prevent V8's .cc files conflicting with the inspector's
# .cpp files in the same shard.
Expand Down

0 comments on commit aadea12

Please sign in to comment.