-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
build: enable v8's SipHash for hash seed creation #26367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -774,6 +774,17 @@ The externally maintained libraries used by Node.js are: | |
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
""" | ||
|
||
- SipHash, located at deps/v8/src/third_party/siphash, is licensed as follows: | ||
""" | ||
SipHash reference C implementation | ||
|
||
Copyright (c) 2016 Jean-Philippe Aumasson <[email protected]> | ||
|
||
To the extent possible under law, the author(s) have dedicated all | ||
copyright and related and neighboring rights to this software to the public | ||
domain worldwide. This software is distributed without any warranty. | ||
""" | ||
|
||
- zlib, located at deps/zlib, is licensed as follows: | ||
""" | ||
zlib.h -- interface of the 'zlib' general purpose compression library | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -477,6 +477,11 @@ | |
dest='without_snapshot', | ||
help=optparse.SUPPRESS_HELP) | ||
|
||
parser.add_option('--without-siphash', | ||
action='store_true', | ||
dest='without_siphash', | ||
help=optparse.SUPPRESS_HELP) | ||
|
||
parser.add_option('--code-cache-path', | ||
action='store', | ||
dest='code_cache_path', | ||
|
@@ -1122,6 +1127,7 @@ def configure_v8(o): | |
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables. | ||
o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks. | ||
o['variables']['v8_use_snapshot'] = 'false' if options.without_snapshot else 'true' | ||
o['variables']['v8_use_siphash'] = 'false' if options.without_siphash else 'true' | ||
|
||
o['variables']['v8_trace_maps'] = 1 if options.trace_maps else 0 | ||
o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) | ||
o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,7 @@ | |
'v8_enable_verify_predictable=<(v8_enable_verify_predictable)', | ||
'v8_target_cpu=<(v8_target_arch)', | ||
'v8_use_snapshot=<(v8_use_snapshot)', | ||
'v8_use_siphash=<(v8_use_siphash)', | ||
|
||
] | ||
}, | ||
'conditions': [ | ||
|
@@ -1528,6 +1529,8 @@ | |
'../src/string-stream.h', | ||
'../src/strtod.cc', | ||
'../src/strtod.h', | ||
'../src/third_party/siphash/halfsiphash.cc', | ||
'../src/third_party/siphash/halfsiphash.h', | ||
refack marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
'../src/third_party/utf8-decoder/utf8-decoder.h', | ||
'../src/torque-assembler.h', | ||
'../src/tracing/trace-event.cc', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC CC0 is a "no-attribution no-copyright" license, which IMO makes explicitly including it counter productive.