File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff 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
16891692def configure_openssl (o ):
16901693 variables = o ['variables' ]
Original file line number Diff line number Diff line change 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' : {
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' ,
Original file line number Diff line number Diff line change 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 \\ += ")' ,
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
You can’t perform that action at this time.
0 commit comments