GeezerVison is showing github.com — build: add configuration flag to enable Maglev · nodejs/node@904e645
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 +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 812 | 812 | help='Enable V8 transparent hugepage support. This feature is only '+ | 813 | 813 | 'available on Linux platform.') | 814 | 814 |
| | 815 | +parser.add_argument('--v8-enable-maglev', | | 816 | + action='store_true', | | 817 | + dest='v8_enable_maglev', | | 818 | + default=None, | | 819 | + help='Enable V8 Maglev compiler. Not available on all platforms.') | | 820 | + | 815 | 821 | parser.add_argument('--v8-enable-short-builtin-calls', | 816 | 822 | action='store_true', | 817 | 823 | dest='v8_enable_short_builtin_calls', | @@ -1494,6 +1500,7 @@ def configure_v8(o): | 1494 | 1500 | o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables. | 1495 | 1501 | o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks. | 1496 | 1502 | o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1 | | 1503 | + o['variables']['v8_enable_maglev'] = 1 if options.v8_enable_maglev else 0 | 1497 | 1504 | o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0 | 1498 | 1505 | o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0 | 1499 | 1506 | o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression or options.disable_shared_ro_heap else 1 | |
Collapse file Copy file name to clipboardExpand all lines: tools/v8_gypfiles/v8.gyp +12-2Lines changed: 12 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 546 | 546 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_maglev.*?sources \\+= ")', | 547 | 547 | ], | 548 | 548 | 'conditions': [ | | 549 | + ['v8_target_arch=="arm"', { | | 550 | + 'sources': [ | | 551 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_maglev.*?v8_current_cpu == \\"arm\\".*?sources \\+= ")', | | 552 | + ], | | 553 | + }], | 549 | 554 | ['v8_target_arch=="arm64"', { | 550 | 555 | 'sources': [ | 551 | 556 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_maglev.*?v8_current_cpu == \\"arm64\\".*?sources \\+= ")', | | 891 | 896 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?sources \\+= ")', | 892 | 897 | ], | 893 | 898 | 'conditions': [ | | 899 | + ['v8_target_arch=="arm"', { | | 900 | + 'sources': [ | | 901 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?v8_current_cpu == \\"arm\\".*?sources \\+= ")', | | 902 | + ], | | 903 | + }], | 894 | 904 | ['v8_target_arch=="arm64"', { | 895 | 905 | 'sources': [ | 896 | | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_base_without_compiler.*?v8_enable_maglev.*?v8_current_cpu == \\"arm64\\".*?sources \\+= ")', | | 906 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?v8_current_cpu == \\"arm64\\".*?sources \\+= ")', | 897 | 907 | ], | 898 | 908 | }], | 899 | 909 | ['v8_target_arch=="x64"', { | 900 | 910 | 'sources': [ | 901 | | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_base_without_compiler.*?v8_enable_maglev.*?v8_current_cpu == \\"x64\\".*?sources \\+= ")', | | 911 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?v8_current_cpu == \\"x64\\".*?sources \\+= ")', | 902 | 912 | ], | 903 | 913 | }], | 904 | 914 | ], | |
|