|
28 | 28 |
|
29 | 29 | 'openssl_fips%': '',
|
30 | 30 |
|
31 |
| - # Default to -O0 for debug builds. |
32 |
| - 'v8_optimized_debug%': 0, |
| 31 | + # Some STL containers (e.g. std::vector) do not preserve ABI compatibility |
| 32 | + # between debug and non-debug mode. |
| 33 | + 'disable_glibcxx_debug': 1, |
| 34 | + |
| 35 | + # Don't use ICU data file (icudtl.dat) from V8, we use our own. |
| 36 | + 'icu_use_data_file_flag%': 0, |
33 | 37 |
|
34 | 38 | # Reset this number to 0 on major V8 upgrades.
|
35 | 39 | # Increment by one for each non-official patch applied to deps/v8.
|
36 | 40 | 'v8_embedder_string': '-node.0',
|
37 | 41 |
|
| 42 | + ##### V8 defaults for Node.js ##### |
| 43 | + |
| 44 | + # Old time default, now explicitly stated. |
| 45 | + 'v8_use_snapshot': 'true', |
| 46 | + |
| 47 | + # Refs: https://github.com/nodejs/node/issues/23122 |
| 48 | + # Refs: https://github.com/nodejs/node/issues/23167 |
| 49 | + # Enable compiler warnings when using V8_DEPRECATED apis. |
| 50 | + 'v8_deprecation_warnings': 1, |
| 51 | + # Enable compiler warnings when using V8_DEPRECATE_SOON apis. |
| 52 | + 'v8_imminent_deprecation_warnings': 1, |
| 53 | + |
| 54 | + # Default to -O0 for debug builds. |
| 55 | + 'v8_optimized_debug': 0, |
| 56 | + |
38 | 57 | # Enable disassembler for `--print-code` v8 options
|
39 | 58 | 'v8_enable_disassembler': 1,
|
40 | 59 |
|
41 | 60 | # Don't bake anything extra into the snapshot.
|
42 |
| - 'v8_use_external_startup_data%': 0, |
| 61 | + 'v8_use_external_startup_data': 0, |
| 62 | + |
| 63 | + # https://github.com/nodejs/node/pull/22920/files#r222779926 |
| 64 | + 'v8_enable_handle_zapping': 0, |
43 | 65 |
|
44 | 66 | # Disable V8 untrusted code mitigations.
|
45 | 67 | # See https://github.com/v8/v8/wiki/Untrusted-code-mitigations
|
46 | 68 | 'v8_untrusted_code_mitigations': 'false',
|
47 | 69 |
|
48 |
| - # Some STL containers (e.g. std::vector) do not preserve ABI compatibility |
49 |
| - # between debug and non-debug mode. |
50 |
| - 'disable_glibcxx_debug': 1, |
| 70 | + # Still WIP in V8 7.1 |
| 71 | + 'v8_enable_pointer_compression': 'false', |
51 | 72 |
|
52 |
| - # Don't use ICU data file (icudtl.dat) from V8, we use our own. |
53 |
| - 'icu_use_data_file_flag%': 0, |
| 73 | + # New in V8 7.1 |
| 74 | + 'v8_enable_embedded_builtins': 'true', |
| 75 | + |
| 76 | + # This is more of a V8 dev setting |
| 77 | + # https://github.com/nodejs/node/pull/22920/files#r222779926 |
| 78 | + 'v8_enable_fast_mksnapshot': 0, |
| 79 | + |
| 80 | + ##### end V8 defaults ##### |
54 | 81 |
|
55 | 82 | 'conditions': [
|
56 | 83 | ['GENERATOR=="ninja"', {
|
|
0 commit comments