Skip to content

Commit 84f98e0

Browse files
yolanda15aduh95
authored andcommitted
v8,tools: expose experimental wasm revectorize feature
PR-URL: #54896 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 08e5309 commit 84f98e0

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

configure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,9 @@ def configure_v8(o, configs):
16851685
raise Exception(
16861686
'Only one of the --v8-enable-object-print or --v8-disable-object-print options '
16871687
'can be specified at a time.')
1688+
if sys.platform != 'darwin':
1689+
if o['variables']['v8_enable_webassembly'] and o['variables']['target_arch'] == 'x64':
1690+
o['variables']['v8_enable_wasm_simd256_revec'] = 1
16881691

16891692
def configure_openssl(o):
16901693
variables = o['variables']

tools/v8_gypfiles/features.gypi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,10 @@
328328

329329
# Enable advanced BigInt algorithms, costing about 10-30 KiB binary size
330330
# depending on platform.
331-
'v8_advanced_bigint_algorithms%': 1
331+
'v8_advanced_bigint_algorithms%': 1,
332+
333+
# Enable 256-bit long vector re-vectorization pass in WASM compilation pipeline.
334+
'v8_enable_wasm_simd256_revec%' : 0
332335
},
333336

334337
'target_defaults': {
@@ -541,6 +544,9 @@
541544
['v8_advanced_bigint_algorithms==1', {
542545
'defines': ['V8_ADVANCED_BIGINT_ALGORITHMS',],
543546
}],
547+
['v8_enable_wasm_simd256_revec==1', {
548+
'defines': ['V8_ENABLE_WASM_SIMD256_REVEC',],
549+
}],
544550
], # conditions
545551
'defines': [
546552
'V8_GYP_BUILD',

tools/v8_gypfiles/v8.gyp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,11 @@
646646
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")',
647647
],
648648
}],
649+
['v8_enable_wasm_simd256_revec==1', {
650+
'sources': [
651+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_wasm_simd256_revec.*?sources \\+= ")',
652+
],
653+
}],
649654
['v8_enable_i18n_support==1', {
650655
'sources': [
651656
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?sources \\+= ")',
@@ -882,6 +887,11 @@
882887
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\+= ")',
883888
],
884889
}],
890+
['v8_enable_wasm_simd256_revec==1', {
891+
'sources': [
892+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_wasm_simd256_revec.*?v8_compiler_sources \\+= ")',
893+
],
894+
}],
885895
],
886896
}
887897
}, # v8_compiler_sources

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy