Use a fixed random seed per default.

To get back the old behavior, use "make randomseed=0 ...".

BUG=v8:1880,v8:2885
R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/64093003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17555 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1813231c
...@@ -104,6 +104,10 @@ endif ...@@ -104,6 +104,10 @@ endif
ifeq ($(unalignedaccess), on) ifeq ($(unalignedaccess), on)
GYPFLAGS += -Dv8_can_use_unaligned_accesses=true GYPFLAGS += -Dv8_can_use_unaligned_accesses=true
endif endif
# randomseed=12345, disable random seed via randomseed=0
ifdef randomseed
GYPFLAGS += -Dv8_random_seed=$(randomseed)
endif
# soname_version=1.2.3 # soname_version=1.2.3
ifdef soname_version ifdef soname_version
GYPFLAGS += -Dsoname_version=$(soname_version) GYPFLAGS += -Dsoname_version=$(soname_version)
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
{ {
'variables': { 'variables': {
'v8_code': 1, 'v8_code': 1,
'v8_random_seed%': 314159265,
}, },
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
'targets': [ 'targets': [
...@@ -156,6 +157,11 @@ ...@@ -156,6 +157,11 @@
'--log-snapshot-positions', '--log-snapshot-positions',
'--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
], ],
'conditions': [
['v8_random_seed!=0', {
'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
}],
],
}, },
'action': [ 'action': [
'<@(_inputs)', '<@(_inputs)',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment