GeezerVison is showing github.com — build: disable v8 snapshot compression by default · nodejs/node@1ddc438
File tree
Expand 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 +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
834 | 834 | help='Enable V8 short builtin calls support. This feature is enabled '+ |
835 | 835 | 'on x86_64 platform by default.') |
836 | 836 |
|
| 837 | +parser.add_argument('--v8-enable-snapshot-compression', |
| 838 | + action='store_true', |
| 839 | + dest='v8_enable_snapshot_compression', |
| 840 | + default=None, |
| 841 | + help='Enable the built-in snapshot compression in V8.') |
| 842 | + |
837 | 843 | parser.add_argument('--node-builtin-modules-path', |
838 | 844 | action='store', |
839 | 845 | dest='node_builtin_modules_path', |
@@ -1535,6 +1541,8 @@ def configure_v8(o): |
1535 | 1541 | o['variables']['v8_enable_hugepage'] = 1 if options.v8_enable_hugepage else 0 |
1536 | 1542 | if options.v8_enable_short_builtin_calls or o['variables']['target_arch'] == 'x64': |
1537 | 1543 | o['variables']['v8_enable_short_builtin_calls'] = 1 |
| 1544 | + if options.v8_enable_snapshot_compression: |
| 1545 | + o['variables']['v8_enable_snapshot_compression'] = 1 |
1538 | 1546 | if options.v8_enable_object_print and options.v8_disable_object_print: |
1539 | 1547 | raise Exception( |
1540 | 1548 | 'Only one of the --v8-enable-object-print or --v8-disable-object-print options ' |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/v8_gypfiles/features.gypi +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
211 | 211 | 'v8_enable_regexp_interpreter_threaded_dispatch%': 1, |
212 | 212 |
|
213 | 213 | # Disable all snapshot compression. |
214 | | - 'v8_enable_snapshot_compression%': 1, |
| 214 | + 'v8_enable_snapshot_compression%': 0, |
215 | 215 |
|
216 | 216 | # Enable control-flow integrity features, such as pointer authentication |
217 | 217 | # for ARM64. |
|