v8,tools: expose experimental wasm revectorize feature
PR-URL: https://github.com/nodejs/node/pull/54896 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
6e42433054
commit
b5056be854
@ -1685,6 +1685,9 @@ def configure_v8(o, configs):
|
|||||||
raise Exception(
|
raise Exception(
|
||||||
'Only one of the --v8-enable-object-print or --v8-disable-object-print options '
|
'Only one of the --v8-enable-object-print or --v8-disable-object-print options '
|
||||||
'can be specified at a time.')
|
'can be specified at a time.')
|
||||||
|
if sys.platform != 'darwin':
|
||||||
|
if o['variables']['v8_enable_webassembly'] and o['variables']['target_arch'] == 'x64':
|
||||||
|
o['variables']['v8_enable_wasm_simd256_revec'] = 1
|
||||||
|
|
||||||
def configure_openssl(o):
|
def configure_openssl(o):
|
||||||
variables = o['variables']
|
variables = o['variables']
|
||||||
|
@ -328,7 +328,10 @@
|
|||||||
|
|
||||||
# Enable advanced BigInt algorithms, costing about 10-30 KiB binary size
|
# Enable advanced BigInt algorithms, costing about 10-30 KiB binary size
|
||||||
# depending on platform.
|
# depending on platform.
|
||||||
'v8_advanced_bigint_algorithms%': 1
|
'v8_advanced_bigint_algorithms%': 1,
|
||||||
|
|
||||||
|
# Enable 256-bit long vector re-vectorization pass in WASM compilation pipeline.
|
||||||
|
'v8_enable_wasm_simd256_revec%' : 0
|
||||||
},
|
},
|
||||||
|
|
||||||
'target_defaults': {
|
'target_defaults': {
|
||||||
@ -541,6 +544,9 @@
|
|||||||
['v8_advanced_bigint_algorithms==1', {
|
['v8_advanced_bigint_algorithms==1', {
|
||||||
'defines': ['V8_ADVANCED_BIGINT_ALGORITHMS',],
|
'defines': ['V8_ADVANCED_BIGINT_ALGORITHMS',],
|
||||||
}],
|
}],
|
||||||
|
['v8_enable_wasm_simd256_revec==1', {
|
||||||
|
'defines': ['V8_ENABLE_WASM_SIMD256_REVEC',],
|
||||||
|
}],
|
||||||
], # conditions
|
], # conditions
|
||||||
'defines': [
|
'defines': [
|
||||||
'V8_GYP_BUILD',
|
'V8_GYP_BUILD',
|
||||||
|
@ -646,6 +646,11 @@
|
|||||||
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")',
|
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
|
['v8_enable_wasm_simd256_revec==1', {
|
||||||
|
'sources': [
|
||||||
|
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_wasm_simd256_revec.*?sources \\+= ")',
|
||||||
|
],
|
||||||
|
}],
|
||||||
['v8_enable_i18n_support==1', {
|
['v8_enable_i18n_support==1', {
|
||||||
'sources': [
|
'sources': [
|
||||||
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?sources \\+= ")',
|
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?sources \\+= ")',
|
||||||
@ -882,6 +887,11 @@
|
|||||||
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\+= ")',
|
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\+= ")',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
|
['v8_enable_wasm_simd256_revec==1', {
|
||||||
|
'sources': [
|
||||||
|
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_wasm_simd256_revec.*?v8_compiler_sources \\+= ")',
|
||||||
|
],
|
||||||
|
}],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}, # v8_compiler_sources
|
}, # v8_compiler_sources
|
||||||
|
Loading…
x
Reference in New Issue
Block a user