File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 44
44
# Old time default, now explicitly stated.
45
45
'v8_use_snapshot' : 'true' ,
46
46
47
+ # Turn on SipHash for hash seed generation, addresses HashWick
48
+ 'v8_use_siphash' : 'true' ,
49
+
47
50
# These are more relevant for V8 internal development.
48
51
# Refs: https://github.com/nodejs/node/issues/23122
49
52
# Refs: https://github.com/nodejs/node/issues/23167
Original file line number Diff line number Diff line change 477
477
dest = 'without_snapshot' ,
478
478
help = optparse .SUPPRESS_HELP )
479
479
480
+ parser .add_option ('--without-siphash' ,
481
+ action = 'store_true' ,
482
+ dest = 'without_siphash' ,
483
+ help = optparse .SUPPRESS_HELP )
484
+
480
485
parser .add_option ('--code-cache-path' ,
481
486
action = 'store' ,
482
487
dest = 'code_cache_path' ,
@@ -1122,6 +1127,7 @@ def configure_v8(o):
1122
1127
o ['variables' ]['v8_random_seed' ] = 0 # Use a random seed for hash tables.
1123
1128
o ['variables' ]['v8_promise_internal_field_count' ] = 1 # Add internal field to promises for async hooks.
1124
1129
o ['variables' ]['v8_use_snapshot' ] = 'false' if options .without_snapshot else 'true'
1130
+ o ['variables' ]['v8_use_siphash' ] = 'false' if options .without_siphash else 'true'
1125
1131
o ['variables' ]['v8_trace_maps' ] = 1 if options .trace_maps else 0
1126
1132
o ['variables' ]['node_use_v8_platform' ] = b (not options .without_v8_platform )
1127
1133
o ['variables' ]['node_use_bundled_v8' ] = b (not options .without_bundled_v8 )
Original file line number Diff line number Diff line change 178
178
['v8_use_snapshot=="true" and v8_use_external_startup_data==1' , {
179
179
'defines' : ['V8_USE_EXTERNAL_STARTUP_DATA' ,],
180
180
}],
181
+ ['v8_use_siphash=="true"' , {
182
+ 'defines' : ['V8_USE_SIPHASH' ,],
183
+ }],
181
184
['dcheck_always_on!=0' , {
182
185
'defines' : ['DEBUG' ,],
183
186
}],
Original file line number Diff line number Diff line change 130
130
'v8_enable_verify_predictable=<(v8_enable_verify_predictable)' ,
131
131
'v8_target_cpu=<(v8_target_arch)' ,
132
132
'v8_use_snapshot=<(v8_use_snapshot)' ,
133
+ 'v8_use_siphash=<(v8_use_siphash)' ,
133
134
]
134
135
},
135
136
'conditions' : [
1528
1529
'../src/string-stream.h' ,
1529
1530
'../src/strtod.cc' ,
1530
1531
'../src/strtod.h' ,
1532
+ '../src/third_party/siphash/halfsiphash.cc' ,
1533
+ '../src/third_party/siphash/halfsiphash.h' ,
1531
1534
'../src/third_party/utf8-decoder/utf8-decoder.h' ,
1532
1535
'../src/torque-assembler.h' ,
1533
1536
'../src/tracing/trace-event.cc' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
'variables' : {
3
3
'v8_use_snapshot%' : 'false' ,
4
+ 'v8_use_siphash%' : 'true' ,
4
5
'v8_trace_maps%' : 0 ,
5
6
'node_use_dtrace%' : 'false' ,
6
7
'node_use_etw%' : 'false' ,
You can’t perform that action at this time.
0 commit comments