v8/test/unittests/compiler-dispatcher
Gabriel Charette 70222a9d03 [v8 platform] Rename BackgroundThread methods to WorkerThreads method.
Follow-up to https://chromium-review.googlesource.com/c/v8/v8/+/941442.

"background" refers to a priority and is inappropriate to refer to
worker threads as many tasks posted to worker threads by v8 are in
fact high priority.

Also took advantage of this rename to make NumberOfWorkerThreads()
return an int instead of size_t. While it is never negative, int is
simpler and Google C++ style guide states to avoid unsigned integers in
such cases (ref. "On Unsigned Integers" @
https://google.github.io/styleguide/cppguide.html#Integer_Types).

The Chromium embedder for that call provided an int which was converted
to size_t for this override and most often casted back down to int on the
v8 side, adding churn, and readability overhead.

R=ahaas@chromium.org

Bug: v8:7310
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Ib5280df73d2846b111d985be65a10b049995ea6a
Reviewed-on: https://chromium-review.googlesource.com/941944
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51662}
2018-03-01 15:30:35 +00:00
..
compiler-dispatcher-tracer-unittest.cc [Compiler] Simplify UnoptimizedCompileJob 2017-11-16 13:31:37 +00:00
compiler-dispatcher-unittest.cc [v8 platform] Rename BackgroundThread methods to WorkerThreads method. 2018-03-01 15:30:35 +00:00
optimizing-compile-dispatcher-unittest.cc [debug] Ensure breaking on inlined builtins works 2018-02-20 07:52:51 +00:00
unoptimized-compile-job-unittest.cc [v8 platform] Get rid of unused ExpectedRuntime parameter. 2018-03-01 10:35:42 +00:00