GeezerVison is showing github.com — v8,tools: expose experimental wasm revectorize feature · nodejs/node@2aa77c8
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: configure.py +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1682,6 +1682,9 @@ def configure_v8(o, configs): | 1682 | 1682 | raise Exception( | 1683 | 1683 | 'Only one of the --v8-enable-object-print or --v8-disable-object-print options ' | 1684 | 1684 | 'can be specified at a time.') | | 1685 | + if sys.platform != 'darwin': | | 1686 | + if o['variables']['v8_enable_webassembly'] and o['variables']['target_arch'] == 'x64': | | 1687 | + o['variables']['v8_enable_wasm_simd256_revec'] = 1 | 1685 | 1688 |
| 1686 | 1689 | def configure_openssl(o): | 1687 | 1690 | variables = o['variables'] | |
Collapse file Copy file name to clipboardExpand all lines: tools/v8_gypfiles/features.gypi +7-1Lines changed: 7 additions & 1 deletion | 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', | |
Collapse file Copy file name to clipboardExpand all lines: tools/v8_gypfiles/v8.gyp +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 640 | 640 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")', | 641 | 641 | ], | 642 | 642 | }], | | 643 | + ['v8_enable_wasm_simd256_revec==1', { | | 644 | + 'sources': [ | | 645 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_wasm_simd256_revec.*?sources \\+= ")', | | 646 | + ], | | 647 | + }], | 643 | 648 | ['v8_enable_i18n_support==1', { | 644 | 649 | 'sources': [ | 645 | 650 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?sources \\+= ")', | | 876 | 881 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\+= ")', | 877 | 882 | ], | 878 | 883 | }], | | 884 | + ['v8_enable_wasm_simd256_revec==1', { | | 885 | + 'sources': [ | | 886 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_wasm_simd256_revec.*?v8_compiler_sources \\+= ")', | | 887 | + ], | | 888 | + }], | 879 | 889 | ], | 880 | 890 | } | 881 | 891 | }, # v8_compiler_sources | |
|