Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! set V8 variables
  • Loading branch information
refack committed Oct 4, 2018
commit 311fd7f048ccd6fbf50d2c59395111de8a7b4b31
22 changes: 11 additions & 11 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -40,40 +40,40 @@
##### V8 defaults for Node.js #####

# Old time default, now explicitly stated.
'v8_use_snapshot%': 'true',
'v8_use_snapshot': 'true',

# Refs: https://github.com/nodejs/node/issues/23122
# Refs: https://github.com/nodejs/node/issues/23167
# Enable compiler warnings when using V8_DEPRECATED apis.
'v8_deprecation_warnings%': 1,
'v8_deprecation_warnings': 1,
# Enable compiler warnings when using V8_DEPRECATE_SOON apis.
'v8_imminent_deprecation_warnings%': 1,
'v8_imminent_deprecation_warnings': 1,

# Default to -O0 for debug builds.
'v8_optimized_debug%': 0,
'v8_optimized_debug': 0,

# Enable disassembler for `--print-code` v8 options
'v8_enable_disassembler%': 1,
'v8_enable_disassembler': 1,

# Don't bake anything extra into the snapshot.
'v8_use_external_startup_data%': 0,
'v8_use_external_startup_data': 0,

# https://github.com/nodejs/node/pull/22920/files#r222779926
'v8_enable_handle_zapping%': 0,
'v8_enable_handle_zapping': 0,

# Disable V8 untrusted code mitigations.
# See https://github.com/v8/v8/wiki/Untrusted-code-mitigations
'v8_untrusted_code_mitigations%': 'false',
'v8_untrusted_code_mitigations': 'false',

# Still WIP in V8 7.1
'v8_enable_pointer_compression%': 'false',
'v8_enable_pointer_compression': 'false',

# New in V8 7.1
'v8_enable_embedded_builtins%': 'true',
'v8_enable_embedded_builtins': 'true',

# This is more of a V8 dev setting
# https://github.com/nodejs/node/pull/22920/files#r222779926
'v8_enable_fast_mksnapshot%': 0,
'v8_enable_fast_mksnapshot': 0,

##### end V8 defaults #####

Expand Down