v8/test
Gabriel Charette 954146a5cf Make TimeTicks::Now() high-resolution whenever possible with low-latency.
It was already always high-resolution on POSIX but was never high
resolution on Windows. Windows does support low latency high-resolution
timers for the majority of our user base.

TimeTicks::HighResolutionNow() was only explicitly requested in testing
frameworks. As such I left the call in place but made it DCHECK that
it's running on a Windows machine on which high-resolution clocks are
used. This confirms that none of our test fleet has regressed with this
change (the previous HighResolutionNow() used to be slightly more
aggressive and also do it in a few configurations where we now fallback
to low-resolution now).

This implementation was copied as-is (modulo minor v8 API
compatibility tweaks). These implementations were the same in the
past but had diverged when, sadly, the same bug was fixed separately
years apart, in Chromium and V8:
chromium: https://codereview.chromium.org/1284053004 + https://codereview.chromium.org/2393953003
v8: https://codereview.chromium.org/1304873011

This is a prerequisite to add metrics around parallel task execution
(low-resolution clocks are useless at that level, but we also don't want
to incur high-latency clocks on machines that can't afford it cheaply).

Bug: chromium:807606
Change-Id: Id18e7be895d8431ebd0e565a1bdf358fe7838489
Reviewed-on: https://chromium-review.googlesource.com/897485
Reviewed-by: Hannes Payer <hpayer@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51027}
2018-02-01 11:55:42 +00:00
..
benchmarks [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
cctest [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
common [wasm] Implement i64.trunc_s:sat/f32 2018-01-31 15:35:13 +00:00
debugger [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
fuzzer [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
inspector [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
intl [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
js-perf-test [js-perf-tests] Hook up new benchmarks for String.p.charCodeAt 2018-01-31 17:34:06 +00:00
memory
message [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
mjsunit [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
mkgrokdump [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
mozilla [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
preparser [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
test262 [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
unittests Make TimeTicks::Now() high-resolution whenever possible with low-latency. 2018-02-01 11:55:42 +00:00
wasm-spec-tests [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
webkit [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00
bot_default.isolate
BUILD.gn [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
d8_default.isolate [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
default.isolate
optimize_for_size.isolate
perf.isolate Reland "Reland "[test] Creating command before execution phase."" 2017-12-04 13:40:29 +00:00