Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84f98e0

Browse filesBrowse 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
Copy full SHA for 84f98e0

File tree

Expand file treeCollapse file tree

3 files changed

+20
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+20
-1
lines changed
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+3Lines 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']
Collapse file

‎tools/v8_gypfiles/features.gypi‎

Copy file name to clipboardExpand all lines: tools/v8_gypfiles/features.gypi
+7-1Lines 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',
Collapse file

‎tools/v8_gypfiles/v8.gyp‎

Copy file name to clipboardExpand all lines: tools/v8_gypfiles/v8.gyp
+10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.