-
Notifications
You must be signed in to change notification settings - Fork 30k
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
build: enable v8's SipHash for hash seed creation #26367
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 |
---|---|---|
|
@@ -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' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For posterity: this could be just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for the tip, we could do a lot of simplification with that but I'll withhold this time There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we even need a ./configure -- -Dv8_use_siphash=false seems good enough There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can be removed in a future version when someone's cleaning up. For now if it ends up causing problems, performance or backward compatibility, or whatever, at least they have an easy out |
||
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)', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohh. We've been missing this with some of the other V8 new features... |
||
] | ||
}, | ||
'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.
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.