v8/test/mjsunit/tools
Simon Zünd 3896cdc25c Reland "[array] Use random middle element to determine pivot during sorting"
This is a reland of 91bab5588c

This CL contains two major changes w.r.t to the original CL:

The random state is removed from the Smi root list and we pre-seed the RNG
on each sort with the length of the array.

To cut down on the length of the arguments list and to keep track of the
random state across recursive calls, we move most of the sort arguments into
a FixedArray and reload from the array for each recursion.

Original change's description:
> [array] Use random middle element to determine pivot during sorting
>
> This CL adds a "random state" to the Smi Root list and implements a
> basic Linear congruential pseudo random number generator in Torque.
>
> The RNG is used to determine the pivot element for sorting. This will
> prevent the worst cases for certain data layouts.
>
> Drive-by-fix: Make sorting of ranges and execution pauses for profviz
> deterministic by adding a secondary sorting criteria.
>
> Bug: v8:7382
> Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
> Change-Id: Ieb871e98e74bdb803f821b0cd35d2f67ee0f2868
> Reviewed-on: https://chromium-review.googlesource.com/1082193
> Reviewed-by: Hannes Payer <hpayer@chromium.org>
> Reviewed-by: Jakob Gruber <jgruber@chromium.org>
> Reviewed-by: Camillo Bruni <cbruni@chromium.org>
> Commit-Queue: Simon Zünd <szuend@google.com>
> Cr-Commit-Position: refs/heads/master@{#53524}

Bug: v8:7382
Change-Id: Ia7bef7ed1c0e904ffe43bc428e702f64f9c6a60b
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/1087888
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#53583}
2018-06-07 13:33:14 +00:00
..
codemap.js
compiler-trace-flags.js [turbofan][wasm] Fix --trace-turbo with compiling a WASM function. 2018-05-14 13:37:13 +00:00
consarray.js
csvparser.js [log] Consistently escape log entries 2017-10-20 23:53:44 +00:00
dumpcpp.js [tools] Move common arguments processing into separate file 2017-10-24 00:25:04 +00:00
profile_view.js
profile.js [profiler] Web UI: add summary of opts/deopts. 2017-03-22 16:02:25 +00:00
profviz-test.default Reland "[array] Use random middle element to determine pivot during sorting" 2018-06-07 13:33:14 +00:00
profviz-test.log [log] Consistently escape log entries 2017-10-20 23:53:44 +00:00
profviz.js [tools] Move common arguments processing into separate file 2017-10-24 00:25:04 +00:00
splaytree.js
tickprocessor-test-func-info.log [log] Consistently escape log entries 2017-10-20 23:53:44 +00:00
tickprocessor-test.default [tools] Show more entries in the ticks-processor 2017-03-10 10:34:11 +00:00
tickprocessor-test.func-info [tools] Add options to separate more entries in tickprocessor 2017-04-11 10:23:02 +00:00
tickprocessor-test.gc-state [tools] Show more entries in the ticks-processor 2017-03-10 10:34:11 +00:00
tickprocessor-test.ignore-unknown [tools] Show more entries in the ticks-processor 2017-03-10 10:34:11 +00:00
tickprocessor-test.log [log] Consistently escape log entries 2017-10-20 23:53:44 +00:00
tickprocessor-test.only-summary
tickprocessor-test.separate-ic [tools] Show more entries in the ticks-processor 2017-03-10 10:34:11 +00:00
tickprocessor.js [tools] Move common arguments processing into separate file 2017-10-24 00:25:04 +00:00