|
56 | 56 | valid_mips_float_abi = ('soft', 'hard')
|
57 | 57 | valid_intl_modes = ('none', 'small-icu', 'full-icu', 'system-icu')
|
58 | 58 | icu_versions = json.loads((tools_path / 'icu' / 'icu_versions.json').read_text(encoding='utf-8'))
|
59 |
| -maglev_enabled_architectures = ('x64', 'arm', 'arm64') |
60 | 59 |
|
61 | 60 | shareable_builtins = {'cjs_module_lexer/lexer': 'deps/cjs-module-lexer/lexer.js',
|
62 | 61 | 'cjs_module_lexer/dist/lexer': 'deps/cjs-module-lexer/dist/lexer.js',
|
|
934 | 933 | help='Enable V8 transparent hugepage support. This feature is only '+
|
935 | 934 | 'available on Linux platform.')
|
936 | 935 |
|
937 |
| -maglev_enabled_by_default_help = f"(Maglev is enabled by default on {','.join(maglev_enabled_architectures)})" |
938 |
| - |
939 |
| -parser.add_argument('--v8-disable-maglev', |
| 936 | +parser.add_argument('--v8-enable-maglev', |
940 | 937 | action='store_true',
|
941 |
| - dest='v8_disable_maglev', |
| 938 | + dest='v8_enable_maglev', |
942 | 939 | default=None,
|
943 |
| - help=f"Disable V8's Maglev compiler. {maglev_enabled_by_default_help}") |
| 940 | + help='Enable V8 Maglev compiler. Not available on all platforms.') |
944 | 941 |
|
945 | 942 | parser.add_argument('--v8-enable-short-builtin-calls',
|
946 | 943 | action='store_true',
|
@@ -1643,8 +1640,7 @@ def configure_v8(o, configs):
|
1643 | 1640 | o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
|
1644 | 1641 | o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks.
|
1645 | 1642 | o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1
|
1646 |
| - o['variables']['v8_enable_maglev'] = B(not options.v8_disable_maglev and |
1647 |
| - o['variables']['target_arch'] in maglev_enabled_architectures) |
| 1643 | + o['variables']['v8_enable_maglev'] = 1 if options.v8_enable_maglev else 0 |
1648 | 1644 | o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0
|
1649 | 1645 | o['variables']['v8_enable_sandbox'] = 1 if options.enable_pointer_compression else 0
|
1650 | 1646 | o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0
|
|
0 commit comments