Commit 84f98e0 1 parent 08e5309 commit 84f98e0 Copy full SHA for 84f98e0
File tree 3 files changed +20
-1
lines changed
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):
1685
1685
raise Exception (
1686
1686
'Only one of the --v8-enable-object-print or --v8-disable-object-print options '
1687
1687
'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
1688
1691
1689
1692
def configure_openssl (o ):
1690
1693
variables = o ['variables' ]
Original file line number Diff line number Diff line change 328
328
329
329
# Enable advanced BigInt algorithms, costing about 10-30 KiB binary size
330
330
# 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
332
335
},
333
336
334
337
'target_defaults' : {
541
544
['v8_advanced_bigint_algorithms==1' , {
542
545
'defines' : ['V8_ADVANCED_BIGINT_ALGORITHMS' ,],
543
546
}],
547
+ ['v8_enable_wasm_simd256_revec==1' , {
548
+ 'defines' : ['V8_ENABLE_WASM_SIMD256_REVEC' ,],
549
+ }],
544
550
], # conditions
545
551
'defines' : [
546
552
'V8_GYP_BUILD' ,
Original file line number Diff line number Diff line change 646
646
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\ "v8_internal_headers\\ ".*?v8_enable_webassembly.*?sources \\ += ")' ,
647
647
],
648
648
}],
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
+ }],
649
654
['v8_enable_i18n_support==1' , {
650
655
'sources' : [
651
656
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\ "v8_internal_headers\\ ".*?v8_enable_i18n_support.*?sources \\ += ")' ,
882
887
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\ += ")' ,
883
888
],
884
889
}],
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
+ }],
885
895
],
886
896
}
887
897
}, # v8_compiler_sources
You can’t perform that action at this time.
0 commit comments